代码拉取完成,页面将自动刷新
同步操作将从 gorm/gen 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
package gen
import (
"database/sql"
"gorm.io/gorm"
"gorm.io/gorm/schema"
"gorm.io/gen/field"
)
type (
// Condition query condition
// field.Expr and subquery are expect value
Condition interface {
BeCond() interface{}
CondError() error
}
)
var (
_ Condition = (field.Expr)(nil)
_ Condition = (field.Value)(nil)
_ Condition = (subQuery)(nil)
_ Condition = (Dao)(nil)
)
type subQuery interface {
underlyingDB() *gorm.DB
underlyingDO() *DO
Condition
}
// Dao CRUD methods
type Dao interface {
subQuery
As(alias string) Dao
Not(conds ...Condition) Dao
Or(conds ...Condition) Dao
Select(columns ...field.Expr) Dao
Where(conds ...Condition) Dao
Order(columns ...field.Expr) Dao
Distinct(columns ...field.Expr) Dao
Omit(columns ...field.Expr) Dao
Join(table schema.Tabler, conds ...field.Expr) Dao
LeftJoin(table schema.Tabler, conds ...field.Expr) Dao
RightJoin(table schema.Tabler, conds ...field.Expr) Dao
Group(columns ...field.Expr) Dao
Having(conds ...Condition) Dao
Limit(limit int) Dao
Offset(offset int) Dao
Scopes(funcs ...func(Dao) Dao) Dao
Unscoped() Dao
Attrs(attrs ...field.AssignExpr) Dao
Assign(attrs ...field.AssignExpr) Dao
Joins(field field.RelationField) Dao
Preload(field field.RelationField) Dao
Create(value interface{}) error
CreateInBatches(value interface{}, batchSize int) error
Save(value interface{}) error
First() (result interface{}, err error)
Take() (result interface{}, err error)
Last() (result interface{}, err error)
Find() (results interface{}, err error)
FindInBatch(batchSize int, fc func(tx Dao, batch int) error) (results interface{}, err error)
FindInBatches(dest interface{}, batchSize int, fc func(tx Dao, batch int) error) error
FirstOrInit() (result interface{}, err error)
FirstOrCreate() (result interface{}, err error)
Update(column field.Expr, value interface{}) (info resultInfo, err error)
UpdateSimple(columns ...field.AssignExpr) (info resultInfo, err error)
Updates(values interface{}) (info resultInfo, err error)
UpdateColumn(column field.Expr, value interface{}) (info resultInfo, err error)
UpdateColumns(values interface{}) (info resultInfo, err error)
UpdateColumnSimple(columns ...field.AssignExpr) (info resultInfo, err error)
Delete() (info resultInfo, err error)
Count() (int64, error)
Row() *sql.Row
Rows() (*sql.Rows, error)
Scan(dest interface{}) error
Pluck(column field.Expr, dest interface{}) error
ScanRows(rows *sql.Rows, dest interface{}) error
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。