Skip to main content

rorm_db/
lib.rs

1//! This crate is used as language independent base for building an orm.
2//!
3//! Rust specific features will be exposed through the `rorm` crate.
4//! `rorm-lib` implements C bindings for this crate.
5#![cfg_attr(docsrs, feature(doc_cfg))]
6#![warn(missing_docs)]
7
8#[cfg(all(not(feature = "postgres"), not(feature = "sqlite")))]
9compile_error!("Can't compile with sqlx without any database");
10
11pub mod database;
12pub mod error;
13
14pub(crate) mod query_type;
15
16pub mod choice;
17pub mod executor;
18pub(crate) mod futures_util;
19pub mod row;
20pub mod transaction;
21
22pub(crate) mod internal;
23
24/// Re-export [rorm-sql](rorm_sql)
25pub mod sql {
26    pub use rorm_sql::*;
27}
28
29pub use rorm_declaration::config::DatabaseDriver;
30
31pub use crate::database::{Database, DatabaseConfiguration};
32pub use crate::error::Error;
33pub use crate::executor::Executor;
34pub use crate::row::Row;