Documentation ¶
Index ¶
- Variables
- func WithInstance(instance *sql.DB, config *Config) (database.Driver, error)
- type Config
- type Redshift
- func (p *Redshift) Close() error
- func (p *Redshift) Drop() (err error)
- func (p *Redshift) Lock() error
- 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)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNilConfig = fmt.Errorf("no config") ErrNoDatabaseName = fmt.Errorf("no database name") )
View Source
var DefaultMigrationsTable = "schema_migrations"
Functions ¶
Types ¶
type Redshift ¶
type Redshift struct {
// contains filtered or unexported fields
}
func (*Redshift) Lock ¶
Redshift does not support advisory lock functions: https://docs.aws.amazon.com/redshift/latest/dg/c_unsupported-postgresql-functions.html
Click to show internal directories.
Click to hide internal directories.