Documentation ¶
Index ¶
- func NewDriver(config dbmate.DriverConfig) dbmate.Driver
- type Driver
- func (drv *Driver) CreateDatabase() error
- func (drv *Driver) CreateMigrationsTable(db *sql.DB) error
- func (drv *Driver) DatabaseExists() (bool, error)
- func (drv *Driver) DeleteMigration(util dbutil.Transaction, version string) error
- func (drv *Driver) DropDatabase() error
- func (drv *Driver) DumpSchema(db *sql.DB) ([]byte, error)
- func (drv *Driver) InsertMigration(_ dbutil.Transaction, version string) error
- func (drv *Driver) MigrationsTableExists(db *sql.DB) (bool, error)
- func (drv *Driver) Open() (*sql.DB, error)
- func (drv *Driver) Ping() error
- func (*Driver) QueryError(query string, err error) error
- func (drv *Driver) SelectMigrations(db *sql.DB, limit int) (map[string]bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
func (*Driver) CreateDatabase ¶
func (*Driver) DatabaseExists ¶
func (*Driver) DeleteMigration ¶
func (drv *Driver) DeleteMigration(util dbutil.Transaction, version string) error
func (*Driver) DropDatabase ¶
func (*Driver) InsertMigration ¶
func (drv *Driver) InsertMigration(_ dbutil.Transaction, version string) error
func (*Driver) MigrationsTableExists ¶
Click to show internal directories.
Click to hide internal directories.