Skip to main content

rok_orm_core/
lib.rs

1//! rok-orm-core — traits and query builder for the rok ORM.
2
3pub mod condition;
4pub mod model;
5pub mod query;
6pub mod replica;
7pub mod tenant;
8
9/// PostgreSQL binding helpers.  Enable with `features = ["sqlx-postgres"]`.
10#[cfg(feature = "sqlx-postgres")]
11pub mod sqlx_pg;
12
13/// SQLite binding helpers.  Enable with `features = ["sqlx-sqlite"]`.
14#[cfg(feature = "sqlx-sqlite")]
15pub mod sqlx_sqlite;
16
17/// MySQL binding helpers.  Enable with `features = ["sqlx-mysql"]`.
18#[cfg(feature = "sqlx-mysql")]
19pub mod sqlx_mysql;
20
21pub use condition::{Condition, JoinOp, OrderDir, SqlValue};
22pub use model::Model;
23pub use query::{Dialect, Join, QueryBuilder};
24pub use replica::{DatabaseConfig, ReadStrategy, RoundRobinCounter};
25pub use tenant::current_tenant_id;
26
27#[cfg(feature = "tenant")]
28pub use tenant::TenantLayer;