Our great sponsors
-
sqlx
🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite. (by launchbadge)
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
This example will get you started with using rocksdb and actix web: https://github.com/ukchukx/rocksdb-rust
I'd agree that Diesel is total overkill for a database with 1 table and 2 columns. sqlx seems like a good level of abstraction for your needs.
If it happen that may get slightly more complex than what you just said(you know scope creep), you may have a look at structsy it allow you to store simple structs to a file, but with the durability of a database, here an example of a actix web project that use it
Related posts
- SQLX MSSQL Connection String Problem
- SQLx 0.7 released! Offline mode usability improvements, performance fixes and major upgrades across the board!
- MariaDB / SQLx - "Unknown Authentication Plugin"
- What do you think about macros that use remote source to calculate its result?
- Ask HN: Why is there no database with a functional query language?