This commit is contained in:
yumoqing 2022-09-07 23:53:47 +08:00
parent e14b9dfce5
commit aac61c2bb3
2 changed files with 1 additions and 9 deletions

View File

@ -1,5 +1,4 @@
# -*- coding:utf8 -*-
import pymysql
from appPublic.argsConvert import ArgsConvert,ConditionConvert
from .sor import SQLor
@ -52,8 +51,6 @@ class MySqlor(SQLor):
def isMe(self,name):
if name=='pymysql':
return True
if name=='aiomysql':
return True
return False
def grammar(self):
@ -61,9 +58,6 @@ class MySqlor(SQLor):
'select':select_stmt,
}
def _opendb(self):
self.conn = pymysql.connect(**self.dbdesc['kwargs'])
def placeHolder(self,varname,pos=None):
if varname=='__mainsql__' :
return ''

View File

@ -1,4 +1,2 @@
# fixed sor.py C function bug.
__version__ = "0.1.2"
# use PyMySQL to replace mysql-connector
# __version__ = '0.1.1'
__version__ = "0.1.3"