diesel
diesel copied to clipboard
A safe, extensible ORM and Query Builder for Rust
Postgres supports merging two jsonb objects with the `||` operator. I recently needed that and implemented it [here](https://github.com/graphprotocol/graph-node/blob/master/store/postgres/src/jsonb.rs) but haven't been able to turn this into a proper PR. If...
At times, our compiler errors just flat out suck. While in this issue I will list several cases that I've specifically noticed are frequently problematic or have personally encountered, it...
So I'm new to Diesel, and I apologize if this has already been suggested, but I couldn't find it after some searching. :) One of the things about Diesel that...
The basic idea is that columns with uniqueness constraints are guaranteed to return exactly zero or one value. In some code we may want to assert this for consistency, and...
This has been discussed internally some, but we should figure out the right place to document it. Last time we discussed it, we decided the following: - Bumping the minimum...
Hello. Did i miss something or is it really not possible (diesel 1.3) to load a sqlite3 extension? I discovered this when trying to make a spatialite initialization sequence work,...
MySQL insert on duplicate key support such as the following query: ```sql INSERT INTO table (id, title, message, likes) VALUES(1, "A", "bruh", 21) ON DUPLICATE KEY UPDATE title="A", message="bruh", likes=21...
Might be related to https://github.com/diesel-rs/diesel/issues/398. It turned out (to me) that cross joins are in fact inner joins on "true". PostgreSQL is happy to accept `... INNER JOIN ON true...
## Setup ### Versions - **Rust:** nightly-2019-12-22 - **Diesel:** version = "1.4.3", features = ["postgres", "r2d2"] - **Database:** Postgres - **Operating System:** macOS ### Feature Flags - **diesel:** ## Problem...
## Setup ### Versions - **Rust:** rustc 1.37.0-nightly (929b48ec9 2019-06-21) - **Diesel:** diesel 1.4.0 - **Database:** Postgresql 11 - **Operating System:** Windows 10 WSL with Debian stretch ### Feature Flags...