Documentation
¶
Index ¶
- Constants
- type Driver
- func (d *Driver) ApplyMigration(ctx context.Context, history *migrate.Table, migration *migrate.Entry) error
- func (d *Driver) EnsureMigrationsTable(ctx context.Context, table *migrate.Table) error
- func (d *Driver) EnsureSchema() error
- func (d *Driver) MigrationsHistory(ctx context.Context, history *migrate.Table) ([]migrate.Entry, error)
- func (d *Driver) Ping(ctx context.Context) (bool, error)
- func (d *Driver) RevertMigration(ctx context.Context, history *migrate.Table, migration *migrate.Entry) error
Constants ¶
View Source
const Dialect migrate.Dialect = "postgres"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
func (*Driver) ApplyMigration ¶
func (*Driver) EnsureMigrationsTable ¶
func (*Driver) EnsureSchema ¶
func (*Driver) MigrationsHistory ¶
Click to show internal directories.
Click to hide internal directories.