Skip to main content

atomic_request

Function atomic_request 

Source
pub fn atomic_request(
    prefix: Vec<Statement>,
    quads: &EncodedQuads,
    suffix: Vec<Statement>,
    caps: &Capabilities,
) -> Result<Request, usize>
Expand description

One atomic request: prefix, the inserts of quads, then suffix. Atomicity forbids splitting it, so Err(n) reports its n statements when they exceed the backend’s per-request limit (each statement is already below the SQL-length limit).