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

View File

@ -390,7 +390,16 @@ class SQLor(object):
await self.execute(sql,NS,callback)
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):
sqlstring = self.tablesSQL()