rusqlite-pool

Crates.iorusqlite-pool
lib.rsrusqlite-pool
version0.2.0
sourcesrc
created_at2024-08-02 09:13:01.176939
updated_at2024-11-05 23:14:23.932845
descriptionA minimal connection pool for rusqlite.
homepagehttps://essential.builders/
repositoryhttps://github.com/essential-contributions/essential-node
max_upload_size
id1322955
size19,238
(essentialcontributions)

documentation

README

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.

Commit count: 70

cargo fmt