Expand description
§Surrealdb Core
This crate is the internal core library of SurrealDB. It contains most of the database functionality on top of which the surreal binary is implemented.
Unstable!
This crate is SurrealDB internal API. It does not adhere to SemVer and its API is free to change and break code even between patch versions. If you are looking for a stable interface to the SurrealDB library please have a look at the Rust SDK.Modules§
- api
- catalog
- SurrealDB Catalog definitions.
- channel
- Channels for receiving a SurrealQL database export
- cnf
- ctx
- This module defines and handles the
contextfor the SurrealDB database. - dbs
- Datastore module which is the core of the database node.
In this module we essentially manage the entire lifecycle of a database
request acting as the glue between the API and the response. In this module
we use channels as a transport layer and executors to process the
operations. This module also gives a
contextto the transaction. - env
- err
- exec
- Streaming Execution Module
- expr
- The type definitions for the computation format of the surreaql executor.
- gql
- GraphQL support for SurrealDB.
- iam
- idx
- kvs
- The module defining the key value store.
Everything related the transaction for the key value store is defined in the
tx.rsfile. This module enables the following operations on the key value store: - mem
- obs
- This module defines the operations for object storage using the object_store crate. This will enable the user to store objects using local file storage, memory, or cloud storage such as S3 or GCS.
- options
- rpc
- sql
- The full type definitions for the SurrealQL query language
- syn
- Module containing the implementation of the surrealql tokens, lexer, and parser.
Macros§
- define_
aggregate - Helper macro to define simple aggregate functions with their accumulators.
- define_
async_ function - Define an async scalar function that needs access to EvalContext.
- define_
context_ function - Define a context-aware scalar function that needs access to EvalContext.
- define_
pure_ function - Define a pure scalar function that wraps an existing
fnc::*implementation. - lazy_
env_ parse - A macro that allows lazily parsing a value from the environment variable, with a fallback default value if the variable is not set or parsing fails.
- map
- Creates a new b-tree map of key-value pairs.
- mrg
- Extends a b-tree map of key-value pairs.
- register_
aggregates - Helper macro to register multiple aggregate functions at once.
- register_
functions - Helper macro to register multiple functions at once.
Structs§
- Community
Composer - Composer for the community edition of SurrealDB.