Commit Graph

530 Commits

Author SHA1 Message Date
Georg Semmler
58df7d537b
Minor test fixes 2023-01-02 09:55:49 +01:00
Georg Semmler
97990336b1
Add a #[derive(MultiConnection)] proc-macro
This proc macro implements `Connection` and related traits for an enum
of connections for different database backends. This allows to easily
support multiple database systems at the same time. I've chosen to
implement this feature as a derive, instead of providing just one
`AnyConnection` enum with all diesel connection types, to allow third
party connection implementations to be used there as well.
2022-11-09 16:06:12 +01:00
Georg Semmler
1453a39f01
Merge branch 'diesel_master_2.0.x' into diesel_unsafe_master_master 2022-10-11 13:48:59 +02:00
Georg Semmler
a02fcfbf57
Add a release date for 2.0.2 2022-10-11 13:43:51 +02:00
Georg Semmler
f2794d6b9a
Prepare 2.0.2 release 2022-10-11 12:47:33 +02:00
Georg Semmler
0622b7d02d
Merge remote-tracking branch 'upstream/2.0.x' into diesel_unsafe_master_master 2022-10-07 08:44:54 +02:00
Georg Semmler
c163482351
Insert the release date of 2.0.1 into the changelog 2022-10-07 08:36:10 +02:00
Georg Semmler
24246cef4e
Bump minimal supported rust version to 1.60 2022-10-06 11:00:01 +02:00
Georg Semmler
b1d030ca88
Prepare a 2.0.1 release fixing various issues 2022-10-02 18:14:29 +02:00
Sanchith Hegde
1f4ad3d013
Add changelog entry 2022-09-25 21:30:41 +05:30
Georg Semmler
107ea0f08f
Merge remote-tracking branch 'upstream/master' into prepare_2.0_release 2022-08-25 12:30:32 +02:00
Thomas Constantine Moore
cdb0b145d5 Notes 2022-08-12 14:54:45 -04:00
Georg Semmler
ed605a5408
Prepare the final changelog 2022-08-04 12:01:16 +02:00
Georg Semmler
e9a951f1dc
Merge pull request #3246 from coriolinus/feature/2/time-timestamptz
Add `Timestamptz` support for the `time` crate v0.3, to Diesel's 2.0 branch
2022-07-27 19:44:19 +00:00
Peter Goodspeed-Niklaus
2ee9add82e changelog 2022-07-25 17:01:52 +02:00
Georg Semmler
10c369e2d5
Update release date + add link to commit range 2022-07-22 09:14:37 +02:00
Georg Semmler
093dcbdc83
Update libsqlite3-sys 2022-07-19 13:15:34 +02:00
Georg Semmler
9960b6a4ae
Prepare 2.0.0-rc.1 release 2022-07-19 13:10:22 +02:00
Iban Eguia Moraza
85eb43234c
Added changelog entry 2022-07-18 19:40:20 +02:00
Georg Semmler
74996c839a
Bump MSRV to 1.56 2022-06-08 17:33:36 +02:00
Sean Klein
a4bfc82969 Update CHANGELOG 2022-06-02 09:29:14 -04:00
Georg Semmler
01099846aa
Add a release date for the 2.0.0-rc.0 release to the changelog 2022-04-22 15:50:23 +02:00
Justice4Joffrey
6d716a352c
Merge branch 'master' into oc-pg-updating-array 2022-04-22 09:41:24 +01:00
Georg Semmler
f70392fc86
Add a changelog entry 2022-04-21 15:45:41 +02:00
Otto Castle
b4bf4c8fc0 add changelog entry 2022-04-19 19:29:13 +01:00
Georg Semmler
abb75fc549
Apply suggestions from code review
Co-authored-by: Tom <beltowski.t@gmail.com>
2022-04-06 14:19:24 +00:00
Georg Semmler
0b054180bc
Cleanup the changelog
* We reorder the changelog a bit to highlight important possibly
breaking changes
* We add the missing 1.4.x releases (copied from the 1.4.x branch)
* We add a note about the minimal supported rust version
2022-04-05 22:10:11 +02:00
Erlend Langseth
37fc2d704c
Revert PR #2944 (FROM ONLY <table> clause) 2022-03-22 13:54:58 +01:00
Thomas Constantine Moore
382a39b553 typo 2022-03-06 12:38:40 -06:00
Thomas Constantine Moore
9ab77a16b3
Merge branch 'diesel-rs:master' into master 2022-02-27 17:24:49 -08:00
Justice4Joffrey
8ddb542d8f
Update CHANGELOG.md
Co-authored-by: Georg Semmler <github@weiznich.de>
2022-02-24 08:54:07 +00:00
Otto Castle
9ac586e683 changelog 2022-02-23 10:36:50 +00:00
Thomas Constantine Moore
9754975e8f add ssl_ca to accepted connection url query params 2022-02-18 12:55:58 -05:00
Thomas BESSOU
00e9fb7757 add CHANGELOG entry 2022-02-17 17:32:37 +01:00
Alexei Pastuchov
a06e025d40
changelog: note support MySQL SSL connection support
* add `ssl_mode` support to `MysqlConnection::establish`
* remove support for `mysqlclient-sys` < `0.2.5`
2022-01-30 12:56:09 +01:00
czotomo
0d429206c2 modify the changelog 2022-01-23 21:32:57 +01:00
Filip Gospodinov
fda3410c17 Add Sqlite support for the RETURNING clause
Add Sqlite support for the `RETURNING` clause by leveraging
the implementation for Postgres. So this change is essentially
just adjusting the build system to enable the support if a
Sqlite version which supports the `RETURNING` clause [1] is
complied against.

