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

#1251 in Database interfaces

Download history 12/week @ 2024-09-26 8/week @ 2024-10-03 502/week @ 2024-10-10 288/week @ 2024-10-17 39/week @ 2024-10-24 230/week @ 2024-10-31 62/week @ 2024-11-07 184/week @ 2024-11-14 38/week @ 2024-11-21 48/week @ 2024-11-28 165/week @ 2024-12-05 97/week @ 2024-12-12 15/week @ 2024-12-19 5/week @ 2024-12-26 31/week @ 2025-01-02 125/week @ 2025-01-09

187 downloads per month
Used in 5 crates (3 directly)

Apache-2.0

13KB
160 lines

rusqlite-pool

Crates.io Documentation license Build Status

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.

Dependencies

~28MB
~442K SLoC