Announcing new crate - "hugsqlx": turning SQLx queries into Rust functions

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

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • cornucopia

    Generate type-checked Rust from your PostgreSQL.

  • There’s also https://github.com/cornucopia-rs/cornucopia which looks similar from a cursory look if you wanna look at some prior art. But still great to have some more alternatives in the “sql first” space which is something I came to like from the kotlin/android world (sqldelight)

  • hugsqlx

    Clojurey HugSQL for the Rust world

  • I haven't heard about SeoORM before, but looking quickly at their page, the main difference is that HugSQLx is not an ORM. It's also not a new library handling connections to database. Instead, it stands on the shoulders of SQLx and does a code transformation - takes SQL definitions from external file and creates wrapper functions around common SQLx code patterns. Have a look at this example see what I mean :)

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • SQLDelight

    SQLDelight - Generates typesafe Kotlin APIs from SQL

  • This seems similar to https://cashapp.github.io/sqldelight/ for kotlin, I think this approach is pretty neat, good luck with it!

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

  • querky – autogenerate Python functions and types for your SQL queries

    2 projects | news.ycombinator.com | 15 Dec 2023
  • What were your negative experiences when adopting KMM?

    1 project | /r/Kotlin | 3 Feb 2023
  • Kotlin ORM alternatives to Room

    1 project | /r/androiddev | 27 Sep 2022
  • Kotlin and JPA

    1 project | /r/Kotlin | 10 Jun 2022
  • Just released the first SQLDelight 2.0 alpha

    1 project | /r/Kotlin | 31 Mar 2022