cjm-capability-graph-sqlite
A local, file-backed context-graph storage capability for the cjm-substrate runtime that implements graph storage, traversal, and querying using SQLite.
Modules
cjm_capability_graph_sqlite.__init__cjm_capability_graph_sqlite.capability— Capability implementation for Context Graph using SQLite.cjm_capability_graph_sqlite.query_translation— The per-backend translation of the typed query expressions (pass-2 Thread 5; stage 4): NodeQuery/EdgeQuery -> parameterized SQLite SQL over the nodes/edges schema. THIS module is what makes the typed surface portable - the expression is domain- and backend-neutral; every backend tool owns a translation like this one (the ratified stage-4 split: backend owns translation; the adapter stays generic). Pure functions, unit-tested against an in-memory DB with the production schema - no capability runtime needed.
API
cjm_capability_graph_sqlite.capability
SQLiteGraphCapabilityclass — Local, file-backed Context Graph implementation using SQLite.SQLiteGraphCapabilityConfigclass — Configuration for SQLite Graph Capability.ingest_sourcesfunction — The source HEADs this db was ingested from, on a fresh read-only connection. A db builtintegrity_checkfunction — Backend self-check (stage 4; the G3 corruption find institutionalized):query_edgesfunction — Execute a typed edge query (stage 4) — same contract asquery_nodes.query_nodesfunction — Execute a typed node query (stage 4) — translated to parameterized SQLraw_queryfunction — Execute the raw escape — refuses backend mismatches (non-portable byrecord_ingest_sourcesfunction — Record the source HEADs this db was ingested from, REPLACING any earlier record
cjm_capability_graph_sqlite.query_translation
decode_projected_rowfunction — Zip a projected row, decoding every property column from its JSON representation.translate_edge_queryfunction — Translate anEdgeQueryto parameterized SQLite SQL.translate_node_queryfunction — Translate aNodeQueryto parameterized SQLite SQL.
Dependencies
Depends on: cjm-context-graph-primitives, cjm-substrate
Metadata
Release files for cjm-capability-graph-sqlite 0.0.30
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cjm_capability_graph_sqlite-0.0.30.tar.gz | 30.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cjm_capability_graph_sqlite-0.0.30-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 54.7 kB
Release files / cjm_capability_graph_sqlite-0.0.30.tar.gz
| Download URL | cjm_capability_graph_sqlite-0.0.30.tar.gz |
|---|---|
| Size | 30.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
01ad7e7ff0c2b1bad94daedbe9364906ffbc3fade44ee7747b2cfacb17921639
|
|
BLAKE2b-256 checksum How to use checksums |
0b5859478d9a075a802599905b8451655d9d49197ae8176528b404b797f537d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / cjm_capability_graph_sqlite-0.0.30-py3-none-any.whl
| Download URL | cjm_capability_graph_sqlite-0.0.30-py3-none-any.whl |
|---|---|
| Size | 23.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0c00b53ae4eec2c271e71114713e6003c3e1d527efc3dc0be567c22df45d525
|
|
BLAKE2b-256 checksum How to use checksums |
1a53ee3b5e865feef7b024fc37f63559501e0c2c9446a50bb32ca393d445964b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|