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
// SPDX-License-Identifier: BUSL-1.1

//! Shared key type for per-field spatial R-tree indexes.

use crate::types::TenantId;
use nodedb_types::DatabaseId;

/// Identifies a per-field spatial R-tree index: `(database, tenant,
/// collection, field)`. Shared by `spatial_indexes`/undo-entry capture sites
/// so the 4-tuple isn't spelled out at every call site.
pub(in crate::data::executor) type SpatialIndexKey = (DatabaseId, TenantId, String, String);