module documentation

Routines to handle the string class registry used by declarative.

This system allows specification of classes and expressions used in _orm.relationship using strings.

Class ​_class​_resolver Undocumented
Class _​Get​Columns Undocumented
Class _​Get​Table Undocumented
Class _​Mod​NS Undocumented
Class _​Module​Marker Refers to a module name within _decl_class_registry.
Class _​Multiple​Class​Marker refers to multiple classes of the same name within _decl_class_registry.
Function ​_determine​_container Undocumented
Function ​_key​_is​_empty test if a key is empty of a certain object.
Function ​_resolver Undocumented
Function add​_class Add a class to the _decl_class_registry associated with the given declarative class.
Function remove​_class Undocumented
Variable ​_fallback​_dict Undocumented
Variable ​_registries Undocumented
def _determine_container(key, value):

Undocumented

def _key_is_empty(key, decl_class_registry, test):

test if a key is empty of a certain object.

used for unit tests against the registry to see if garbage collection is working.

"test" is a callable that will be passed an object should return True if the given object is the one we were looking for.

We can't pass the actual object itself b.c. this is for testing garbage collection; the caller will have to have removed references to the object itself.

def _resolver(cls, prop):

Undocumented

def add_class(classname, cls, decl_class_registry):
Add a class to the _decl_class_registry associated with the given declarative class.
def remove_class(classname, cls, decl_class_registry):

Undocumented

_fallback_dict =

Undocumented

_registries: set =

Undocumented