Documentation
¶
Overview ¶
Command pdb-compat-allowlist reads the ent schema graph and emits internal/pdbcompat/allowlist_gen.go with:
- Path A per-entity prepare_query allowlists,
- FilterExcludes (upstream FILTER_EXCLUDE parity), and
- Path B edge map keyed by PeeringDB type string (codegen-time static emission replaces a runtime client.Schema.Tables walk — deterministic, testable, no init-order coupling, freshness-gated by the existing go-generate drift check).
Invoked from ent/generate.go after ent codegen so the gen.Graph reflects the latest schema annotations.
Usage:
go run ./cmd/pdb-compat-allowlist
Working directory is expected to be the repo root; paths are relative to that (./ent/schema input, ./internal/pdbcompat/ allowlist_gen.go output).
Click to show internal directories.
Click to hide internal directories.