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) BuildBatchQuery(filter model.Filter) (ret string, err error)
- func (s *Builder) BuildCount(filter model.Filter) (ret string, err error)
- func (s *Builder) BuildCreateRelationSchema(fieldName string, relationInfo model.Model) (string, error)
- func (s *Builder) BuildCreateSchema() (ret string, err error)
- func (s *Builder) BuildDelete() (ret string, err error)
- func (s *Builder) BuildDeleteRelation(fieldName string, relationInfo model.Model) (delRight, delRelation string, err error)
- func (s *Builder) BuildDropRelationSchema(fieldName string, relationInfo model.Model) (string, error)
- func (s *Builder) BuildDropSchema() (string, error)
- func (s *Builder) BuildInsert() (ret string, err error)
- func (s *Builder) BuildInsertRelation(fieldName string, relationInfo model.Model) (ret string, err error)
- func (s *Builder) BuildQuery(filter model.Filter) (ret string, err error)
- func (s *Builder) BuildQueryRelation(fieldName string, relationInfo model.Model) (ret string, err error)
- func (s *Builder) BuildUpdate() (ret string, err error)
- func (s *Builder) GetInitializeValue(field model.Field) (ret interface{}, err error)
- func (s *Builder) GetRelationTableName(fieldName string, relationInfo model.Model) string
- func (s *Builder) GetTableName() string
- 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) Delete(sql string) (ret int64, err error)
- func (s *Executor) Execute(sql string) (ret int64, err error)
- func (s *Executor) Finish()
- func (s *Executor) GetField(value ...interface{}) (err error)
- func (s *Executor) Insert(sql string) (ret int64, 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)
- func (s *Executor) Update(sql string) (ret int64, err error)
- type Pool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder Builder
func (*Builder) BuildBatchQuery ¶
BuildBatchQuery BuildBatchQuery
func (*Builder) BuildCount ¶
BuildCount BuildCount
func (*Builder) BuildCreateRelationSchema ¶
func (s *Builder) BuildCreateRelationSchema(fieldName string, relationInfo model.Model) (string, error)
BuildCreateRelationSchema Build CreateRelation Schema
func (*Builder) BuildCreateSchema ¶
BuildCreateSchema BuildCreateSchema
func (*Builder) BuildDelete ¶
BuildDelete BuildDelete
func (*Builder) BuildDeleteRelation ¶
func (s *Builder) BuildDeleteRelation(fieldName string, relationInfo model.Model) (delRight, delRelation string, err error)
BuildDeleteRelation BuildDeleteRelation
func (*Builder) BuildDropRelationSchema ¶
func (s *Builder) BuildDropRelationSchema(fieldName string, relationInfo model.Model) (string, error)
BuildDropRelationSchema Build DropRelation Schema
func (*Builder) BuildDropSchema ¶
BuildDropSchema BuildDropSchema
func (*Builder) BuildInsert ¶
BuildInsert BuildInsert
func (*Builder) BuildInsertRelation ¶
func (s *Builder) BuildInsertRelation(fieldName string, relationInfo model.Model) (ret string, err error)
BuildInsertRelation BuildInsertRelation
func (*Builder) BuildQuery ¶
BuildQuery BuildQuery
func (*Builder) BuildQueryRelation ¶
func (s *Builder) BuildQueryRelation(fieldName string, relationInfo model.Model) (ret string, err error)
BuildQueryRelation BuildQueryRelation
func (*Builder) BuildUpdate ¶
BuildUpdate BuildUpdate
func (*Builder) GetInitializeValue ¶
func (*Builder) GetRelationTableName ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) HostAddress ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
Executor Executor
func NewExecutor ¶
NewExecutor 新建一个数据访问对象
func (*Executor) BeginTransaction ¶
BeginTransaction Begin Transaction
func (*Executor) CheckTableExist ¶
CheckTableExist CheckTableExist
func (*Executor) CommitTransaction ¶
CommitTransaction Commit Transaction
func (*Executor) RollbackTransaction ¶
RollbackTransaction Rollback Transaction
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool executorPool
func (*Pool) Initialize ¶
Initialize initialize executor pool