tree: 8ca90084da9826a246a17b74de6eebd9246611f3 [path history] [tgz]
  1. .github/
  2. _build/
  3. bin/
  4. diesel/
  5. diesel_cli/
  6. diesel_compile_tests/
  7. diesel_derives/
  8. diesel_migrations/
  9. diesel_tests/
  10. docker/
  11. examples/
  12. guide_drafts/
  13. migrations/
  14. .appveyor.yml
  15. .editorconfig
  16. .env.sample
  17. .gitignore
  18. .travis.yml
  19. azure-pipelines.yml
  20. Cargo.toml
  21. CHANGELOG.md
  22. clippy.toml
  23. code_of_conduct.md
  24. CONTRIBUTING.md
  25. docker-compose.yml
  26. LICENSE-APACHE
  27. LICENSE-MIT
  28. README.md
  29. rust-toolchain
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.