sqlalchemy dbapi如何将args传递到游标?

时间:2018-11-20 10:14:32

标签: python sqlalchemy mysql-connector-python

https://github.com/zzzeek/sqlalchemy/blob/master/lib/sqlalchemy/engine/default.py

  def create_cursor(self):
        if self._use_server_side_cursor():
            self._is_server_side = True
            return self.create_server_side_cursor()
        else:
            self._is_server_side = False
            return self._dbapi_connection.cursor()

mysql连接器 connection.py

def cursor(self, buffered=None, raw=None, prepared=None, cursor_class=None,
           dictionary=None, named_tuple=None):

我要使用prepared = True

0 个答案:

没有答案