Documentation ¶
Index ¶
- Variables
- func SetDefault(db *gorm.DB, opts ...gen.DOOption)
- type IPrintTaskDo
- type Query
- func (q *Query) Available() bool
- func (q *Query) Begin(opts ...*sql.TxOptions) *QueryTx
- 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) PrintTask *printTask )
Functions ¶
Types ¶
type IPrintTaskDo ¶
type IPrintTaskDo interface { gen.SubQuery Debug() IPrintTaskDo WithContext(ctx context.Context) IPrintTaskDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() IPrintTaskDo WriteDB() IPrintTaskDo As(alias string) gen.Dao Session(config *gorm.Session) IPrintTaskDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) IPrintTaskDo Not(conds ...gen.Condition) IPrintTaskDo Or(conds ...gen.Condition) IPrintTaskDo Select(conds ...field.Expr) IPrintTaskDo Where(conds ...gen.Condition) IPrintTaskDo Order(conds ...field.Expr) IPrintTaskDo Distinct(cols ...field.Expr) IPrintTaskDo Omit(cols ...field.Expr) IPrintTaskDo Join(table schema.Tabler, on ...field.Expr) IPrintTaskDo LeftJoin(table schema.Tabler, on ...field.Expr) IPrintTaskDo RightJoin(table schema.Tabler, on ...field.Expr) IPrintTaskDo Group(cols ...field.Expr) IPrintTaskDo Having(conds ...gen.Condition) IPrintTaskDo Limit(limit int) IPrintTaskDo Offset(offset int) IPrintTaskDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) IPrintTaskDo Unscoped() IPrintTaskDo Create(values ...*orm_gen.PrintTask) error CreateInBatches(values []*orm_gen.PrintTask, batchSize int) error Save(values ...*orm_gen.PrintTask) error First() (*orm_gen.PrintTask, error) Take() (*orm_gen.PrintTask, error) Last() (*orm_gen.PrintTask, error) Find() ([]*orm_gen.PrintTask, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*orm_gen.PrintTask, err error) FindInBatches(result *[]*orm_gen.PrintTask, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*orm_gen.PrintTask) (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) IPrintTaskDo Assign(attrs ...field.AssignExpr) IPrintTaskDo Joins(fields ...field.RelationField) IPrintTaskDo Preload(fields ...field.RelationField) IPrintTaskDo FirstOrInit() (*orm_gen.PrintTask, error) FirstOrCreate() (*orm_gen.PrintTask, error) FindByPage(offset int, limit int) (result []*orm_gen.PrintTask, 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) IPrintTaskDo UnderlyingDB() *gorm.DB schema.Tabler }
type Query ¶
type Query struct { PrintTask printTask // contains filtered or unexported fields }
func (*Query) Transaction ¶
func (*Query) WithContext ¶
Click to show internal directories.
Click to hide internal directories.