query

package
v0.0.0-...-560c451 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Q                   = new(Query)
	HomeBonusPoolLog    *homeBonusPoolLog
	HomeBonusPoolRecord *homeBonusPoolRecord
	HomeRechargeLog     *homeRechargeLog
	HomeWithdrawLog     *homeWithdrawLog
	StatAPIOpLog        *statAPIOpLog
)

Functions

func SetDefault

func SetDefault(db *gorm.DB, opts ...gen.DOOption)

Types

type IHomeBonusPoolLogDo

type IHomeBonusPoolLogDo interface {
	gen.SubQuery
	Debug() IHomeBonusPoolLogDo
	WithContext(ctx context.Context) IHomeBonusPoolLogDo
	WithResult(fc func(tx gen.Dao)) gen.ResultInfo
	ReplaceDB(db *gorm.DB)
	ReadDB() IHomeBonusPoolLogDo
	WriteDB() IHomeBonusPoolLogDo
	As(alias string) gen.Dao
	Session(config *gorm.Session) IHomeBonusPoolLogDo
	Columns(cols ...field.Expr) gen.Columns
	Clauses(conds ...clause.Expression) IHomeBonusPoolLogDo
	Not(conds ...gen.Condition) IHomeBonusPoolLogDo
	Or(conds ...gen.Condition) IHomeBonusPoolLogDo
	Select(conds ...field.Expr) IHomeBonusPoolLogDo
	Where(conds ...gen.Condition) IHomeBonusPoolLogDo
	Order(conds ...field.Expr) IHomeBonusPoolLogDo
	Distinct(cols ...field.Expr) IHomeBonusPoolLogDo
	Omit(cols ...field.Expr) IHomeBonusPoolLogDo
	Join(table schema.Tabler, on ...field.Expr) IHomeBonusPoolLogDo
	LeftJoin(table schema.Tabler, on ...field.Expr) IHomeBonusPoolLogDo
	RightJoin(table schema.Tabler, on ...field.Expr) IHomeBonusPoolLogDo
	Group(cols ...field.Expr) IHomeBonusPoolLogDo
	Having(conds ...gen.Condition) IHomeBonusPoolLogDo
	Limit(limit int) IHomeBonusPoolLogDo
	Offset(offset int) IHomeBonusPoolLogDo
	Count() (count int64, err error)
	Scopes(funcs ...func(gen.Dao) gen.Dao) IHomeBonusPoolLogDo
	Unscoped() IHomeBonusPoolLogDo
	Create(values ...*model.HomeBonusPoolLog) error
	CreateInBatches(values []*model.HomeBonusPoolLog, batchSize int) error
	Save(values ...*model.HomeBonusPoolLog) error
	First() (*model.HomeBonusPoolLog, error)
	Take() (*model.HomeBonusPoolLog, error)
	Last() (*model.HomeBonusPoolLog, error)
	Find() ([]*model.HomeBonusPoolLog, error)
	FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*model.HomeBonusPoolLog, err error)
	FindInBatches(result *[]*model.HomeBonusPoolLog, batchSize int, fc func(tx gen.Dao, batch int) error) error
	Pluck(column field.Expr, dest interface{}) error
	Delete(...*model.HomeBonusPoolLog) (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) IHomeBonusPoolLogDo
	Assign(attrs ...field.AssignExpr) IHomeBonusPoolLogDo
	Joins(fields ...field.RelationField) IHomeBonusPoolLogDo
	Preload(fields ...field.RelationField) IHomeBonusPoolLogDo
	FirstOrInit() (*model.HomeBonusPoolLog, error)
	FirstOrCreate() (*model.HomeBonusPoolLog, error)
	FindByPage(offset int, limit int) (result []*model.HomeBonusPoolLog, 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) IHomeBonusPoolLogDo
	UnderlyingDB() *gorm.DB
	schema.Tabler
}

type IHomeBonusPoolRecordDo

type IHomeBonusPoolRecordDo interface {
	gen.SubQuery
	Debug() IHomeBonusPoolRecordDo
	WithContext(ctx context.Context) IHomeBonusPoolRecordDo
	WithResult(fc func(tx gen.Dao)) gen.ResultInfo
	ReplaceDB(db *gorm.DB)
	ReadDB() IHomeBonusPoolRecordDo
	WriteDB() IHomeBonusPoolRecordDo
	As(alias string) gen.Dao
	Session(config *gorm.Session) IHomeBonusPoolRecordDo
	Columns(cols ...field.Expr) gen.Columns
	Clauses(conds ...clause.Expression) IHomeBonusPoolRecordDo
	Not(conds ...gen.Condition) IHomeBonusPoolRecordDo
	Or(conds ...gen.Condition) IHomeBonusPoolRecordDo
	Select(conds ...field.Expr) IHomeBonusPoolRecordDo
	Where(conds ...gen.Condition) IHomeBonusPoolRecordDo
	Order(conds ...field.Expr) IHomeBonusPoolRecordDo
	Distinct(cols ...field.Expr) IHomeBonusPoolRecordDo
	Omit(cols ...field.Expr) IHomeBonusPoolRecordDo
	Join(table schema.Tabler, on ...field.Expr) IHomeBonusPoolRecordDo
	LeftJoin(table schema.Tabler, on ...field.Expr) IHomeBonusPoolRecordDo
	RightJoin(table schema.Tabler, on ...field.Expr) IHomeBonusPoolRecordDo
	Group(cols ...field.Expr) IHomeBonusPoolRecordDo
	Having(conds ...gen.Condition) IHomeBonusPoolRecordDo
	Limit(limit int) IHomeBonusPoolRecordDo
	Offset(offset int) IHomeBonusPoolRecordDo
	Count() (count int64, err error)
	Scopes(funcs ...func(gen.Dao) gen.Dao) IHomeBonusPoolRecordDo
	Unscoped() IHomeBonusPoolRecordDo
	Create(values ...*model.HomeBonusPoolRecord) error
	CreateInBatches(values []*model.HomeBonusPoolRecord, batchSize int) error
	Save(values ...*model.HomeBonusPoolRecord) error
	First() (*model.HomeBonusPoolRecord, error)
	Take() (*model.HomeBonusPoolRecord, error)
	Last() (*model.HomeBonusPoolRecord, error)
	Find() ([]*model.HomeBonusPoolRecord, error)
	FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*model.HomeBonusPoolRecord, err error)
	FindInBatches(result *[]*model.HomeBonusPoolRecord, batchSize int, fc func(tx gen.Dao, batch int) error) error
	Pluck(column field.Expr, dest interface{}) error
	Delete(...*model.HomeBonusPoolRecord) (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) IHomeBonusPoolRecordDo
	Assign(attrs ...field.AssignExpr) IHomeBonusPoolRecordDo
	Joins(fields ...field.RelationField) IHomeBonusPoolRecordDo
	Preload(fields ...field.RelationField) IHomeBonusPoolRecordDo
	FirstOrInit() (*model.HomeBonusPoolRecord, error)
	FirstOrCreate() (*model.HomeBonusPoolRecord, error)
	FindByPage(offset int, limit int) (result []*model.HomeBonusPoolRecord, 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) IHomeBonusPoolRecordDo
	UnderlyingDB() *gorm.DB
	schema.Tabler
}

type IHomeRechargeLogDo

type IHomeRechargeLogDo interface {
	gen.SubQuery
	Debug() IHomeRechargeLogDo
	WithContext(ctx context.Context) IHomeRechargeLogDo
	WithResult(fc func(tx gen.Dao)) gen.ResultInfo
	ReplaceDB(db *gorm.DB)
	ReadDB() IHomeRechargeLogDo
	WriteDB() IHomeRechargeLogDo
	As(alias string) gen.Dao
	Session(config *gorm.Session) IHomeRechargeLogDo
	Columns(cols ...field.Expr) gen.Columns
	Clauses(conds ...clause.Expression) IHomeRechargeLogDo
	Not(conds ...gen.Condition) IHomeRechargeLogDo
	Or(conds ...gen.Condition) IHomeRechargeLogDo
	Select(conds ...field.Expr) IHomeRechargeLogDo
	Where(conds ...gen.Condition) IHomeRechargeLogDo
	Order(conds ...field.Expr) IHomeRechargeLogDo
	Distinct(cols ...field.Expr) IHomeRechargeLogDo
	Omit(cols ...field.Expr) IHomeRechargeLogDo
	Join(table schema.Tabler, on ...field.Expr) IHomeRechargeLogDo
	LeftJoin(table schema.Tabler, on ...field.Expr) IHomeRechargeLogDo
	RightJoin(table schema.Tabler, on ...field.Expr) IHomeRechargeLogDo
	Group(cols ...field.Expr) IHomeRechargeLogDo
	Having(conds ...gen.Condition) IHomeRechargeLogDo
	Limit(limit int) IHomeRechargeLogDo
	Offset(offset int) IHomeRechargeLogDo
	Count() (count int64, err error)
	Scopes(funcs ...func(gen.Dao) gen.Dao) IHomeRechargeLogDo
	Unscoped() IHomeRechargeLogDo
	Create(values ...*model.HomeRechargeLog) error
	CreateInBatches(values []*model.HomeRechargeLog, batchSize int) error
	Save(values ...*model.HomeRechargeLog) error
	First() (*model.HomeRechargeLog, error)
	Take() (*model.HomeRechargeLog, error)
	Last() (*model.HomeRechargeLog, error)
	Find() ([]*model.HomeRechargeLog, error)
	FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*model.HomeRechargeLog, err error)
	FindInBatches(result *[]*model.HomeRechargeLog, batchSize int, fc func(tx gen.Dao, batch int) error) error
	Pluck(column field.Expr, dest interface{}) error
	Delete(...*model.HomeRechargeLog) (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) IHomeRechargeLogDo
	Assign(attrs ...field.AssignExpr) IHomeRechargeLogDo
	Joins(fields ...field.RelationField) IHomeRechargeLogDo
	Preload(fields ...field.RelationField) IHomeRechargeLogDo
	FirstOrInit() (*model.HomeRechargeLog, error)
	FirstOrCreate() (*model.HomeRechargeLog, error)
	FindByPage(offset int, limit int) (result []*model.HomeRechargeLog, 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) IHomeRechargeLogDo
	UnderlyingDB() *gorm.DB
	schema.Tabler
}

