Documentation ¶
Overview ¶
gPlus gorm封装
Index ¶
- func Initialize(c mysql.Configure) error
- type FieldMap
- type Option
- type Querier
- func (q *Querier[M]) Count(params FieldMap) (int64, error)
- func (q *Querier[T]) In(params FieldMap) ([]T, error)
- func (q *Querier[T]) ItemByField(params FieldMap) (*T, error)
- func (q *Querier[T]) List(params FieldMap) ([]T, error)
- func (q *Querier[T]) ListByField(params FieldMap) (T, error)
- func (q *Querier[T]) Save(m *T) error
- func (q *Querier[T]) WithTxOption(tx *gorm.DB) *Querier[T]
- type Query
- type T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
Types ¶
type Querier ¶
type Querier[M T] struct { // contains filtered or unexported fields }
func (*Querier[T]) ItemByField ¶
func (*Querier[T]) ListByField ¶ added in v0.1.15
Click to show internal directories.
Click to hide internal directories.