Current Path: > > opt > hc_python > > > lib > python3.12 > 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 | 2206 bytes | April 04 2025 08:02:28. | |
aiomysql.py | File | 10013 bytes | April 04 2025 08:02:28. | |
asyncmy.py | File | 10081 bytes | April 04 2025 08:02:28. | |
base.py | File | 124483 bytes | April 04 2025 08:02:28. | |
cymysql.py | File | 2300 bytes | April 04 2025 08:02:28. | |
dml.py | File | 7768 bytes | April 04 2025 08:02:28. | |
enumerated.py | File | 8447 bytes | April 04 2025 08:02:28. | |
expression.py | File | 4121 bytes | April 04 2025 08:02:28. | |
json.py | File | 2269 bytes | April 04 2025 08:02:28. | |
mariadb.py | File | 1450 bytes | April 04 2025 08:02:28. | |
mariadbconnector.py | File | 8623 bytes | April 04 2025 08:02:28. | |
mysqlconnector.py | File | 5729 bytes | April 04 2025 08:02:28. | |
mysqldb.py | File | 9526 bytes | April 04 2025 08:02:28. | |
provision.py | File | 3575 bytes | April 04 2025 08:02:28. | |
pymysql.py | File | 4082 bytes | April 04 2025 08:02:28. | |
pyodbc.py | File | 4298 bytes | April 04 2025 08:02:28. | |
reflection.py | File | 22834 bytes | April 04 2025 08:02:28. | |
reserved_words.py | File | 9258 bytes | April 04 2025 08:02:28. | |
types.py | File | 24343 bytes | April 04 2025 08:02:28. |
# dialects/mysql/cymysql.py # Copyright (C) 2005-2025 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: https://www.opensource.org/licenses/mit-license.php # mypy: ignore-errors r""" .. dialect:: mysql+cymysql :name: CyMySQL :dbapi: cymysql :connectstring: mysql+cymysql://<username>:<password>@<host>/<dbname>[?<options>] :url: https://github.com/nakagami/CyMySQL .. note:: The CyMySQL dialect is **not tested as part of SQLAlchemy's continuous integration** and may have unresolved issues. The recommended MySQL dialects are mysqlclient and PyMySQL. """ # noqa from .base import BIT from .base import MySQLDialect from .mysqldb import MySQLDialect_mysqldb from ... import util class _cymysqlBIT(BIT): def result_processor(self, dialect, coltype): """Convert MySQL's 64 bit, variable length binary string to a long.""" def process(value): if value is not None: v = 0 for i in iter(value): v = v << 8 | i return v return value return process class MySQLDialect_cymysql(MySQLDialect_mysqldb): driver = "cymysql" supports_statement_cache = True description_encoding = None supports_sane_rowcount = True supports_sane_multi_rowcount = False supports_unicode_statements = True colspecs = util.update_copy(MySQLDialect.colspecs, {BIT: _cymysqlBIT}) @classmethod def import_dbapi(cls): return __import__("cymysql") def _detect_charset(self, connection): return connection.connection.charset def _extract_error_code(self, exception): return exception.errno def is_disconnect(self, e, connection, cursor): if isinstance(e, self.dbapi.OperationalError): return self._extract_error_code(e) in ( 2006, 2013, 2014, 2045, 2055, ) elif isinstance(e, self.dbapi.InterfaceError): # if underlying connection is closed, # this is the error you get return True else: return False dialect = MySQLDialect_cymysql
SILENT KILLER Tool