Write operations for the decision graph database.
Summary
Functions
Attach a document to a node.
Create an edge between two nodes.
Create a new decision node with all metadata fields.
Delete an edge between two nodes.
Delete a node and all its edges.
Soft-delete a document (set detached_at timestamp).
Log a command to the command_log table.
Update document description.
Update a node's prompt in metadata_json.
Update a node's status.
Functions
Attach a document to a node.
Create an edge between two nodes.
Create a new decision node with all metadata fields.
Returns {:ok, id} on success, {:error, reason} on failure.
Delete an edge between two nodes.
Delete a node and all its edges.
Soft-delete a document (set detached_at timestamp).
Log a command to the command_log table.
Update document description.
Update a node's prompt in metadata_json.
Update a node's status.