Documentation
/ Guides
Database objects
hive-dbparse turns schema DDL into cards. No model is involved at any point.
cd tooling/hive-dbparse
uv run hivedbparse --src /path/to/ddl --out /path/to/output
Options: --src is the DDL tree root, --out is where cards and the manifest go, and
--limit-modules caps files per dialect and kind for a smoke run.
Oracle and DB2 dialects are supported. Parsing is done with a SQL AST parser, so what lands in a card is what the DDL says.
Why no model
A schema is already structured. A table has a name, columns with types, keys and constraints, and a model adds nothing except the possibility of getting one of them wrong.
The consequence matters more than the reasoning. A schema card is either exactly right or the run failed. There is no middle state where a column is subtly misdescribed, because nothing ever paraphrased anything.
The verification gate
See the verification gate for failure conditions, why they matter, and safe handling of generated output.
The on-demand tier
Database-object cards are excluded from the concept index. They do not appear in
GET /concepts or in list_concepts.
A real schema is large: many more database objects than concept cards, so including them would mean schema rows dominate the index and a search for a business concept returns table names.
They are reached through find_db_objects instead, which searches them directly, and resolved by
id like anything else:
GET /card/<product>/db/tables/ORDERS
GET /card/<product>/db/plsql/ORDER_TOTAL
The ids are path-derived, as with every card.
What a schema card carries
Columns with types and nullability, primary and foreign keys, indexes, and for routines the signature and dependencies. Foreign keys are rendered as links to the referenced table's card, so the schema graph is navigable rather than a flat list.
Re-running
The parse is idempotent and deterministic: the same DDL produces the same cards. Re-run it when the schema changes, and diff the output. Because nothing was paraphrased, the diff is exactly the schema change, which makes it a usable review artifact in a way an LLM-generated diff never is.
A manifest is written alongside the cards recording what was parsed, and a conflicts log records duplicate object definitions across source files.
Naming the product
--product sets the card id prefix and the product facet:
hivedbparse --src <ddl> --out <dir> --product widgets
# -> widgets/db/tables/ORDERS, product: widgets
It defaults to the neutral db. Set it: the value threads into foreign-key and trigger links as
well as the ids, so a schema parsed under the wrong product produces cards whose links resolve to
nothing.