Extending SQLite with Rust

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • sql.js

    A javascript library to run SQLite on the web.

    The reason I originally looked into this was to see if there's a way to use sqlite in wasm with indexeddb as the storage backend, getting a full SQL engine in the browser (like WebSQL, but actually using web standard API). Here is sqlite compiled to wasm, but only with the in-memory database, which is only of limited use. My conclusion was that it might be possible, but needs a ton of work in C interfacing with web APIs through emscripten, which is not fun at all.

  • gluesql

    GlueSQL is quite sticky. It attaches to anywhere.

    There's a Rust project that's an SQL engine on top of an arbitrary key-value store too, GlueSQL https://github.com/gluesql/gluesql (and it has a sled backend)

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

  • absurd-sql

    sqlite3 in ur indexeddb (hopefully a better backend soon)

    Have you looked into absurd-sql? it does exactly that: https://github.com/jlongster/absurd-sql/

  • sqlite-vfs

    Build SQLite virtual file systems (VFS) by implementing a simple Rust trait.

    You may be able to have something working by implementing a VFS. (https://github.com/rkusa/sqlite-vfs)

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts