qmetrics.net

Diesel

Type-safe ORM and SQL query builder for Rust

Diesel screenshot

Diesel is a Rust library for talking to relational databases with compile-time checks. It supports PostgreSQL, MySQL, SQLite, and MariaDB.

Overview

Diesel is an object-relational mapper and query builder for Rust applications. It aims to cut boilerplate around database access and catch incorrect queries at compile time rather than at runtime, while keeping overhead low through Rust’s type system.

You configure which database backend to use in your project metadata. Supported servers include PostgreSQL, MySQL, SQLite, and MariaDB. Simple loads and filters map cleanly to SQL, and the query builder can express joins and nested conditions when applications need more complex reads.

Codegen generates mapping glue so structs can represent rows for queries, inserts, and updates. Inserts can use dedicated “new record” structs; updates may modify a loaded struct, run batch filters, or apply form-like structs. When the query builder is not enough, Diesel exposes APIs for executing raw SQL while still integrating with its result types.

The project also documents multidatabase abstractions so one codebase can switch between SQLite and Postgres connections where that pattern fits.

Key features

  • Compile-time query checking
  • PostgreSQL, MySQL, SQLite, MariaDB
  • Codegen for row mapping
  • Composable query builder
  • Insert and update helpers
  • Raw SQL escape hatch

Use cases

  • Rust web backend data access
  • Type-safe SQL in applications
  • Multi-database Rust services
  • Replacing manual SQL mapping

Tags

Similar software

Supabase

Open-source Postgres platform with auth, APIs, and storage

Supabase bundles a dedicated Postgres database with authentication, auto-generated REST and GraphQL APIs, realtime, functions, file storage, and vector tooling.

★ 115.6k⟳ todayApache-2.0
Open Source Alternative to:FirebaseFirebase Realtime Database

GORM

Feature-rich ORM library for Go applications

GORM maps Go structs to SQL databases with migrations, associations, hooks, and a fluent query API. It targets developer-friendly access patterns for common CRUD and relationship modeling.

★ 40k⟳ 1 month agoMIT
Frameworks & PlatformsDesktop/CLI app

TypeORM

TypeScript and JavaScript ORM for many SQL and NoSQL databases

TypeORM maps objects to relational and document databases from Node.js, browsers, and mobile shells. It supports TypeScript and JavaScript with both Data Mapper and Active Record styles.

★ 36.7k⟳ 3 days agoMIT
Frameworks & PlatformsDesktop/CLI app

MyBatis 3

Java SQL mapper with XML or annotation config

MyBatis links Java objects to SQL and stored procedures via XML or annotations. It trims repetitive JDBC parameter and result handling.

★ 20.4k⟳ yesterdayApache-2.0

Node Redis

High-performance Redis client for Node.js

node-redis connects Node.js applications to Redis with typed commands, clustering, pub/sub, transactions, and optional client-side caching.

★ 17.6k⟳ yesterdayMIT
Frameworks & PlatformsDesktop/CLI app

MyBatis-Plus

Enhanced MyBatis toolkit for Java database access

MyBatis-Plus extends MyBatis with code generation, conditional query builders, and pagination helpers. It stays compatible with MyBatis while adding convenience APIs for common CRUD work.

★ 17.5k⟳ todayApache-2.0
Frameworks & PlatformsDesktop/CLI app