1pub mod expression;
8mod types;
9
10pub(crate) mod backend;
11#[cfg(feature = "postgres")]
12pub(crate) mod connection;
13mod metadata_lookup;
14pub(crate) mod query_builder;
15pub(crate) mod serialize;
16mod transaction;
17mod value;
18
19#[doc(inline)]
20pub use self::backend::{Pg, PgNotification, PgTypeMetadata};
21#[cfg(feature = "postgres")]
22pub use self::connection::{PgConnection, PgRowByRowLoadingMode};
23#[doc(inline)]
24pub use self::metadata_lookup::PgMetadataLookup;
25#[doc(inline)]
26pub use self::query_builder::DistinctOnClause;
27#[doc(inline)]
28pub use self::query_builder::OrderDecorator;
29#[doc(inline)]
30pub use self::query_builder::PgQueryBuilder;
31#[doc(inline)]
32pub use self::query_builder::{CopyFormat, CopyFromQuery, CopyHeader, CopyTarget, CopyToQuery};
33#[doc(inline)]
34pub use self::transaction::TransactionBuilder;
35#[doc(inline)]
36pub use self::value::PgValue;
37
38#[doc(inline)]
39#[cfg(feature = "i-implement-a-third-party-backend-and-opt-into-breaking-changes")]
40pub use self::backend::FailedToLookupTypeError;
41#[doc(inline)]
42#[cfg(feature = "i-implement-a-third-party-backend-and-opt-into-breaking-changes")]
43pub use self::metadata_lookup::{GetPgMetadataCache, PgMetadataCache, PgMetadataCacheKey};
44#[doc(inline)]
45#[cfg(feature = "i-implement-a-third-party-backend-and-opt-into-breaking-changes")]
46pub use self::value::TypeOidLookup;
47
48#[doc(hidden)]
49#[cfg(all(feature = "with-deprecated", not(feature = "without-deprecated")))]
50#[deprecated(since = "2.0.0", note = "Use `diesel::upsert` instead")]
51pub use crate::upsert;
52
53pub mod data_types {
58 #[doc(inline)]
59 pub use super::types::date_and_time::{PgDate, PgInterval, PgTime, PgTimestamp};
60 #[doc(inline)]
61 pub use super::types::floats::PgNumeric;
62 #[doc(inline)]
63 pub use super::types::money::PgMoney;
64 pub use super::types::money::PgMoney as Cents;
65 #[doc(inline)]
66 pub use super::types::pg_lsn::PgLsn;
67}
68
69#[doc(inline)]
70pub use self::types::sql_types;