postgres

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: Apache-2.0 Imports: 10 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) ApplyInsertQueryCustomizations added in v0.13.0

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

func (*Postgres) Features added in v0.12.0

func (psql *Postgres) Features() sqlcommon.SQLFeatures

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)

Jump to

Keyboard shortcuts

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