surrealpatch/lib/src/dbs/mod.rs

37 lines
967 B
Rust
Raw Normal View History

2023-06-19 18:44:40 +00:00
//! 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 `context` to the transaction.
mod auth;
2021-03-29 15:43:37 +00:00
mod executor;
mod iterate;
2021-03-29 15:43:37 +00:00
mod iterator;
mod options;
2021-03-29 15:43:37 +00:00
mod response;
mod session;
mod statement;
mod transaction;
mod variables;
2020-06-29 15:36:01 +00:00
pub use self::auth::*;
pub use self::options::*;
pub use self::response::*;
pub use self::session::*;
pub(crate) use self::executor::*;
pub(crate) use self::iterator::*;
pub(crate) use self::statement::*;
pub(crate) use self::transaction::*;
pub(crate) use self::variables::*;
2023-01-07 09:42:45 +00:00
#[cfg(not(target_arch = "wasm32"))]
mod channel;
2023-01-07 09:42:45 +00:00
#[cfg(not(target_arch = "wasm32"))]
pub use self::channel::*;
#[cfg(test)]
pub(crate) mod test;
2022-07-19 08:28:24 +00:00
pub(crate) const LOG: &str = "surrealdb::dbs";