Class
GomSession
Description [src]
abstract class Gom.Session : GObject.Object
{
/* No available fields */
}
A transaction-scoped context for loading, mutating, and tracking entities.
Sessions provide a sticky identity map for entities materialized through the same repository/driver pair. Repeated materialization of the same row within a session returns the same in-memory entity instance until the session is committed or rolled back.
Instance methods
gom_session_find_one
Finds the first entity of entity_type matching all provided property/value
pairs through self.
gom_session_find_one_with_properties
Finds the first entity of entity_type matching all provided property/value
pairs through self.
gom_session_list_entities
Builds a session-scoped query for entity_type, applies the optional
filter and ordering, and returns all matching entities as a list model.
gom_session_mutate
Runs mutation through the session’s backend and returns a future for the
mutation result.
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.