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

//! Shared error helper for the protocol-neutral constraint DDL handlers.

use crate::control::server::shared::ddl::result::DdlError;

/// Build a [`DdlError`] from an ANSI SQLSTATE code and message.
pub(super) fn err(code: &str, msg: &str) -> DdlError {
    DdlError {
        sqlstate: code.to_owned(),
        message: msg.to_owned(),
    }
}