Versions in this module Expand all Collapse all v0 v0.1.0 Oct 2, 2024 Changes in this version + 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, error) + func (c *Compiler) Catalog() *catalog.Catalog + func (c *Compiler) Close(ctx context.Context) + 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 + Outs []*catalog.Argument + Rel *ast.FuncName + ReturnType *ast.TypeName + type Parameter struct + Column *Column + Number int + type Parser interface + CommentSyntax func() source.CommentSyntax + IsReservedKeyword func(string) bool + Parse func(io.Reader) ([]ast.Statement, error) + type Query struct + Columns []*Column + InsertIntoTable *ast.TableName + Metadata metadata.Metadata + 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