var ( ErrNilConfig = fmt.Errorf("no config") ErrNoDatabaseName = fmt.Errorf("no database name") )
var DefaultMigrationsTable = "schema_migrations"
func WithInstance(instance *sql.DB, config *Config) (database.Driver, error)
type Config struct { MigrationsTable string DatabaseName string }
type Redshift struct {
// contains filtered or unexported fields
}
func (p *Redshift) Close() error
func (p *Redshift) Drop() (err error)
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 (p *Redshift) Open(url string) (database.Driver, error)
func (p *Redshift) Run(migration io.Reader) error
func (p *Redshift) SetVersion(version int, dirty bool) error
func (p *Redshift) Unlock() error
func (p *Redshift) Version() (version int, dirty bool, err error)