snapshot of https://github.com/sqlc-dev/sqlc.git (main, 2026-09-16; blobs > 131072B omitted)
Some checks failed
kotlin / test (push) Has been skipped
python / test (push) Has been skipped
typescript / test (push) Has been skipped
go / build darwin/amd64 (push) Has been cancelled
go / build linux/amd64 (push) Has been cancelled
go / build windows/amd64 (push) Has been cancelled
go / build darwin/arm64 (push) Has been cancelled
go / build linux/arm64 (push) Has been cancelled
go / build windows/arm64 (push) Has been cancelled
go / test (push) Has been cancelled
go / vuln_check (push) Has been cancelled
Some checks failed
kotlin / test (push) Has been skipped
python / test (push) Has been skipped
typescript / test (push) Has been skipped
go / build darwin/amd64 (push) Has been cancelled
go / build linux/amd64 (push) Has been cancelled
go / build windows/amd64 (push) Has been cancelled
go / build darwin/arm64 (push) Has been cancelled
go / build linux/arm64 (push) Has been cancelled
go / build windows/arm64 (push) Has been cancelled
go / test (push) Has been cancelled
go / vuln_check (push) Has been cancelled
This commit is contained in:
31
internal/core/catalogdb/db.go
Normal file
31
internal/core/catalogdb/db.go
Normal file
@@ -0,0 +1,31 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.31.1
|
||||
|
||||
package catalogdb
|
||||
|
||||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
)
|
||||
|
||||
type DBTX interface {
|
||||
ExecContext(context.Context, string, ...any) (sql.Result, error)
|
||||
PrepareContext(context.Context, string) (*sql.Stmt, error)
|
||||
QueryContext(context.Context, string, ...any) (*sql.Rows, error)
|
||||
QueryRowContext(context.Context, string, ...any) *sql.Row
|
||||
}
|
||||
|
||||
func New(db DBTX) *Queries {
|
||||
return &Queries{db: db}
|
||||
}
|
||||
|
||||
type Queries struct {
|
||||
db DBTX
|
||||
}
|
||||
|
||||
func (q *Queries) WithTx(tx *sql.Tx) *Queries {
|
||||
return &Queries{
|
||||
db: tx,
|
||||
}
|
||||
}
|
||||
142
internal/core/catalogdb/models.go
Normal file
142
internal/core/catalogdb/models.go
Normal file
@@ -0,0 +1,142 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.31.1
|
||||
|
||||
package catalogdb
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
)
|
||||
|
||||
type SqlAttribute struct {
|
||||
Oid int64
|
||||
ClassOid int64
|
||||
Name string
|
||||
TypeOid int64
|
||||
NotNull int64
|
||||
HasDefault int64
|
||||
Num int64
|
||||
DeclType string
|
||||
AutoIncrement int64
|
||||
IsPrimaryKey int64
|
||||
IsUnique int64
|
||||
Hidden int64
|
||||
}
|
||||
|
||||
type SqlCast struct {
|
||||
SourceTypeOid int64
|
||||
TargetTypeOid int64
|
||||
ProcOid sql.NullInt64
|
||||
Context string
|
||||
DialectOid sql.NullInt64
|
||||
}
|
||||
|
||||
type SqlClass struct {
|
||||
Oid int64
|
||||
NamespaceOid int64
|
||||
Name string
|
||||
Kind string
|
||||
}
|
||||
|
||||
type SqlConstraint struct {
|
||||
Oid int64
|
||||
ClassOid int64
|
||||
Name string
|
||||
Kind string
|
||||
Columns string
|
||||
}
|
||||
|
||||
type SqlDialect struct {
|
||||
Oid int64
|
||||
Name string
|
||||
}
|
||||
|
||||
type SqlDialectFlag struct {
|
||||
DialectOid int64
|
||||
Key string
|
||||
Value string
|
||||
}
|
||||
|
||||
type SqlNamespace struct {
|
||||
Oid int64
|
||||
Name string
|
||||
}
|
||||
|
||||
type SqlOperator struct {
|
||||
Oid int64
|
||||
NamespaceOid sql.NullInt64
|
||||
DialectOid sql.NullInt64
|
||||
Name string
|
||||
LeftTypeOid sql.NullInt64
|
||||
RightTypeOid sql.NullInt64
|
||||
ResultTypeOid int64
|
||||
ProcOid sql.NullInt64
|
||||
CommutatorOid sql.NullInt64
|
||||
NegatorOid sql.NullInt64
|
||||
}
|
||||
|
||||
type SqlProc struct {
|
||||
Oid int64
|
||||
NamespaceOid sql.NullInt64
|
||||
DialectOid sql.NullInt64
|
||||
Name string
|
||||
Kind string
|
||||
ReturnTypeOid int64
|
||||
ReturnSet int64
|
||||
ReturnNullable int64
|
||||
ReturnTemplate string
|
||||
Strict int64
|
||||
VariadicKind string
|
||||
}
|
||||
|
||||
type SqlProcArg struct {
|
||||
ProcOid int64
|
||||
Ord int64
|
||||
Name string
|
||||
TypeOid int64
|
||||
Mode string
|
||||
HasDefault int64
|
||||
}
|
||||
|
||||
type SqlType struct {
|
||||
Oid int64
|
||||
NamespaceOid int64
|
||||
DialectOid sql.NullInt64
|
||||
Name string
|
||||
Expr string
|
||||
Typtype string
|
||||
Category sql.NullString
|
||||
Preferred int64
|
||||
FamilyOid sql.NullInt64
|
||||
ElementOid sql.NullInt64
|
||||
BaseOid sql.NullInt64
|
||||
CanonicalOid sql.NullInt64
|
||||
NotNull int64
|
||||
}
|
||||
|
||||
type SqlTypeAffinity struct {
|
||||
DialectOid int64
|
||||
Ord int64
|
||||
Words string
|
||||
TypeOid int64
|
||||
}
|
||||
|
||||
type SqlTypeArg struct {
|
||||
TypeOid int64
|
||||
Ord int64
|
||||
Label string
|
||||
ArgTypeOid sql.NullInt64
|
||||
Nullable int64
|
||||
IntValue sql.NullInt64
|
||||
BoolValue sql.NullInt64
|
||||
StringValue sql.NullString
|
||||
Ident sql.NullString
|
||||
}
|
||||
|
||||
type SqlTypeRewrite struct {
|
||||
DialectOid int64
|
||||
Ord int64
|
||||
Pattern string
|
||||
Template string
|
||||
Cond string
|
||||
}
|
||||
1445
internal/core/catalogdb/query.sql.go
Normal file
1445
internal/core/catalogdb/query.sql.go
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user