Back to godoc.org

Package snowflake

v4.12.2
Latest Go to latest

The latest major version is v4.

Published: Aug 4, 2020 | License: MIT | Module: github.com/golang-migrate/migrate/v4

Index

Variables

var (
	ErrNilConfig          = fmt.Errorf("no config")
	ErrNoDatabaseName     = fmt.Errorf("no database name")
	ErrNoPassword         = fmt.Errorf("no password")
	ErrNoSchema           = fmt.Errorf("no schema")
	ErrNoSchemaOrDatabase = fmt.Errorf("no schema/database name")
)
var DefaultMigrationsTable = "schema_migrations"

func WithInstance

func WithInstance(instance *sql.DB, config *Config) (database.Driver, error)

type Config

type Config struct {
	MigrationsTable string
	DatabaseName    string
}

type Snowflake

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

func (*Snowflake) Close

func (p *Snowflake) Close() error

func (*Snowflake) Drop

func (p *Snowflake) Drop() (err error)

func (*Snowflake) Lock

func (p *Snowflake) Lock() error

func (*Snowflake) Open

func (p *Snowflake) Open(url string) (database.Driver, error)

func (*Snowflake) Run

func (p *Snowflake) Run(migration io.Reader) error

func (*Snowflake) SetVersion

func (p *Snowflake) SetVersion(version int, dirty bool) error

func (*Snowflake) Unlock

func (p *Snowflake) Unlock() error

func (*Snowflake) Version

func (p *Snowflake) Version() (version int, dirty bool, err error)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier