sqlite

package
v0.3.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSQLite

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 SQLite

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

func (*SQLite) Close

func (driver *SQLite) Close() error

Close closes the connection to the SQLite server.

func (*SQLite) Migrate

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

Migrate runs a migration.

func (*SQLite) Versions

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