postgres

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: GPL-3.0 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
}

Database represents an initialised client to the database.

func New

func New(address string) (*Database, error)

func (*Database) GetUserByEmail

func (db *Database) GetUserByEmail(ctx context.Context, email string) (model.User, error)

type SQL

type SQL interface {
	Ping() error
	QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
}

Jump to

Keyboard shortcuts

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