|
Lightweight 0.20260921.0
|
A thread-safe pool of DataMapper instances, configured at compile time.
More...
Classes | |
| struct | Lightweight::PoolConfig |
| class | Lightweight::Pool< Config > |
| class | Lightweight::Pool< Config >::PooledDataMapper |
Enumerations | |
| enum class | Lightweight::GrowthStrategy : uint8_t { GrowthStrategy::BoundedWait , GrowthStrategy::BoundedOverflow , GrowthStrategy::UnboundedGrow } |
| enum class | Lightweight::ValidateOnBorrow : uint8_t { ValidateOnBorrow::No , ValidateOnBorrow::Yes } |
| enum class | Lightweight::PoolError : uint8_t { PoolError::Timeout } |
A thread-safe pool of DataMapper instances, configured at compile time.
The growth strategy, initial size and maximum size are supplied as a PoolConfig template parameter, so the policy is fixed at the type level rather than at runtime.
|
strong |
Enum to define growth strategies of the pool
|
strong |
Whether the pool checks that a connection is still live before handing it to a caller.
| Enumerator | |
|---|---|
| No | Hand the connection out without checking it. |
| Yes | Check SqlConnection::IsAlive() first and discard a connection reported dead, transparently serving the caller from the next idle connection or a freshly created one. The check reads the driver-local |
|
strong |
Reason an Pool::Acquire call with a timeout failed to produce a data mapper.
| Enumerator | |
|---|---|
| Timeout | The timeout elapsed before a data mapper became available. |