31 lines
492 B
Go
31 lines
492 B
Go
package f5
|
|
|
|
type goDbPool struct {
|
|
dbPool
|
|
}
|
|
|
|
func (this *goDbPool) init(style DBStyle) {
|
|
this.dbPool.init(style)
|
|
}
|
|
|
|
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
|
|
}
|