postgres

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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 NewDriver

func NewDriver(ctx context.Context, datadir string, url *url.URL) (*Driver, error)

func (*Driver) ApplyMigration

func (d *Driver) ApplyMigration(ctx context.Context, history *migrate.Table, migration *migrate.Entry) error

func (*Driver) EnsureMigrationsTable

func (d *Driver) EnsureMigrationsTable(ctx context.Context, table *migrate.Table) error

func (*Driver) EnsureSchema

func (d *Driver) EnsureSchema() error

func (*Driver) MigrationsHistory

func (d *Driver) MigrationsHistory(ctx context.Context, history *migrate.Table) ([]migrate.Entry, error)

func (*Driver) Ping added in v0.2.0

func (d *Driver) Ping(ctx context.Context) (bool, error)

func (*Driver) RevertMigration

func (d *Driver) RevertMigration(ctx context.Context, history *migrate.Table, migration *migrate.Entry) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL