Skip to main content

Module store

Module store 

Source
Expand description

Node and edge CRUD operations.

Functionsยง

append_edge
Append an edge (INSERT OR IGNORE โ€” duplicates by ID are skipped).
delete_edge
Delete an edge by ID.
delete_node
Delete a node by ID. Returns whether a row was deleted.
edges_among
Read edges whose source AND target are both in ids โ€” the induced subgraph over a candidate node set.
edges_for_node
Read edges where the given node is source or target.
list_node_ids
List all node IDs.
read_edges
Read edges, capped at limit.
read_node
Read a single node by ID. Returns None if not found.
read_nodes
Batch-read multiple nodes by ID.
read_nodes_limited
Read nodes with optional limit, ordered by updated DESC.
remove_edges_for_node
Delete all edges connected to a node (source or target).
upsert_node
Insert or replace a node.