postgres

package
v0.0.0-...-d05191e Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	// contains filtered or unexported fields
}

func NewDatabase

func NewDatabase(ctx context.Context, connStr string) (*Database, error)

func (*Database) Begin

func (d *Database) Begin(ctx context.Context) (pgx.Tx, error)

func (*Database) Close

func (d *Database) Close()

func (*Database) Exec

func (d *Database) Exec(query string, args ...interface{}) (pgconn.CommandTag, error)

func (*Database) Query

func (d *Database) Query(query string, args ...interface{}) (pgx.Rows, error)

func (*Database) QueryRow

func (d *Database) QueryRow(query string, args ...interface{}) pgx.Row

Jump to

Keyboard shortcuts

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