| 123456789101112131415161718192021222324 |
- package dbengine
- import (
- db "bet24.com/servers/micros/dbengine/proto"
- )
- var CenterDB *dboperator
- func Run() {
- if CenterDB == nil {
- CenterDB = new(dboperator)
- }
- }
- type dboperator struct {
- }
- func (d *dboperator) ExecSql(sql string) [][]interface{} {
- return db.ExecuteRs(sql)
- }
- func (d *dboperator) ExecSqlJson(sql string) string {
- return db.Execute(sql)
- }
|