{"repo":"ryanfowler/async-sqlite","free":true,"listed":false,"github":"https://github.com/ryanfowler/async-sqlite","clone":"git clone https://github.com/ryanfowler/async-sqlite.git","description":"A Rust library to interact with sqlite from an async context.","language":"Rust","stars":23,"topics":["async","rusqlite","rust","sqlite","sqlite3"],"license":"MIT","category":"databases-storage","readme_excerpt":"async-sqlite A library to interact with sqlite from an async context. This library is tested on both tokio and smol, however it should be compatible with all async runtimes. Install Add async-sqlite to your \"dependencies\" in your Cargo.toml file. This can be done by running the command: Usage A Client represents a single background sqlite3 connection that can be called concurrently from any thread in your program. To create a sqlite client and run a query: Async operations that are queued and then canceled before the worker starts them are skipped. ClientBuilder::queue capacity() and PoolBuilder::queue capacity() can be used to bound worker queues; operations return Error::QueueFull when the selected queue is full. A Pool represents a collection of background sqlite3 connections that can be called concurrently from any thread in your program. PoolBuilder::new().open() and path(\":memory:\") use a single anonymous in-memory connection by default, since separate SQLite :memory: connections do not share schema or data. File-backed pools default to the logical CPU count. For multiple connections to a named in-memory database, use shared memory(\"name\") ; this uses SQLite shared-cache mode, which has caveats, so prefer a file-backed database when possible. To create a sqlite pool and run a query: Cargo Features This library tries to export almost all features that the underlying rusqlite library contains. A notable difference is that the bundled feature is enabled by default alongsid","default_branch":null,"files":null,"tree":[],"storefront":"/r/ryanfowler","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ryanfowler/async-sqlite/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}