pdb-compat-allowlist

command
v1.23.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2026 License: BSD-3-Clause Imports: 14 Imported by: 0

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).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL