Documentation ¶
Index ¶
- type Base
- type BaseRead
- func (b *BaseRead) Count(ctx context.Context, reqData *database.TableRequest, tableName ...string) (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 interface{}, ...) error
- func (b *BaseRead) GetList(ctx context.Context, opts *database.QueryOpts) error
- type BaseWrite
- func (b *BaseWrite) BulkInsert(ctx context.Context, data interface{}, optTrx ...*sql.Tx) (*database.CUDResponse, error)
- func (b *BaseWrite) BulkUpdate(ctx context.Context, data interface{}, condition map[string][]interface{}, ...) (*database.CUDResponse, error)
- func (b *BaseWrite) Delete(ctx context.Context, condition map[string]interface{}, optTrx ...*sql.Tx) (*database.CUDResponse, error)
- func (b *BaseWrite) DeleteById(ctx context.Context, id interface{}, optTrx ...*sql.Tx) (*database.CUDResponse, error)
- func (b *BaseWrite) Insert(ctx context.Context, data interface{}, optTrx ...*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 interface{}, optTrx ...*sql.Tx) (*database.CUDResponse, error)
- func (b *BaseWrite) Upsert(ctx context.Context, data interface{}, condition map[string]interface{}, ...) (*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 ¶
type BaseWrite ¶
type BaseWrite struct {
// contains filtered or unexported fields
}
func NewBaseWrite ¶
func (*BaseWrite) BulkInsert ¶
func (*BaseWrite) BulkUpdate ¶
func (*BaseWrite) DeleteById ¶
func (*BaseWrite) UpdateById ¶
type BaseWrites ¶
Click to show internal directories.
Click to hide internal directories.