surrealdb_runtime/lib.rs
1//! SurrealQL's pure function library.
2//!
3//! Every function here answers from its arguments alone. That is what lets the
4//! crate sit below the executor: the executor's generated builtins call
5//! downward into these, and the planner can fold a call to one of them at plan
6//! time because there is nothing to consult.
7//!
8//! Functions that need the engine to answer — a record read, a socket, a
9//! script, a user closure — live above this crate, beside the service each one
10//! needs. Both halves register into the same function registry, so a query
11//! cannot tell where a function came from.
12//!
13//! **This crate is an internal implementation detail of SurrealDB.** Its API is
14//! unstable and changes without notice.
15
16// TODO: Remove once this crate no longer needs it; see `absolute_paths` in the workspace lints.
17#![allow(clippy::absolute_paths)]
18
19pub mod args;
20pub mod array;
21pub mod bytes;
22pub mod count;
23pub mod crypto;
24pub mod duration;
25pub mod fuel;
26pub mod geo;
27pub mod interval;
28pub mod math;
29pub mod not;
30pub mod object;
31pub mod operate;
32pub mod parse;
33pub mod rand;
34pub mod set;
35pub mod string;
36pub mod time;
37pub mod time_kinds;
38pub mod r#type;
39pub mod util;
40pub mod vector;