nodedb 0.4.0

Local-first, real-time, edge-to-cloud hybrid database for multi-modal workloads
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-License-Identifier: BUSL-1.1

//! Shared target-identity helpers for statement drivers that write into a
//! target document collection on behalf of another operation (`MERGE`,
//! `INSERT ... SELECT`, `UPDATE ... FROM`): primary-key classification,
//! surrogate assignment, `document_id` derivation, and the collection-name
//! de-qualifier. Factored here so these drivers cannot diverge on identity
//! derivation.

pub(crate) mod document_id;
pub(crate) mod naming;
pub(crate) mod pk;
pub(crate) mod surrogate;

pub(crate) use document_id::{derive_document_id, require_surrogate};
pub(crate) use naming::bare_collection_name;
pub(crate) use pk::{TargetPk, resolve_target_pk};
pub(crate) use surrogate::assign_target_surrogate;