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 it's 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 SDKModules§
- api
- catalog
- 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
- expr
- The type definitions for the computation format of the surreaql executor.
- 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
- options
- protocol
- rpc
- sql
- The full type definitions for the SurrealQL query language
- str
- syn
- Module containing the implementation of the surrealql tokens, lexer, and parser.
- val
- vs
- vs is a module to handle Versionstamps. This module is supplemental to the kvs::tx module and is not intended to be used directly by applications. This module might be migrated into the kvs or kvs::tx module in the future.
Macros§
- 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.
- strand
- Macro which creates a StrandRef a str like type which is guarenteed to not contain null bytes.