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