type gorm.io/gorm.ChainInterface (interface)

Method Implmentations

Build(builder clause.Builder)
Count(ctx context.Context, column string) (result int64, err error)
Delete(ctx context.Context) (rowsAffected int, err error)
Distinct(args ...interface{}) ChainInterface[T]
Find(ctx context.Context) ([]T, error)
FindInBatches(ctx context.Context, batchSize int, fc func(data []T, batch int) error) error
Having(query interface{}, args ...interface{}) ChainInterface[T]
Joins(query clause.JoinTarget, on func(db JoinBuilder, joinTable clause.Table, curTable clause.Table) error) ChainInterface[T]
Not(query interface{}, args ...interface{}) ChainInterface[T]
Omit(columns ...string) ChainInterface[T]
Or(query interface{}, args ...interface{}) ChainInterface[T]
Order(value interface{}) ChainInterface[T]
Preload(association string, query func(db PreloadBuilder) error) ChainInterface[T]
Scan(ctx context.Context, r interface{}) error
Scopes(scopes ...func(db *Statement)) ChainInterface[T]
Select(query string, args ...interface{}) ChainInterface[T]
Table(name string, args ...interface{}) ChainInterface[T]
Update(ctx context.Context, name string, value any) (rowsAffected int, err error)
Updates(ctx context.Context, t T) (rowsAffected int, err error)
Where(query interface{}, args ...interface{}) ChainInterface[T]