Struct pepe_pgpool::Pool
source · pub struct Pool { /* private fields */ }Implementations§
source§impl Pool
impl Pool
pub fn new( connection_url: String, migrations: EmbeddedMigrations ) -> Result<Self, Error>
pub async fn execute<T, Q>( &self, query: Q ) -> Result<Result<T, DieselError>, Error>where T: Send + 'static, Q: FnOnce(PgPooledConnection) -> Result<T, DieselError> + Send + 'static,
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Pool
impl Send for Pool
impl Sync for Pool
impl Unpin for Pool
impl !UnwindSafe for Pool
Blanket Implementations§
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
fn into_sql<T>(self) -> Self::Expressionwhere Self: AsExpression<T> + Sized, T: SqlType + TypedExpressionType,
Convert
self to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere &'a Self: AsExpression<T>, T: SqlType + TypedExpressionType,
Convert
&self to an expression for Diesel’s query builder. Read more