mirror of
https://github.com/tangpanqing/aorm.git
synced 2025-10-06 16:36:57 +08:00
change package
This commit is contained in:
38
executor/executor.go
Normal file
38
executor/executor.go
Normal file
@@ -0,0 +1,38 @@
|
||||
package executor
|
||||
|
||||
import (
|
||||
"github.com/tangpanqing/aorm/model"
|
||||
)
|
||||
|
||||
// ExpItem 将某子语句重命名为某字段
|
||||
type ExpItem struct {
|
||||
Executor **Executor
|
||||
FieldName string
|
||||
}
|
||||
|
||||
// Executor 查询记录所需要的条件
|
||||
type Executor struct {
|
||||
//数据库操作连接
|
||||
LinkCommon model.LinkCommon
|
||||
|
||||
//查询参数
|
||||
tableName string
|
||||
selectList []string
|
||||
selectExpList []*ExpItem
|
||||
groupList []string
|
||||
whereList []WhereItem
|
||||
joinList []string
|
||||
havingList []WhereItem
|
||||
orderList []string
|
||||
offset int
|
||||
pageSize int
|
||||
isDebug bool
|
||||
isLockForUpdate bool
|
||||
|
||||
//sql与参数
|
||||
sql string
|
||||
paramList []interface{}
|
||||
|
||||
//驱动名字
|
||||
driverName string
|
||||
}
|
Reference in New Issue
Block a user