Versions in this module Expand all Collapse all v1 v1.2.0 Aug 4, 2026 v1.1.0 Jun 23, 2025 Changes in this version + func EnumValues(ctx context.Context, enum string) ([]*models.EnumValue, error) + func Enums(ctx context.Context) ([]*models.Enum, error) + func Flags() []xo.FlagSet + func IndexColumns(ctx context.Context, table, index string) ([]*models.IndexColumn, error) + func MysqlEnumValues(ctx context.Context, db models.DB, schema string, enum string) ([]*models.EnumValue, error) + func MysqlGoType(d xo.Type, schema, itype, utype string) (string, string, error) + func NthParam(ctx context.Context) (func(int) string, error) + func OracleGoType(d xo.Type, schema, itype, utype string) (string, string, error) + func PQPostgresGoType(d xo.Type, schema, itype, _ string) (string, string, error) + func PostgresFlags() []xo.Flag + func PostgresGoType(d xo.Type, schema, itype string) (string, string, error) + func PostgresIndexColumns(ctx context.Context, db models.DB, schema string, table string, index string) ([]*models.IndexColumn, error) + func PostgresTableColumns(ctx context.Context, db models.DB, schema string, table string) ([]*models.Column, error) + func PostgresViewStrip(query, inspect []string) ([]string, []string, []string, error) + func ProcParams(ctx context.Context, id string) ([]*models.ProcParam, error) + func Procs(ctx context.Context) ([]*models.Proc, error) + func Register(typ string, loader Loader) + func Schema(ctx context.Context) (string, error) + func Sqlite3GoType(d xo.Type, schema, itype, utype string) (string, string, error) + func SqlserverGoType(d xo.Type, schema, itype, utype string) (string, string, error) + func SqlserverViewStrip(query, inspect []string) ([]string, []string, []string, error) + func StdlibPostgresGoType(d xo.Type, schema, itype, _ string) (string, string, error) + func TableColumns(ctx context.Context, table string) ([]*models.Column, error) + func TableForeignKeys(ctx context.Context, table string) ([]*models.ForeignKey, error) + func TableIndexes(ctx context.Context, table string) ([]*models.Index, error) + func TableSequences(ctx context.Context, table string) ([]*models.Sequence, error) + func Tables(ctx context.Context, typ string) ([]*models.Table, error) + func ViewCreate(ctx context.Context, id string, query []string) (sql.Result, error) + func ViewDrop(ctx context.Context, id string) (sql.Result, error) + func ViewSchema(ctx context.Context, id string) (string, error) + func ViewStrip(ctx context.Context, query, inspect []string) ([]string, []string, []string, error) + func ViewTruncate(ctx context.Context, id string) (sql.Result, error) + type Loader struct + EnumValues func(context.Context, models.DB, string, string) ([]*models.EnumValue, error) + Enums func(context.Context, models.DB, string) ([]*models.Enum, error) + Flags func() []xo.Flag + IndexColumns func(context.Context, models.DB, string, string, string) ([]*models.IndexColumn, error) + Mask string + ProcParams func(context.Context, models.DB, string, string) ([]*models.ProcParam, error) + Procs func(context.Context, models.DB, string) ([]*models.Proc, error) + Schema func(context.Context, models.DB) (string, error) + TableColumns func(context.Context, models.DB, string, string) ([]*models.Column, error) + TableForeignKeys func(context.Context, models.DB, string, string) ([]*models.ForeignKey, error) + TableIndexes func(context.Context, models.DB, string, string) ([]*models.Index, error) + TableSequences func(context.Context, models.DB, string, string) ([]*models.Sequence, error) + Tables func(context.Context, models.DB, string, string) ([]*models.Table, error) + Type string + ViewCreate func(context.Context, models.DB, string, string, []string) (sql.Result, error) + ViewDrop func(context.Context, models.DB, string, string) (sql.Result, error) + ViewSchema func(context.Context, models.DB, string) (string, error) + ViewStrip func([]string, []string) ([]string, []string, []string, error) + ViewTruncate func(context.Context, models.DB, string, string) (sql.Result, error)