Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupportedStatementType = errors.New("parseQuery: unsupported statement type")
Functions ¶
Types ¶
type Column ¶ added in v1.4.0
type Column struct { Name string OriginalName string DataType string NotNull bool Unsigned bool IsArray bool Comment string Length *int IsNamedParam bool IsFuncCall bool // XXX: Figure out what PostgreSQL calls `foo.id` Scope string Table *ast.TableName TableAlias string Type *ast.TypeName EmbedTable *ast.TableName IsSqlcSlice bool // is this sqlc.slice() // contains filtered or unexported fields }
type Compiler ¶ added in v1.5.0
type Compiler struct {
// contains filtered or unexported fields
}
func NewCompiler ¶ added in v1.5.0
func NewCompiler(conf config.SQL, combo config.CombinedSettings) *Compiler
func (*Compiler) OutputColumns ¶ added in v1.9.0
OutputColumns determines which columns a statement will output
func (*Compiler) ParseCatalog ¶ added in v1.5.0
func (*Compiler) ParseQueries ¶ added in v1.5.0
type Parser ¶ added in v1.4.0
type Parser interface { Parse(io.Reader) ([]ast.Statement, error) CommentSyntax() metadata.CommentSyntax IsReservedKeyword(string) bool }
TODO: Rename this interface Engine
type Query ¶ added in v1.4.0
type Query struct { SQL string Name string Cmd string // TODO: Pick a better name. One of: one, many, exec, execrows, copyFrom Columns []*Column Params []Parameter Comments []string // XXX: Hack Filename string // Needed for CopyFrom InsertIntoTable *ast.TableName // Needed for vet RawStmt *ast.RawStmt }
type QueryCatalog ¶ added in v1.4.0
type QueryCatalog struct {
// contains filtered or unexported fields
}
type Relation ¶ added in v1.5.0
func ParseRelationString ¶ added in v1.5.0
Click to show internal directories.
Click to hide internal directories.