Request Session

class falcon_sqla.session.RequestSession(*args, **kwargs)

Custom session that is associated with a Falcon request.

The Falcon request and response objects are passed inside the session’s info context as 'req' and 'resp' keys, respectively.

get_bind(mapper=None, clause=None)

Use the manager to get the appropriate bind when _manager_get_bind is defined. Otherwise, the default logic is used.

This method is called by SQLAlchemy.

identity_map: IdentityMap

A mapping of object identities to objects themselves.

Iterating through Session.identity_map.values() provides access to the full set of persistent objects (i.e., those that have row identity) currently in the session.

See also

identity_key() - helper function to produce the keys used in this dictionary.