//! This library provides the low-level database library implementation, and query language //! definition, for [SurrealDB](https://surrealdb.com), the ultimate cloud database for //! tomorrow's applications. SurrealDB is a scalable, distributed, collaborative, document-graph //! database for the realtime web. //! //! This library can be used to start an embedded in-memory datastore, an embedded datastore //! persisted to disk, a browser-based embedded datastore backed by IndexedDB, or for connecting //! to a distributed [TiKV](https://tikv.org) key-value store. #![doc(html_favicon_url = "https://surrealdb.s3.amazonaws.com/favicon.png")] #![doc(html_logo_url = "https://surrealdb.s3.amazonaws.com/icon.png")] #[macro_use] extern crate log; #[macro_use] mod mac; mod cnf; mod ctx; mod dbs; mod doc; mod err; mod exe; mod fnc; mod key; mod kvs; // ENV pub mod env; // SQL pub mod sql; // Exports pub use dbs::Auth; pub use dbs::Response; pub use dbs::Session; pub use err::Error; pub use kvs::Datastore; pub use kvs::Key; pub use kvs::Transaction; pub use kvs::Val; // Re-exports pub mod channel { pub use channel::bounded as new; pub use channel::Receiver; pub use channel::Sender; } // Version #[doc(inline)] pub use env::VERSION;