change package

This commit is contained in:
tangpanqing
2022-12-22 10:20:12 +08:00
parent e925a95912
commit 2cb05ccc04
9 changed files with 589 additions and 946 deletions

38
executor/executor.go Normal file
View 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
}