postgres

package
v0.0.0-...-237472a Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	*sqlx.DB
	// contains filtered or unexported fields
}

DB is a database connection handle.

func NewDB

func NewDB(dsn string) (*DB, error)

NewDB returns a new database connection handle.

func (*DB) Users

func (db *DB) Users(ctx context.Context) ([]database.User, error)

Users returns a user from the database.

Jump to

Keyboard shortcuts

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