4 releases (2 breaking)
0.2.0 | Nov 5, 2024 |
---|---|
0.1.1 | Oct 11, 2024 |
0.1.0 | Oct 11, 2024 |
0.0.0 | Aug 2, 2024 |
#1215 in Database interfaces
510 downloads per month
Used in 5 crates
(3 directly)
13KB
160 lines
rusqlite-pool
A minimal connection pool for rusqlite, suitable for async and multi-threaded usage.
Provides connection pools and handles for sync and async usages:
ConnectionPool
: A fixed-capacity, thread-safe queue ofrusqlite::Connection
s available for usage.ConnectionHandle
: A temporary handle to a connection.AsyncConnectionPool
: A thin wrapper aroundConnectionPool
that uses Semaphores for orderly async access to database connections.AsyncConnectionHandle
: A thin wrapper aroundConnectionHandle
that manages the associated SemaphorePermit.
The async counterparts are behind feature tokio
.
Dependencies
~27MB
~442K SLoC