A safe, extensible ORM and Query Builder for Rust
Go to file
2022-02-17 17:12:35 +01:00
.cargo Ignore RUSTSEC-2020-0159 2021-11-11 16:15:39 +01:00
.github Do not treat warnings as errors for the sqlite bundled CI build 2022-02-10 14:37:07 +01:00
bin Interacting with the database requires a mutable connection 2021-05-18 10:08:48 +02:00
diesel Get naming closer to what we'd do if we were not aliasing a table directly 2022-02-17 17:12:35 +01:00
diesel_bench Add diesel-async to the benchmarks 2022-01-05 16:14:18 +01:00
diesel_cli Fix new clippy warnings 2022-01-24 15:46:36 +01:00
diesel_compile_tests Merge remote-tracking branch 'upstream/master' into feature/aliasing 2022-02-17 16:53:42 +01:00
diesel_derives Fix new clippy warnings 2022-01-24 15:46:36 +01:00
diesel_dynamic_schema Simplify AstPass lifetimes 2021-12-16 10:19:54 +01:00
diesel_migrations Fix new clippy warnings 2022-01-24 15:46:36 +01:00
diesel_tests Merge remote-tracking branch 'upstream/master' into feature/aliasing 2022-02-17 16:53:42 +01:00
docker fix syntax errors in the docker-compose mysql initialization 2019-02-19 20:31:48 +01:00
examples Simplify ToSql lifetimes 2021-12-16 10:19:55 +01:00
guide_drafts Update all the derive attributes to new format 2021-12-09 14:20:18 +00:00
migrations Fix reverting embedded migrations 2021-03-26 10:36:33 +01:00
.editorconfig Set YAML indent to 2 2020-04-11 09:18:40 +09:00
.env.sample add password for postgres docker image; 2020-03-31 22:04:08 +02:00
.gitignore Moved error ui to trybuild tests 2021-01-18 10:05:13 +00:00
Cargo.toml Fix building the repo with the default compiler (requires trybuild fork for now) 2021-01-29 10:17:47 +01:00
CHANGELOG.md changelog: note support MySQL SSL connection support 2022-01-30 12:56:09 +01:00
clippy.toml Fix new clippy warnings 2022-01-24 15:46:36 +01:00
code_of_conduct.md Convert other misc links to https 2017-11-04 01:18:59 +00:00
CONTRIBUTING.md Aligning clippy command with GitHub actions 2021-08-23 10:21:58 +08:00
docker-compose.yml add password for postgres docker image; 2020-03-31 22:04:08 +02:00
LICENSE-APACHE add Diesel Core Team to lisences 2021-03-10 13:42:11 +05:30
LICENSE-MIT add Diesel Core Team to lisences 2021-03-10 13:42:11 +05:30
README.md Remove the deprecated forum 2021-05-10 15:02:46 +08:00
rust-toolchain bump MSRV to 1.54 2022-01-23 21:32:03 +01:00

A safe, extensible ORM and Query Builder for Rust

Build Status Gitter Crates.io

API Documentation: latest release master 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.