Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DriverMap = map[DriverType]DriverGenerator{}
Functions ¶
func NewBackendService ¶
func NewBackendService(ds DriverService) backends.Interface
func RegisterDriver ¶
func RegisterDriver(generator DriverGenerator, driverType DriverType)
Types ¶
type DriverGenerator ¶
type DriverGenerator func(config *backends.BackendConfig) DriverService
type DriverService ¶
type DriverService interface { Open() (*sql.DB, error) SchemaExists() (bool, error) CreateSchema() error DropSchema() error DumpSchema(db *sql.DB) ([]byte, error) CreateMigrationsTable(db *sql.DB) error SelectMigrations(db *sql.DB, id int) (map[string]bool, error) InsertMigration(tx backends.Transaction, version string) error DeleteMigration(tx backends.Transaction, version string) error Ping() error }
type DriverType ¶
type DriverType string
Click to show internal directories.
Click to hide internal directories.