phoenix

package
v0.21.3 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v0.5.0

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

New creates a new Apache Avatica Driver. The DSN is documented here: https://calcite.apache.org/avatica/docs/go_client_reference.html#dsn-data-source-name

func NewFromDB added in v0.8.2

func NewFromDB(db *sql.DB) (m.Driver, error)

NewFromDB returns a phoenix driver from a sql.DB

Types

type Driver added in v0.5.0

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

Driver is the phoenix migration.Driver implementation

func (*Driver) Close added in v0.5.0

func (driver *Driver) Close() error

Close closes the connection to the Apache Driver server.

func (*Driver) Migrate added in v0.5.0

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

Migrate runs a migration.

func (*Driver) Versions added in v0.5.0

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