Documentation
¶
Index ¶
- func ColumnExistsTx(tx *sql.Tx, tableName string, columnName string) (bool, error)
- func EnsureSchema(db *sql.DB, spec Spec) error
- func IndexExistsTx(tx *sql.Tx, indexName string) (bool, error)
- func ListUserTablesTx(tx *sql.Tx) ([]string, error)
- func Open(path string, spec Spec) (*sql.DB, error)
- func TableExistsTx(tx *sql.Tx, tableName string) (bool, error)
- type DatabaseTooNewError
- type InvalidMigrationChainError
- type Migration
- type SchemaVerifyError
- type Spec
- type WrongDatabaseKindError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColumnExistsTx ¶
Types ¶
type DatabaseTooNewError ¶
func (*DatabaseTooNewError) Error ¶
func (e *DatabaseTooNewError) Error() string
type InvalidMigrationChainError ¶
func (*InvalidMigrationChainError) Error ¶
func (e *InvalidMigrationChainError) Error() string
type SchemaVerifyError ¶
func (*SchemaVerifyError) Error ¶
func (e *SchemaVerifyError) Error() string
func (*SchemaVerifyError) Unwrap ¶
func (e *SchemaVerifyError) Unwrap() error
type WrongDatabaseKindError ¶
func (*WrongDatabaseKindError) Error ¶
func (e *WrongDatabaseKindError) Error() string
Click to show internal directories.
Click to hide internal directories.