MCPcopy
hub / github.com/tortoise/tortoise-orm / root_nodes

Method root_nodes

tortoise/migrations/graph.py:113–119  ·  view source on GitHub ↗
(self, app_label: str | None = None)

Source from the content-addressed store, hash-verified

111 node.raise_error()
112
113 def root_nodes(self, app_label: str | None = None) -> list[MigrationKey]:
114 nodes = [
115 node.key
116 for node in self.node_map.values()
117 if not node.parents and (app_label is None or node.key.app_label == app_label)
118 ]
119 return sorted(nodes)
120
121 def leaf_nodes(self, app_label: str | None = None) -> list[MigrationKey]:
122 nodes = [

Callers 2

_check_keyMethod · 0.80
_migration_planMethod · 0.80

Calls 1

valuesMethod · 0.45

Tested by

no test coverage detected