Documentation ¶
Index ¶
- func ExecTrans(ctx context.Context, builder standard.IBuilder, trans ...Task) error
- type CommonReq
- type Connecter
- type Dao
- func (d *Dao) Add(ctx context.Context, value Tabler) error
- func (d *Dao) Delete(ctx context.Context, param IQuery) error
- func (d *Dao) Filter(build standard.IBuilder, condition *CommonReq) standard.IBuilder
- func (d *Dao) Find(ctx context.Context, param IQuery, result Tabler) error
- func (d *Dao) Get(ctx context.Context, param IQuery, result interface{}) error
- func (d *Dao) GetBuilder() standard.IBuilder
- func (d *Dao) GetCommonReq() *CommonReq
- func (d *Dao) SetBuilder(builder standard.IBuilder)
- func (d *Dao) Update(ctx context.Context, param IQuery, update map[string]interface{}) error
- type IDao
- type IFilter
- type IQuery
- type Tabler
- type Task
- type TransError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dao ¶
type Dao struct { *CommonReq // contains filtered or unexported fields }
func (*Dao) GetCommonReq ¶
type IDao ¶
type IDao interface { // Tabler // Connecter IQuery // IFilter // 添加 Add(ctx context.Context, value Tabler) error // 更新 Update(ctx context.Context, param IQuery, update map[string]interface{}) error // 删除 Delete(ctx context.Context, param IQuery) error // 查询单条 Find(ctx context.Context, param IQuery, result Tabler) error // 查询多条 Get(ctx context.Context, param IQuery, result interface{}) error // builder GetBuilder() standard.IBuilder }
数据dao标准
type IFilter ¶
type IFilter interface { BuildFilterQuery(build standard.IBuilder, filter IQuery) standard.IBuilder Filter(build standard.IBuilder, condition *CommonReq) standard.IBuilder }
数据库过滤标准
type TransError ¶
func (TransError) Error ¶
func (t TransError) Error() string
Click to show internal directories.
Click to hide internal directories.