MCPcopy
hub / github.com/sqlalchemy/alembic / get_revision

Method get_revision

alembic/script/base.py:283–293  ·  view source on GitHub ↗

Return the :class:`.Script` instance with the given rev id. .. seealso:: :meth:`.ScriptDirectory.get_revisions`

(self, id_: str)

Source from the content-addressed store, hash-verified

281 return cast(Set[Script], self.revision_map._get_all_current(id_))
282
283 def get_revision(self, id_: str) -> Script:
284 """Return the :class:`.Script` instance with the given rev id.
285
286 .. seealso::
287
288 :meth:`.ScriptDirectory.get_revisions`
289
290 """
291
292 with self._catch_revision_errors():
293 return cast(Script, self.revision_map.get_revision(id_))
294
295 def as_revision_number(
296 self, id_: Optional[str]

Callers 5

branchesFunction · 0.45
generate_revisionMethod · 0.45
get_current_headsMethod · 0.45
up_revisionMethod · 0.45
write_scriptFunction · 0.45

Calls 1

Tested by

no test coverage detected