Versions in this module Expand all Collapse all v0 v0.999.1 Aug 17, 2023 Changes in this version + var ErrUnsupportedStatementType = errors.New("parseQuery: unsupported statement type") + func ParseTableName(node ast.Node) (*ast.TableName, error) + func ParseTypeName(node ast.Node) (*ast.TypeName, error) + type Column struct + ArrayDims int + Comment string + DataType string + EmbedTable *ast.TableName + IsArray bool + IsFuncCall bool + IsNamedParam bool + IsSqlcSlice bool + Length *int + Name string + NotNull bool + OriginalName string + Scope string + Table *ast.TableName + TableAlias string + Type *ast.TypeName + Unsigned bool + func ConvertColumn(rel *ast.TableName, c *catalog.Column) *Column + type Compiler struct + func NewCompiler(conf config.SQL, combo config.CombinedSettings) *Compiler + func (c *Compiler) Catalog() *catalog.Catalog + func (c *Compiler) OutputColumns(stmt ast.Node) ([]*catalog.Column, error) + func (c *Compiler) ParseCatalog(schema []string) error + func (c *Compiler) ParseQueries(queries []string, o opts.Parser) error + func (c *Compiler) Result() *Result + type Function struct + Rel *ast.FuncName + ReturnType *ast.TypeName + type Parameter struct + Column *Column + Number int + type Parser interface + CommentSyntax func() metadata.CommentSyntax + IsReservedKeyword func(string) bool + Parse func(io.Reader) ([]ast.Statement, error) + type Query struct + Cmd string + Columns []*Column + Comments []string + Filename string + Flags map[string]bool + InsertIntoTable *ast.TableName + Name string + Params []Parameter + RawStmt *ast.RawStmt + SQL string + type QueryCatalog struct + func (qc QueryCatalog) GetFunc(rel *ast.FuncName) (*Function, error) + func (qc QueryCatalog) GetTable(rel *ast.TableName) (*Table, error) + type Relation struct + Catalog string + Name string + Schema string + func ParseRelationString(name string) (*Relation, error) + type Result struct + Catalog *catalog.Catalog + Queries []*Query + type Table struct + Columns []*Column + Rel *ast.TableName