users

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TableName = "users"
	IDColumn  = "id"
)
View Source
const CountByLastNameExistsQuery = `` /* 191-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type CountByLastNameExistsCategory

type CountByLastNameExistsCategory struct {
	Name  string `db:"category"`
	Count int    `db:"cnt"`
}

type Identity

type Identity string

type Object

type Object struct {
	ID        Identity  `db:"id"`
	FirstName string    `db:"first_name"`
	LastName  *string   `db:"last_name"`
	BirthDate time.Time `db:"birth_date"`
}

func (*Object) String

func (u *Object) String() string

type Repo

type Repo struct {
	sc.SQLCredo[Object, Identity]
}

func NewRepo

func NewRepo(db *sql.DB, driver string, debugFunc api.DebugFunc) *Repo

func (*Repo) CountByLastNameExists

func (r *Repo) CountByLastNameExists(ctx context.Context) (map[string]int, error)

Jump to

Keyboard shortcuts

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