MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / _get_convention

Function _get_convention

lib/sqlalchemy/sql/naming.py:139–146  ·  view source on GitHub ↗
(dict_, key)

Source from the content-addressed store, hash-verified

137
138
139def _get_convention(dict_, key):
140 for super_ in key.__mro__:
141 if super_ in _prefix_dict and _prefix_dict[super_] in dict_:
142 return dict_[_prefix_dict[super_]]
143 elif super_ in dict_:
144 return dict_[super_]
145 else:
146 return None
147
148
149def _constraint_name_for_table(const, table):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected