driver

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMySQL added in v0.2.0

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

NewMySQL creates a new MySQL driver. The DSN is documented here: https://github.com/go-sql-driver/mysql#dsn-data-source-name

func NewPhoenix

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

NewPhoenix creates a new Apache Phoenix driver. The DSN is documented here: https://github.com/Boostport/avatica#dsn-data-source-name

func NewPostgres added in v0.2.0

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

func NewSQLite added in v0.2.0

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

NewSQLite creates a new SQLite driver. The DSN is documented here: https://godoc.org/github.com/mattn/go-sqlite3#SQLiteDriver.Open

Types

type MySQL added in v0.2.0

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

func (*MySQL) Close added in v0.2.0

func (driver *MySQL) Close() error

Close closes the connection to the MySQL server.

func (*MySQL) Migrate added in v0.2.0

func (driver *MySQL) Migrate(migration *m.PlannedMigration) error

Migrate runs a migration.

func (*MySQL) Versions added in v0.2.0

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

Versions lists all the applied versions.

type Phoenix

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

func (*Phoenix) Close

func (driver *Phoenix) Close() error

Close closes the connection to the Apache Phoenix server.

func (*Phoenix) Migrate

func (driver *Phoenix) Migrate(migration *m.PlannedMigration) error

Migrate runs a migration.

func (*Phoenix) Versions

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

Versions lists all the applied versions.

type Postgres added in v0.2.0

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

func (*Postgres) Close added in v0.2.0

func (driver *Postgres) Close() error

Close closes the connection to the Postgres server.

func (*Postgres) Migrate added in v0.2.0

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

Migrate runs a migration.

func (*Postgres) Versions added in v0.2.0

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

Versions lists all the applied versions.

type SQLite added in v0.2.0

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

func (*SQLite) Close added in v0.2.0

func (driver *SQLite) Close() error

Close closes the connection to the SQLite server.

func (*SQLite) Migrate added in v0.2.0

func (driver *SQLite) Migrate(migration *m.PlannedMigration) error

Migrate runs a migration.

func (*SQLite) Versions added in v0.2.0

func (driver *SQLite) 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