Versions in this module Expand all Collapse all v0 v0.0.8 Feb 17, 2022 Changes in this version + type Column struct + Name string + Type string + func (column Column) ToStructField(withTag bool) string + type Columns []Column + func (columns Columns) ToStructFields(withTag bool) string + type DDLParser struct + Files map[string]map[string]Columns + Index map[string]Indexes + InputFile string + IsDir bool + OutputFile string + func New(input string, output string, isDir bool, packageName string) *DDLParser + func (parser *DDLParser) Enter(n ast.Node) (node ast.Node, skipChildren bool) + func (parser *DDLParser) Leave(n ast.Node) (node ast.Node, ok bool) + func (parser *DDLParser) Parse(sql string) error + func (parser DDLParser) ToStructs(withTag bool) (fileContentMap map[string][]byte, err error) + type Index struct + type Indexes []Index