package redshift

import "github.com/golang-migrate/migrate/v4/database/redshift"

Index

Variables

var (
	ErrNilConfig      = fmt.Errorf("no config")
	ErrNoDatabaseName = fmt.Errorf("no database name")
)
var DefaultMigrationsTable = "schema_migrations"

Functions

func WithInstance

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

Types

type Config

type Config struct {
	MigrationsTable string
	DatabaseName    string
}

type Redshift

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

func (*Redshift) Close

func (p *Redshift) Close() error

func (*Redshift) Drop

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

func (*Redshift) Lock

func (p *Redshift) Lock() error

Redshift does not support advisory lock functions: https://docs.aws.amazon.com/redshift/latest/dg/c_unsupported-postgresql-functions.html

func (*Redshift) Open

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

func (*Redshift) Run

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

func (*Redshift) SetVersion

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

func (*Redshift) Unlock

func (p *Redshift) Unlock() error

func (*Redshift) Version

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

Source Files

redshift.go

Version
v4.8.0
Published
Jan 3, 2020
Platform
darwin/amd64
Imports
12 packages
Last checked
3 minutes ago

Tools for package owners.