Expand description
Database schema.
Structs§
- Store
Options - Options chosen when a store is created.
Constants§
- SCHEMA_
VERSION - Current schema version stored in
oxilite_meta. Version 2 keeps the schema registry as RDF in<oxilite:schema>(noschema_graphstable) and scopestbox_closure; opening a version 1 store migrates it (ops::open_job). - TBOX_
INDEX - TBOX_
TABLE - The TBox closure cache, one closure per scope (see
reason::closure_statements).
Functions§
- base_
schema - DDL statements creating (idempotently) the oxilite schema without versioning.
- create_
schema - DDL creating the oxilite schema, versioning included: a script for a new database (a D1
migration). Not idempotent when versioning is on (
ALTER TABLE); stores opened in place usebase_schemaand apply their level throughversion::change_statements. - schema_
sql - The schema as one SQL script (for
wrangler d1 migrations). - schema_
sql_ with - The schema plus extra DDL of optional modules (e.g.
oxilite-jsonld’s tables). - system_
graph_ statements - Statements writing the system graphs (see
StoreOptions::system_graphs) and rebuilding the schema caches they scope.