Documentation ¶
Index ¶
- func AboveOpr(name string, val interface{}) string
- func BelowOpr(name string, val interface{}) string
- func EqualOpr(name string, val interface{}) string
- func InOpr(name string, val interface{}) string
- func IsKeyWord(str string) bool
- func LikeOpr(name string, val interface{}) string
- func NotEqualOpr(name string, val interface{}) string
- func NotInOpr(name string, val interface{}) string
- func SortOpr(name string, ascSort bool) string
- type Builder
- func (s *Builder) BuildCount(filter model.Filter) (ret string, err error)
- func (s *Builder) BuildCreateRelationSchema(relationSchema string) (string, error)
- func (s *Builder) BuildCreateSchema() (ret string, err error)
- func (s *Builder) BuildDelete() (ret string, err error)
- func (s *Builder) BuildDeleteRelation(vField model.Field, rModel model.Model) (delRight, delRelation string, err error)
- func (s *Builder) BuildDropRelationSchema(relationSchema string) (string, error)
- func (s *Builder) BuildDropSchema() (string, error)
- func (s *Builder) BuildInsert() (ret string, err error)
- func (s *Builder) BuildInsertRelation(vField model.Field, rModel model.Model) (ret string, err error)
- func (s *Builder) BuildQuery(filter model.Filter) (ret string, err error)
- func (s *Builder) BuildQueryRelation(vField model.Field, rModel model.Model) (ret string, err error)
- func (s *Builder) BuildUpdate() (ret string, err error)
- type Config
- type Executor
- func (s *Executor) BeginTransaction() (err error)
- func (s *Executor) CheckTableExist(tableName string) (ret bool, err error)
- func (s *Executor) CommitTransaction() (err error)
- func (s *Executor) Connect() (err error)
- func (s *Executor) Execute(sql string) (rowsAffected int64, lastInsertID int64, err error)
- func (s *Executor) Finish()
- func (s *Executor) GetField(value ...interface{}) (err error)
- func (s *Executor) Next() bool
- func (s *Executor) Ping() (err error)
- func (s *Executor) Query(sql string) (err error)
- func (s *Executor) Release()
- func (s *Executor) RollbackTransaction() (err error)
- type OprFunc
- type Pool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶
Builder Builder
func (*Builder) BuildCount ¶
BuildCount build count
func (*Builder) BuildCreateRelationSchema ¶
BuildCreateRelationSchema Build CreateRelation Schema
func (*Builder) BuildCreateSchema ¶
BuildCreateSchema BuildCreateSchema
func (*Builder) BuildDelete ¶
BuildDelete BuildDelete
func (*Builder) BuildDeleteRelation ¶
func (s *Builder) BuildDeleteRelation(vField model.Field, rModel model.Model) (delRight, delRelation string, err error)
BuildDeleteRelation BuildDeleteRelation
func (*Builder) BuildDropRelationSchema ¶
BuildDropRelationSchema Build DropRelation Schema
func (*Builder) BuildDropSchema ¶
BuildDropSchema BuildDropSchema
func (*Builder) BuildInsert ¶
BuildInsert Build Insert
func (*Builder) BuildInsertRelation ¶
func (s *Builder) BuildInsertRelation(vField model.Field, rModel model.Model) (ret string, err error)
BuildInsertRelation Build Insert Relation
func (*Builder) BuildQuery ¶
BuildQuery build query sql
func (*Builder) BuildQueryRelation ¶
func (s *Builder) BuildQueryRelation(vField model.Field, rModel model.Model) (ret string, err error)
BuildQueryRelation build query relation sql
func (*Builder) BuildUpdate ¶
BuildUpdate Build Update
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
Executor Executor
func NewExecutor ¶
NewExecutor 新建一个数据访问对象
func (*Executor) BeginTransaction ¶
func (*Executor) CheckTableExist ¶
CheckTableExist Check Table Exist
func (*Executor) CommitTransaction ¶
func (*Executor) RollbackTransaction ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool executorPool
func (*Pool) CheckConfig ¶
func (*Pool) GetExecutor ¶
func (*Pool) Initialize ¶
Initialize initialize executor pool
func (*Pool) Uninitialized ¶ added in v1.3.0
func (s *Pool) Uninitialized()
Uninitialized uninitialized executor pool
Source Files ¶
Click to show internal directories.
Click to hide internal directories.