Skip to main content

CREATE_NAMESPACES_TABLE

Constant CREATE_NAMESPACES_TABLE 

Source
pub const CREATE_NAMESPACES_TABLE: &str = "
CREATE TABLE IF NOT EXISTS namespaces (
    name TEXT PRIMARY KEY,
    created_at TEXT NOT NULL,
    last_seen TEXT NOT NULL,
    record BLOB NOT NULL
)";
Expand description

Durable minted-on-use namespace registry (Control-Plane Phase 1).

One row per namespace keyed by name. created_at/last_seen are RFC 3339 text (matching the package/timer/outbox encodings); record holds the opaque NamespaceRecord codec bytes that are the store’s truth (only decoded to satisfy list). The single-node libSQL path upserts locally with no quorum to reach.