1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! # somnia-core — typed SurrealQL query builder
//!
//! The core of the [somnia](https://docs.rs/somnia) SurrealDB ORM: a typed query
//! builder, an expression tree, and the record/schema traits. Most users depend on
//! the `somnia` umbrella crate (which re-exports everything here) rather than on
//! `somnia-core` directly.
//!
//! The builder renders ready-to-run SurrealQL strings via `to_surrealql()`, inlining
//! literals with proper escaping rather than relying on bind parameters.
//!
//! ## Modules
//!
//! - [`types`] — [`Key`], [`Thing`], the geometry types, and the
//! [`SurrealRecord`] / [`SurrealEdge`] / [`SurrealSchema`] traits.
//! - [`expr`] — the expression tree: literals, [`Column`], [`Ident`], [`Raw`],
//! [`RecordLink`], operators, and the [`SurrealQL`] literal-rendering trait.
//! - [`query`] — statement builders: [`Table`], [`Select`], [`Create`], [`Update`],
//! [`Delete`], [`Insert`], [`Relate`], and [`Batch`].
//! - [`error`] — the crate error type.
//!
//! ## Example
//!
//! ```ignore
//! // `Post` derives `SurrealRecord`, which generates `table()`, `all()`,
//! // and typed column accessors like `Post::title()`.
//! let sql = Post::table()
//! .select(Post::all())
//! .filter(Post::title().eq("hello".to_string()))
//! .limit(10)
//! .to_surrealql();
//! ```
pub use ;
pub use ;
pub use ;