Skip to main content

Module pool

Module pool 

Source
Expand description

An r2d2 connection pool backed by a shared Database. An r2d2 connection pool backed by a shared Database.

Unlike opening one connection per pool slot, every connection this manager creates shares a single Database handle — so an in-memory pool observes one consistent database rather than one independent database per connection.

Structs§

DuckDbConnectionManager
An r2d2::ManageConnection that creates connections from a shared Database.
PoolBuilder
A builder for a connection pool.
PoolError
The error type returned by methods in this crate.
PoolState
Information about the state of a Pool.

Type Aliases§

Pool
A DuckDB connection pool.
PooledConnection
A connection checked out of a Pool.