Documentation ¶
Overview ¶
Package gen contains code generated by gorm.io/gen
Index ¶
- Variables
- func SetDefault(db *gorm.DB, opts ...gen.DOOption)
- type IAppDo
- type IAppTemplateBindingDo
- type IAppTemplateVariableDo
- type IArchivedAppDo
- type IAuditDo
- type IClientDo
- type IClientEventDo
- type IClientQueryDo
- type ICommitDo
- type IConfigDo
- type IConfigItemDo
- type IContentDo
- type ICredentialDo
- type ICredentialScopeDo
- type IEventDo
- type IGroupAppBindDo
- type IGroupDo
- type IHookDo
- type IHookRevisionDo
- type IIDGeneratorDo
- type IKvDo
- type IReleaseDo
- type IReleasedAppTemplateDo
- type IReleasedAppTemplateVariableDo
- type IReleasedConfigItemDo
- type IReleasedGroupDo
- type IReleasedHookDo
- type IReleasedKvDo
- type IResourceLockDo
- type IStrategyDo
- type ITemplateDo
- type ITemplateRevisionDo
- type ITemplateSetDo
- type ITemplateSpaceDo
- type ITemplateVariableDo
- type Query
- func (q *Query) Available() bool
- func (q *Query) Begin(opts ...*sql.TxOptions) *QueryTx
- func (q *Query) CurrentDatabase() string
- func (q *Query) ReadDB() *Query
- func (q *Query) ReplaceDB(db *gorm.DB) *Query
- func (q *Query) Transaction(fc func(tx *Query) error, opts ...*sql.TxOptions) error
- func (q *Query) WithContext(ctx context.Context) *queryCtx
- func (q *Query) WriteDB() *Query
- type QueryTx
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Q = new(Query) App *app AppTemplateBinding *appTemplateBinding AppTemplateVariable *appTemplateVariable ArchivedApp *archivedApp Audit *audit Client *client ClientEvent *clientEvent ClientQuery *clientQuery Commit *commit Config *config ConfigItem *configItem Content *content Credential *credential CredentialScope *credentialScope Event *event Group *group GroupAppBind *groupAppBind Hook *hook HookRevision *hookRevision IDGenerator *iDGenerator Kv *kv Release *release ReleasedAppTemplate *releasedAppTemplate ReleasedAppTemplateVariable *releasedAppTemplateVariable ReleasedConfigItem *releasedConfigItem ReleasedGroup *releasedGroup ReleasedHook *releasedHook ReleasedKv *releasedKv ResourceLock *resourceLock Strategy *strategy Template *template TemplateRevision *templateRevision TemplateSet *templateSet TemplateSpace *templateSpace TemplateVariable *templateVariable )
Functions ¶
Types ¶
type IAppDo ¶
type IAppDo interface { gen.SubQuery Debug() IAppDo WithContext(ctx context.Context) IAppDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() IAppDo WriteDB() IAppDo As(alias string) gen.Dao Session(config *gorm.Session) IAppDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) IAppDo Not(conds ...gen.Condition) IAppDo Or(conds ...gen.Condition) IAppDo Select(conds ...field.Expr) IAppDo Where(conds ...gen.Condition) IAppDo Order(conds ...field.Expr) IAppDo Distinct(cols ...field.Expr) IAppDo Omit(cols ...field.Expr) IAppDo Join(table schema.Tabler, on ...field.Expr) IAppDo LeftJoin(table schema.Tabler, on ...field.Expr) IAppDo RightJoin(table schema.Tabler, on ...field.Expr) IAppDo Group(cols ...field.Expr) IAppDo Having(conds ...gen.Condition) IAppDo Limit(limit int) IAppDo Offset(offset int) IAppDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) IAppDo Unscoped() IAppDo Create(values ...*table.App) error CreateInBatches(values []*table.App, batchSize int) error Save(values ...*table.App) error First() (*table.App, error) Take() (*table.App, error) Last() (*table.App, error) Find() ([]*table.App, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.App, err error) FindInBatches(result *[]*table.App, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.App) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) IAppDo Assign(attrs ...field.AssignExpr) IAppDo Joins(fields ...field.RelationField) IAppDo Preload(fields ...field.RelationField) IAppDo FirstOrInit() (*table.App, error) FirstOrCreate() (*table.App, error) FindByPage(offset int, limit int) (result []*table.App, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) IAppDo UnderlyingDB() *gorm.DB schema.Tabler }
type IAppTemplateBindingDo ¶
type IAppTemplateBindingDo interface { gen.SubQuery Debug() IAppTemplateBindingDo WithContext(ctx context.Context) IAppTemplateBindingDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() IAppTemplateBindingDo WriteDB() IAppTemplateBindingDo As(alias string) gen.Dao Session(config *gorm.Session) IAppTemplateBindingDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) IAppTemplateBindingDo Not(conds ...gen.Condition) IAppTemplateBindingDo Or(conds ...gen.Condition) IAppTemplateBindingDo Select(conds ...field.Expr) IAppTemplateBindingDo Where(conds ...gen.Condition) IAppTemplateBindingDo Order(conds ...field.Expr) IAppTemplateBindingDo Distinct(cols ...field.Expr) IAppTemplateBindingDo Omit(cols ...field.Expr) IAppTemplateBindingDo Join(table schema.Tabler, on ...field.Expr) IAppTemplateBindingDo LeftJoin(table schema.Tabler, on ...field.Expr) IAppTemplateBindingDo RightJoin(table schema.Tabler, on ...field.Expr) IAppTemplateBindingDo Group(cols ...field.Expr) IAppTemplateBindingDo Having(conds ...gen.Condition) IAppTemplateBindingDo Limit(limit int) IAppTemplateBindingDo Offset(offset int) IAppTemplateBindingDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) IAppTemplateBindingDo Unscoped() IAppTemplateBindingDo Create(values ...*table.AppTemplateBinding) error CreateInBatches(values []*table.AppTemplateBinding, batchSize int) error Save(values ...*table.AppTemplateBinding) error First() (*table.AppTemplateBinding, error) Take() (*table.AppTemplateBinding, error) Last() (*table.AppTemplateBinding, error) Find() ([]*table.AppTemplateBinding, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.AppTemplateBinding, err error) FindInBatches(result *[]*table.AppTemplateBinding, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.AppTemplateBinding) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) IAppTemplateBindingDo Assign(attrs ...field.AssignExpr) IAppTemplateBindingDo Joins(fields ...field.RelationField) IAppTemplateBindingDo Preload(fields ...field.RelationField) IAppTemplateBindingDo FirstOrInit() (*table.AppTemplateBinding, error) FirstOrCreate() (*table.AppTemplateBinding, error) FindByPage(offset int, limit int) (result []*table.AppTemplateBinding, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) IAppTemplateBindingDo UnderlyingDB() *gorm.DB schema.Tabler }
type IAppTemplateVariableDo ¶
type IAppTemplateVariableDo interface { gen.SubQuery Debug() IAppTemplateVariableDo WithContext(ctx context.Context) IAppTemplateVariableDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() IAppTemplateVariableDo WriteDB() IAppTemplateVariableDo As(alias string) gen.Dao Session(config *gorm.Session) IAppTemplateVariableDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) IAppTemplateVariableDo Not(conds ...gen.Condition) IAppTemplateVariableDo Or(conds ...gen.Condition) IAppTemplateVariableDo Select(conds ...field.Expr) IAppTemplateVariableDo Where(conds ...gen.Condition) IAppTemplateVariableDo Order(conds ...field.Expr) IAppTemplateVariableDo Distinct(cols ...field.Expr) IAppTemplateVariableDo Omit(cols ...field.Expr) IAppTemplateVariableDo Join(table schema.Tabler, on ...field.Expr) IAppTemplateVariableDo LeftJoin(table schema.Tabler, on ...field.Expr) IAppTemplateVariableDo RightJoin(table schema.Tabler, on ...field.Expr) IAppTemplateVariableDo Group(cols ...field.Expr) IAppTemplateVariableDo Having(conds ...gen.Condition) IAppTemplateVariableDo Limit(limit int) IAppTemplateVariableDo Offset(offset int) IAppTemplateVariableDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) IAppTemplateVariableDo Unscoped() IAppTemplateVariableDo Create(values ...*table.AppTemplateVariable) error CreateInBatches(values []*table.AppTemplateVariable, batchSize int) error Save(values ...*table.AppTemplateVariable) error First() (*table.AppTemplateVariable, error) Take() (*table.AppTemplateVariable, error) Last() (*table.AppTemplateVariable, error) Find() ([]*table.AppTemplateVariable, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.AppTemplateVariable, err error) FindInBatches(result *[]*table.AppTemplateVariable, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.AppTemplateVariable) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) IAppTemplateVariableDo Assign(attrs ...field.AssignExpr) IAppTemplateVariableDo Joins(fields ...field.RelationField) IAppTemplateVariableDo Preload(fields ...field.RelationField) IAppTemplateVariableDo FirstOrInit() (*table.AppTemplateVariable, error) FirstOrCreate() (*table.AppTemplateVariable, error) FindByPage(offset int, limit int) (result []*table.AppTemplateVariable, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) IAppTemplateVariableDo UnderlyingDB() *gorm.DB schema.Tabler }
type IArchivedAppDo ¶
type IArchivedAppDo interface { gen.SubQuery Debug() IArchivedAppDo WithContext(ctx context.Context) IArchivedAppDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() IArchivedAppDo WriteDB() IArchivedAppDo As(alias string) gen.Dao Session(config *gorm.Session) IArchivedAppDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) IArchivedAppDo Not(conds ...gen.Condition) IArchivedAppDo Or(conds ...gen.Condition) IArchivedAppDo Select(conds ...field.Expr) IArchivedAppDo Where(conds ...gen.Condition) IArchivedAppDo Order(conds ...field.Expr) IArchivedAppDo Distinct(cols ...field.Expr) IArchivedAppDo Omit(cols ...field.Expr) IArchivedAppDo Join(table schema.Tabler, on ...field.Expr) IArchivedAppDo LeftJoin(table schema.Tabler, on ...field.Expr) IArchivedAppDo RightJoin(table schema.Tabler, on ...field.Expr) IArchivedAppDo Group(cols ...field.Expr) IArchivedAppDo Having(conds ...gen.Condition) IArchivedAppDo Limit(limit int) IArchivedAppDo Offset(offset int) IArchivedAppDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) IArchivedAppDo Unscoped() IArchivedAppDo Create(values ...*table.ArchivedApp) error CreateInBatches(values []*table.ArchivedApp, batchSize int) error Save(values ...*table.ArchivedApp) error First() (*table.ArchivedApp, error) Take() (*table.ArchivedApp, error) Last() (*table.ArchivedApp, error) Find() ([]*table.ArchivedApp, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.ArchivedApp, err error) FindInBatches(result *[]*table.ArchivedApp, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.ArchivedApp) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) IArchivedAppDo Assign(attrs ...field.AssignExpr) IArchivedAppDo Joins(fields ...field.RelationField) IArchivedAppDo Preload(fields ...field.RelationField) IArchivedAppDo FirstOrInit() (*table.ArchivedApp, error) FirstOrCreate() (*table.ArchivedApp, error) FindByPage(offset int, limit int) (result []*table.ArchivedApp, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) IArchivedAppDo UnderlyingDB() *gorm.DB schema.Tabler }
type IAuditDo ¶
type IAuditDo interface { gen.SubQuery Debug() IAuditDo WithContext(ctx context.Context) IAuditDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() IAuditDo WriteDB() IAuditDo As(alias string) gen.Dao Session(config *gorm.Session) IAuditDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) IAuditDo Not(conds ...gen.Condition) IAuditDo Or(conds ...gen.Condition) IAuditDo Select(conds ...field.Expr) IAuditDo Where(conds ...gen.Condition) IAuditDo Order(conds ...field.Expr) IAuditDo Distinct(cols ...field.Expr) IAuditDo Omit(cols ...field.Expr) IAuditDo Join(table schema.Tabler, on ...field.Expr) IAuditDo LeftJoin(table schema.Tabler, on ...field.Expr) IAuditDo RightJoin(table schema.Tabler, on ...field.Expr) IAuditDo Group(cols ...field.Expr) IAuditDo Having(conds ...gen.Condition) IAuditDo Limit(limit int) IAuditDo Offset(offset int) IAuditDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) IAuditDo Unscoped() IAuditDo Create(values ...*table.Audit) error CreateInBatches(values []*table.Audit, batchSize int) error Save(values ...*table.Audit) error First() (*table.Audit, error) Take() (*table.Audit, error) Last() (*table.Audit, error) Find() ([]*table.Audit, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.Audit, err error) FindInBatches(result *[]*table.Audit, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.Audit) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) IAuditDo Assign(attrs ...field.AssignExpr) IAuditDo Joins(fields ...field.RelationField) IAuditDo Preload(fields ...field.RelationField) IAuditDo FirstOrInit() (*table.Audit, error) FirstOrCreate() (*table.Audit, error) FindByPage(offset int, limit int) (result []*table.Audit, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) IAuditDo UnderlyingDB() *gorm.DB schema.Tabler }
type IClientDo ¶
type IClientDo interface { gen.SubQuery Debug() IClientDo WithContext(ctx context.Context) IClientDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() IClientDo WriteDB() IClientDo As(alias string) gen.Dao Session(config *gorm.Session) IClientDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) IClientDo Not(conds ...gen.Condition) IClientDo Or(conds ...gen.Condition) IClientDo Select(conds ...field.Expr) IClientDo Where(conds ...gen.Condition) IClientDo Order(conds ...field.Expr) IClientDo Distinct(cols ...field.Expr) IClientDo Omit(cols ...field.Expr) IClientDo Join(table schema.Tabler, on ...field.Expr) IClientDo LeftJoin(table schema.Tabler, on ...field.Expr) IClientDo RightJoin(table schema.Tabler, on ...field.Expr) IClientDo Group(cols ...field.Expr) IClientDo Having(conds ...gen.Condition) IClientDo Limit(limit int) IClientDo Offset(offset int) IClientDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) IClientDo Unscoped() IClientDo Create(values ...*table.Client) error CreateInBatches(values []*table.Client, batchSize int) error Save(values ...*table.Client) error First() (*table.Client, error) Take() (*table.Client, error) Last() (*table.Client, error) Find() ([]*table.Client, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.Client, err error) FindInBatches(result *[]*table.Client, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.Client) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) IClientDo Assign(attrs ...field.AssignExpr) IClientDo Joins(fields ...field.RelationField) IClientDo Preload(fields ...field.RelationField) IClientDo FirstOrInit() (*table.Client, error) FirstOrCreate() (*table.Client, error) FindByPage(offset int, limit int) (result []*table.Client, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) IClientDo UnderlyingDB() *gorm.DB schema.Tabler }
type IClientEventDo ¶
type IClientEventDo interface { gen.SubQuery Debug() IClientEventDo WithContext(ctx context.Context) IClientEventDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() IClientEventDo WriteDB() IClientEventDo As(alias string) gen.Dao Session(config *gorm.Session) IClientEventDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) IClientEventDo Not(conds ...gen.Condition) IClientEventDo Or(conds ...gen.Condition) IClientEventDo Select(conds ...field.Expr) IClientEventDo Where(conds ...gen.Condition) IClientEventDo Order(conds ...field.Expr) IClientEventDo Distinct(cols ...field.Expr) IClientEventDo Omit(cols ...field.Expr) IClientEventDo Join(table schema.Tabler, on ...field.Expr) IClientEventDo LeftJoin(table schema.Tabler, on ...field.Expr) IClientEventDo RightJoin(table schema.Tabler, on ...field.Expr) IClientEventDo Group(cols ...field.Expr) IClientEventDo Having(conds ...gen.Condition) IClientEventDo Limit(limit int) IClientEventDo Offset(offset int) IClientEventDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) IClientEventDo Unscoped() IClientEventDo Create(values ...*table.ClientEvent) error CreateInBatches(values []*table.ClientEvent, batchSize int) error Save(values ...*table.ClientEvent) error First() (*table.ClientEvent, error) Take() (*table.ClientEvent, error) Last() (*table.ClientEvent, error) Find() ([]*table.ClientEvent, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.ClientEvent, err error) FindInBatches(result *[]*table.ClientEvent, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.ClientEvent) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) IClientEventDo Assign(attrs ...field.AssignExpr) IClientEventDo Joins(fields ...field.RelationField) IClientEventDo Preload(fields ...field.RelationField) IClientEventDo FirstOrInit() (*table.ClientEvent, error) FirstOrCreate() (*table.ClientEvent, error) FindByPage(offset int, limit int) (result []*table.ClientEvent, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) IClientEventDo UnderlyingDB() *gorm.DB schema.Tabler }
type IClientQueryDo ¶
type IClientQueryDo interface { gen.SubQuery Debug() IClientQueryDo WithContext(ctx context.Context) IClientQueryDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() IClientQueryDo WriteDB() IClientQueryDo As(alias string) gen.Dao Session(config *gorm.Session) IClientQueryDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) IClientQueryDo Not(conds ...gen.Condition) IClientQueryDo Or(conds ...gen.Condition) IClientQueryDo Select(conds ...field.Expr) IClientQueryDo Where(conds ...gen.Condition) IClientQueryDo Order(conds ...field.Expr) IClientQueryDo Distinct(cols ...field.Expr) IClientQueryDo Omit(cols ...field.Expr) IClientQueryDo Join(table schema.Tabler, on ...field.Expr) IClientQueryDo LeftJoin(table schema.Tabler, on ...field.Expr) IClientQueryDo RightJoin(table schema.Tabler, on ...field.Expr) IClientQueryDo Group(cols ...field.Expr) IClientQueryDo Having(conds ...gen.Condition) IClientQueryDo Limit(limit int) IClientQueryDo Offset(offset int) IClientQueryDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) IClientQueryDo Unscoped() IClientQueryDo Create(values ...*table.ClientQuery) error CreateInBatches(values []*table.ClientQuery, batchSize int) error Save(values ...*table.ClientQuery) error First() (*table.ClientQuery, error) Take() (*table.ClientQuery, error) Last() (*table.ClientQuery, error) Find() ([]*table.ClientQuery, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.ClientQuery, err error) FindInBatches(result *[]*table.ClientQuery, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.ClientQuery) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) IClientQueryDo Assign(attrs ...field.AssignExpr) IClientQueryDo Joins(fields ...field.RelationField) IClientQueryDo Preload(fields ...field.RelationField) IClientQueryDo FirstOrInit() (*table.ClientQuery, error) FirstOrCreate() (*table.ClientQuery, error) FindByPage(offset int, limit int) (result []*table.ClientQuery, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) IClientQueryDo UnderlyingDB() *gorm.DB schema.Tabler }
type ICommitDo ¶
type ICommitDo interface { gen.SubQuery Debug() ICommitDo WithContext(ctx context.Context) ICommitDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() ICommitDo WriteDB() ICommitDo As(alias string) gen.Dao Session(config *gorm.Session) ICommitDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) ICommitDo Not(conds ...gen.Condition) ICommitDo Or(conds ...gen.Condition) ICommitDo Select(conds ...field.Expr) ICommitDo Where(conds ...gen.Condition) ICommitDo Order(conds ...field.Expr) ICommitDo Distinct(cols ...field.Expr) ICommitDo Omit(cols ...field.Expr) ICommitDo Join(table schema.Tabler, on ...field.Expr) ICommitDo LeftJoin(table schema.Tabler, on ...field.Expr) ICommitDo RightJoin(table schema.Tabler, on ...field.Expr) ICommitDo Group(cols ...field.Expr) ICommitDo Having(conds ...gen.Condition) ICommitDo Limit(limit int) ICommitDo Offset(offset int) ICommitDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) ICommitDo Unscoped() ICommitDo Create(values ...*table.Commit) error CreateInBatches(values []*table.Commit, batchSize int) error Save(values ...*table.Commit) error First() (*table.Commit, error) Take() (*table.Commit, error) Last() (*table.Commit, error) Find() ([]*table.Commit, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.Commit, err error) FindInBatches(result *[]*table.Commit, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.Commit) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) ICommitDo Assign(attrs ...field.AssignExpr) ICommitDo Joins(fields ...field.RelationField) ICommitDo Preload(fields ...field.RelationField) ICommitDo FirstOrInit() (*table.Commit, error) FirstOrCreate() (*table.Commit, error) FindByPage(offset int, limit int) (result []*table.Commit, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) ICommitDo UnderlyingDB() *gorm.DB schema.Tabler }
type IConfigDo ¶
type IConfigDo interface { gen.SubQuery Debug() IConfigDo WithContext(ctx context.Context) IConfigDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() IConfigDo WriteDB() IConfigDo As(alias string) gen.Dao Session(config *gorm.Session) IConfigDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) IConfigDo Not(conds ...gen.Condition) IConfigDo Or(conds ...gen.Condition) IConfigDo Select(conds ...field.Expr) IConfigDo Where(conds ...gen.Condition) IConfigDo Order(conds ...field.Expr) IConfigDo Distinct(cols ...field.Expr) IConfigDo Omit(cols ...field.Expr) IConfigDo Join(table schema.Tabler, on ...field.Expr) IConfigDo LeftJoin(table schema.Tabler, on ...field.Expr) IConfigDo RightJoin(table schema.Tabler, on ...field.Expr) IConfigDo Group(cols ...field.Expr) IConfigDo Having(conds ...gen.Condition) IConfigDo Limit(limit int) IConfigDo Offset(offset int) IConfigDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) IConfigDo Unscoped() IConfigDo Create(values ...*table.Config) error CreateInBatches(values []*table.Config, batchSize int) error Save(values ...*table.Config) error First() (*table.Config, error) Take() (*table.Config, error) Last() (*table.Config, error) Find() ([]*table.Config, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.Config, err error) FindInBatches(result *[]*table.Config, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.Config) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) IConfigDo Assign(attrs ...field.AssignExpr) IConfigDo Joins(fields ...field.RelationField) IConfigDo Preload(fields ...field.RelationField) IConfigDo FirstOrInit() (*table.Config, error) FirstOrCreate() (*table.Config, error) FindByPage(offset int, limit int) (result []*table.Config, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) IConfigDo UnderlyingDB() *gorm.DB schema.Tabler }
type IConfigItemDo ¶
type IConfigItemDo interface { gen.SubQuery Debug() IConfigItemDo WithContext(ctx context.Context) IConfigItemDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() IConfigItemDo WriteDB() IConfigItemDo As(alias string) gen.Dao Session(config *gorm.Session) IConfigItemDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) IConfigItemDo Not(conds ...gen.Condition) IConfigItemDo Or(conds ...gen.Condition) IConfigItemDo Select(conds ...field.Expr) IConfigItemDo Where(conds ...gen.Condition) IConfigItemDo Order(conds ...field.Expr) IConfigItemDo Distinct(cols ...field.Expr) IConfigItemDo Omit(cols ...field.Expr) IConfigItemDo Join(table schema.Tabler, on ...field.Expr) IConfigItemDo LeftJoin(table schema.Tabler, on ...field.Expr) IConfigItemDo RightJoin(table schema.Tabler, on ...field.Expr) IConfigItemDo Group(cols ...field.Expr) IConfigItemDo Having(conds ...gen.Condition) IConfigItemDo Limit(limit int) IConfigItemDo Offset(offset int) IConfigItemDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) IConfigItemDo Unscoped() IConfigItemDo Create(values ...*table.ConfigItem) error CreateInBatches(values []*table.ConfigItem, batchSize int) error Save(values ...*table.ConfigItem) error First() (*table.ConfigItem, error) Take() (*table.ConfigItem, error) Last() (*table.ConfigItem, error) Find() ([]*table.ConfigItem, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.ConfigItem, err error) FindInBatches(result *[]*table.ConfigItem, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.ConfigItem) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) IConfigItemDo Assign(attrs ...field.AssignExpr) IConfigItemDo Joins(fields ...field.RelationField) IConfigItemDo Preload(fields ...field.RelationField) IConfigItemDo FirstOrInit() (*table.ConfigItem, error) FirstOrCreate() (*table.ConfigItem, error) FindByPage(offset int, limit int) (result []*table.ConfigItem, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) IConfigItemDo UnderlyingDB() *gorm.DB schema.Tabler }
type IContentDo ¶
type IContentDo interface { gen.SubQuery Debug() IContentDo WithContext(ctx context.Context) IContentDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() IContentDo WriteDB() IContentDo As(alias string) gen.Dao Session(config *gorm.Session) IContentDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) IContentDo Not(conds ...gen.Condition) IContentDo Or(conds ...gen.Condition) IContentDo Select(conds ...field.Expr) IContentDo Where(conds ...gen.Condition) IContentDo Order(conds ...field.Expr) IContentDo Distinct(cols ...field.Expr) IContentDo Omit(cols ...field.Expr) IContentDo Join(table schema.Tabler, on ...field.Expr) IContentDo LeftJoin(table schema.Tabler, on ...field.Expr) IContentDo RightJoin(table schema.Tabler, on ...field.Expr) IContentDo Group(cols ...field.Expr) IContentDo Having(conds ...gen.Condition) IContentDo Limit(limit int) IContentDo Offset(offset int) IContentDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) IContentDo Unscoped() IContentDo Create(values ...*table.Content) error CreateInBatches(values []*table.Content, batchSize int) error Save(values ...*table.Content) error First() (*table.Content, error) Take() (*table.Content, error) Last() (*table.Content, error) Find() ([]*table.Content, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.Content, err error) FindInBatches(result *[]*table.Content, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.Content) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) IContentDo Assign(attrs ...field.AssignExpr) IContentDo Joins(fields ...field.RelationField) IContentDo Preload(fields ...field.RelationField) IContentDo FirstOrInit() (*table.Content, error) FirstOrCreate() (*table.Content, error) FindByPage(offset int, limit int) (result []*table.Content, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) IContentDo UnderlyingDB() *gorm.DB schema.Tabler }
type ICredentialDo ¶
type ICredentialDo interface { gen.SubQuery Debug() ICredentialDo WithContext(ctx context.Context) ICredentialDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() ICredentialDo WriteDB() ICredentialDo As(alias string) gen.Dao Session(config *gorm.Session) ICredentialDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) ICredentialDo Not(conds ...gen.Condition) ICredentialDo Or(conds ...gen.Condition) ICredentialDo Select(conds ...field.Expr) ICredentialDo Where(conds ...gen.Condition) ICredentialDo Order(conds ...field.Expr) ICredentialDo Distinct(cols ...field.Expr) ICredentialDo Omit(cols ...field.Expr) ICredentialDo Join(table schema.Tabler, on ...field.Expr) ICredentialDo LeftJoin(table schema.Tabler, on ...field.Expr) ICredentialDo RightJoin(table schema.Tabler, on ...field.Expr) ICredentialDo Group(cols ...field.Expr) ICredentialDo Having(conds ...gen.Condition) ICredentialDo Limit(limit int) ICredentialDo Offset(offset int) ICredentialDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) ICredentialDo Unscoped() ICredentialDo Create(values ...*table.Credential) error CreateInBatches(values []*table.Credential, batchSize int) error Save(values ...*table.Credential) error First() (*table.Credential, error) Take() (*table.Credential, error) Last() (*table.Credential, error) Find() ([]*table.Credential, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.Credential, err error) FindInBatches(result *[]*table.Credential, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.Credential) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) ICredentialDo Assign(attrs ...field.AssignExpr) ICredentialDo Joins(fields ...field.RelationField) ICredentialDo Preload(fields ...field.RelationField) ICredentialDo FirstOrInit() (*table.Credential, error) FirstOrCreate() (*table.Credential, error) FindByPage(offset int, limit int) (result []*table.Credential, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) ICredentialDo UnderlyingDB() *gorm.DB schema.Tabler }
type ICredentialScopeDo ¶
type ICredentialScopeDo interface { gen.SubQuery Debug() ICredentialScopeDo WithContext(ctx context.Context) ICredentialScopeDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() ICredentialScopeDo WriteDB() ICredentialScopeDo As(alias string) gen.Dao Session(config *gorm.Session) ICredentialScopeDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) ICredentialScopeDo Not(conds ...gen.Condition) ICredentialScopeDo Or(conds ...gen.Condition) ICredentialScopeDo Select(conds ...field.Expr) ICredentialScopeDo Where(conds ...gen.Condition) ICredentialScopeDo Order(conds ...field.Expr) ICredentialScopeDo Distinct(cols ...field.Expr) ICredentialScopeDo Omit(cols ...field.Expr) ICredentialScopeDo Join(table schema.Tabler, on ...field.Expr) ICredentialScopeDo LeftJoin(table schema.Tabler, on ...field.Expr) ICredentialScopeDo RightJoin(table schema.Tabler, on ...field.Expr) ICredentialScopeDo Group(cols ...field.Expr) ICredentialScopeDo Having(conds ...gen.Condition) ICredentialScopeDo Limit(limit int) ICredentialScopeDo Offset(offset int) ICredentialScopeDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) ICredentialScopeDo Unscoped() ICredentialScopeDo Create(values ...*table.CredentialScope) error CreateInBatches(values []*table.CredentialScope, batchSize int) error Save(values ...*table.CredentialScope) error First() (*table.CredentialScope, error) Take() (*table.CredentialScope, error) Last() (*table.CredentialScope, error) Find() ([]*table.CredentialScope, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.CredentialScope, err error) FindInBatches(result *[]*table.CredentialScope, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.CredentialScope) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) ICredentialScopeDo Assign(attrs ...field.AssignExpr) ICredentialScopeDo Joins(fields ...field.RelationField) ICredentialScopeDo Preload(fields ...field.RelationField) ICredentialScopeDo FirstOrInit() (*table.CredentialScope, error) FirstOrCreate() (*table.CredentialScope, error) FindByPage(offset int, limit int) (result []*table.CredentialScope, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) ICredentialScopeDo UnderlyingDB() *gorm.DB schema.Tabler }
type IEventDo ¶
type IEventDo interface { gen.SubQuery Debug() IEventDo WithContext(ctx context.Context) IEventDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() IEventDo WriteDB() IEventDo As(alias string) gen.Dao Session(config *gorm.Session) IEventDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) IEventDo Not(conds ...gen.Condition) IEventDo Or(conds ...gen.Condition) IEventDo Select(conds ...field.Expr) IEventDo Where(conds ...gen.Condition) IEventDo Order(conds ...field.Expr) IEventDo Distinct(cols ...field.Expr) IEventDo Omit(cols ...field.Expr) IEventDo Join(table schema.Tabler, on ...field.Expr) IEventDo LeftJoin(table schema.Tabler, on ...field.Expr) IEventDo RightJoin(table schema.Tabler, on ...field.Expr) IEventDo Group(cols ...field.Expr) IEventDo Having(conds ...gen.Condition) IEventDo Limit(limit int) IEventDo Offset(offset int) IEventDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) IEventDo Unscoped() IEventDo Create(values ...*table.Event) error CreateInBatches(values []*table.Event, batchSize int) error Save(values ...*table.Event) error First() (*table.Event, error) Take() (*table.Event, error) Last() (*table.Event, error) Find() ([]*table.Event, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.Event, err error) FindInBatches(result *[]*table.Event, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.Event) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) IEventDo Assign(attrs ...field.AssignExpr) IEventDo Joins(fields ...field.RelationField) IEventDo Preload(fields ...field.RelationField) IEventDo FirstOrInit() (*table.Event, error) FirstOrCreate() (*table.Event, error) FindByPage(offset int, limit int) (result []*table.Event, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) IEventDo UnderlyingDB() *gorm.DB schema.Tabler }
type IGroupAppBindDo ¶
type IGroupAppBindDo interface { gen.SubQuery Debug() IGroupAppBindDo WithContext(ctx context.Context) IGroupAppBindDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() IGroupAppBindDo WriteDB() IGroupAppBindDo As(alias string) gen.Dao Session(config *gorm.Session) IGroupAppBindDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) IGroupAppBindDo Not(conds ...gen.Condition) IGroupAppBindDo Or(conds ...gen.Condition) IGroupAppBindDo Select(conds ...field.Expr) IGroupAppBindDo Where(conds ...gen.Condition) IGroupAppBindDo Order(conds ...field.Expr) IGroupAppBindDo Distinct(cols ...field.Expr) IGroupAppBindDo Omit(cols ...field.Expr) IGroupAppBindDo Join(table schema.Tabler, on ...field.Expr) IGroupAppBindDo LeftJoin(table schema.Tabler, on ...field.Expr) IGroupAppBindDo RightJoin(table schema.Tabler, on ...field.Expr) IGroupAppBindDo Group(cols ...field.Expr) IGroupAppBindDo Having(conds ...gen.Condition) IGroupAppBindDo Limit(limit int) IGroupAppBindDo Offset(offset int) IGroupAppBindDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) IGroupAppBindDo Unscoped() IGroupAppBindDo Create(values ...*table.GroupAppBind) error CreateInBatches(values []*table.GroupAppBind, batchSize int) error Save(values ...*table.GroupAppBind) error First() (*table.GroupAppBind, error) Take() (*table.GroupAppBind, error) Last() (*table.GroupAppBind, error) Find() ([]*table.GroupAppBind, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.GroupAppBind, err error) FindInBatches(result *[]*table.GroupAppBind, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.GroupAppBind) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) IGroupAppBindDo Assign(attrs ...field.AssignExpr) IGroupAppBindDo Joins(fields ...field.RelationField) IGroupAppBindDo Preload(fields ...field.RelationField) IGroupAppBindDo FirstOrInit() (*table.GroupAppBind, error) FirstOrCreate() (*table.GroupAppBind, error) FindByPage(offset int, limit int) (result []*table.GroupAppBind, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) IGroupAppBindDo UnderlyingDB() *gorm.DB schema.Tabler }
type IGroupDo ¶
type IGroupDo interface { gen.SubQuery Debug() IGroupDo WithContext(ctx context.Context) IGroupDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() IGroupDo WriteDB() IGroupDo As(alias string) gen.Dao Session(config *gorm.Session) IGroupDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) IGroupDo Not(conds ...gen.Condition) IGroupDo Or(conds ...gen.Condition) IGroupDo Select(conds ...field.Expr) IGroupDo Where(conds ...gen.Condition) IGroupDo Order(conds ...field.Expr) IGroupDo Distinct(cols ...field.Expr) IGroupDo Omit(cols ...field.Expr) IGroupDo Join(table schema.Tabler, on ...field.Expr) IGroupDo LeftJoin(table schema.Tabler, on ...field.Expr) IGroupDo RightJoin(table schema.Tabler, on ...field.Expr) IGroupDo Group(cols ...field.Expr) IGroupDo Having(conds ...gen.Condition) IGroupDo Limit(limit int) IGroupDo Offset(offset int) IGroupDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) IGroupDo Unscoped() IGroupDo Create(values ...*table.Group) error CreateInBatches(values []*table.Group, batchSize int) error Save(values ...*table.Group) error First() (*table.Group, error) Take() (*table.Group, error) Last() (*table.Group, error) Find() ([]*table.Group, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.Group, err error) FindInBatches(result *[]*table.Group, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.Group) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) IGroupDo Assign(attrs ...field.AssignExpr) IGroupDo Joins(fields ...field.RelationField) IGroupDo Preload(fields ...field.RelationField) IGroupDo FirstOrInit() (*table.Group, error) FirstOrCreate() (*table.Group, error) FindByPage(offset int, limit int) (result []*table.Group, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) IGroupDo UnderlyingDB() *gorm.DB schema.Tabler }
type IHookDo ¶
type IHookDo interface { gen.SubQuery Debug() IHookDo WithContext(ctx context.Context) IHookDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() IHookDo WriteDB() IHookDo As(alias string) gen.Dao Session(config *gorm.Session) IHookDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) IHookDo Not(conds ...gen.Condition) IHookDo Or(conds ...gen.Condition) IHookDo Select(conds ...field.Expr) IHookDo Where(conds ...gen.Condition) IHookDo Order(conds ...field.Expr) IHookDo Distinct(cols ...field.Expr) IHookDo Omit(cols ...field.Expr) IHookDo Join(table schema.Tabler, on ...field.Expr) IHookDo LeftJoin(table schema.Tabler, on ...field.Expr) IHookDo RightJoin(table schema.Tabler, on ...field.Expr) IHookDo Group(cols ...field.Expr) IHookDo Having(conds ...gen.Condition) IHookDo Limit(limit int) IHookDo Offset(offset int) IHookDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) IHookDo Unscoped() IHookDo Create(values ...*table.Hook) error CreateInBatches(values []*table.Hook, batchSize int) error Save(values ...*table.Hook) error First() (*table.Hook, error) Take() (*table.Hook, error) Last() (*table.Hook, error) Find() ([]*table.Hook, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.Hook, err error) FindInBatches(result *[]*table.Hook, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.Hook) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) IHookDo Assign(attrs ...field.AssignExpr) IHookDo Joins(fields ...field.RelationField) IHookDo Preload(fields ...field.RelationField) IHookDo FirstOrInit() (*table.Hook, error) FirstOrCreate() (*table.Hook, error) FindByPage(offset int, limit int) (result []*table.Hook, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) IHookDo UnderlyingDB() *gorm.DB schema.Tabler }
type IHookRevisionDo ¶
type IHookRevisionDo interface { gen.SubQuery Debug() IHookRevisionDo WithContext(ctx context.Context) IHookRevisionDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() IHookRevisionDo WriteDB() IHookRevisionDo As(alias string) gen.Dao Session(config *gorm.Session) IHookRevisionDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) IHookRevisionDo Not(conds ...gen.Condition) IHookRevisionDo Or(conds ...gen.Condition) IHookRevisionDo Select(conds ...field.Expr) IHookRevisionDo Where(conds ...gen.Condition) IHookRevisionDo Order(conds ...field.Expr) IHookRevisionDo Distinct(cols ...field.Expr) IHookRevisionDo Omit(cols ...field.Expr) IHookRevisionDo Join(table schema.Tabler, on ...field.Expr) IHookRevisionDo LeftJoin(table schema.Tabler, on ...field.Expr) IHookRevisionDo RightJoin(table schema.Tabler, on ...field.Expr) IHookRevisionDo Group(cols ...field.Expr) IHookRevisionDo Having(conds ...gen.Condition) IHookRevisionDo Limit(limit int) IHookRevisionDo Offset(offset int) IHookRevisionDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) IHookRevisionDo Unscoped() IHookRevisionDo Create(values ...*table.HookRevision) error CreateInBatches(values []*table.HookRevision, batchSize int) error Save(values ...*table.HookRevision) error First() (*table.HookRevision, error) Take() (*table.HookRevision, error) Last() (*table.HookRevision, error) Find() ([]*table.HookRevision, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.HookRevision, err error) FindInBatches(result *[]*table.HookRevision, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.HookRevision) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) IHookRevisionDo Assign(attrs ...field.AssignExpr) IHookRevisionDo Joins(fields ...field.RelationField) IHookRevisionDo Preload(fields ...field.RelationField) IHookRevisionDo FirstOrInit() (*table.HookRevision, error) FirstOrCreate() (*table.HookRevision, error) FindByPage(offset int, limit int) (result []*table.HookRevision, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) IHookRevisionDo UnderlyingDB() *gorm.DB schema.Tabler }
type IIDGeneratorDo ¶
type IIDGeneratorDo interface { gen.SubQuery Debug() IIDGeneratorDo WithContext(ctx context.Context) IIDGeneratorDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() IIDGeneratorDo WriteDB() IIDGeneratorDo As(alias string) gen.Dao Session(config *gorm.Session) IIDGeneratorDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) IIDGeneratorDo Not(conds ...gen.Condition) IIDGeneratorDo Or(conds ...gen.Condition) IIDGeneratorDo Select(conds ...field.Expr) IIDGeneratorDo Where(conds ...gen.Condition) IIDGeneratorDo Order(conds ...field.Expr) IIDGeneratorDo Distinct(cols ...field.Expr) IIDGeneratorDo Omit(cols ...field.Expr) IIDGeneratorDo Join(table schema.Tabler, on ...field.Expr) IIDGeneratorDo LeftJoin(table schema.Tabler, on ...field.Expr) IIDGeneratorDo RightJoin(table schema.Tabler, on ...field.Expr) IIDGeneratorDo Group(cols ...field.Expr) IIDGeneratorDo Having(conds ...gen.Condition) IIDGeneratorDo Limit(limit int) IIDGeneratorDo Offset(offset int) IIDGeneratorDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) IIDGeneratorDo Unscoped() IIDGeneratorDo Create(values ...*table.IDGenerator) error CreateInBatches(values []*table.IDGenerator, batchSize int) error Save(values ...*table.IDGenerator) error First() (*table.IDGenerator, error) Take() (*table.IDGenerator, error) Last() (*table.IDGenerator, error) Find() ([]*table.IDGenerator, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.IDGenerator, err error) FindInBatches(result *[]*table.IDGenerator, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.IDGenerator) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) IIDGeneratorDo Assign(attrs ...field.AssignExpr) IIDGeneratorDo Joins(fields ...field.RelationField) IIDGeneratorDo Preload(fields ...field.RelationField) IIDGeneratorDo FirstOrInit() (*table.IDGenerator, error) FirstOrCreate() (*table.IDGenerator, error) FindByPage(offset int, limit int) (result []*table.IDGenerator, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) IIDGeneratorDo UnderlyingDB() *gorm.DB schema.Tabler }
type IKvDo ¶
type IKvDo interface { gen.SubQuery Debug() IKvDo WithContext(ctx context.Context) IKvDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() IKvDo WriteDB() IKvDo As(alias string) gen.Dao Session(config *gorm.Session) IKvDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) IKvDo Not(conds ...gen.Condition) IKvDo Or(conds ...gen.Condition) IKvDo Select(conds ...field.Expr) IKvDo Where(conds ...gen.Condition) IKvDo Order(conds ...field.Expr) IKvDo Distinct(cols ...field.Expr) IKvDo Omit(cols ...field.Expr) IKvDo Join(table schema.Tabler, on ...field.Expr) IKvDo LeftJoin(table schema.Tabler, on ...field.Expr) IKvDo RightJoin(table schema.Tabler, on ...field.Expr) IKvDo Group(cols ...field.Expr) IKvDo Having(conds ...gen.Condition) IKvDo Limit(limit int) IKvDo Offset(offset int) IKvDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) IKvDo Unscoped() IKvDo Create(values ...*table.Kv) error CreateInBatches(values []*table.Kv, batchSize int) error Save(values ...*table.Kv) error First() (*table.Kv, error) Take() (*table.Kv, error) Last() (*table.Kv, error) Find() ([]*table.Kv, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.Kv, err error) FindInBatches(result *[]*table.Kv, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.Kv) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) IKvDo Assign(attrs ...field.AssignExpr) IKvDo Joins(fields ...field.RelationField) IKvDo Preload(fields ...field.RelationField) IKvDo FirstOrInit() (*table.Kv, error) FirstOrCreate() (*table.Kv, error) FindByPage(offset int, limit int) (result []*table.Kv, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) IKvDo UnderlyingDB() *gorm.DB schema.Tabler }
type IReleaseDo ¶
type IReleaseDo interface { gen.SubQuery Debug() IReleaseDo WithContext(ctx context.Context) IReleaseDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() IReleaseDo WriteDB() IReleaseDo As(alias string) gen.Dao Session(config *gorm.Session) IReleaseDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) IReleaseDo Not(conds ...gen.Condition) IReleaseDo Or(conds ...gen.Condition) IReleaseDo Select(conds ...field.Expr) IReleaseDo Where(conds ...gen.Condition) IReleaseDo Order(conds ...field.Expr) IReleaseDo Distinct(cols ...field.Expr) IReleaseDo Omit(cols ...field.Expr) IReleaseDo Join(table schema.Tabler, on ...field.Expr) IReleaseDo LeftJoin(table schema.Tabler, on ...field.Expr) IReleaseDo RightJoin(table schema.Tabler, on ...field.Expr) IReleaseDo Group(cols ...field.Expr) IReleaseDo Having(conds ...gen.Condition) IReleaseDo Limit(limit int) IReleaseDo Offset(offset int) IReleaseDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) IReleaseDo Unscoped() IReleaseDo Create(values ...*table.Release) error CreateInBatches(values []*table.Release, batchSize int) error Save(values ...*table.Release) error First() (*table.Release, error) Take() (*table.Release, error) Last() (*table.Release, error) Find() ([]*table.Release, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.Release, err error) FindInBatches(result *[]*table.Release, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.Release) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) IReleaseDo Assign(attrs ...field.AssignExpr) IReleaseDo Joins(fields ...field.RelationField) IReleaseDo Preload(fields ...field.RelationField) IReleaseDo FirstOrInit() (*table.Release, error) FirstOrCreate() (*table.Release, error) FindByPage(offset int, limit int) (result []*table.Release, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) IReleaseDo UnderlyingDB() *gorm.DB schema.Tabler }
type IReleasedAppTemplateDo ¶
type IReleasedAppTemplateDo interface { gen.SubQuery Debug() IReleasedAppTemplateDo WithContext(ctx context.Context) IReleasedAppTemplateDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() IReleasedAppTemplateDo WriteDB() IReleasedAppTemplateDo As(alias string) gen.Dao Session(config *gorm.Session) IReleasedAppTemplateDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) IReleasedAppTemplateDo Not(conds ...gen.Condition) IReleasedAppTemplateDo Or(conds ...gen.Condition) IReleasedAppTemplateDo Select(conds ...field.Expr) IReleasedAppTemplateDo Where(conds ...gen.Condition) IReleasedAppTemplateDo Order(conds ...field.Expr) IReleasedAppTemplateDo Distinct(cols ...field.Expr) IReleasedAppTemplateDo Omit(cols ...field.Expr) IReleasedAppTemplateDo Join(table schema.Tabler, on ...field.Expr) IReleasedAppTemplateDo LeftJoin(table schema.Tabler, on ...field.Expr) IReleasedAppTemplateDo RightJoin(table schema.Tabler, on ...field.Expr) IReleasedAppTemplateDo Group(cols ...field.Expr) IReleasedAppTemplateDo Having(conds ...gen.Condition) IReleasedAppTemplateDo Limit(limit int) IReleasedAppTemplateDo Offset(offset int) IReleasedAppTemplateDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) IReleasedAppTemplateDo Unscoped() IReleasedAppTemplateDo Create(values ...*table.ReleasedAppTemplate) error CreateInBatches(values []*table.ReleasedAppTemplate, batchSize int) error Save(values ...*table.ReleasedAppTemplate) error First() (*table.ReleasedAppTemplate, error) Take() (*table.ReleasedAppTemplate, error) Last() (*table.ReleasedAppTemplate, error) Find() ([]*table.ReleasedAppTemplate, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.ReleasedAppTemplate, err error) FindInBatches(result *[]*table.ReleasedAppTemplate, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.ReleasedAppTemplate) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) IReleasedAppTemplateDo Assign(attrs ...field.AssignExpr) IReleasedAppTemplateDo Joins(fields ...field.RelationField) IReleasedAppTemplateDo Preload(fields ...field.RelationField) IReleasedAppTemplateDo FirstOrInit() (*table.ReleasedAppTemplate, error) FirstOrCreate() (*table.ReleasedAppTemplate, error) FindByPage(offset int, limit int) (result []*table.ReleasedAppTemplate, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) IReleasedAppTemplateDo UnderlyingDB() *gorm.DB schema.Tabler }
type IReleasedAppTemplateVariableDo ¶
type IReleasedAppTemplateVariableDo interface { gen.SubQuery Debug() IReleasedAppTemplateVariableDo WithContext(ctx context.Context) IReleasedAppTemplateVariableDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() IReleasedAppTemplateVariableDo WriteDB() IReleasedAppTemplateVariableDo As(alias string) gen.Dao Session(config *gorm.Session) IReleasedAppTemplateVariableDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) IReleasedAppTemplateVariableDo Not(conds ...gen.Condition) IReleasedAppTemplateVariableDo Or(conds ...gen.Condition) IReleasedAppTemplateVariableDo Select(conds ...field.Expr) IReleasedAppTemplateVariableDo Where(conds ...gen.Condition) IReleasedAppTemplateVariableDo Order(conds ...field.Expr) IReleasedAppTemplateVariableDo Distinct(cols ...field.Expr) IReleasedAppTemplateVariableDo Omit(cols ...field.Expr) IReleasedAppTemplateVariableDo Join(table schema.Tabler, on ...field.Expr) IReleasedAppTemplateVariableDo LeftJoin(table schema.Tabler, on ...field.Expr) IReleasedAppTemplateVariableDo RightJoin(table schema.Tabler, on ...field.Expr) IReleasedAppTemplateVariableDo Group(cols ...field.Expr) IReleasedAppTemplateVariableDo Having(conds ...gen.Condition) IReleasedAppTemplateVariableDo Limit(limit int) IReleasedAppTemplateVariableDo Offset(offset int) IReleasedAppTemplateVariableDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) IReleasedAppTemplateVariableDo Unscoped() IReleasedAppTemplateVariableDo Create(values ...*table.ReleasedAppTemplateVariable) error CreateInBatches(values []*table.ReleasedAppTemplateVariable, batchSize int) error Save(values ...*table.ReleasedAppTemplateVariable) error First() (*table.ReleasedAppTemplateVariable, error) Take() (*table.ReleasedAppTemplateVariable, error) Last() (*table.ReleasedAppTemplateVariable, error) Find() ([]*table.ReleasedAppTemplateVariable, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.ReleasedAppTemplateVariable, err error) FindInBatches(result *[]*table.ReleasedAppTemplateVariable, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.ReleasedAppTemplateVariable) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) IReleasedAppTemplateVariableDo Assign(attrs ...field.AssignExpr) IReleasedAppTemplateVariableDo Joins(fields ...field.RelationField) IReleasedAppTemplateVariableDo Preload(fields ...field.RelationField) IReleasedAppTemplateVariableDo FirstOrInit() (*table.ReleasedAppTemplateVariable, error) FirstOrCreate() (*table.ReleasedAppTemplateVariable, error) FindByPage(offset int, limit int) (result []*table.ReleasedAppTemplateVariable, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) IReleasedAppTemplateVariableDo UnderlyingDB() *gorm.DB schema.Tabler }
type IReleasedConfigItemDo ¶
type IReleasedConfigItemDo interface { gen.SubQuery Debug() IReleasedConfigItemDo WithContext(ctx context.Context) IReleasedConfigItemDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() IReleasedConfigItemDo WriteDB() IReleasedConfigItemDo As(alias string) gen.Dao Session(config *gorm.Session) IReleasedConfigItemDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) IReleasedConfigItemDo Not(conds ...gen.Condition) IReleasedConfigItemDo Or(conds ...gen.Condition) IReleasedConfigItemDo Select(conds ...field.Expr) IReleasedConfigItemDo Where(conds ...gen.Condition) IReleasedConfigItemDo Order(conds ...field.Expr) IReleasedConfigItemDo Distinct(cols ...field.Expr) IReleasedConfigItemDo Omit(cols ...field.Expr) IReleasedConfigItemDo Join(table schema.Tabler, on ...field.Expr) IReleasedConfigItemDo LeftJoin(table schema.Tabler, on ...field.Expr) IReleasedConfigItemDo RightJoin(table schema.Tabler, on ...field.Expr) IReleasedConfigItemDo Group(cols ...field.Expr) IReleasedConfigItemDo Having(conds ...gen.Condition) IReleasedConfigItemDo Limit(limit int) IReleasedConfigItemDo Offset(offset int) IReleasedConfigItemDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) IReleasedConfigItemDo Unscoped() IReleasedConfigItemDo Create(values ...*table.ReleasedConfigItem) error CreateInBatches(values []*table.ReleasedConfigItem, batchSize int) error Save(values ...*table.ReleasedConfigItem) error First() (*table.ReleasedConfigItem, error) Take() (*table.ReleasedConfigItem, error) Last() (*table.ReleasedConfigItem, error) Find() ([]*table.ReleasedConfigItem, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.ReleasedConfigItem, err error) FindInBatches(result *[]*table.ReleasedConfigItem, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.ReleasedConfigItem) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) IReleasedConfigItemDo Assign(attrs ...field.AssignExpr) IReleasedConfigItemDo Joins(fields ...field.RelationField) IReleasedConfigItemDo Preload(fields ...field.RelationField) IReleasedConfigItemDo FirstOrInit() (*table.ReleasedConfigItem, error) FirstOrCreate() (*table.ReleasedConfigItem, error) FindByPage(offset int, limit int) (result []*table.ReleasedConfigItem, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) IReleasedConfigItemDo UnderlyingDB() *gorm.DB schema.Tabler }
type IReleasedGroupDo ¶
type IReleasedGroupDo interface { gen.SubQuery Debug() IReleasedGroupDo WithContext(ctx context.Context) IReleasedGroupDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() IReleasedGroupDo WriteDB() IReleasedGroupDo As(alias string) gen.Dao Session(config *gorm.Session) IReleasedGroupDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) IReleasedGroupDo Not(conds ...gen.Condition) IReleasedGroupDo Or(conds ...gen.Condition) IReleasedGroupDo Select(conds ...field.Expr) IReleasedGroupDo Where(conds ...gen.Condition) IReleasedGroupDo Order(conds ...field.Expr) IReleasedGroupDo Distinct(cols ...field.Expr) IReleasedGroupDo Omit(cols ...field.Expr) IReleasedGroupDo Join(table schema.Tabler, on ...field.Expr) IReleasedGroupDo LeftJoin(table schema.Tabler, on ...field.Expr) IReleasedGroupDo RightJoin(table schema.Tabler, on ...field.Expr) IReleasedGroupDo Group(cols ...field.Expr) IReleasedGroupDo Having(conds ...gen.Condition) IReleasedGroupDo Limit(limit int) IReleasedGroupDo Offset(offset int) IReleasedGroupDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) IReleasedGroupDo Unscoped() IReleasedGroupDo Create(values ...*table.ReleasedGroup) error CreateInBatches(values []*table.ReleasedGroup, batchSize int) error Save(values ...*table.ReleasedGroup) error First() (*table.ReleasedGroup, error) Take() (*table.ReleasedGroup, error) Last() (*table.ReleasedGroup, error) Find() ([]*table.ReleasedGroup, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.ReleasedGroup, err error) FindInBatches(result *[]*table.ReleasedGroup, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.ReleasedGroup) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) IReleasedGroupDo Assign(attrs ...field.AssignExpr) IReleasedGroupDo Joins(fields ...field.RelationField) IReleasedGroupDo Preload(fields ...field.RelationField) IReleasedGroupDo FirstOrInit() (*table.ReleasedGroup, error) FirstOrCreate() (*table.ReleasedGroup, error) FindByPage(offset int, limit int) (result []*table.ReleasedGroup, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) IReleasedGroupDo UnderlyingDB() *gorm.DB schema.Tabler }
type IReleasedHookDo ¶
type IReleasedHookDo interface { gen.SubQuery Debug() IReleasedHookDo WithContext(ctx context.Context) IReleasedHookDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() IReleasedHookDo WriteDB() IReleasedHookDo As(alias string) gen.Dao Session(config *gorm.Session) IReleasedHookDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) IReleasedHookDo Not(conds ...gen.Condition) IReleasedHookDo Or(conds ...gen.Condition) IReleasedHookDo Select(conds ...field.Expr) IReleasedHookDo Where(conds ...gen.Condition) IReleasedHookDo Order(conds ...field.Expr) IReleasedHookDo Distinct(cols ...field.Expr) IReleasedHookDo Omit(cols ...field.Expr) IReleasedHookDo Join(table schema.Tabler, on ...field.Expr) IReleasedHookDo LeftJoin(table schema.Tabler, on ...field.Expr) IReleasedHookDo RightJoin(table schema.Tabler, on ...field.Expr) IReleasedHookDo Group(cols ...field.Expr) IReleasedHookDo Having(conds ...gen.Condition) IReleasedHookDo Limit(limit int) IReleasedHookDo Offset(offset int) IReleasedHookDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) IReleasedHookDo Unscoped() IReleasedHookDo Create(values ...*table.ReleasedHook) error CreateInBatches(values []*table.ReleasedHook, batchSize int) error Save(values ...*table.ReleasedHook) error First() (*table.ReleasedHook, error) Take() (*table.ReleasedHook, error) Last() (*table.ReleasedHook, error) Find() ([]*table.ReleasedHook, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.ReleasedHook, err error) FindInBatches(result *[]*table.ReleasedHook, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.ReleasedHook) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) IReleasedHookDo Assign(attrs ...field.AssignExpr) IReleasedHookDo Joins(fields ...field.RelationField) IReleasedHookDo Preload(fields ...field.RelationField) IReleasedHookDo FirstOrInit() (*table.ReleasedHook, error) FirstOrCreate() (*table.ReleasedHook, error) FindByPage(offset int, limit int) (result []*table.ReleasedHook, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) IReleasedHookDo UnderlyingDB() *gorm.DB schema.Tabler }
type IReleasedKvDo ¶
type IReleasedKvDo interface { gen.SubQuery Debug() IReleasedKvDo WithContext(ctx context.Context) IReleasedKvDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() IReleasedKvDo WriteDB() IReleasedKvDo As(alias string) gen.Dao Session(config *gorm.Session) IReleasedKvDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) IReleasedKvDo Not(conds ...gen.Condition) IReleasedKvDo Or(conds ...gen.Condition) IReleasedKvDo Select(conds ...field.Expr) IReleasedKvDo Where(conds ...gen.Condition) IReleasedKvDo Order(conds ...field.Expr) IReleasedKvDo Distinct(cols ...field.Expr) IReleasedKvDo Omit(cols ...field.Expr) IReleasedKvDo Join(table schema.Tabler, on ...field.Expr) IReleasedKvDo LeftJoin(table schema.Tabler, on ...field.Expr) IReleasedKvDo RightJoin(table schema.Tabler, on ...field.Expr) IReleasedKvDo Group(cols ...field.Expr) IReleasedKvDo Having(conds ...gen.Condition) IReleasedKvDo Limit(limit int) IReleasedKvDo Offset(offset int) IReleasedKvDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) IReleasedKvDo Unscoped() IReleasedKvDo Create(values ...*table.ReleasedKv) error CreateInBatches(values []*table.ReleasedKv, batchSize int) error Save(values ...*table.ReleasedKv) error First() (*table.ReleasedKv, error) Take() (*table.ReleasedKv, error) Last() (*table.ReleasedKv, error) Find() ([]*table.ReleasedKv, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.ReleasedKv, err error) FindInBatches(result *[]*table.ReleasedKv, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.ReleasedKv) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) IReleasedKvDo Assign(attrs ...field.AssignExpr) IReleasedKvDo Joins(fields ...field.RelationField) IReleasedKvDo Preload(fields ...field.RelationField) IReleasedKvDo FirstOrInit() (*table.ReleasedKv, error) FirstOrCreate() (*table.ReleasedKv, error) FindByPage(offset int, limit int) (result []*table.ReleasedKv, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) IReleasedKvDo UnderlyingDB() *gorm.DB schema.Tabler }
type IResourceLockDo ¶
type IResourceLockDo interface { gen.SubQuery Debug() IResourceLockDo WithContext(ctx context.Context) IResourceLockDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() IResourceLockDo WriteDB() IResourceLockDo As(alias string) gen.Dao Session(config *gorm.Session) IResourceLockDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) IResourceLockDo Not(conds ...gen.Condition) IResourceLockDo Or(conds ...gen.Condition) IResourceLockDo Select(conds ...field.Expr) IResourceLockDo Where(conds ...gen.Condition) IResourceLockDo Order(conds ...field.Expr) IResourceLockDo Distinct(cols ...field.Expr) IResourceLockDo Omit(cols ...field.Expr) IResourceLockDo Join(table schema.Tabler, on ...field.Expr) IResourceLockDo LeftJoin(table schema.Tabler, on ...field.Expr) IResourceLockDo RightJoin(table schema.Tabler, on ...field.Expr) IResourceLockDo Group(cols ...field.Expr) IResourceLockDo Having(conds ...gen.Condition) IResourceLockDo Limit(limit int) IResourceLockDo Offset(offset int) IResourceLockDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) IResourceLockDo Unscoped() IResourceLockDo Create(values ...*table.ResourceLock) error CreateInBatches(values []*table.ResourceLock, batchSize int) error Save(values ...*table.ResourceLock) error First() (*table.ResourceLock, error) Take() (*table.ResourceLock, error) Last() (*table.ResourceLock, error) Find() ([]*table.ResourceLock, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.ResourceLock, err error) FindInBatches(result *[]*table.ResourceLock, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.ResourceLock) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) IResourceLockDo Assign(attrs ...field.AssignExpr) IResourceLockDo Joins(fields ...field.RelationField) IResourceLockDo Preload(fields ...field.RelationField) IResourceLockDo FirstOrInit() (*table.ResourceLock, error) FirstOrCreate() (*table.ResourceLock, error) FindByPage(offset int, limit int) (result []*table.ResourceLock, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) IResourceLockDo UnderlyingDB() *gorm.DB schema.Tabler }
type IStrategyDo ¶
type IStrategyDo interface { gen.SubQuery Debug() IStrategyDo WithContext(ctx context.Context) IStrategyDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() IStrategyDo WriteDB() IStrategyDo As(alias string) gen.Dao Session(config *gorm.Session) IStrategyDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) IStrategyDo Not(conds ...gen.Condition) IStrategyDo Or(conds ...gen.Condition) IStrategyDo Select(conds ...field.Expr) IStrategyDo Where(conds ...gen.Condition) IStrategyDo Order(conds ...field.Expr) IStrategyDo Distinct(cols ...field.Expr) IStrategyDo Omit(cols ...field.Expr) IStrategyDo Join(table schema.Tabler, on ...field.Expr) IStrategyDo LeftJoin(table schema.Tabler, on ...field.Expr) IStrategyDo RightJoin(table schema.Tabler, on ...field.Expr) IStrategyDo Group(cols ...field.Expr) IStrategyDo Having(conds ...gen.Condition) IStrategyDo Limit(limit int) IStrategyDo Offset(offset int) IStrategyDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) IStrategyDo Unscoped() IStrategyDo Create(values ...*table.Strategy) error CreateInBatches(values []*table.Strategy, batchSize int) error Save(values ...*table.Strategy) error First() (*table.Strategy, error) Take() (*table.Strategy, error) Last() (*table.Strategy, error) Find() ([]*table.Strategy, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.Strategy, err error) FindInBatches(result *[]*table.Strategy, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.Strategy) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) IStrategyDo Assign(attrs ...field.AssignExpr) IStrategyDo Joins(fields ...field.RelationField) IStrategyDo Preload(fields ...field.RelationField) IStrategyDo FirstOrInit() (*table.Strategy, error) FirstOrCreate() (*table.Strategy, error) FindByPage(offset int, limit int) (result []*table.Strategy, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) IStrategyDo UnderlyingDB() *gorm.DB schema.Tabler }
type ITemplateDo ¶
type ITemplateDo interface { gen.SubQuery Debug() ITemplateDo WithContext(ctx context.Context) ITemplateDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() ITemplateDo WriteDB() ITemplateDo As(alias string) gen.Dao Session(config *gorm.Session) ITemplateDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) ITemplateDo Not(conds ...gen.Condition) ITemplateDo Or(conds ...gen.Condition) ITemplateDo Select(conds ...field.Expr) ITemplateDo Where(conds ...gen.Condition) ITemplateDo Order(conds ...field.Expr) ITemplateDo Distinct(cols ...field.Expr) ITemplateDo Omit(cols ...field.Expr) ITemplateDo Join(table schema.Tabler, on ...field.Expr) ITemplateDo LeftJoin(table schema.Tabler, on ...field.Expr) ITemplateDo RightJoin(table schema.Tabler, on ...field.Expr) ITemplateDo Group(cols ...field.Expr) ITemplateDo Having(conds ...gen.Condition) ITemplateDo Limit(limit int) ITemplateDo Offset(offset int) ITemplateDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) ITemplateDo Unscoped() ITemplateDo Create(values ...*table.Template) error CreateInBatches(values []*table.Template, batchSize int) error Save(values ...*table.Template) error First() (*table.Template, error) Take() (*table.Template, error) Last() (*table.Template, error) Find() ([]*table.Template, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.Template, err error) FindInBatches(result *[]*table.Template, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.Template) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) ITemplateDo Assign(attrs ...field.AssignExpr) ITemplateDo Joins(fields ...field.RelationField) ITemplateDo Preload(fields ...field.RelationField) ITemplateDo FirstOrInit() (*table.Template, error) FirstOrCreate() (*table.Template, error) FindByPage(offset int, limit int) (result []*table.Template, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) ITemplateDo UnderlyingDB() *gorm.DB schema.Tabler }
type ITemplateRevisionDo ¶
type ITemplateRevisionDo interface { gen.SubQuery Debug() ITemplateRevisionDo WithContext(ctx context.Context) ITemplateRevisionDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() ITemplateRevisionDo WriteDB() ITemplateRevisionDo As(alias string) gen.Dao Session(config *gorm.Session) ITemplateRevisionDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) ITemplateRevisionDo Not(conds ...gen.Condition) ITemplateRevisionDo Or(conds ...gen.Condition) ITemplateRevisionDo Select(conds ...field.Expr) ITemplateRevisionDo Where(conds ...gen.Condition) ITemplateRevisionDo Order(conds ...field.Expr) ITemplateRevisionDo Distinct(cols ...field.Expr) ITemplateRevisionDo Omit(cols ...field.Expr) ITemplateRevisionDo Join(table schema.Tabler, on ...field.Expr) ITemplateRevisionDo LeftJoin(table schema.Tabler, on ...field.Expr) ITemplateRevisionDo RightJoin(table schema.Tabler, on ...field.Expr) ITemplateRevisionDo Group(cols ...field.Expr) ITemplateRevisionDo Having(conds ...gen.Condition) ITemplateRevisionDo Limit(limit int) ITemplateRevisionDo Offset(offset int) ITemplateRevisionDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) ITemplateRevisionDo Unscoped() ITemplateRevisionDo Create(values ...*table.TemplateRevision) error CreateInBatches(values []*table.TemplateRevision, batchSize int) error Save(values ...*table.TemplateRevision) error First() (*table.TemplateRevision, error) Take() (*table.TemplateRevision, error) Last() (*table.TemplateRevision, error) Find() ([]*table.TemplateRevision, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.TemplateRevision, err error) FindInBatches(result *[]*table.TemplateRevision, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.TemplateRevision) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) ITemplateRevisionDo Assign(attrs ...field.AssignExpr) ITemplateRevisionDo Joins(fields ...field.RelationField) ITemplateRevisionDo Preload(fields ...field.RelationField) ITemplateRevisionDo FirstOrInit() (*table.TemplateRevision, error) FirstOrCreate() (*table.TemplateRevision, error) FindByPage(offset int, limit int) (result []*table.TemplateRevision, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) ITemplateRevisionDo UnderlyingDB() *gorm.DB schema.Tabler }
type ITemplateSetDo ¶
type ITemplateSetDo interface { gen.SubQuery Debug() ITemplateSetDo WithContext(ctx context.Context) ITemplateSetDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() ITemplateSetDo WriteDB() ITemplateSetDo As(alias string) gen.Dao Session(config *gorm.Session) ITemplateSetDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) ITemplateSetDo Not(conds ...gen.Condition) ITemplateSetDo Or(conds ...gen.Condition) ITemplateSetDo Select(conds ...field.Expr) ITemplateSetDo Where(conds ...gen.Condition) ITemplateSetDo Order(conds ...field.Expr) ITemplateSetDo Distinct(cols ...field.Expr) ITemplateSetDo Omit(cols ...field.Expr) ITemplateSetDo Join(table schema.Tabler, on ...field.Expr) ITemplateSetDo LeftJoin(table schema.Tabler, on ...field.Expr) ITemplateSetDo RightJoin(table schema.Tabler, on ...field.Expr) ITemplateSetDo Group(cols ...field.Expr) ITemplateSetDo Having(conds ...gen.Condition) ITemplateSetDo Limit(limit int) ITemplateSetDo Offset(offset int) ITemplateSetDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) ITemplateSetDo Unscoped() ITemplateSetDo Create(values ...*table.TemplateSet) error CreateInBatches(values []*table.TemplateSet, batchSize int) error Save(values ...*table.TemplateSet) error First() (*table.TemplateSet, error) Take() (*table.TemplateSet, error) Last() (*table.TemplateSet, error) Find() ([]*table.TemplateSet, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.TemplateSet, err error) FindInBatches(result *[]*table.TemplateSet, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.TemplateSet) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) ITemplateSetDo Assign(attrs ...field.AssignExpr) ITemplateSetDo Joins(fields ...field.RelationField) ITemplateSetDo Preload(fields ...field.RelationField) ITemplateSetDo FirstOrInit() (*table.TemplateSet, error) FirstOrCreate() (*table.TemplateSet, error) FindByPage(offset int, limit int) (result []*table.TemplateSet, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) ITemplateSetDo UnderlyingDB() *gorm.DB schema.Tabler }
type ITemplateSpaceDo ¶
type ITemplateSpaceDo interface { gen.SubQuery Debug() ITemplateSpaceDo WithContext(ctx context.Context) ITemplateSpaceDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() ITemplateSpaceDo WriteDB() ITemplateSpaceDo As(alias string) gen.Dao Session(config *gorm.Session) ITemplateSpaceDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) ITemplateSpaceDo Not(conds ...gen.Condition) ITemplateSpaceDo Or(conds ...gen.Condition) ITemplateSpaceDo Select(conds ...field.Expr) ITemplateSpaceDo Where(conds ...gen.Condition) ITemplateSpaceDo Order(conds ...field.Expr) ITemplateSpaceDo Distinct(cols ...field.Expr) ITemplateSpaceDo Omit(cols ...field.Expr) ITemplateSpaceDo Join(table schema.Tabler, on ...field.Expr) ITemplateSpaceDo LeftJoin(table schema.Tabler, on ...field.Expr) ITemplateSpaceDo RightJoin(table schema.Tabler, on ...field.Expr) ITemplateSpaceDo Group(cols ...field.Expr) ITemplateSpaceDo Having(conds ...gen.Condition) ITemplateSpaceDo Limit(limit int) ITemplateSpaceDo Offset(offset int) ITemplateSpaceDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) ITemplateSpaceDo Unscoped() ITemplateSpaceDo Create(values ...*table.TemplateSpace) error CreateInBatches(values []*table.TemplateSpace, batchSize int) error Save(values ...*table.TemplateSpace) error First() (*table.TemplateSpace, error) Take() (*table.TemplateSpace, error) Last() (*table.TemplateSpace, error) Find() ([]*table.TemplateSpace, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.TemplateSpace, err error) FindInBatches(result *[]*table.TemplateSpace, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.TemplateSpace) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) ITemplateSpaceDo Assign(attrs ...field.AssignExpr) ITemplateSpaceDo Joins(fields ...field.RelationField) ITemplateSpaceDo Preload(fields ...field.RelationField) ITemplateSpaceDo FirstOrInit() (*table.TemplateSpace, error) FirstOrCreate() (*table.TemplateSpace, error) FindByPage(offset int, limit int) (result []*table.TemplateSpace, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) ITemplateSpaceDo UnderlyingDB() *gorm.DB schema.Tabler }
type ITemplateVariableDo ¶
type ITemplateVariableDo interface { gen.SubQuery Debug() ITemplateVariableDo WithContext(ctx context.Context) ITemplateVariableDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() ITemplateVariableDo WriteDB() ITemplateVariableDo As(alias string) gen.Dao Session(config *gorm.Session) ITemplateVariableDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) ITemplateVariableDo Not(conds ...gen.Condition) ITemplateVariableDo Or(conds ...gen.Condition) ITemplateVariableDo Select(conds ...field.Expr) ITemplateVariableDo Where(conds ...gen.Condition) ITemplateVariableDo Order(conds ...field.Expr) ITemplateVariableDo Distinct(cols ...field.Expr) ITemplateVariableDo Omit(cols ...field.Expr) ITemplateVariableDo Join(table schema.Tabler, on ...field.Expr) ITemplateVariableDo LeftJoin(table schema.Tabler, on ...field.Expr) ITemplateVariableDo RightJoin(table schema.Tabler, on ...field.Expr) ITemplateVariableDo Group(cols ...field.Expr) ITemplateVariableDo Having(conds ...gen.Condition) ITemplateVariableDo Limit(limit int) ITemplateVariableDo Offset(offset int) ITemplateVariableDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) ITemplateVariableDo Unscoped() ITemplateVariableDo Create(values ...*table.TemplateVariable) error CreateInBatches(values []*table.TemplateVariable, batchSize int) error Save(values ...*table.TemplateVariable) error First() (*table.TemplateVariable, error) Take() (*table.TemplateVariable, error) Last() (*table.TemplateVariable, error) Find() ([]*table.TemplateVariable, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*table.TemplateVariable, err error) FindInBatches(result *[]*table.TemplateVariable, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*table.TemplateVariable) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) ITemplateVariableDo Assign(attrs ...field.AssignExpr) ITemplateVariableDo Joins(fields ...field.RelationField) ITemplateVariableDo Preload(fields ...field.RelationField) ITemplateVariableDo FirstOrInit() (*table.TemplateVariable, error) FirstOrCreate() (*table.TemplateVariable, error) FindByPage(offset int, limit int) (result []*table.TemplateVariable, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) ITemplateVariableDo UnderlyingDB() *gorm.DB schema.Tabler }
type Query ¶
type Query struct { App app AppTemplateBinding appTemplateBinding AppTemplateVariable appTemplateVariable ArchivedApp archivedApp Audit audit Client client ClientEvent clientEvent ClientQuery clientQuery Commit commit Config config ConfigItem configItem Content content Credential credential CredentialScope credentialScope Event event Group group GroupAppBind groupAppBind Hook hook HookRevision hookRevision IDGenerator iDGenerator Kv kv Release release ReleasedAppTemplate releasedAppTemplate ReleasedAppTemplateVariable releasedAppTemplateVariable ReleasedConfigItem releasedConfigItem ReleasedGroup releasedGroup ReleasedHook releasedHook ReleasedKv releasedKv ResourceLock resourceLock Strategy strategy Template template TemplateRevision templateRevision TemplateSet templateSet TemplateSpace templateSpace TemplateVariable templateVariable // contains filtered or unexported fields }
func (*Query) CurrentDatabase ¶
CurrentDatabase 当前连接的 DB 名称
func (*Query) Transaction ¶
func (*Query) WithContext ¶
type QueryTx ¶
func (*QueryTx) RollbackTo ¶
Source Files ¶
- app_template_bindings.gen.go
- app_template_variables.gen.go
- applications.gen.go
- archived_apps.gen.go
- audits.gen.go
- client_events.gen.go
- client_querys.gen.go
- clients.gen.go
- commits.gen.go
- config_items.gen.go
- configs.gen.go
- contents.gen.go
- credential_scopes.gen.go
- credentials.gen.go
- events.gen.go
- gen.go
- group_app_binds.gen.go
- groups.gen.go
- helper.go
- hook_revisions.gen.go
- hooks.gen.go
- id_generators.gen.go
- kvs.gen.go
- released_app_template_variables.gen.go
- released_app_templates.gen.go
- released_config_items.gen.go
- released_groups.gen.go
- released_hooks.gen.go
- released_kvs.gen.go
- releases.gen.go
- resource_locks.gen.go
- strategies.gen.go
- template_revisions.gen.go
- template_sets.gen.go
- template_spaces.gen.go
- template_variables.gen.go
- templates.gen.go
Click to show internal directories.
Click to hide internal directories.