Skip to main content

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

  • SQLiteGraphCapability class — Local, file-backed Context Graph implementation using SQLite.
  • SQLiteGraphCapabilityConfig class — Configuration for SQLite Graph Capability.
  • explain_query function — The planner's answer for a typed query, without running it -- the instrument's plan
  • ingest_sources function — The source HEADs this db was ingested from, on a fresh read-only connection. A db built
  • integrity_check function — Backend self-check (stage 4; the G3 corruption find institutionalized):
  • journal_cursors function — This db's applied cursors, on a fresh read-only connection. A db built before the table
  • query_edges function — Execute a typed edge query (stage 4) — same contract as query_nodes.
  • query_nodes function — Execute a typed node query (stage 4) — translated to parameterized SQL
  • raw_query function — Execute the raw escape — refuses backend mismatches (non-portable by
  • record_ingest_sources function — Record the source HEADs this db was ingested from, REPLACING any earlier record
  • record_journal_cursor function — Record how far into one journal family this db has applied, REPLACING that family's

cjm_capability_graph_sqlite.query_translation

  • decode_projected_row function — Zip a projected row, decoding every property column from its JSON representation.
  • translate_edge_query function — Translate an EdgeQuery to parameterized SQLite SQL.
  • translate_node_query function — Translate a NodeQuery to parameterized SQLite SQL.

Dependencies

Depends on: cjm-context-graph-primitives, cjm-substrate

Metadata

Release files for cjm-capability-graph-sqlite 0.0.34

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cjm-capability-graph-sqlite 0.0.34
File Size Uploaded
cjm_capability_graph_sqlite-0.0.34.tar.gz 33.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cjm-capability-graph-sqlite 0.0.34
File Interpreter ABI Platform
cjm_capability_graph_sqlite-0.0.34-py3-none-any.whl Python 3 none any Details

Total release size: 59.6 kB

Release files / cjm_capability_graph_sqlite-0.0.34.tar.gz

Download URL cjm_capability_graph_sqlite-0.0.34.tar.gz
Size 33.7 kB
Tags Source
SHA-256 checksum
How to use checksums
25bb919b32cc621dfe75ea351c13fc83c32bf068183a99df082842ccc9e26633
BLAKE2b-256 checksum
How to use checksums
a6716b4a556dab945eb6a81007ff55b90dcd6fd545b3702433aa05cd4803425a
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.34-py3-none-any.whl

Download URL cjm_capability_graph_sqlite-0.0.34-py3-none-any.whl
Size 25.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c15697fc940ab2cbc913ebe6a3a8ef1c7e731e161834139df7077673954cc246
BLAKE2b-256 checksum
How to use checksums
9ac38ef3024511e02fa25a2cd5b0c9a4e22fb576e389eca82e01a96d0f90ec8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release history Release notifications | RSS feed

This release

0.0.34 This release

2 release files

0.0.33

2 release files

0.0.32

2 release files

0.0.31

2 release files

0.0.30

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page