Skip to main content

Module graph

Module graph 

Source
Expand description

Schema graph – represents tables, columns, and their dependencies.

We use petgraph::DiGraph where:

  • Each node is a SchemaNode (Table or Column)
  • Each edge is a SchemaEdge (ForeignKey, Contains, DependsOn)

The graph lets us answer questions like: “If I drop table X, what else breaks?”

Structs§

SchemaGraph

Enums§

SchemaEdge
SchemaNode