Documentation
¶
Overview ¶
Package schema contains the intermediate PeeringDB JSON schema and generate directives for the schema extraction pipeline.
The full pipeline:
- pdb-schema-extract parses PeeringDB Django Python source -> peeringdb.json
- pdb-schema-generate reads peeringdb.json -> ent/schema/*.go
- 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.
Click to show internal directories.
Click to hide internal directories.