repo

package
v0.0.0-...-179ea12 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 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 DatabaseFunctions

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

DatabaseFunctions contains your database functions.

func NewDatabaseFunctions

func NewDatabaseFunctions(db *pgxpool.Pool) *DatabaseFunctions

NewDatabaseFunctions returns a pointer to a new instance of DatabaseFunctions.

func (*DatabaseFunctions) AddPerson

func (df *DatabaseFunctions) AddPerson(ctx context.Context, fullName string, dateOfBirth time.Time, country string) error

func (*DatabaseFunctions) AllDataTypes

func (df *DatabaseFunctions) AllDataTypes(ctx context.Context, a int64, b int64, c int64, d float64, e float64, f float64, g float64, h float64, i bool, j string) error

func (*DatabaseFunctions) DeletePerson

func (df *DatabaseFunctions) DeletePerson(ctx context.Context, fullName string) error

func (*DatabaseFunctions) GetOldestPerson

func (df *DatabaseFunctions) GetOldestPerson(ctx context.Context) (string, error)

func (*DatabaseFunctions) NamesBetween

func (df *DatabaseFunctions) NamesBetween(ctx context.Context, idFrom string, idTo string) ([]string, error)

func (*DatabaseFunctions) PeopleBetween

func (df *DatabaseFunctions) PeopleBetween(ctx context.Context, idFrom string, idTo string) ([]map[string]any, error)

func (*DatabaseFunctions) PeopleBornOn

func (df *DatabaseFunctions) PeopleBornOn(ctx context.Context, d time.Time) (int64, error)

func (*DatabaseFunctions) PersonById

func (df *DatabaseFunctions) PersonById(ctx context.Context, id string) (map[string]any, error)

Jump to

Keyboard shortcuts

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