| Crates.io | rusqlite-pool |
| lib.rs | rusqlite-pool |
| version | 0.2.0 |
| created_at | 2024-08-02 09:13:01.176939+00 |
| updated_at | 2024-11-05 23:14:23.932845+00 |
| description | A minimal connection pool for rusqlite. |
| homepage | https://essential.builders/ |
| repository | https://github.com/essential-contributions/essential-node |
| max_upload_size | |
| id | 1322955 |
| size | 19,238 |
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 of rusqlite::Connections available for usage.ConnectionHandle: A temporary handle to a connection.AsyncConnectionPool: A thin wrapper around ConnectionPool that uses Semaphores for orderly async access to database connections.AsyncConnectionHandle: A thin wrapper around ConnectionHandle that manages the associated SemaphorePermit.The async counterparts are behind feature tokio.