Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Association ¶
type Query ¶
type Query interface { Association(association string) Association Begin() (Transaction, error) Driver() Driver Count(count *int64) error Create(value any) error Delete(value any, conds ...any) (*Result, error) Distinct(args ...any) Query Exec(sql string, values ...any) (*Result, error) Find(dest any, conds ...any) error First(dest any) error FirstOrCreate(dest any, conds ...any) error FirstOr(dest any, callback func() error) error FirstOrFail(dest any) error FirstOrNew(dest any, attributes any, values ...any) error ForceDelete(value any, conds ...any) (*Result, error) Get(dest any) error Group(name string) Query Having(query any, args ...any) Query Join(query string, args ...any) Query Limit(limit int) Query Load(dest any, relation string, args ...any) error LoadMissing(dest any, relation string, args ...any) error Model(value any) Query Offset(offset int) Query Omit(columns ...string) Query Order(value any) Query OrWhere(query any, args ...any) Query Paginate(page, limit int, dest any, total *int64) error Pluck(column string, dest any) error Raw(sql string, values ...any) Query Save(value any) error Scan(dest any) error Scopes(funcs ...func(Query) Query) Query Select(query any, args ...any) Query Table(name string, args ...any) Query Update(column string, value any) error Updates(values any) (*Result, error) UpdateOrCreate(dest any, attributes any, values any) error Where(query any, args ...any) Query WithTrashed() Query With(query string, args ...any) Query }
type Transaction ¶
Click to show internal directories.
Click to hide internal directories.