return (class_, tuple([row[column] for column in primary_key]), entity_name)
get_row_key = staticmethod(get_row_key)
- def begin(self, *obj):
- """deprecated"""
- raise exceptions.InvalidRequestError("Session.begin() is deprecated. use install_mod('legacy_session') to enable the old behavior")
- def commit(self, *obj):
- """deprecated"""
- raise exceptions.InvalidRequestError("Session.commit() is deprecated. use install_mod('legacy_session') to enable the old behavior")
-
def flush(self, objects=None):
"""flush all the object modifications present in this session to the database.
self.__is_executing = False
self.logger = logging.instance_logger(self)
- # TODO: shouldnt be able to register stuff here that is not in the enclosing Session
def register_object(self, obj, isdelete = False, listonly = False, postupdate=False, post_update_cols=None, **kwargs):
"""adds an object to this UOWTransaction to be updated in the database.
class DependencySorter(topological.QueueDependencySorter):
pass
-def mapper(*args, **params):
- return sqlalchemy.mapper(*args, **params)
-
def object_mapper(obj):
return sqlalchemy.object_mapper(obj)