Skip to content
A safe, extensible ORM and Query Builder for Rust
Rust Other
  1. Rust 99.5%
  2. Other 0.5%
Branch: master
Clone or download

Latest commit

Latest commit 2b4340d May 25, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Add a sponsor button May 15, 2020
_build Rewrite `embed_migrations!` to be a real proc macro May 16, 2020
bin add BACKEND variable override when running tests Mar 31, 2020
diesel Update `dotenv` to 0.15 May 25, 2020
diesel_cli Update `dotenv` to 0.15 May 25, 2020
diesel_compile_tests Update nightly for unused_braces regression May 2, 2020
diesel_derives Update `dotenv` to 0.15 May 25, 2020
diesel_migrations Update `dotenv` to 0.15 May 25, 2020
diesel_tests Update `dotenv` to 0.15 May 25, 2020
docker fix syntax errors in the docker-compose mysql initialization Feb 19, 2019
examples Update `dotenv` to 0.15 May 25, 2020
guide_drafts Update mysql-apt-config version Mar 10, 2020
migrations Introduce 'pokes' table (has non-nullable columns and check constraint) Feb 19, 2020
.appveyor.yml Fix appveyor build script May 23, 2018
.editorconfig Set YAML indent to 2 Apr 11, 2020
.env.sample add password for postgres docker image; Mar 31, 2020
.gitignore Remove ~ from .gitignore Jan 30, 2017
.travis.yml Do not notify Gitter from fork repos May 22, 2020
CHANGELOG.md open SQLite connection with SQLITE_OPEN_URI May 21, 2020
CONTRIBUTING.md add password for postgres docker image; Mar 31, 2020
Cargo.toml Enable using this library from git directly Mar 2, 2020
LICENSE-APACHE It's 2018 [ci skip] Jan 3, 2018
LICENSE-MIT It's 2018 [ci skip] Jan 3, 2018
README.md Added supported databases to README.md Feb 16, 2020
azure-pipelines.yml Fix CI during installing MySQL May 22, 2020
clippy.toml Bump minimal supported rust version 1.36.0 for `mem::MaybeUninit` Aug 6, 2019
code_of_conduct.md Convert other misc links to https Nov 4, 2017
docker-compose.yml add password for postgres docker image; Mar 31, 2020
rust-toolchain Update MSRV to 1.40.0 Apr 11, 2020

README.md

A safe, extensible ORM and Query Builder for Rust

Build Status Azure Pipeline Build Status Appveyor 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, visit our discourse forum.

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.

You can’t perform that action at this time.