Documentation ¶
Index ¶
- Variables
- func Count[T IModel](db *PgDb, whereSql string, whereArgs ...any) (int64, error)
- func Create(db *PgDb, col ICol) error
- func CreateAndReturn[T IModel](db *PgDb, col ICol) (*T, error)
- func Delete(db *PgDb, col ICol, options ...IOption) (int64, error)
- func GetAll[T IModel](db *PgDb, col ICol, options ...IOption) ([]T, error)
- func GetOne[T IModel](db *PgDb, col ICol, options ...IOption) (*T, error)
- func GroupBy(sql string) *groupOption
- func Limit(v int64) *limitOption
- func Offset(v int64) *offsetOption
- func OrderBy(sql string) *orderOption
- func Update(db *PgDb, updates ICol, options ...IOption) (int64, error)
- func Where(sql string, args ...any) *whereOption
- type Col
- type ICol
- type IModel
- type IOption
- type KyeMap
- type OptionGroup
- type OptionType
- type PgDb
Constants ¶
This section is empty.
Variables ¶
View Source
var DEBUG = false
Functions ¶
func CreateAndReturn ¶ added in v0.0.3
Types ¶
type OptionGroup ¶ added in v0.0.8
type OptionGroup struct {
// contains filtered or unexported fields
}
type OptionType ¶ added in v0.0.8
type OptionType uint8
Click to show internal directories.
Click to hide internal directories.