nodedb 0.4.0

Local-first, real-time, edge-to-cloud hybrid database for multi-modal workloads
Documentation
// SPDX-License-Identifier: BUSL-1.1

//! Database DDL surface remaining on the pgwire side.
//!
//! The database-scoped DDL family has been migrated to the protocol-neutral
//! router (`shared::ddl::neutral::database`). What remains here:
//!
//! - [`use_database`]: session-coupled (`USE DATABASE` mutates the
//!   per-connection current database + resets txn / prepared statements),
//!   intercepted in `execute_single_sql` before the DDL router.
//! - [`mirror`]: the mirror *runtime* helpers (read-consistency enforcement +
//!   DDL apply) that back the pgwire read path and the observer applier — not
//!   DDL router handlers.

pub mod mirror;
pub mod use_database;

pub use mirror::{
    MirrorDdlKind, MirrorReadOutcome, apply_mirror_ddl_entry, check_mirror_read_consistency,
};
pub use use_database::handle_use_database;