Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NamedQueryList ¶
func NamedQueryList[T any](db DB, t []*T, arg NamedQueryEntity, query, defaultSort, orderAlias string) (list []*T)
func NamedQueryListAndTotal ¶
func NamedQueryListAndTotal[T any](db DB, t []*T, arg NamedQueryEntity, query, defaultSort, orderAlias string) (list []*T, total *int64)
Types ¶
type DB ¶
type DB interface {
NamedExec(query string, arg interface{}) (sql.Result, error)
Exec(query string, args ...interface{}) (sql.Result, error)
NamedQuery(query string, arg interface{}) (*sqlx.Rows, error)
Select(dest interface{}, query string, args ...interface{}) error
Get(dest interface{}, query string, args ...interface{}) error
}
Click to show internal directories.
Click to hide internal directories.