package redshift

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

Index

Types

type Redshift

type Redshift struct {
	// The wrapped PostgreSQL driver.
	database.Driver
}

Redshift is a wrapper around the PostgreSQL driver which implements Redshift-specific behavior.

Currently, the only different behaviour is the lack of locking in Redshift. The (Un)Lock() method(s) have been overridden from the PostgreSQL adapter to simply return nil.

func (*Redshift) Lock

func (driver *Redshift) Lock() error

Lock implements the database.Driver interface by not locking and returning nil.

func (*Redshift) Open

func (driver *Redshift) Open(dsn string) (database.Driver, error)

Open implements the database.Driver interface by parsing the URL, switching the scheme from "redshift" to "postgres", and delegating to the underlying PostgreSQL driver.

func (*Redshift) Unlock

func (driver *Redshift) Unlock() error

Unlock implements the database.Driver interface by not unlocking and returning nil.

Source Files

redshift.go

Version
v4.0.1
Published
Oct 15, 2018
Platform
darwin/amd64
Imports
3 packages
Last checked
1 hour ago

Tools for package owners.