Diesel is unclaimed —
D
Diesel
Safe, Extensible ORM and Query Builder for Rust·diesel.rs
Diesel is a Rust ORM and query builder that provides safe, composable abstractions over SQL queries. It uses compile-time checks to prevent runtime database errors and offers a high-level query builder plus code generation to reduce boilerplate. It supports multiple database backends (PostgreSQL, MySQL/MariaDB, SQLite) and includes an API for writing raw SQL when needed.
What it's for
Loading records from a database with type-safe queriesBuilding complex filtered and ordered queriesGenerating struct-to-row mappings via derive macros (Queryable, Insertable)Inserting new records into a databaseUpdating rows via struct-based or batch updatesAbstracting over multiple database backends with a single connection enumExecuting raw SQL queries when the query builder isn't sufficientStoring application data for backend services (e.g. crates.io, Vaultwarden, Lemmy)
Features 11
- Belonging-to relationship queries
- Community extension ecosystem (async support, logging, enum support, additional backends)
- Compile-time query safety to prevent runtime database errors
- Derive macros for mapping structs to rows (Queryable, Insertable, QueryableByName)
- High-level query builder
- MultiConnection support for abstracting over different database backends
- Multiple update patterns (struct modification, batch updates, encapsulated updates)
- Raw SQL execution API with parameter binding
- Schema code generation via diesel print-schema
- Struct-based record insertion
- Zero-cost abstractions for performance
Pricing
Open SourceFree
Diesel is a free, open-source library with no paid tiers.