Skip to main content

Module pool

Module pool 

Source
Expand description

Semaphore-throttled, short-lived RO connection pool.

Mirrors zotero-connector‘s pattern: bound concurrent readers with a tokio::sync::Semaphore, open a fresh Connection per with_conn call using URI flags (mode=ro, nolock=1, immutable=1), run the closure inside spawn_blocking. Each call picks up Things’ latest committed state automatically because the connection lifetime spans only one query.

Structs§

ReaderPool

Functions§

open_read_only