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

#1083 in Database interfaces

Download history 11/week @ 2024-09-11 7/week @ 2024-09-18 12/week @ 2024-09-25 10/week @ 2024-10-02 405/week @ 2024-10-09 367/week @ 2024-10-16 52/week @ 2024-10-23 85/week @ 2024-10-30 208/week @ 2024-11-06 184/week @ 2024-11-13 36/week @ 2024-11-20 41/week @ 2024-11-27 156/week @ 2024-12-04

424 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