1#![allow(unexpected_cfgs)]
10#![cfg_attr(not(feature = "std"), no_std)]
11
12#[cfg(not(feature = "std"))]
13extern crate alloc;
14
15pub(crate) mod prelude {
16 #[cfg(feature = "std")]
17 pub use std::{
18 borrow::Cow,
19 boxed::Box,
20 format,
21 rc::Rc,
22 string::{String, ToString},
23 sync::Arc,
24 vec::Vec,
25 };
26
27 #[cfg(not(feature = "std"))]
28 pub use alloc::{
29 borrow::Cow,
30 boxed::Box,
31 format,
32 rc::Rc,
33 string::{String, ToString},
34 sync::Arc,
35 vec::Vec,
36 };
37}
38
39pub mod attrs;
40#[cfg(feature = "aws-data-api")]
41pub mod aws_data_api;
42pub mod builder;
43pub mod common;
44pub mod expr;
45pub mod helpers;
46pub mod traits;
47pub mod transaction;
48pub mod types {
51 pub use drizzle_types::postgres::types::*;
52}
53pub mod values;
54
55#[cfg(all(test, feature = "query"))]
56mod relational_sql_tests;
57
58#[cfg(all(feature = "postgres-sync", not(feature = "tokio-postgres")))]
59pub use postgres::Row;
60#[cfg(feature = "tokio-postgres")]
61pub use tokio_postgres::Row;
62
63#[doc(hidden)]
64pub mod driver_types {
65 #[cfg(all(
66 any(feature = "serde", feature = "query"),
67 feature = "postgres-sync",
68 not(feature = "tokio-postgres")
69 ))]
70 pub use postgres::types::Json;
71 #[cfg(all(any(feature = "serde", feature = "query"), feature = "tokio-postgres"))]
72 pub use tokio_postgres::types::Json;
73
74 #[cfg(any(feature = "postgres-sync", feature = "tokio-postgres"))]
77 pub use bytes::BytesMut;
78 #[cfg(all(feature = "postgres-sync", not(feature = "tokio-postgres")))]
79 pub use postgres::types::{FromSql, IsNull, ToSql, Type, to_sql_checked};
80 #[cfg(feature = "tokio-postgres")]
81 pub use tokio_postgres::types::{FromSql, IsNull, ToSql, Type, to_sql_checked};
82}
83
84pub use drizzle_core::ParamBind;
85pub use transaction::{AccessMode, IsolationLevel, TransactionConfig};