Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder interface {
Create(c core.Context, name string, blueprint func(table *blueprint.Blueprint)) error
Table(c core.Context, name string, blueprint func(table *blueprint.Blueprint)) error
Drop(c core.Context, name string) error
DropIfExists(c core.Context, name string) error
Rename(c core.Context, from, to string) error
HasTable(c core.Context, name string) (bool, error)
HasColumn(c core.Context, table, column string) (bool, error)
HasColumns(c core.Context, table string, columns []string) (bool, error)
HasIndex(c core.Context, table string, columns []string) (bool, error)
GetColumns(c core.Context, table string) ([]*core.Column, error)
GetIndexes(c core.Context, table string) ([]*core.Index, error)
GetTables(c core.Context) ([]*core.TableInfo, error)
}
Builder is an interface that defines methods for creating, dropping, and managing database tables.
func NewBuilder ¶
func NewMariadbBuilder ¶
func NewMariadbBuilder() Builder
func NewMysqlBuilder ¶
func NewMysqlBuilder() Builder
func NewPostgresBuilder ¶
func NewPostgresBuilder() Builder
func NewSqliteBuilder ¶
func NewSqliteBuilder() Builder
Click to show internal directories.
Click to hide internal directories.