postgres

package
v0.0.0-...-76d8645 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBTX

type DBTX interface {
	ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
	PrepareContext(context.Context, string) (*sql.Stmt, error)
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
	QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}

type Event

type Event struct {
	ID           int32
	Name         string
	Description  sql.NullString
	Issuer       sql.NullInt32
	StartingAt   sql.NullTime
	EndingAt     sql.NullTime
	MaxAmount    sql.NullInt32
	MaxPerPerson sql.NullInt32
}

type Offer

type Offer struct {
	ID     int32
	Issuer sql.NullInt32
	Amount int32
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) ListUsers

func (q *Queries) ListUsers(ctx context.Context) ([]User, error)

func (*Queries) WithTx

func (q *Queries) WithTx(tx *sql.Tx) *Queries

type Tab

type Tab struct {
	ID     int32
	UserID sql.NullInt32
	Amount int32
	At     sql.NullTime
}

type User

type User struct {
	ID       int32
	Username sql.NullString
	Email    string
	Credit   sql.NullInt32
}

Jump to

Keyboard shortcuts

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