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 + type Bounds struct + DefinitionBytes int + Rows int + Truncated bool + type Column struct + ColumnName string + Comment *string + DataType string + DefaultValue *string + EnumValues []string + IsAutoIncrement bool + IsNullable bool + IsPrimaryKey bool + IsUnique bool + MaxLength *int + NumericPrecision *int + NumericScale *int + Position int + TableName string + type ForeignKey struct + ColumnName string + ConstraintName string + RefColumnName string + RefSchemaName string + RefTableName string + TableName string + type Index struct + Columns []string + Condition string + IndexName string + IsPrimary bool + IsUnique bool + TableName string + Type string + type Inspector interface + GetColumns func(ctx context.Context, schema string) ([]*Column, error) + GetDatabaseName func(ctx context.Context) (string, error) + GetDefaultSchema func(ctx context.Context) (string, error) + GetForeignKeys func(ctx context.Context, schema string) ([]*ForeignKey, error) + GetIndexes func(ctx context.Context, schema string) ([]*Index, error) + GetProcParams func(ctx context.Context, schema string) ([]*ProcParam, error) + GetSchemas func(ctx context.Context) ([]string, error) + GetStoredProcs func(ctx context.Context, schema string) ([]*StoredProc, error) + GetTables func(ctx context.Context, schema string, tableType string) ([]*Table, error) + GetTriggers func(ctx context.Context, schema string) ([]*Trigger, error) + func NewInspector(db *sql.DB, driver string, bounds *Bounds) (Inspector, error) + type PostgresInspector struct + func (i *PostgresInspector) GetColumns(ctx context.Context, schema string) (_ []*Column, returnErr error) + func (i *PostgresInspector) GetDatabaseName(ctx context.Context) (string, error) + func (i *PostgresInspector) GetDefaultSchema(ctx context.Context) (string, error) + func (i *PostgresInspector) GetForeignKeys(ctx context.Context, schema string) (_ []*ForeignKey, returnErr error) + func (i *PostgresInspector) GetIndexes(ctx context.Context, schema string) (_ []*Index, returnErr error) + func (i *PostgresInspector) GetProcParams(ctx context.Context, schema string) (_ []*ProcParam, returnErr error) + func (i *PostgresInspector) GetSchemas(ctx context.Context) (_ []string, returnErr error) + func (i *PostgresInspector) GetStoredProcs(ctx context.Context, schema string) (_ []*StoredProc, returnErr error) + func (i *PostgresInspector) GetTables(ctx context.Context, schema string, tableType string) (_ []*Table, returnErr error) + func (i *PostgresInspector) GetTriggers(ctx context.Context, schema string) ([]*Trigger, error) + type ProcParam struct + DataType string + ParamName string + Position int + ProcID string + ProcName string + type SQLServerInspector struct + func (i *SQLServerInspector) GetColumns(ctx context.Context, schema string) ([]*Column, error) + func (i *SQLServerInspector) GetDatabaseName(ctx context.Context) (string, error) + func (i *SQLServerInspector) GetDefaultSchema(ctx context.Context) (string, error) + func (i *SQLServerInspector) GetForeignKeys(ctx context.Context, schema string) ([]*ForeignKey, error) + func (i *SQLServerInspector) GetIndexes(ctx context.Context, schema string) ([]*Index, error) + func (i *SQLServerInspector) GetProcParams(ctx context.Context, schema string) ([]*ProcParam, error) + func (i *SQLServerInspector) GetSchemas(ctx context.Context) ([]string, error) + func (i *SQLServerInspector) GetStoredProcs(ctx context.Context, schema string) ([]*StoredProc, error) + func (i *SQLServerInspector) GetTables(ctx context.Context, schema string, tableType string) ([]*Table, error) + func (i *SQLServerInspector) GetTriggers(ctx context.Context, schema string) (_ []*Trigger, returnErr error) + type StoredProc struct + ID string + Name string + ReturnType string + SQL string + Schema string + Type string + type Table struct + Name string + Schema string + Type string + ViewDef string + type Trigger struct + Event string + IsDisabled bool + Name string + SQL string + Schema string + TableName string + Timing string