add method SelectCount ....

This commit is contained in:
tangpanqing
2022-12-16 18:54:10 +08:00
parent 1c93b49e73
commit bc96e8e9b3
3 changed files with 67 additions and 5 deletions

View File

@@ -17,6 +17,7 @@ type Executor struct {
LinkCommon LinkCommon
TableName string
SelectList []string
SelectExpList []ExpItem
GroupList []string
WhereList []WhereItem
JoinList []string
@@ -29,6 +30,11 @@ type Executor struct {
OpinionList []OpinionItem
}
type ExpItem struct {
Executor *Executor
FieldName string
}
// Use 使用数据库连接,或者事务
func Use(linkCommon LinkCommon) *Executor {
executor := &Executor{