Toasty, an Async ORM for Rust

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • diesel

    A safe, extensible ORM and Query Builder for Rust

    I think you are talking past each others. Preventing N+1 by doing lazy fetching and having synchronous / asynchronous API are orthogonal issues. Async API must not block the thread/event loop when the data loading is being done.

    Diesel hasn't been providing an async API for reason told in this thread: https://github.com/diesel-rs/diesel/issues/399

    The situation might change some day though, once async support in the core language and surrounding ecosystem gets stronger.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • sea-orm

    🐚 An async & dynamic ORM for Rust

  • GORM

    The fantastic ORM library for Golang, aims to be developer friendly

    I never understood why people are so stubborn about hating on orm.

    For example I'm familiar with https://gorm.io and it does save me a lot of time and useless boilerplate.

    And guess what, if I ever need to make a complex query, I also happen to know SQL, and I'm just going to make a "raw" query https://gorm.io/docs/sql_builder.html#Raw-SQL and be done with it.

    It's not all that hard.

  • turbosql

    An easy local data persistence layer for Rust, backed by SQLite.

    You can absolutely do global knowledge in proc macros via the filesystem and commit their output to version control: https://github.com/trevyn/turbosql

  • sql-db-set-macros

    I couldn’t agree more.

    I have the afternoons of my past week trialling to see if you could achieve something similar to Toasty with just structs and proc macros.

    https://github.com/jayy-lmao/sql-db-set-macros

    Still WIP but made it past the hurdle of inserts, which I decided to generate a type-state builder pattern to enforce non-nullable fields and skip auto-fields.

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

  • SQLite + Rust: Building a CLI Password Vault 🦀

    3 projects | dev.to | 15 Mar 2024
  • People who use rust and postgres in production along with RDS proxy, what do you do?

    1 project | /r/rust | 15 Nov 2023
  • The diesel project is looking for help

    1 project | /r/rust | 4 Nov 2023
  • Diesel Is a Safe, Extensible ORM and Query Builder for Rust

    1 project | news.ycombinator.com | 18 Sep 2023
  • Queryx: An Open-Source Go ORM with Automatic Schema Management

    3 projects | /r/golang | 5 Jul 2023

Did you konow that Rust is
the 5th most popular programming language
based on number of metions?