Documentation
¶
Index ¶
- func ListUserIndexesTx(tx *sql.Tx) ([]string, error)
- func ListUserTablesTx(tx *sql.Tx) ([]string, error)
- func Open(path string, spec Spec) (*sql.DB, error)
- func TableColumnNamesTx(tx *sql.Tx, tableName string) ([]string, error)
- func TableExistsTx(tx *sql.Tx, tableName string) (bool, error)
- type DatabaseTooNewError
- type DatabaseTooOldError
- type InvalidMigrationChainError
- type LegacyKindMigration
- type Migration
- type SchemaVerifyError
- type Spec
- type WrongDatabaseKindError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TableColumnNamesTx ¶ added in v0.10.0
Types ¶
type DatabaseTooNewError ¶
func (*DatabaseTooNewError) Error ¶
func (e *DatabaseTooNewError) Error() string
type DatabaseTooOldError ¶ added in v0.10.0
func (*DatabaseTooOldError) Error ¶ added in v0.10.0
func (e *DatabaseTooOldError) Error() string
type InvalidMigrationChainError ¶
func (*InvalidMigrationChainError) Error ¶
func (e *InvalidMigrationChainError) Error() string
type LegacyKindMigration ¶ added in v0.10.0
type LegacyKindMigration struct {
FromKind string
FromVersion int
ToKind string
ToVersion int
Apply func(tx *sql.Tx) error
}
LegacyKindMigration converts one explicitly versioned older schema kind into the current schema before normal version migrations run.
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.