type IHomeWithdrawLogDo

type IHomeWithdrawLogDo interface {
	gen.SubQuery
	Debug() IHomeWithdrawLogDo
	WithContext(ctx context.Context) IHomeWithdrawLogDo
	WithResult(fc func(tx gen.Dao)) gen.ResultInfo
	ReplaceDB(db *gorm.DB)
	ReadDB() IHomeWithdrawLogDo
	WriteDB() IHomeWithdrawLogDo
	As(alias string) gen.Dao
	Session(config *gorm.Session) IHomeWithdrawLogDo
	Columns(cols ...field.Expr) gen.Columns
	Clauses(conds ...clause.Expression) IHomeWithdrawLogDo
	Not(conds ...gen.Condition) IHomeWithdrawLogDo
	Or(conds ...gen.Condition) IHomeWithdrawLogDo
	Select(conds ...field.Expr) IHomeWithdrawLogDo
	Where(conds ...gen.Condition) IHomeWithdrawLogDo
	Order(conds ...field.Expr) IHomeWithdrawLogDo
	Distinct(cols ...field.Expr) IHomeWithdrawLogDo
	Omit(cols ...field.Expr) IHomeWithdrawLogDo
	Join(table schema.Tabler, on ...field.Expr) IHomeWithdrawLogDo
	LeftJoin(table schema.Tabler, on ...field.Expr) IHomeWithdrawLogDo
	RightJoin(table schema.Tabler, on ...field.Expr) IHomeWithdrawLogDo
	Group(cols ...field.Expr) IHomeWithdrawLogDo
	Having(conds ...gen.Condition) IHomeWithdrawLogDo
	Limit(limit int) IHomeWithdrawLogDo
	Offset(offset int) IHomeWithdrawLogDo
	Count() (count int64, err error)
	Scopes(funcs ...func(gen.Dao) gen.Dao) IHomeWithdrawLogDo
	Unscoped() IHomeWithdrawLogDo
	Create(values ...*model.HomeWithdrawLog) error
	CreateInBatches(values []*model.HomeWithdrawLog, batchSize int) error
	Save(values ...*model.HomeWithdrawLog) error
	First() (*model.HomeWithdrawLog, error)
	Take() (*model.HomeWithdrawLog, error)
	Last() (*model.HomeWithdrawLog, error)
	Find() ([]*model.HomeWithdrawLog, error)
	FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*model.HomeWithdrawLog, err error)
	FindInBatches(result *[]*model.HomeWithdrawLog, batchSize int, fc func(tx gen.Dao, batch int) error) error
	Pluck(column field.Expr, dest interface{}) error
	Delete(...*model.HomeWithdrawLog) (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) IHomeWithdrawLogDo
	Assign(attrs ...field.AssignExpr) IHomeWithdrawLogDo
	Joins(fields ...field.RelationField) IHomeWithdrawLogDo
	Preload(fields ...field.RelationField) IHomeWithdrawLogDo
	FirstOrInit() (*model.HomeWithdrawLog, error)
	FirstOrCreate() (*model.HomeWithdrawLog, error)
	FindByPage(offset int, limit int) (result []*model.HomeWithdrawLog, 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) IHomeWithdrawLogDo
	UnderlyingDB() *gorm.DB
	schema.Tabler
}

type IStatAPIOpLogDo

type IStatAPIOpLogDo interface {
	gen.SubQuery
	Debug() IStatAPIOpLogDo
	WithContext(ctx context.Context) IStatAPIOpLogDo
	WithResult(fc func(tx gen.Dao)) gen.ResultInfo
	ReplaceDB(db *gorm.DB)
	ReadDB() IStatAPIOpLogDo
	WriteDB() IStatAPIOpLogDo
	As(alias string) gen.Dao
	Session(config *gorm.Session) IStatAPIOpLogDo
	Columns(cols ...field.Expr) gen.Columns
	Clauses(conds ...clause.Expression) IStatAPIOpLogDo
	Not(conds ...gen.Condition) IStatAPIOpLogDo
	Or(conds ...gen.Condition) IStatAPIOpLogDo
	Select(conds ...field.Expr) IStatAPIOpLogDo
	Where(conds ...gen.Condition) IStatAPIOpLogDo
	Order(conds ...field.Expr) IStatAPIOpLogDo
	Distinct(cols ...field.Expr) IStatAPIOpLogDo
	Omit(cols ...field.Expr) IStatAPIOpLogDo
	Join(table schema.Tabler, on ...field.Expr) IStatAPIOpLogDo
	LeftJoin(table schema.Tabler, on ...field.Expr) IStatAPIOpLogDo
	RightJoin(table schema.Tabler, on ...field.Expr) IStatAPIOpLogDo
	Group(cols ...field.Expr) IStatAPIOpLogDo
	Having(conds ...gen.Condition) IStatAPIOpLogDo
	Limit(limit int) IStatAPIOpLogDo
	Offset(offset int) IStatAPIOpLogDo
	Count() (count int64, err error)
	Scopes(funcs ...func(gen.Dao) gen.Dao) IStatAPIOpLogDo
	Unscoped() IStatAPIOpLogDo
	Create(values ...*model.StatAPIOpLog) error
	CreateInBatches(values []*model.StatAPIOpLog, batchSize int) error
	Save(values ...*model.StatAPIOpLog) error
	First() (*model.StatAPIOpLog, error)
	Take() (*model.StatAPIOpLog, error)
	Last() (*model.StatAPIOpLog, error)
	Find() ([]*model.StatAPIOpLog, error)
	FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*model.StatAPIOpLog, err error)
	FindInBatches(result *[]*model.StatAPIOpLog, batchSize int, fc func(tx gen.Dao, batch int) error) error
	Pluck(column field.Expr, dest interface{}) error
	Delete(...*model.StatAPIOpLog) (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) IStatAPIOpLogDo
	Assign(attrs ...field.AssignExpr) IStatAPIOpLogDo
	Joins(fields ...field.RelationField) IStatAPIOpLogDo
	Preload(fields ...field.RelationField) IStatAPIOpLogDo
	FirstOrInit() (*model.StatAPIOpLog, error)
	FirstOrCreate() (*model.StatAPIOpLog, error)
	FindByPage(offset int, limit int) (result []*model.StatAPIOpLog, 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) IStatAPIOpLogDo
	UnderlyingDB() *gorm.DB
	schema.Tabler
}

type Query

type Query struct {
	HomeBonusPoolLog    homeBonusPoolLog
	HomeBonusPoolRecord homeBonusPoolRecord
	HomeRechargeLog     homeRechargeLog
	HomeWithdrawLog     homeWithdrawLog
	StatAPIOpLog        statAPIOpLog
	// contains filtered or unexported fields
}

func Use

func Use(db *gorm.DB, opts ...gen.DOOption) *Query

func (*Query) Available

func (q *Query) Available() bool

func (*Query) Begin

func (q *Query) Begin(opts ...*sql.TxOptions) *QueryTx

func (*Query) ReadDB

func (q *Query) ReadDB() *Query

func (*Query) ReplaceDB

func (q *Query) ReplaceDB(db *gorm.DB) *Query

func (*Query) Transaction

func (q *Query) Transaction(fc func(tx *Query) error, opts ...*sql.TxOptions) error

func (*Query) WithContext

func (q *Query) WithContext(ctx context.Context) *queryCtx

func (*Query) WriteDB

func (q *Query) WriteDB() *Query

type QueryTx

type QueryTx struct {
	*Query
	Error error
}

func (*QueryTx) Commit

func (q *QueryTx) Commit() error

func (*QueryTx) Rollback

func (q *QueryTx) Rollback() error

func (*QueryTx) RollbackTo

func (q *QueryTx) RollbackTo(name string) error

func (*QueryTx) SavePoint

func (q *QueryTx) SavePoint(name string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL