Skip to main content

Module prelude

Module prelude 

Source
Expand description

Every extension trait that puts a terminal method on a builder, plus the error type a caller’s own signatures have to name and the DecodeRow bound a generic helper over RowQuery has to spell. Result is deliberately absent: a glob-imported alias of that name shadows std::result::Result in every module that follows, and a service layer has its own error type in most of them — write qbrs_sqlx::Result<T> where the alias is wanted. Which trait applies depends on the builder, so importing them one at a time is bookkeeping with no decision in it — and count in particular resolves against Iterator::count with a confusing message until CountExt is in scope.

Re-exports§

pub use crate::Error;
pub use crate::CountExt;
pub use crate::CountQuery;
pub use crate::DecodeRow;
pub use crate::ExecuteExt;
pub use crate::LoadExt;
pub use crate::PreparedCountExt;
pub use crate::PreparedExt;
pub use crate::PreparedQuery;
pub use crate::PreparedTotal;
pub use crate::RowQuery;
pub use crate::WriteStatement;