relate-executor 1.5.0

In-memory graph and Cypher physical executor
Documentation
//! The wording of the `LOAD CSV` source errors that more than one `csv`
//! module raises: the one over-limit message a local file and a remote body
//! share, and the remote capability's own denials (ADR-0723). One home, so the
//! local policy and the remote hook import it one way and neither imports the
//! other. Every message is generic and free of the source (ADR-0081's no-leak
//! rule).

use relate_core::Error;

/// The one wording of an over-limit source, local or remote: one cap governs
/// both.
pub(super) fn byte_limit_exceeded() -> Error {
    Error::execution("LOAD CSV file exceeds byte limit")
}

/// An http(s) source while no remote capability is configured.
pub(super) fn not_enabled() -> Error {
    Error::execution("LOAD CSV remote sources are not enabled")
}

pub(super) fn malformed_url() -> Error {
    Error::execution("LOAD CSV remote URL is not valid")
}

pub(super) fn credentials_refused() -> Error {
    Error::execution("LOAD CSV remote URL must not carry credentials")
}

pub(super) fn not_utf8() -> Error {
    Error::execution("LOAD CSV remote source is not valid UTF-8 text")
}