Module bulk_insert

Module bulk_insert 

Source
Expand description

Fluent API for fast bulk inserts into sources.

This module provides a builder pattern API that bypasses RQL parsing for maximum insert performance. All inserts within a single builder execute in one transaction (one request = one transaction).

§Example

use reifydb_type::params;

engine.bulk_insert(&identity)
    .table("namespace.users")
        .row(params!{ id: 1, name: "Alice" })
        .row(params!{ id: 2, name: "Bob" })
        .done()
    .ringbuffer("namespace.events")
        .row(params!{ timestamp: 12345, event_type: "login" })
        .done()
    .execute()?;

Structs§

BulkInsertBuilder
Main builder for bulk insert operations.
BulkInsertError
Bulk insert specific error codes and messages.
BulkInsertResult
Result of a bulk insert operation
RingBufferInsertResult
Result of inserting into a specific ring buffer
TableInsertResult
Result of inserting into a specific table
Trusted
Trusted mode - skips validation for pre-validated internal data
Validated
Validated mode - performs full type checking and constraint validation

Traits§

ValidationMode
Marker trait for validation mode (sealed)