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) 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) Delete(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{}, 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 ¶
Click to show internal directories.
Click to hide internal directories.