/
githubmirror
/
sqlc
Обзор
Документация
Войти
/
githubmirror
/
sqlc
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
internal/compiler/query.go
61 строка
1 KB
Kyle Gray
fix(compiler): Support functions with OUT params (#2865)
17 окт 2023, 20:01
Не верифицирован
17 окт 2023, 20:01
1ac6f19
Код
Авторство
О чём код?
package compiler import ( "github.com/sqlc-dev/sqlc/internal/metadata" "github.com/sqlc-dev/sqlc/internal/sql/ast" "github.com/sqlc-dev/sqlc/internal/sql/catalog" ) type Function struct { Rel *ast.FuncName ReturnType *ast.TypeName Outs []*catalog.Argument } type Table struct { Rel *ast.TableName Columns []*Column } type Column struct { Name string OriginalName string DataType string NotNull bool Unsigned bool IsArray bool ArrayDims int 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() skipTableRequiredCheck bool } type Query struct { SQL string Metadata metadata.Metadata Columns []*Column Params []Parameter // Needed for CopyFrom InsertIntoTable *ast.TableName // Needed for vet RawStmt *ast.RawStmt } type Parameter struct { Number int Column *Column }