diff --git a/godbpool.go b/godbpool.go index b8f0a15..90827ae 100644 --- a/godbpool.go +++ b/godbpool.go @@ -11,3 +11,20 @@ func (this *goDbPool) init(style DBStyle) { func (this *goDbPool) unInit() { this.dbPool.unInit() } + +func (this *goDbPool) NewOrmSelect( + dataSource string, + tblName string, + whereKv [][]string) (error, *DataSet) { + var resultErr error + var resultDs *DataSet + this.OrmSelect( + dataSource, + tblName, + whereKv, + func (err error, ds *DataSet) { + resultErr = err + resultDs = ds + }) + return resultErr, resultDs +}