postgres

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPostgres

func NewPostgres(dsn string) (m.Driver, error)

NewPostgres creates a new Postgres driver. The DSN is documented here: https://godoc.org/github.com/lib/pq#hdr-Connection_String_Parameters

Types

type Postgres

type Postgres struct {
	// contains filtered or unexported fields
}

func (*Postgres) Close

func (driver *Postgres) Close() error

Close closes the connection to the Postgres server.

func (*Postgres) Migrate

func (driver *Postgres) Migrate(migration *m.PlannedMigration) (err error)

Migrate runs a migration.

func (*Postgres) Versions

func (driver *Postgres) Versions() ([]string, error)

Versions lists all the applied versions.

Jump to

Keyboard shortcuts

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