mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-04 06:54:45 +08:00
默认提取结点体json标识映射数据库表名
This commit is contained in:
@@ -347,6 +347,9 @@ func (slf *DBModule) Query(query string, args ...interface{}) DBResult {
|
||||
|
||||
func (slf *DBModule) QueryEx(query string, args ...interface{}) (*DataSetList, error) {
|
||||
datasetList := DataSetList{}
|
||||
datasetList.tag = "json"
|
||||
datasetList.blur = true
|
||||
|
||||
if slf.db == nil {
|
||||
service.GetLogger().Printf(service.LEVER_ERROR, "cannot connect database:%s", query)
|
||||
return &datasetList, fmt.Errorf("cannot connect database!")
|
||||
|
||||
Reference in New Issue
Block a user