Documentation ¶
Index ¶
- type Base
- type BaseRead
- func (b *BaseRead) Count(ctx context.Context, tableName string, reqData *database.TableRequest) (totalData, totalFiltered int, err error)
- func (b *BaseRead) GetDetail(ctx context.Context, opts *database.QueryOpts) error
- func (b *BaseRead) GetDetailById(ctx context.Context, resultStruct interface{}, id int, ...) error
- func (b *BaseRead) GetList(ctx context.Context, opts *database.QueryOpts) error
- type BaseWrite
- func (b *BaseWrite) BulkInsert(ctx context.Context, data interface{}, trx ...*sql.Tx) (*database.CUDResponse, error)
- func (b *BaseWrite) Delete(ctx context.Context, condition map[string]interface{}, trx ...*sql.Tx) (*database.CUDResponse, error)
- func (b *BaseWrite) DeleteById(ctx context.Context, id int, trx ...*sql.Tx) (*database.CUDResponse, error)
- func (b *BaseWrite) Insert(ctx context.Context, data interface{}, trx ...*sql.Tx) (*database.CUDResponse, error)
- func (b *BaseWrite) Update(ctx context.Context, data interface{}, condition map[string]interface{}, ...) (*database.CUDResponse, error)
- func (b *BaseWrite) UpdateById(ctx context.Context, data interface{}, id int, trx ...*sql.Tx) (*database.CUDResponse, error)
- func (b *BaseWrite) Upsert(ctx context.Context, data interface{}, trx ...*sql.Tx) (*database.CUDResponse, error)
- type BaseWrites
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct { BaseWrites common.ReadRepo }
type BaseRead ¶
type BaseRead struct {
// contains filtered or unexported fields
}
func NewBaseRead ¶
func (*BaseRead) GetDetail ¶ added in v0.2.7
GetDetail - Query Detail with specific Query and return single data
type BaseWrite ¶
type BaseWrite struct {
// contains filtered or unexported fields
}
func NewBaseWrite ¶
func (*BaseWrite) BulkInsert ¶ added in v0.5.0
func (*BaseWrite) DeleteById ¶ added in v0.5.0
func (*BaseWrite) UpdateById ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.