MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / get_engine

Method get_engine

lib/sqlalchemy/ext/serializer.py:133–139  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

131 self.engine = engine
132
133 def get_engine(self):
134 if self.engine:
135 return self.engine
136 elif self.scoped_session and self.scoped_session().bind:
137 return self.scoped_session().bind
138 else:
139 return None
140
141 def persistent_load(self, id_):
142 m = our_ids.match(str(id_))

Callers 1

persistent_loadMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected