Skip to main content

create_notes_atomic_with_extra_statements

Function create_notes_atomic_with_extra_statements 

Source
pub async fn create_notes_atomic_with_extra_statements(
    runtime: &KhiveRuntime,
    specs: Vec<AtomicNoteSpec<'_>>,
    attachments: &[NewAttachment],
    extra_statements: Vec<SqlStatement>,
) -> RuntimeResult<(Vec<Note>, EmbeddingTruncationReport)>
Expand description

Like create_notes_atomic_with_attachments, and also commit extra_statements in the same writer transaction, after the last note’s plan. Each statement must affect exactly one row; if any statement fails, no note and no extra row is left behind.