{"repo":"Spxg/sqlite-wasm-rs","free":true,"listed":false,"github":"https://github.com/Spxg/sqlite-wasm-rs","clone":"git clone https://github.com/Spxg/sqlite-wasm-rs.git","description":"wasm32-unknown-unknown bindings to the libsqlite3 library.","language":"C","stars":96,"topics":["sqlite","wasm","rust"],"license":"MIT","category":"databases-storage","readme_excerpt":"wasm32-unknown-unknown bindings to the libsqlite3 library. Usage About VFS The following vfs have been implemented: memory : as the default vfs, no additional conditions are required, store the database in memory. sahpool : ported from sqlite-wasm, store the database in opfs. relaxed-idb : store the database in blocks in indexed db. VFS Comparison MemoryVFS SyncAccessHandlePoolVFS RelaxedIdbVFS - - - - Storage RAM OPFS IndexedDB Contexts All Dedicated Worker All Multiple connections :x: :x: :x: Full durability ✅ ✅ :x: Relaxed durability :x: :x: ✅ Multi-database transactions ✅ ✅ ✅ No COOP/COEP requirements ✅ ✅ ✅ How to implement a VFS Here is an example showing how to use sqlite-wasm-rs to implement a simple in-memory VFS, see implement-a-vfs example. About multithreading This library is not thread-safe: JsValue is not cross-threaded, see for details. sqlite is compiled with -DSQLITE THREADSAFE=0 . Use prebuild libsqlite3.a We provide the ability to use prebuild libsqlite3.a , cargo provides a links field that can be used to specify which library to link to. With the help of overriding build scripts, you can overriding its configuration in your crate and link sqlite to your prebuild libsqlite3.a . More see use-prebuild-lib example. Minimum supported Rust version (MSRV) The minimal officially supported rustc version is 1.85.0. Extensions Extension About - - sqlite-vec A vector search SQLite extension that runs anywhere! Contributions are welcome! Related Project diesel : A safe","default_branch":null,"files":null,"tree":[],"storefront":"/r/Spxg","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Spxg/sqlite-wasm-rs/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."}