database

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Close

func Close()

func Connect

func Connect(host string, port uint, user, pass, dbname string)

func ExecWithTimeout added in v1.0.0

func ExecWithTimeout(ctx context.Context, t time.Duration, query string,
	args ...interface{}) error

func Migrate

func Migrate()

func QueryRowWithTimeout added in v1.0.0

func QueryRowWithTimeout(ctx context.Context, t time.Duration, query string,
	args ...interface{}) (pgx.Row, error)

func QueryWithTimeout added in v1.0.0

func QueryWithTimeout(ctx context.Context, t time.Duration, query string,
	args ...interface{}) (pgx.Rows, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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