From d488a5957cf01b85120d0526748299c264283389 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 11 May 2020 16:05:01 +0800 Subject: [PATCH] bugfix --- sqlor/sor.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sqlor/sor.py b/sqlor/sor.py index 644bb2e..6728711 100644 --- a/sqlor/sor.py +++ b/sqlor/sor.py @@ -390,8 +390,17 @@ 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() ret = []