Versions in this module Expand all Collapse all v0 v0.0.11 Jul 17, 2019 v0.0.11-rc1 Jul 17, 2019 v0.0.10 Mar 19, 2019 Changes in this version type TokenType + const NOW v0.0.9 Oct 9, 2018 Changes in this version + type Option interface + Name func() string + Value func() interface{} type TokenType + const ASC + const BOOL + const BOOLEAN + const DESC + const FALSE + const JSON + const TRUE v0.0.8 Oct 23, 2017 Changes in this version type TokenType + const LIKE v0.0.7 Oct 11, 2017 Changes in this version + type SchemaSource interface + WriteSchema func(io.Writer) error + func NewLocalFileSource(s string) SchemaSource + func NewLocalGitSource(gitDir, file, commitish string) SchemaSource + func NewMySQLSource(s string) SchemaSource + func NewReaderSource(src io.Reader) SchemaSource + func NewSchemaSource(uri string) (SchemaSource, error) v0.0.6 Sep 20, 2017 Changes in this version type TokenType + const CHARSET v0.0.5 Mar 1, 2017 v0.0.4 Feb 15, 2017 v0.0.3 Feb 7, 2017 v0.0.2 Jan 26, 2017 v0.0.1 Jan 9, 2017 Changes in this version + const Version + func Lex(ctx context.Context, input []byte) chan *Token + type ParseError interface + Col func() int + EOF func() bool + File func() string + Line func() int + Message func() string + type Parser struct + func New() *Parser + func (p *Parser) Parse(src []byte) (model.Stmts, error) + func (p *Parser) ParseFile(fn string) (model.Stmts, error) + func (p *Parser) ParseString(src string) (model.Stmts, error) + type Token struct + Col int + EOF bool + Line int + Pos int + Type TokenType + Value string + func NewToken(t TokenType, v string) *Token + type TokenType int + const ACTION + const ASTERISK + const AUTO_INCREMENT + const AVG_ROW_LENGTH + const BACKTICK_IDENT + const BIGINT + const BINARY + const BIT + const BLOB + const BTREE + const CASCADE + const CHAR + const CHARACTER + const CHECK + const CHECKSUM + const COLLATE + const COMMA + const COMMENT + const COMMENT_IDENT + const COMPACT + const COMPRESSED + const CONNECTION + const CONSTRAINT + const CREATE + const CURRENT_TIMESTAMP + const DASH + const DATA + const DATABASE + const DATE + const DATETIME + const DECIMAL + const DEFAULT + const DELAY_KEY_WRITE + const DELETE + const DIRECTORY + const DISK + const DOT + const DOUBLE + const DOUBLE_QUOTE + const DOUBLE_QUOTE_IDENT + const DROP + const DYNAMIC + const ENGINE + const ENUM + const EOF + const EQUAL + const EXISTS + const FIRST + const FIXED + const FLOAT + const FOREIGN + const FULL + const FULLTEXT + const HASH + const IDENT + const IF + const ILLEGAL + const INDEX + const INSERT_METHOD + const INT + const INTEGER + const KEY + const KEY_BLOCK_SIZE + const LAST + const LONGBLOB + const LONGTEXT + const LPAREN + const MATCH + const MAX_ROWS + const MEDIUMBLOB + const MEDIUMINT + const MEDIUMTEXT + const MEMORY + const MIN_ROWS + const NO + const NOT + const NULL + const NUMBER + const NUMERIC + const ON + const PACK_KEYS + const PARTIAL + const PASSWORD + const PLUS + const PRIMARY + const REAL + const REDUNDANT + const REFERENCES + const RESTRICT + const ROW_FORMAT + const RPAREN + const SEMICOLON + const SET + const SIMPLE + const SINGLE_QUOTE + const SINGLE_QUOTE_IDENT + const SLASH + const SMALLINT + const SPACE + const SPATIAL + const STATS_AUTO_RECALC + const STATS_PERSISTENT + const STATS_SAMPLE_PAGES + const STORAGE + const TABLE + const TABLESPACE + const TEMPORARY + const TEXT + const TIME + const TIMESTAMP + const TINYBLOB + const TINYINT + const TINYTEXT + const UNION + const UNIQUE + const UNSIGNED + const UPDATE + const USE + const USING + const VARBINARY + const VARCHAR + const YEAR + const ZEROFILL + func (t TokenType) String() string