Current Path: > > opt > cloudlinux > venv > lib64 > python3.11 > site-packages > > sqlalchemy > engine
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 | 25330 bytes | April 17 2025 13:10:58. | |
base.py | File | 87152 bytes | April 17 2025 13:10:58. | |
default.py | File | 56137 bytes | April 17 2025 13:10:58. | |
interfaces.py | File | 48491 bytes | April 17 2025 13:10:58. | |
reflection.py | File | 34712 bytes | April 17 2025 13:10:58. | |
result.py | File | 54716 bytes | April 17 2025 13:10:58. | |
strategies.py | File | 9847 bytes | April 17 2025 13:10:58. | |
threadlocal.py | File | 4764 bytes | April 17 2025 13:10:58. | |
url.py | File | 9445 bytes | April 17 2025 13:10:58. | |
util.py | File | 2421 bytes | April 17 2025 13:10:58. |
# engine/util.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 from .. import util def connection_memoize(key): """Decorator, memoize a function in a connection.info stash. Only applicable to functions which take no arguments other than a connection. The memo will be stored in ``connection.info[key]``. """ @util.decorator def decorated(fn, self, connection): connection = connection.connect() try: return connection.info[key] except KeyError: connection.info[key] = val = fn(self, connection) return val return decorated def py_fallback(): def _distill_params(multiparams, params): # noqa r"""Given arguments from the calling form \*multiparams, \**params, return a list of bind parameter structures, usually a list of dictionaries. In the case of 'raw' execution which accepts positional parameters, it may be a list of tuples or lists. """ if not multiparams: if params: return [params] else: return [] elif len(multiparams) == 1: zero = multiparams[0] if isinstance(zero, (list, tuple)): if ( not zero or hasattr(zero[0], "__iter__") and not hasattr(zero[0], "strip") ): # execute(stmt, [{}, {}, {}, ...]) # execute(stmt, [(), (), (), ...]) return zero else: # execute(stmt, ("value", "value")) return [zero] elif hasattr(zero, "keys"): # execute(stmt, {"key":"value"}) return [zero] else: # execute(stmt, "value") return [[zero]] else: if hasattr(multiparams[0], "__iter__") and not hasattr( multiparams[0], "strip" ): return multiparams else: return [multiparams] return locals() try: from sqlalchemy.cutils import _distill_params # noqa except ImportError: globals().update(py_fallback())
SILENT KILLER Tool