sea_query_binder/
lib.rs

1//! Driver library for using SeaQuery with SQLx
2//!
3//! This library introduces various traits that add methods to the query types from `sea-query`.
4//! For instance, using the [`SqlxBinder`] trait adds a [`SqlxBinder::build_sqlx`] method that
5//! returns the query and a [`Values`] object, which can be directly passed to `sqlx`'s
6//! [`sqlx::query_with`] method.
7
8#[cfg(feature = "sqlx-any")]
9mod sqlx_any;
10#[cfg(feature = "sqlx-mysql")]
11mod sqlx_mysql;
12#[cfg(feature = "sqlx-postgres")]
13mod sqlx_postgres;
14#[cfg(feature = "sqlx-sqlite")]
15mod sqlx_sqlite;
16
17mod values;
18pub use crate::values::SqlxValues;
19
20#[cfg(any(
21    feature = "sqlx-mysql",
22    feature = "sqlx-postgres",
23    feature = "sqlx-sqlite",
24    feature = "sqlx-any"
25))]
26mod sqlx;
27#[cfg(any(
28    feature = "sqlx-mysql",
29    feature = "sqlx-postgres",
30    feature = "sqlx-sqlite",
31    feature = "sqlx-any"
32))]
33pub use crate::sqlx::SqlxBinder;