Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRequiresTableRebuild = errors.New("dialect: altering this column requires a table rebuild")
Functions ¶
This section is empty.
Types ¶
type ColumnMeta ¶
type ColumnSpec ¶
type DDL ¶
type DDL interface {
ColumnDefinition(goType reflect.Type, spec ColumnSpec) (string, error)
InlinesPrimaryKey(spec ColumnSpec) bool
AlterColumnSQL(table, column string, goType reflect.Type, spec ColumnSpec) (string, error)
DropIndexSQL(table, index string) string
RenameIndexSQL(table, oldName, newName string) (string, error)
HasTableSQL(table string) (string, []any)
HasColumnSQL(table, column string) (string, []any)
HasIndexSQL(table, name string) (string, []any)
HasConstraintSQL(table, name string) (string, []any)
GetTablesSQL() (string, []any)
ColumnTypesSQL(table string) (string, []any)
CurrentDatabaseSQL() string
}
Click to show internal directories.
Click to hide internal directories.