Versions in this module Expand all Collapse all v1 v1.0.7 Oct 23, 2026 v1.0.6 Oct 23, 2026 Changes in this version + func Schemas(ctx context.Context, q Queryer, names []string) ([]string, error) + type CheckConstraint struct + Column *string + Definition string + Disabled bool + Name string + Table string + func CheckConstraints(ctx context.Context, q Queryer, scope Scope) ([]CheckConstraint, error) + type Column struct + CharMaxLength *int + Computed bool + DataType string + Default *string + DefaultConstraint *string + Identity bool + IdentityIncrement *int64 + IdentitySeed *int64 + MaxLength *int + Name string + Nullable bool + NumericPrecision *int + NumericScale *int + Position int + Precision *int + PrimaryKey bool + Scale *int + Table string + Unique bool + UserDefinedType bool + func Columns(ctx context.Context, q Queryer, scope Scope) ([]Column, error) + type ForeignKey struct + Column string + Name string + OnDelete string + OnUpdate string + RefColumn string + RefSchema string + RefTable string + Table string + func ForeignKeys(ctx context.Context, q Queryer, scope Scope) ([]ForeignKey, error) + type Index struct + Filter string + KeyColumns []string + Name string + Primary bool + Table string + TypeDesc string + Unique bool + UniqueConstraint bool + func Indexes(ctx context.Context, q Queryer, scope Scope) ([]Index, error) + type IndexColumn struct + Column string + Descending bool + Included bool + Index string + KeyOrdinal int + Table string + func IndexColumns(ctx context.Context, q Queryer, scope Scope) ([]IndexColumn, error) + type Parameter struct + DataType string + MaxLength int + Name string + Output bool + Position int + Precision int + Routine string + Scale int + func Parameters(ctx context.Context, q Queryer, scope Scope) ([]Parameter, error) + type Queryer interface + QueryContext func(ctx context.Context, query string, args ...any) (Rows, error) + func FromDB(db SQLQueryer) Queryer + type Routine struct + Definition *string + Name string + ReturnType *string + Schema string + Type RoutineType + func Routines(ctx context.Context, q Queryer, scope Scope) ([]Routine, error) + type RoutineType string + const InlineTableFunction + const Procedure + const ScalarFunction + const TableFunction + func (t RoutineType) IsFunction() bool + type Rows interface + Close func() error + Err func() error + Next func() bool + Scan func(dest ...any) error + type SQLQueryer interface + QueryContext func(context.Context, string, ...any) (*sql.Rows, error) + type Scope struct + DefinitionLimit int + Names []string + Schema string + type Table struct + Definition *string + Name string + Schema string + Type string + func Tables(ctx context.Context, q Queryer, scope Scope, tableType TableType) ([]Table, error) + type TableFeature struct + Feature string + Table string + func UnmanagedFeatures(ctx context.Context, q Queryer, scope Scope) ([]TableFeature, error) + type TableType string + const BaseTables + const Views