parse

package
v0.0.0-...-11930c3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Markdown

func Markdown(contents []byte, w io.Writer) error

func Regex

func Regex(pattern, value string) (bool, error)

Types

type Column

type Column struct {
	Name string
	Type string
}

type Schema

type Schema struct {
	// Map table name to table struct
	TableMap map[string]Table

	// List of table names
	Tables []string
}

func Read

func Read(r io.Reader) *Schema

func (*Schema) Parse

func (s *Schema) Parse(filenames []string, entrypoint string, w io.Writer) error

type Table

type Table struct {
	Name string

	// Map column name to column struct
	ColumnMap map[string]Column

	// List of table columns
	Columns []string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL