1pub mod advisory_lock;
37pub mod auth;
38pub mod cache;
39pub mod cancel;
40pub mod config;
41pub mod connection;
42pub mod copy;
43pub mod error;
44pub mod generic_client;
45mod instrumentation;
46pub mod notify;
47pub mod pipeline;
48pub mod pool;
49pub mod portal;
50pub mod protocol;
51pub mod row;
52pub mod statement;
53pub mod stream;
54pub mod tls;
55mod tracing_adapter;
56pub mod transaction;
57pub mod types;
58
59pub use advisory_lock::{PgAdvisoryLock, PgAdvisoryLockGuard};
62pub use cache::{CacheMetrics, StatementCache};
63pub use cancel::CancelToken;
64pub use config::{ChannelBinding, Config, LoadBalanceHosts, SslMode, TargetSessionAttrs};
65pub use connection::Connection;
66pub use copy::binary::{BinaryCopyDecoder, BinaryCopyEncoder};
67pub use copy::text::{TextCopyDecoder, TextCopyEncoder};
68pub use error::{Error, Result};
69pub use generic_client::GenericClient;
70pub use instrumentation::{
71 AcquireOutcome, DisconnectReason, Event, Instrumentation, Outcome, RollbackReason, StmtRef,
72};
73pub use notify::Notification;
74pub use pool::{Pool, PoolMetrics, PooledConnection};
75pub use portal::Portal;
76pub use row::{CommandResult, Row, RowDescription, SimpleQueryMessage, SimpleQueryRow};
77pub use statement::Statement;
78pub use stream::RowStream;
79pub use tracing_adapter::TracingInstrumentation;
80pub use transaction::{IsolationLevel, TransactionConfig};
81pub use types::{FromSql, Oid, ToSql};
82
83#[cfg(feature = "with-serde-json")]
84pub use types::json::Json;
85
86#[cfg(feature = "derive")]
88pub use sentinel_derive::{FromRow, FromSql, ToSql};