mirror of
https://github.com/tangpanqing/aorm.git
synced 2025-10-30 02:31:45 +08:00
add method SelectCount ....
This commit is contained in:
6
aorm.go
6
aorm.go
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user