Versions in this module Expand all Collapse all v1 v1.0.6 Oct 23, 2026 Changes in this version + const DefaultMaxColumns + const DefaultMaxDefinitionBytes + const DefaultMaxMetadata + const DefaultMaxRelations + const DefaultMaxRoutines + func ListDatabases(ctx context.Context, db *sql.DB, driver string) (_ []string, returnErr error) + func NormalizeDriver(driver string) string + func ValidateDriver(driver string) error + type Catalog struct + Capabilities connection.BackendCapabilities + Database string + Databases []string + DefaultSchema string + Driver string + Schemas []Schema + TruncateReason string + Truncated bool + func Inspect(ctx context.Context, db *sql.DB, driver string, limits Limits) (_ Catalog, returnErr error) + type Column struct + Comment *string + DataType string + Default *string + EnumValues []string + Identity bool + MaxLength *int + Name string + Nullable *bool + NumericPrecision *int + NumericScale *int + Ordinal int + PrimaryKey bool + Unique bool + type ForeignKey struct + Columns []string + Name string + ReferencedColumns []string + ReferencedSchema string + ReferencedTable string + type Index struct + Columns []string + Filter string + Name string + Primary bool + Type string + Unique bool + type Limits struct + MaxColumns int + MaxDefinitionBytes int + MaxMetadata int + MaxRelations int + MaxRoutines int + func (l Limits) WithDefaults() Limits + type Relation struct + Columns []Column + ForeignKeys []ForeignKey + Indexes []Index + Name string + Triggers []Trigger + Type string + ViewDef string + type Routine struct + ID string + Name string + Parameters []RoutineParameter + ReturnType string + SQL string + Type string + type RoutineParameter struct + DataType string + Name string + Ordinal int + type Schema struct + Name string + Relations []Relation + Routines []Routine + type Trigger struct + Disabled bool + Event string + Name string + SQL string + Timing string