commit | 5ffc26bb5e4fa84ecd3899238ff82e158add3a6c | [log] [tgz] |
---|---|---|
author | Georg Semmler <georg_semmler_05@web.de> | Mon Apr 27 14:20:47 2020 +0200 |
committer | Georg Semmler <georg_semmler_05@web.de> | Mon Apr 27 14:20:47 2020 +0200 |
tree | 75e00add562fea0f4224d8dd48a1c7aa7a484431 | |
parent | c84de40a112eca69fb70663149039dcaeabc564f [diff] |
Allow to return non nullable values from a custom aggregate function If a custom aggregate function returns a default value if an empty set is passed as argument there is no need to return a nullable value here. This change allows to return non nullable value directly from the implementation of `SqliteAggregateFunction::finalize`. It is clear from the presence of `Option<Self>` as argument that there may not be any instance of `SqliteAggregateFunction` there and some default/none handling is required.
API Documentation: latest release – master branch
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:
You can configure the database backend in Cargo.toml
:
[dependencies] diesel = { version = "<version>", features = ["<postgres|mysql|sqlite>"] }
Find our extensive Getting Started tutorial at https://diesel.rs/guides/getting-started. Guides on more specific features are coming soon.
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.
Anyone who interacts with Diesel in any space, including but not limited to this GitHub repository, must follow our code of conduct.
Licensed under either of these:
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.