This commit is contained in:
yumoqing 2020-05-11 16:05:01 +08:00
parent 777b15e5f8
commit d488a5957c

View File

@ -390,8 +390,17 @@ class SQLor(object):
await self.execute(sql,NS,callback) await self.execute(sql,NS,callback)
async def sqlExecute(self,desc,NS): async def sqlExecute(self,desc,NS):
await self.execute(sql,NS,None) await self.execute(desc,NS,None)
async def sqlExe(self,sql,ns):
desc = {
"sql_string":sql
}
ret = []
await self.execute(desc,ns,
callback=lambda(x):ret.append(DictObject(**x)))
return ret
async def tables(self): async def tables(self):
sqlstring = self.tablesSQL() sqlstring = self.tablesSQL()
ret = [] ret = []