Documentation
¶
Index ¶
- Constants
- func Count[E Selectable](d *sql.DB, entity E, constraints string, params ...any) (int, error)
- func Delete[E Selectable](d *sql.DB, entity E, constraints string, params ...any) error
- func Insert(d *sql.DB, entity Insertable, additionalStmts ...string) error
- func InsertReturning(d *sql.DB, entity Insertable, retField string, retValue any) error
- func Select[E Selectable](d *sql.DB, entity E, constraints string, params ...any) (E, error)
- func SelectMulti[E Selectable](d *sql.DB, p func() E, constraints string, params ...any) ([]E, error)
- func Update(d *sql.DB, entity Insertable, constraints string, params ...any) error
- type Entity
- type Insertable
- type Selectable
Constants ¶
View Source
const ( InsertAction = "insert" UpdateAction = "update" SelectAction = "select" )
Variables ¶
This section is empty.
Functions ¶
func InsertReturning ¶
func SelectMulti ¶
Types ¶
type Insertable ¶
Click to show internal directories.
Click to hide internal directories.