#diesel #orm #builder #query #derives

diesel_derives

You should not use this crate directly, it is internal to Diesel

9 releases (stable)

Uses old Rust 2015

1.4.1 Oct 11, 2019
1.4.0 Jan 21, 2019
1.3.0 May 22, 2018
1.2.0 Apr 6, 2018
0.99.0 Nov 28, 2017

#337 in Database interfaces

Download history 23574/week @ 2021-02-26 22584/week @ 2021-03-05 22057/week @ 2021-03-12 21991/week @ 2021-03-19 23177/week @ 2021-03-26 21679/week @ 2021-04-02 24737/week @ 2021-04-09 22761/week @ 2021-04-16 23973/week @ 2021-04-23 22180/week @ 2021-04-30 25237/week @ 2021-05-07 24618/week @ 2021-05-14 22110/week @ 2021-05-21 19284/week @ 2021-05-28 22202/week @ 2021-06-04 19520/week @ 2021-06-11

99,447 downloads per month
Used in 230 crates (5 directly)

MIT/Apache

61KB
1.5K SLoC

A safe, extensible ORM and Query Builder for Rust

Build Status Gitter Crates.io

API Documentation: latest releasemaster branch

Homepage

Diesel gets rid of the boilerplate for database interaction and eliminates runtime errors without sacrificing performance. It takes full advantage of Rust's type system to create a low overhead query builder that "feels like Rust."

Supported databases:

  1. PostgreSQL
  2. MySQL
  3. SQLite

You can configure the database backend in Cargo.toml:

[dependencies]
diesel = { version = "<version>", features = ["<postgres|mysql|sqlite>"] }

Getting Started

Find our extensive Getting Started tutorial at https://diesel.rs/guides/getting-started. Guides on more specific features are coming soon.

Getting help

If you run into problems, Diesel has a very active Gitter room. You can come ask for help at gitter.im/diesel-rs/diesel. For help with longer questions and discussion about the future of Diesel, open a discussion on GitHub Discussions.

Code of conduct

Anyone who interacts with Diesel in any space, including but not limited to this GitHub repository, must follow our code of conduct.

License

Licensed under either of these:

Contributing

Before contributing, please read the contributors guide for useful information about setting up Diesel locally, coding style and common abbreviations.

Unless you explicitly state otherwise, any contribution you intentionally submit for inclusion in the work, as defined in the Apache-2.0 license, shall be dual-licensed as above, without any additional terms or conditions.

Dependencies

~330–760KB
~19K SLoC