johnchildren / deadpool-diesel-async

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

deadpool-diesel-async

A deadpool backend implementation for the upcoming diesel-async crate. This provides async connection pooling of async diesel connections. It currently only supports the tokio async runtime as that's the only one supported by diesel-async.

This crate depends on specific Github revision for diesel-async with revision hash a06d74e.

The two main structs exported are:

  • Manager: implements the deadpool::managed::Manager trait
  • AsyncDieselConnection - modeled off of deadpool-sync's SyncWrapper, this is the object which will effectively be returned from deadpool::managed::Pool.get and can access a mutable reference to an AsyncPgConnection/AsyncMysqlConnection through a callback passed to its interact method

About


Languages

Language:Rust 100.0%