redshift

package
v3.5.4+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2018 License: MIT Imports: 3 Imported by: 0

README

Redshift

This provides a Redshift driver for migrations. It is used whenever the URL of the database starts with redshift://.

Redshift is PostgreSQL compatible but has some specific features (or lack thereof) that require slightly different behavior.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL