Current Path: > > opt > cloudlinux > venv > lib64 > python3.11 > site-packages > sqlalchemy > > dialects > > mysql >
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__pycache__ | Directory | - | - | |
__init__.py | File | 2056 bytes | April 17 2025 13:10:58. | |
base.py | File | 107282 bytes | April 17 2025 13:10:58. | |
cymysql.py | File | 2244 bytes | April 17 2025 13:10:58. | |
dml.py | File | 4764 bytes | April 17 2025 13:10:58. | |
enumerated.py | File | 11307 bytes | April 17 2025 13:10:58. | |
gaerdbms.py | File | 3375 bytes | April 17 2025 13:10:58. | |
json.py | File | 2045 bytes | April 17 2025 13:10:58. | |
mysqlconnector.py | File | 7889 bytes | April 17 2025 13:10:58. | |
mysqldb.py | File | 8504 bytes | April 17 2025 13:10:58. | |
oursql.py | File | 8086 bytes | April 17 2025 13:10:58. | |
provision.py | File | 1269 bytes | April 17 2025 13:10:58. | |
pymysql.py | File | 2720 bytes | April 17 2025 13:10:58. | |
pyodbc.py | File | 3470 bytes | April 17 2025 13:10:58. | |
reflection.py | File | 18275 bytes | April 17 2025 13:10:58. | |
types.py | File | 24589 bytes | April 17 2025 13:10:58. | |
zxjdbc.py | File | 3970 bytes | April 17 2025 13:10:58. |
# mysql/pymysql.py # Copyright (C) 2005-2021 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php r""" .. dialect:: mysql+pymysql :name: PyMySQL :dbapi: pymysql :connectstring: mysql+pymysql://<username>:<password>@<host>/<dbname>[?<options>] :url: https://pymysql.readthedocs.io/ Unicode ------- Please see :ref:`mysql_unicode` for current recommendations on unicode handling. MySQL-Python Compatibility -------------------------- The pymysql DBAPI is a pure Python port of the MySQL-python (MySQLdb) driver, and targets 100% compatibility. Most behavioral notes for MySQL-python apply to the pymysql driver as well. """ # noqa from .mysqldb import MySQLDialect_mysqldb from ...util import langhelpers from ...util import py3k class MySQLDialect_pymysql(MySQLDialect_mysqldb): driver = "pymysql" description_encoding = None # generally, these two values should be both True # or both False. PyMySQL unicode tests pass all the way back # to 0.4 either way. See [ticket:3337] supports_unicode_statements = True supports_unicode_binds = True def __init__(self, server_side_cursors=False, **kwargs): super(MySQLDialect_pymysql, self).__init__(**kwargs) self.server_side_cursors = server_side_cursors @langhelpers.memoized_property def supports_server_side_cursors(self): try: cursors = __import__("pymysql.cursors").cursors self._sscursor = cursors.SSCursor return True except (ImportError, AttributeError): return False @classmethod def dbapi(cls): return __import__("pymysql") def create_connect_args(self, url, _translate_args=None): if _translate_args is None: _translate_args = dict(username="user") return super(MySQLDialect_pymysql, self).create_connect_args( url, _translate_args=_translate_args ) def is_disconnect(self, e, connection, cursor): if super(MySQLDialect_pymysql, self).is_disconnect( e, connection, cursor ): return True elif isinstance(e, self.dbapi.Error): str_e = str(e).lower() return ( "already closed" in str_e or "connection was killed" in str_e ) else: return False if py3k: def _extract_error_code(self, exception): if isinstance(exception.args[0], Exception): exception = exception.args[0] return exception.args[0] dialect = MySQLDialect_pymysql
SILENT KILLER Tool