rok-orm-core 0.1.0

Core traits and query builder for rok-orm
Documentation
//! rok-orm-core — traits and query builder for the rok ORM.

pub mod condition;
pub mod model;
pub mod query;
pub mod replica;
pub mod tenant;

/// PostgreSQL binding helpers.  Enable with `features = ["sqlx-postgres"]`.
#[cfg(feature = "sqlx-postgres")]
pub mod sqlx_pg;

/// SQLite binding helpers.  Enable with `features = ["sqlx-sqlite"]`.
#[cfg(feature = "sqlx-sqlite")]
pub mod sqlx_sqlite;

/// MySQL binding helpers.  Enable with `features = ["sqlx-mysql"]`.
#[cfg(feature = "sqlx-mysql")]
pub mod sqlx_mysql;

pub use condition::{Condition, JoinOp, OrderDir, SqlValue};
pub use model::Model;
pub use query::{Dialect, Join, QueryBuilder};
pub use replica::{DatabaseConfig, ReadStrategy, RoundRobinCounter};
pub use tenant::current_tenant_id;

#[cfg(feature = "tenant")]
pub use tenant::TenantLayer;