The "insert record with returning" unit tests for Postgres
couldn't be re-used because Sqlite doesn't support batch insert.
Because those tests provide value for Postgres, new versions
for Sqlite have been created which don't use batch insert.

[1] https://sqlite.org/releaselog/3_35_0.html
2022-01-06 10:16:16 +01:00
Filip Gospodinov
0d5e3a6a1c Tighten minimum required version for libsqlite3-sys
`libsqlite3-sys` is built with the `bundled_bindings`
feature enabled which was introduced in commit [1]
which in turn is part of `libsqlite3-sys` 0.17.2.

Versions below 0.17.2 will hence fail to compile.
Therefore, tighten the minimum required version.

[1] c70d148542
2021-12-30 22:39:46 +01:00
Georg Semmler
b9da55943d
Add a changelog entry 2021-12-16 10:19:53 +01:00
Yin Jifeng
a93fc70028 support serialize_as for AsChangeset 2021-12-12 11:39:07 +08:00
Pavan Kumar Sunkara
8e4e7c4a9c Address review comments 2021-12-10 01:25:40 +00:00
Erlend Langseth
e4560517f3 FROM ONLY <table> clause 2021-11-11 15:08:57 +01:00
blackghost1987
af84cb543c
Merge branch 'master' into mysql_client_found_rows_flag 2021-11-02 14:55:55 +01:00
Georg Semmler
fa3dc3ea04
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)
2021-10-05 20:02:44 +02:00
Juhasz Sandor
fab4e6124f changelog update 2021-09-03 13:05:56 +02:00
Sébastien Santoro
d87c61de39 Fix changelog typo 2021-08-25 11:26:24 +00:00
Georg Semmler
f445bc1cbf
Merge pull request #2827 from weiznich/prepared_statements_for_certain_insert_variants
Various insert improvments
2021-08-12 09:12:41 +00:00
Jiří Sejkora
e81c58763d
Fix typo in code sample in 2.0 changelog
The real name of the type is `EmbeddedMigrations`.
2021-08-07 05:49:13 +02:00
Georg Semmler
d5f60ad952
Various insert improvments
* Cache insert statments from queries, as those are safe to cache if the
  query itself is safe to cache
* Add a way to directly insert from a statically sized array
* Decouple default values from insert expressions and allow to generate
  insertable implementations that do not use the default values.
   + This unblocks real batch inserts on sqlite
   + This allows cache the prepared statements for insert from statically sized arrays as we know the size at compile time here
* Update the benchmarks to use the statically compile time variant.
  Other implementations also use prepared statements here, so this is
just fair
2021-07-27 13:27:40 +02:00
Georg Semmler
ed2fc1477d
Readd missing changlog entry 2021-06-23 08:51:06 +02:00