This commit is contained in:
aozhiwei 2024-08-30 17:01:08 +08:00
parent dc1b9c2f6d
commit cc336fdc0a

View File

@ -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
}