postgres

package
v0.0.0-...-93e01a0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Postgres

type Postgres struct {
	sqlcommon.SQLCommon
}

func (*Postgres) GetMigrationDriver

func (psql *Postgres) GetMigrationDriver(db *sql.DB) (migratedb.Driver, error)

func (*Postgres) Init

func (psql *Postgres) Init(ctx context.Context, prefix config.Prefix, callbacks database.Callbacks) error

func (*Postgres) InitPrefix

func (psql *Postgres) InitPrefix(prefix config.Prefix)

func (*Postgres) MigrationsDir

func (psql *Postgres) MigrationsDir() string

func (*Postgres) Name

func (psql *Postgres) Name() string

func (*Postgres) Open

func (psql *Postgres) Open(url string) (*sql.DB, error)

func (*Postgres) PlaceholderFormat

func (psql *Postgres) PlaceholderFormat() sq.PlaceholderFormat

func (*Postgres) UpdateInsertForSequenceReturn

func (psql *Postgres) UpdateInsertForSequenceReturn(insert sq.InsertBuilder) (sq.InsertBuilder, bool)

Jump to

Keyboard shortcuts

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