postgres

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: BSD-3-Clause Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDatabase

func CreateDatabase(u, n string) error

func DropDatabase

func DropDatabase(u, n string) error

Types

type Driver

type Driver struct {
	*sql.DB
}

func New

func New(u string) (*Driver, error)

func NewWithDB

func NewWithDB(db *sql.DB) (*Driver, error)

func (*Driver) Upgrade

func (d *Driver) Upgrade(v upgrade.Version) error

func (*Driver) Version

func (d *Driver) Version() (int, error)

Jump to

Keyboard shortcuts

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