-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to specialize
QueryFragment
impls easily
The main motivation of this change is to allow third party backends like diesel-oci to speciaize `QueryFragment` impls without using the unstable `specialization` feature. This is done by introducing a new marker trait `SqlDialect` that has an associated type for each specializable `QueryFragment` impl. Beside of that this allows us to fix a few long standing issues: * `eq_any` can now use `= ANY()` on postgres * We can now support batch inserts for sqlite as long as there is no default value in the insert values Fixes #2898 Fixes #2694 (by deprecating the corresponding functions)
- Loading branch information
Showing
65 changed files
with
1,483 additions
and
441 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.