Documentation
¶
Index ¶
- func PkName(model any) (name string, err error)
- type Db
- func (o *Db) Close()
- func (o *Db) Count(model any) (int, error)
- func (o *Db) Delete(model any, fn func(*bun.DeleteQuery)) error
- func (o *Db) DeleteAll(model any) error
- func (o *Db) Exec(query string, arg ...any) error
- func (o *Db) Exists(model any, fn func(*bun.SelectQuery)) (bool, error)
- func (o *Db) ExistsPk(model any) (bool, error)
- func (o *Db) Format(query string, arg ...any) string
- func (o *Db) GetIfExists(model any, fn func(*bun.SelectQuery)) (bool, error)
- func (o *Db) GetIfExistsPk(model any) (bool, error)
- func (o *Db) Insert(model any) error
- func (o *Db) Ok() bool
- func (o *Db) Ping() bool
- func (o *Db) Select(model any, fn func(*bun.SelectQuery)) error
- func (o *Db) SelectAll(model any) error
- func (o *Db) Truncate(model any) error
- func (o *Db) Update(model any, fn func(*bun.UpdateQuery)) error
- func (o *Db) UpdateAll(model any) error
- func (o *Db) UpdateIn(model any, ids any) error
- func (o *Db) Upsert(model any) error
- func (o *Db) Wait(timeout time.Duration) bool
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.