schema

package
v1.18.14 Latest Latest
Warning

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

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

Documentation

Overview

Package schema contains the intermediate PeeringDB JSON schema and generate directives for the schema extraction pipeline.

The full pipeline:

  1. pdb-schema-extract parses PeeringDB Django Python source -> peeringdb.json
  2. pdb-schema-generate reads peeringdb.json -> ent/schema/*.go
  3. go generate ./ent runs entgo code generation

NOTE: The extraction step requires a local clone of the PeeringDB repository. Set PEERINGDB_REPO_PATH to the path of your local peeringdb/peeringdb checkout. If not set, the extraction step is skipped and the existing peeringdb.json is used.

Jump to

Keyboard shortcuts

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