Documentation ¶
Index ¶
- Variables
- func InitDBConnect(option DBOptions) (*gorm.DB, error)
- func SetDefault(db *gorm.DB, opts ...gen.DOOption)
- type DBOptions
- 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
- type UsersInterface
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Q = new(Query) Users *users )
Functions ¶
Types ¶
type Query ¶
type Query struct { Users users // contains filtered or unexported fields }
func (*Query) Transaction ¶
func (*Query) WithContext ¶
type QueryTx ¶
func (*QueryTx) RollbackTo ¶
Click to show internal directories.
Click to hide internal directories.