Skip to content
AppClap
Diesel is unclaimed —

Diesel

Diesel is a Safe, Extensible ORM and Query Builder for Rust·diesel.rs

Visit

Free plan · Open source

Diesel is a Rust library that provides a safe, composable ORM and query builder for interacting with databases. It uses compile-time checks to eliminate many runtime database errors, offers a high-level query builder as an alternative to writing raw SQL, and supports code generation for mapping structs to database rows. It also provides support for abstracting over multiple database backends and for executing raw SQL when needed.

What it's for

Loading records from a database tableBuilding simple and complex queries with a type-safe query builderGenerating struct-to-row mapping code to reduce boilerplateInserting new records using structsUpdating records via struct changes, batch updates, or encapsulated update structsAbstracting queries over multiple database backends (e.g. SQLite and PostgreSQL)Executing raw SQL queries when the query builder is insufficientStoring application data such as crate metadata or user records

Features 11

  • Batch inserts
  • Codegen for struct-to-row mapping via #[derive(Queryable)]
  • Compile-time prevention of incorrect database interactions
  • High-level, composable query builder
  • Insertable struct support via #[derive(Insertable)]
  • MultiConnection support for abstracting over multiple database backends
  • Multiple update patterns (struct save_changes, batch update, encapsulated update structs)
  • Query builder support for filtering, ordering, limiting, and subqueries
  • QueryableByName for mapping raw SQL results to structs
  • Raw SQL execution API with parameter binding
  • Zero-cost query abstractions

At a glance

free tieropen sourceAPI
TypeLibrary / SDK
ForRust developers
CompanyThe Diesel Core Team

Integrations

dsyncrsfbclient-dieseldiesel-paradedbdiesel-derive-enumvaultwardendiesel-guardbetter-duck-dieselcrates.iojiff-diesellemmydiesel-asyncdiesel-ocidiesel-logger

Resources

Similar apps

Last checked 1 month ago·