Debian Codegraph @

CHANGELOG.md

raw symbols SCIP
1 # Changelog
2
3 All notable changes to this project will be documented in this file.
4
5 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
8 ## 0.8.3 - 2025-01-03
9
10 41 pull requests were merged this release cycle.
11
12 ### Added
13 * [[#3418]]: parse timezone parameter in mysql connection url [[@dojiong]]
14 * [[#3491]]: chore: Update async-std v1.13 [[@jayvdb]]
15 * [[#3492]]: expose relation_id and relation_attribution_no on PgColumn [[@kurtbuilds]]
16 * [[#3493]]: doc(sqlite): document behavior for zoned date-time types [[@abonander]]
17 * [[#3500]]: Add sqlite commit and rollback hooks [[@gridbox]]
18 * [[#3505]]: chore(mysql): create test for passwordless auth (#3484) [[@abonander]]
19 * [[#3507]]: Add a "sqlite-unbundled" feature that dynamically links to system libsqlite3.so library [[@lilydjwg]]
20 * [[#3508]]: doc(sqlite): show how to turn options into a pool [[@M3t0r]]
21 * [[#3514]]: Support PgHstore by default in macros [[@joeydewaal]]
22 * [[#3550]]: Implement Acquire for PgListener [[@sandhose]]
23 * [[#3551]]: Support building with rustls but native certificates [[@IlyaBizyaev]]
24 * [[#3553]]: Add support for Postgres lquery arrays [[@philipcristiano]]
25 * [[#3560]]: Add PgListener::next_buffered(), to support batch processing of notifications [[@chanks]]
26 * [[#3577]]: Derive Copy where possible for database-specific types [[@veigaribo]]
27 * [[#3579]]: Reexport AnyTypeInfoKind [[@Norlock]]
28 * [[#3580]]: doc(mysql): document difference between `Uuid` and `uuid::fmt::Hyphenated` [[@abonander]]
29 * [[#3583]]: feat: point [[@jayy-lmao]]
30 * [[#3608]]: Implement AnyQueryResult for Sqlite and MySQL [[@pxp9]]
31 * [[#3623]]: feat: add geometry line [[@jayy-lmao]]
32 * [[#3658]]: feat: add Transaction type aliases [[@joeydewaal]]
33
34 ### Changed
35 * [[#3519]]: Remove unused dependencies from sqlx-core, sqlx-cli and sqlx-postgres [[@vsuryamurthy]]
36 * [[#3529]]: Box Pgconnection fields [[@joeydewaal]]
37 * [[#3548]]: Demote `.pgpass` file warning to a debug message. [[@denschub]]
38 * [[#3585]]: Eagerly reconnect in `PgListener::try_recv` [[@swlynch99]]
39 * [[#3596]]: Bump thiserror to v2.0.0 [[@paolobarbolini]]
40 * [[#3605]]: Use `UNION ALL` instead of `UNION` in nullable check [[@Suficio]]
41 * [[#3629]]: chore: remove BoxFuture's (non-breaking) [[@joeydewaal]]
42 * [[#3632]]: Bump hashlink to v0.10 [[@paolobarbolini]]
43 * [[#3643]]: Roll PostgreSQL 11..=15 tests to 13..=17 [[@paolobarbolini]]
44 * [[#3648]]: close listener connection on TimedOut and BrokenPipe errors [[@DXist]]
45 * [[#3649]]: Bump hashbrown to v0.15 [[@paolobarbolini]]
46
47 ### Fixed
48 * [[#3528]]: fix: obey `no-transaction` flag in down migrations [[@manifest]]
49 * [[#3536]]: fix: using sqlx::test macro inside macro's [[@joeydewaal]]
50 * [[#3545]]: fix: remove `sqlformat` [[@tbar4]]
51 * [[#3558]]: fix: fix example code of `query_as` [[@xuehaonan27]]
52 * [[#3566]]: Fix: Cannot query Postgres `INTERVAL[]` [[@Ddystopia]]
53 * [[#3593]]: fix: URL decode database name when parsing connection url [[@BenoitRanque]]
54 * [[#3601]]: Remove default-features = false from url [[@hsivonen]]
55 * [[#3604]]: Fix mistake in sqlx::test fixtures docs [[@andreweggleston]]
56 * [[#3612]]: fix(mysql): percent-decode database name [[@abonander]]
57 * [[#3640]]: Dont use `EXPLAIN` in nullability check for QuestDB [[@Suficio]]
58
59 [#3418]: https://github.com/launchbadge/sqlx/pull/3418
60 [#3478]: https://github.com/launchbadge/sqlx/pull/3478
61 [#3491]: https://github.com/launchbadge/sqlx/pull/3491
62 [#3492]: https://github.com/launchbadge/sqlx/pull/3492
63 [#3493]: https://github.com/launchbadge/sqlx/pull/3493
64 [#3500]: https://github.com/launchbadge/sqlx/pull/3500
65 [#3505]: https://github.com/launchbadge/sqlx/pull/3505
66 [#3507]: https://github.com/launchbadge/sqlx/pull/3507
67 [#3508]: https://github.com/launchbadge/sqlx/pull/3508
68 [#3514]: https://github.com/launchbadge/sqlx/pull/3514
69 [#3519]: https://github.com/launchbadge/sqlx/pull/3519
70 [#3528]: https://github.com/launchbadge/sqlx/pull/3528
71 [#3529]: https://github.com/launchbadge/sqlx/pull/3529
72 [#3536]: https://github.com/launchbadge/sqlx/pull/3536
73 [#3545]: https://github.com/launchbadge/sqlx/pull/3545
74 [#3548]: https://github.com/launchbadge/sqlx/pull/3548
75 [#3550]: https://github.com/launchbadge/sqlx/pull/3550
76 [#3551]: https://github.com/launchbadge/sqlx/pull/3551
77 [#3553]: https://github.com/launchbadge/sqlx/pull/3553
78 [#3558]: https://github.com/launchbadge/sqlx/pull/3558
79 [#3560]: https://github.com/launchbadge/sqlx/pull/3560
80 [#3566]: https://github.com/launchbadge/sqlx/pull/3566
81 [#3577]: https://github.com/launchbadge/sqlx/pull/3577
82 [#3579]: https://github.com/launchbadge/sqlx/pull/3579
83 [#3580]: https://github.com/launchbadge/sqlx/pull/3580
84 [#3583]: https://github.com/launchbadge/sqlx/pull/3583
85 [#3585]: https://github.com/launchbadge/sqlx/pull/3585
86 [#3593]: https://github.com/launchbadge/sqlx/pull/3593
87 [#3596]: https://github.com/launchbadge/sqlx/pull/3596
88 [#3601]: https://github.com/launchbadge/sqlx/pull/3601
89 [#3604]: https://github.com/launchbadge/sqlx/pull/3604
90 [#3605]: https://github.com/launchbadge/sqlx/pull/3605
91 [#3608]: https://github.com/launchbadge/sqlx/pull/3608
92 [#3612]: https://github.com/launchbadge/sqlx/pull/3612
93 [#3623]: https://github.com/launchbadge/sqlx/pull/3623
94 [#3629]: https://github.com/launchbadge/sqlx/pull/3629
95 [#3632]: https://github.com/launchbadge/sqlx/pull/3632
96 [#3640]: https://github.com/launchbadge/sqlx/pull/3640
97 [#3643]: https://github.com/launchbadge/sqlx/pull/3643
98 [#3648]: https://github.com/launchbadge/sqlx/pull/3648
99 [#3649]: https://github.com/launchbadge/sqlx/pull/3649
100 [#3658]: https://github.com/launchbadge/sqlx/pull/3658
101
102
103 ## 0.8.2 - 2024-09-02
104
105 10 pull requests were merged this release cycle.
106
107 This release addresses a few regressions that have occurred, and refines SQLx's MSRV policy (see [the FAQ](FAQ.md)).
108
109 ### Added
110 * [[#3447]]: Clarify usage of Json/Jsonb in query macros [[@Lachstec]]
111
112 ### Changed
113 * [[#3424]]: Remove deprecated feature-names from `Cargo.toml` files in examples [[@carschandler]]
114
115 ### Fixed
116 * [[#3403]]: Fix (#3395) sqlx::test macro in 0.8 [[@joeydewaal]]
117 * [[#3411]]: fix: Use rfc3339 to decode date from text [[@pierre-wehbe]]
118 * [[#3453]]: fix(#3445): PgHasArrayType [[@joeydewaal]]
119 * Fixes `#[sqlx(no_pg_array)]` being forbidden on `#[derive(Type)]` structs.
120 * [[#3454]]: fix: non snake case warning [[@joeydewaal]]
121 * [[#3459]]: Pgsql cube type compile fail [[@kdesjard]]
122 * [[#3465]]: fix(postgres): max number of binds is 65535, not 32767 (regression) [[@abonander]]
123 * [[#3467]]: fix cancellation issues with `PgListener`, `PgStream::recv()` [[@abonander]]
124 * Fixes cryptic `unknown message: "\\0"` error
125 * [[#3474]]: Fix try_get example in README.md [[@luveti]]
126
127 [#3403]: https://github.com/launchbadge/sqlx/pull/3403
128 [#3411]: https://github.com/launchbadge/sqlx/pull/3411
129 [#3424]: https://github.com/launchbadge/sqlx/pull/3424
130 [#3447]: https://github.com/launchbadge/sqlx/pull/3447
131 [#3453]: https://github.com/launchbadge/sqlx/pull/3453
132 [#3454]: https://github.com/launchbadge/sqlx/pull/3454
133 [#3455]: https://github.com/launchbadge/sqlx/pull/3455
134 [#3459]: https://github.com/launchbadge/sqlx/pull/3459
135 [#3465]: https://github.com/launchbadge/sqlx/pull/3465
136 [#3467]: https://github.com/launchbadge/sqlx/pull/3467
137 [#3474]: https://github.com/launchbadge/sqlx/pull/3474
138
139 ## 0.8.1 - 2024-08-23
140
141 16 pull requests were merged this release cycle.
142
143 This release contains a fix for [RUSTSEC-2024-0363].
144
145 Postgres users are advised to upgrade ASAP as a possible exploit has been demonstrated:
146 <https://github.com/launchbadge/sqlx/issues/3440#issuecomment-2307956901>
147
148 MySQL and SQLite do not _appear_ to be exploitable, but upgrading is recommended nonetheless.
149
150 ### Added
151 * [[#3421]]: correct spelling of `MySqlConnectOptions::no_engine_substitution()` [[@kolinfluence]]
152 * Deprecates `MySqlConnectOptions::no_engine_subsitution()` (oops) in favor of the correctly spelled version.
153
154 ### Changed
155 * [[#3376]]: doc: hide `spec_error` module [[@abonander]]
156 * This is a helper module for the macros and was not meant to be exposed.
157 * It is not expected to receive any breaking changes for the 0.8.x release, but is not designed as a public API.
158 Use at your own risk.
159 * [[#3382]]: feat: bumped to `libsqlite3-sys=0.30.1` to support sqlite 3.46 [[@CommanderStorm]]
160 * [[#3385]]: chore(examples):Migrated the pg-chat example to ratatui [[@CommanderStorm]]
161 * [[#3399]]: Upgrade to rustls 0.23 [[@djc]]
162 * RusTLS now has pluggable cryptography providers: `ring` (the existing implementation),
163 and `aws-lc-rs` which has optional FIPS certification.
164 * The existing features activating RusTLS (`runtime-tokio-rustls`, `runtime-async-std-rustls`, `tls-rustls`)
165 enable the `ring` provider of RusTLS to match the existing behavior so this _should not_ be a breaking change.
166 * Switch to the `tls-rustls-aws-lc-rs` feature to use the `aws-lc-rs` provider.
167 * If using `runtime-tokio-rustls` or `runtime-async-std-rustls`,
168 this will necessitate switching to the appropriate non-legacy runtime feature:
169 `runtime-tokio` or `runtime-async-std`
170 * See the RusTLS README for more details: <https://github.com/rustls/rustls?tab=readme-ov-file#cryptography-providers>
171
172 ### Fixed
173 * [[#2786]]: fix(sqlx-cli): do not clean sqlx during prepare [[@cycraig]]
174 * [[#3354]]: sqlite: fix inconsistent read-after-write [[@ckampfe]]
175 * [[#3371]]: Fix encoding and decoding of MySQL enums in `sqlx::Type` [[@alu]]
176 * [[#3374]]: fix: usage of `node12` in `SQLx` action [[@hamirmahal]]
177 * [[#3380]]: chore: replace structopt with clap in examples [[@tottoto]]
178 * [[#3381]]: Fix CI after Rust 1.80, remove dead feature references [[@abonander]]
179 * [[#3384]]: chore(tests): fixed deprecation warnings [[@CommanderStorm]]
180 * [[#3386]]: fix(dependencys):bumped cargo_metadata to `v0.18.1` to avoid yanked `v0.14.3` [[@CommanderStorm]]
181 * [[#3389]]: fix(cli): typo in error for required DB URL [[@ods]]
182 * [[#3417]]: Update version to 0.8 in README [[@soucosmo]]
183 * [[#3441]]: fix: audit protocol handling [[@abonander]]
184 * This addresses [RUSTSEC-2024-0363] and includes regression tests for MySQL, Postgres and SQLite.
185
186 [#2786]: https://github.com/launchbadge/sqlx/pull/2786
187 [#3354]: https://github.com/launchbadge/sqlx/pull/3354
188 [#3371]: https://github.com/launchbadge/sqlx/pull/3371
189 [#3374]: https://github.com/launchbadge/sqlx/pull/3374
190 [#3376]: https://github.com/launchbadge/sqlx/pull/3376
191 [#3380]: https://github.com/launchbadge/sqlx/pull/3380
192 [#3381]: https://github.com/launchbadge/sqlx/pull/3381
193 [#3382]: https://github.com/launchbadge/sqlx/pull/3382
194 [#3384]: https://github.com/launchbadge/sqlx/pull/3384
195 [#3385]: https://github.com/launchbadge/sqlx/pull/3385
196 [#3386]: https://github.com/launchbadge/sqlx/pull/3386
197 [#3389]: https://github.com/launchbadge/sqlx/pull/3389
198 [#3399]: https://github.com/launchbadge/sqlx/pull/3399
199 [#3417]: https://github.com/launchbadge/sqlx/pull/3417
200 [#3421]: https://github.com/launchbadge/sqlx/pull/3421
201 [#3441]: https://github.com/launchbadge/sqlx/pull/3441
202
203 [RUSTSEC-2024-0363]: https://rustsec.org/advisories/RUSTSEC-2024-0363.html
204
205 ## 0.8.0 - 2024-07-22
206
207 70 pull requests were merged this release cycle.
208
209 [#2697] was merged the same day as release 0.7.4 and so was missed by the automatic CHANGELOG generation.
210
211 ### Breaking
212 * [[#2697]]: fix(macros): only enable chrono when time is disabled [[@saiintbrisson]]
213 * [[#2973]]: Generic Associated Types in Database, replacing HasValueRef, HasArguments, HasStatement [[@nitn3lav]]
214 * [[#2482]]: chore: bump syn to 2.0 [[@saiintbrisson]]
215 * Deprecated type ascription syntax in the query macros was removed.
216 * [[#2736]]: Fix describe on PostgreSQL views with rules [[@tsing]]
217 * Potentially breaking: nullability inference changes for Postgres.
218 * [[#2869]]: Implement PgHasArrayType for all references [[@tylerhawkes]]
219 * Conflicts with existing manual implementations.
220 * [[#2940]]: fix: Decode and Encode derives (#1031) [[@benluelo]]
221 * Changes lifetime obligations for field types.
222 * [[#3064]]: Sqlite explain graph [[@tyrelr]]
223 * Potentially breaking: nullability inference changes for SQLite.
224 * [[#3123]]: Reorder attrs in sqlx::test macro [[@bobozaur]]
225 * Potentially breaking: attributes on `#[sqlx::test]` usages are applied in the correct order now.
226 * [[#3126]]: Make Encode return a result [[@FSMaxB]]
227 * [[#3130]]: Add version information for failed cli migration (#3129) [[@FlakM]]
228 * Breaking changes to `MigrateError`.
229 * [[#3181]]: feat: no tx migration [[@cleverjam]]
230 * (Postgres only) migrations that should not run in a transaction can be flagged by adding `-- no-transaction` to the beginning.
231 * Breaking change: added field to `Migration`
232 * [[#3184]]: [BREAKING} fix(sqlite): always use `i64` as intermediate when decoding [[@abonander]]
233 * integer decoding will now loudly error on overflow instead of silently truncating.
234 * some usages of the query!() macros might change an i32 to an i64.
235 * [[#3252]]: fix `#[derive(sqlx::Type)]` in Postgres [[@abonander]]
236 * Manual implementations of PgHasArrayType for enums will conflict with the generated one. Delete the manual impl or add `#[sqlx(no_pg_array)]` where conflicts occur.
237 * Type equality for PgTypeInfo is now schema-aware.
238 * [[#3329]]: fix: correct handling of arrays of custom types in Postgres [[@abonander]]
239 * Potential breaking change: `PgTypeInfo::with_name()` infers types that start with `_` to be arrays of the un-prefixed type. Wrap type names in quotes to bypass this behavior.
240 * [[#3356]]: breaking: fix name collision in `FromRow`, return `Error::ColumnDecode` for `TryFrom` errors [[@abonander]]
241 * Breaking behavior change: errors with `#[sqlx(try_from = "T")]` now return `Error::ColumnDecode` instead of `Error::ColumnNotFound`.
242 * Breaking because `#[sqlx(default)]` on an individual field or the struct itself would have previously suppressed the error.
243 This doesn't seem like good behavior as it could result in some potentially very difficult bugs.
244 * Instead, create a wrapper implementing `From` and apply the default explicitly.
245 * [[#3337]]: allow rename with rename_all (close #2896) [[@DirectorX]]
246 * Changes the precedence of `#[sqlx(rename)]` and `#[sqlx(rename_all)]` to match the expected behavior (`rename` wins).
247 * [[#3285]]: fix: use correct names for sslmode options [[@lily-mosquitoes]]
248 * Changes the output of `ConnectOptions::to_url_lossy()` to match what parsing expects.
249
250 ### Added
251 * [[#2917]]: Add Debug impl for PgRow [[@g-bartoszek]]
252 * [[#3113]]: feat: new derive feature flag [[@saiintbrisson]]
253 * [[#3154]]: feat: add `MySqlTime`, audit `mysql::types` for panics [[@abonander]]
254 * [[#3188]]: feat(cube): support postgres cube [[@jayy-lmao]]
255 * [[#3244]]: feat: support `NonZero*` scalar types [[@AlphaKeks]]
256 * [[#3260]]: feat: Add set_update_hook on SqliteConnection [[@gridbox]]
257 * [[#3291]]: feat: support the Postgres Bool type for the Any driver [[@etorreborre]]
258 * [[#3293]]: Add LICENSE-* files to crates [[@LecrisUT]]
259 * [[#3303]]: add array support for NonZeroI* in postgres [[@JohannesIBK]]
260 * [[#3311]]: Add example on how to use Transaction as Executor [[@Lachstec]]
261 * [[#3343]]: Add support for PostgreSQL HSTORE data type [[@KobusEllis]]
262
263 ### Changed
264 * [[#2652]]: MySQL: Remove collation compatibility check for strings [[@alu]]
265 * [[#2960]]: Removed `Send` trait bound from argument binding [[@bobozaur]]
266 * [[#2970]]: refactor: lift type mappings into driver crates [[@abonander]]
267 * [[#3148]]: Bump libsqlite3-sys to v0.28 [[@NfNitLoop]]
268 * Note: version bumps to `libsqlite3-sys` are not considered breaking changes as per our semver guarantees.
269 * [[#3265]]: perf: box `MySqlConnection` to reduce sizes of futures [[@stepantubanov]]
270 * [[#3352]]: chore:added a testcase for `sqlx migrate add ...` [[@CommanderStorm]]
271 * [[#3340]]: ci: Add job to check that sqlx builds with its declared minimum dependencies [[@iamjpotts]]
272
273 ### Fixed
274 * [[#2702]]: Constrain cyclic associated types to themselves [[@BadBastion]]
275 * [[#2954]]: Fix several inter doc links [[@ralpha]]
276 * [[#3073]]: feat(logging): Log slow acquires from connection pool [[@iamjpotts]]
277 * [[#3137]]: SqliteConnectOptions::filename() memory fix (#3136) [[@hoxxep]]
278 * [[#3138]]: PostgreSQL Bugfix: Ensure connection is usable after failed COPY inside a transaction [[@feikesteenbergen]]
279 * [[#3146]]: fix(sqlite): delete unused `ConnectionHandleRaw` type [[@abonander]]
280 * [[#3162]]: Drop urlencoding dependency [[@paolobarbolini]]
281 * [[#3165]]: Bump deps that do not need code changes [[@GnomedDev]]
282 * [[#3167]]: fix(ci): use `docker compose` instead of `docker-compose` [[@abonander]]
283 * [[#3172]]: fix: Option decoding in any driver [[@pxp9]]
284 * [[#3173]]: fix(postgres) : int type conversion while decoding [[@RaghavRox]]
285 * [[#3190]]: Update time to 0.3.36 [[@BlackSoulHub]]
286 * [[#3191]]: Fix unclean TLS shutdown [[@levkk]]
287 * [[#3194]]: Fix leaking connections in fetch_optional (#2647) [[@danjpgriffin]]
288 * [[#3216]]: security: bump rustls to 0.21.11 [[@toxeus]]
289 * [[#3230]]: fix: sqlite pragma order for auto_vacuum [[@jasonish]]
290 * [[#3233]]: fix: get_filename should not consume self [[@jasonish]]
291 * [[#3234]]: fix(ci): pin Rust version, ditch unmaintained actions [[@abonander]]
292 * [[#3236]]: fix: resolve `path` ownership problems when using `sqlx_macros_unstable` [[@lily-mosquitoes]]
293 * [[#3254]]: fix: hide `sqlx_postgres::any` [[@Zarathustra2]]
294 * [[#3266]]: ci: MariaDB - add back 11.4 and add 11.5 [[@grooverdan]]
295 * [[#3267]]: ci: syntax fix [[@grooverdan]]
296 * [[#3271]]: docs(sqlite): fix typo - unixtime() -> unixepoch() [[@joelkoen]]
297 * [[#3276]]: Invert boolean for `migrate` error message. (#3275) [[@nk9]]
298 * [[#3279]]: fix Clippy errors [[@abonander]]
299 * [[#3288]]: fix: sqlite update_hook char types [[@jasonish]]
300 * [[#3297]]: Pass the `persistent` query setting when preparing queries with the `Any` driver [[@etorreborre]]
301 * [[#3298]]: Track null arguments in order to provide the appropriate type when converting them. [[@etorreborre]]
302 * [[#3312]]: doc: Minor rust docs fixes [[@SrGesus]]
303 * [[#3327]]: chore: fixed one usage of `select_input_type!()` being unhygenic [[@CommanderStorm]]
304 * [[#3328]]: fix(ci): comment not separated from other characters [[@hamirmahal]]
305 * [[#3341]]: refactor: Resolve cargo check warnings in postgres examples [[@iamjpotts]]
306 * [[#3346]]: fix(postgres): don't panic if `M` or `C` Notice fields are not UTF-8 [[@YgorSouza]]
307 * [[#3350]]: fix:the `json`-feature should activate `sqlx-postgres?/json` as well [[@CommanderStorm]]
308 * [[#3353]]: fix: build script new line at eof [[@Zarthus]]
309 * (no PR): activate `clock` and `std` features of `workspace.dependencies.chrono`.
310
311 [#2482]: https://github.com/launchbadge/sqlx/pull/2482
312 [#2652]: https://github.com/launchbadge/sqlx/pull/2652
313 [#2697]: https://github.com/launchbadge/sqlx/pull/2697
314 [#2702]: https://github.com/launchbadge/sqlx/pull/2702
315 [#2736]: https://github.com/launchbadge/sqlx/pull/2736
316 [#2869]: https://github.com/launchbadge/sqlx/pull/2869
317 [#2917]: https://github.com/launchbadge/sqlx/pull/2917
318 [#2940]: https://github.com/launchbadge/sqlx/pull/2940
319 [#2954]: https://github.com/launchbadge/sqlx/pull/2954
320 [#2960]: https://github.com/launchbadge/sqlx/pull/2960
321 [#2970]: https://github.com/launchbadge/sqlx/pull/2970
322 [#2973]: https://github.com/launchbadge/sqlx/pull/2973
323 [#3064]: https://github.com/launchbadge/sqlx/pull/3064
324 [#3073]: https://github.com/launchbadge/sqlx/pull/3073
325 [#3113]: https://github.com/launchbadge/sqlx/pull/3113
326 [#3123]: https://github.com/launchbadge/sqlx/pull/3123
327 [#3126]: https://github.com/launchbadge/sqlx/pull/3126
328 [#3130]: https://github.com/launchbadge/sqlx/pull/3130
329 [#3137]: https://github.com/launchbadge/sqlx/pull/3137
330 [#3138]: https://github.com/launchbadge/sqlx/pull/3138
331 [#3146]: https://github.com/launchbadge/sqlx/pull/3146
332 [#3148]: https://github.com/launchbadge/sqlx/pull/3148
333 [#3154]: https://github.com/launchbadge/sqlx/pull/3154
334 [#3162]: https://github.com/launchbadge/sqlx/pull/3162
335 [#3165]: https://github.com/launchbadge/sqlx/pull/3165
336 [#3167]: https://github.com/launchbadge/sqlx/pull/3167
337 [#3172]: https://github.com/launchbadge/sqlx/pull/3172
338 [#3173]: https://github.com/launchbadge/sqlx/pull/3173
339 [#3181]: https://github.com/launchbadge/sqlx/pull/3181
340 [#3184]: https://github.com/launchbadge/sqlx/pull/3184
341 [#3188]: https://github.com/launchbadge/sqlx/pull/3188
342 [#3190]: https://github.com/launchbadge/sqlx/pull/3190
343 [#3191]: https://github.com/launchbadge/sqlx/pull/3191
344 [#3194]: https://github.com/launchbadge/sqlx/pull/3194
345 [#3216]: https://github.com/launchbadge/sqlx/pull/3216
346 [#3230]: https://github.com/launchbadge/sqlx/pull/3230
347 [#3233]: https://github.com/launchbadge/sqlx/pull/3233
348 [#3234]: https://github.com/launchbadge/sqlx/pull/3234
349 [#3236]: https://github.com/launchbadge/sqlx/pull/3236
350 [#3244]: https://github.com/launchbadge/sqlx/pull/3244
351 [#3252]: https://github.com/launchbadge/sqlx/pull/3252
352 [#3254]: https://github.com/launchbadge/sqlx/pull/3254
353 [#3260]: https://github.com/launchbadge/sqlx/pull/3260
354 [#3265]: https://github.com/launchbadge/sqlx/pull/3265
355 [#3266]: https://github.com/launchbadge/sqlx/pull/3266
356 [#3267]: https://github.com/launchbadge/sqlx/pull/3267
357 [#3271]: https://github.com/launchbadge/sqlx/pull/3271
358 [#3276]: https://github.com/launchbadge/sqlx/pull/3276
359 [#3279]: https://github.com/launchbadge/sqlx/pull/3279
360 [#3285]: https://github.com/launchbadge/sqlx/pull/3285
361 [#3288]: https://github.com/launchbadge/sqlx/pull/3288
362 [#3291]: https://github.com/launchbadge/sqlx/pull/3291
363 [#3293]: https://github.com/launchbadge/sqlx/pull/3293
364 [#3297]: https://github.com/launchbadge/sqlx/pull/3297
365 [#3298]: https://github.com/launchbadge/sqlx/pull/3298
366 [#3303]: https://github.com/launchbadge/sqlx/pull/3303
367 [#3311]: https://github.com/launchbadge/sqlx/pull/3311
368 [#3312]: https://github.com/launchbadge/sqlx/pull/3312
369 [#3327]: https://github.com/launchbadge/sqlx/pull/3327
370 [#3328]: https://github.com/launchbadge/sqlx/pull/3328
371 [#3329]: https://github.com/launchbadge/sqlx/pull/3329
372 [#3337]: https://github.com/launchbadge/sqlx/pull/3337
373 [#3340]: https://github.com/launchbadge/sqlx/pull/3340
374 [#3341]: https://github.com/launchbadge/sqlx/pull/3341
375 [#3343]: https://github.com/launchbadge/sqlx/pull/3343
376 [#3346]: https://github.com/launchbadge/sqlx/pull/3346
377 [#3350]: https://github.com/launchbadge/sqlx/pull/3350
378 [#3352]: https://github.com/launchbadge/sqlx/pull/3352
379 [#3353]: https://github.com/launchbadge/sqlx/pull/3353
380 [#3356]: https://github.com/launchbadge/sqlx/pull/3356
381 ## 0.7.4 - 2024-03-11
382
383 38 pull requests were merged this release cycle.
384
385 This is officially the **last** release of the 0.7.x release cycle.
386
387 As of this release, development of 0.8.0 has begun on `main` and only high-priority bugfixes may be backported.
388
389 ### Added
390
391 * [[#2891]]: feat: expose getters for connect options fields [[@saiintbrisson]]
392 * [[#2902]]: feat: add `to_url_lossy` to connect options [[@lily-mosquitoes]]
393 * [[#2927]]: Support `query!` for cargo-free systems [[@kshramt]]
394 * [[#2997]]: doc(FAQ): add entry explaining prepared statements [[@abonander]]
395 * [[#3001]]: Update README to clarify MariaDB support [[@iangilfillan]]
396 * [[#3004]]: feat(logging): Add numeric elapsed time field elapsed_secs [[@iamjpotts]]
397 * [[#3007]]: feat: add `raw_sql` API [[@abonander]]
398 * This hopefully makes it easier to find how to execute statements which are not supported by the default
399 prepared statement interfaces `query*()` and `query!()`.
400 * Improved documentation across the board for the `query*()` functions.
401 * Deprecated: `execute_many()` and `fetch_many()` on interfaces that use prepared statements.
402 * Multiple SQL statements in one query string were only supported by SQLite because its prepared statement
403 interface is the *only* way to execute SQL. All other database flavors forbid multiple statements in
404 one prepared statement string as an extra defense against SQL injection.
405 * The new `raw_sql` API retains this functionality because it explicitly does *not* use prepared statements.
406 Raw or text-mode query interfaces generally allow multiple statements in one query string, and this is
407 supported by all current databases. Due to their nature, however, one cannot use bind parameters with them.
408 * If this change affects you, an issue is open for discussion: https://github.com/launchbadge/sqlx/issues/3108
409 * [[#3011]]: Added support to IpAddr with MySQL/MariaDB. [[@Icerath]]
410 * [[#3013]]: Add default implementation for PgInterval [[@pawurb]]
411 * [[#3018]]: Add default implementation for PgMoney [[@pawurb]]
412 * [[#3026]]: Update docs to reflect support for MariaDB data types [[@iangilfillan]]
413 * [[#3037]]: feat(mysql): allow to connect with mysql driver without default behavor [[@darkecho731]]
414
415 ### Changed
416
417 * [[#2900]]: Show latest url to docs for macro.migrate [[@Vrajs16]]
418 * [[#2914]]: Use `create_new` instead of `atomic-file-write` [[@mattfbacon]]
419 * [[#2926]]: docs: update example for `PgConnectOptions` [[@Fyko]]
420 * [[#2989]]: sqlx-core: Remove dotenvy dependency [[@joshtriplett]]
421 * [[#2996]]: chore: Update ahash to 0.8.7 [[@takenoko-gohan]]
422 * [[#3006]]: chore(deps): Replace unmaintained tempdir crate with tempfile [[@iamjpotts]]
423 * [[#3008]]: chore: Ignore .sqlx folder created by running ci steps locally [[@iamjpotts]]
424 * [[#3009]]: chore(dev-deps): Upgrade env_logger from 0.9 to 0.11 [[@iamjpotts]]
425 * [[#3010]]: chore(deps): Upgrade criterion to 0.5.1 [[@iamjpotts]]
426 * [[#3050]]: Optimize SASL auth in sqlx-postgres [[@mirek26]]
427 * [[#3055]]: Set TCP_NODELAY option on TCP sockets [[@mirek26]]
428 * [[#3065]]: Improve max_lifetime handling [[@mirek26]]
429 * [[#3072]]: Change the name of "inner" function generated by `#[sqlx::test]` [[@ciffelia]]
430 * [[#3083]]: Remove sha1 because it's not being used in postgres [[@rafaelGuerreiro]]
431
432 ### Fixed
433
434 * [[#2898]]: Fixed docs [[@Vrajs16]]
435 * [[#2905]]: fix(mysql): Close prepared statement if persistence is disabled [[@larsschumacher]]
436 * [[#2913]]: Fix handling of deferred constraints [[@Thomasdezeeuw]]
437 * [[#2919]]: fix duplicate "`" in FromRow "default" attribute doc comment [[@shengsheng]]
438 * [[#2932]]: fix(postgres): avoid unnecessary flush in PgCopyIn::read_from [[@tsing]]
439 * [[#2955]]: Minor fixes [[@Dawsoncodes]]
440 * [[#2963]]: Fixed ReadMe badge styling [[@tadghh]]
441 * [[#2976]]: fix: AnyRow not support PgType::Varchar [[@holicc]]
442 * [[#3053]]: fix: do not panic when binding a large BigDecimal [[@Ekleog]]
443 * [[#3056]]: fix: spans in sqlite tracing (#2876) [[@zoomiti]]
444 * [[#3089]]: fix(migrate): improve error message when parsing version from filename [[@abonander]]
445 * [[#3098]]: Migrations fixes [[@abonander]]
446 * Unhides `sqlx::migrate::Migrator`.
447 * Improves I/O error message when failing to read a file in `migrate!()`.
448
449 [#2891]: https://github.com/launchbadge/sqlx/pull/2891
450 [#2898]: https://github.com/launchbadge/sqlx/pull/2898
451 [#2900]: https://github.com/launchbadge/sqlx/pull/2900
452 [#2902]: https://github.com/launchbadge/sqlx/pull/2902
453 [#2905]: https://github.com/launchbadge/sqlx/pull/2905
454 [#2913]: https://github.com/launchbadge/sqlx/pull/2913
455 [#2914]: https://github.com/launchbadge/sqlx/pull/2914
456 [#2919]: https://github.com/launchbadge/sqlx/pull/2919
457 [#2926]: https://github.com/launchbadge/sqlx/pull/2926
458 [#2927]: https://github.com/launchbadge/sqlx/pull/2927
459 [#2932]: https://github.com/launchbadge/sqlx/pull/2932
460 [#2955]: https://github.com/launchbadge/sqlx/pull/2955
461 [#2963]: https://github.com/launchbadge/sqlx/pull/2963
462 [#2976]: https://github.com/launchbadge/sqlx/pull/2976
463 [#2989]: https://github.com/launchbadge/sqlx/pull/2989
464 [#2996]: https://github.com/launchbadge/sqlx/pull/2996
465 [#2997]: https://github.com/launchbadge/sqlx/pull/2997
466 [#3001]: https://github.com/launchbadge/sqlx/pull/3001
467 [#3004]: https://github.com/launchbadge/sqlx/pull/3004
468 [#3006]: https://github.com/launchbadge/sqlx/pull/3006
469 [#3007]: https://github.com/launchbadge/sqlx/pull/3007
470 [#3008]: https://github.com/launchbadge/sqlx/pull/3008
471 [#3009]: https://github.com/launchbadge/sqlx/pull/3009
472 [#3010]: https://github.com/launchbadge/sqlx/pull/3010
473 [#3011]: https://github.com/launchbadge/sqlx/pull/3011
474 [#3013]: https://github.com/launchbadge/sqlx/pull/3013
475 [#3018]: https://github.com/launchbadge/sqlx/pull/3018
476 [#3026]: https://github.com/launchbadge/sqlx/pull/3026
477 [#3037]: https://github.com/launchbadge/sqlx/pull/3037
478 [#3050]: https://github.com/launchbadge/sqlx/pull/3050
479 [#3053]: https://github.com/launchbadge/sqlx/pull/3053
480 [#3055]: https://github.com/launchbadge/sqlx/pull/3055
481 [#3056]: https://github.com/launchbadge/sqlx/pull/3056
482 [#3065]: https://github.com/launchbadge/sqlx/pull/3065
483 [#3072]: https://github.com/launchbadge/sqlx/pull/3072
484 [#3083]: https://github.com/launchbadge/sqlx/pull/3083
485 [#3089]: https://github.com/launchbadge/sqlx/pull/3089
486 [#3098]: https://github.com/launchbadge/sqlx/pull/3098
487
488 ## 0.7.3 - 2023-11-22
489
490 38 pull requests were merged this release cycle.
491
492 ### Added
493 * [[#2478]]: feat(citext): support postgres citext [[@hgranthorner]]
494 * [[#2545]]: Add `fixtures_path` in sqlx::test args [[@ripa1995]]
495 * [[#2665]]: feat(mysql): support packet splitting [[@tk2217]]
496 * [[#2752]]: Enhancement #2747 Provide `fn PgConnectOptions::get_host(&self)` [[@boris-lok]]
497 * [[#2769]]: Customize the macro error message based on the metadata [[@Nemo157]]
498 * [[#2793]]: derived Hash trait for PgInterval [[@yasamoka]]
499 * [[#2801]]: derive FromRow: sqlx(default) for all fields [[@grgi]]
500 * [[#2827]]: Add impl `FromRow` for the unit type [[@nanoqsh]]
501 * [[#2871]]: Add `MySqlConnectOptions::get_database()` [[@shiftrightonce]]
502 * [[#2873]]: Sqlx Cli: Added force flag to drop database for postgres [[@Vrajs16]]
503 * [[#2894]]: feat: `Text` adapter [[@abonander]]
504
505 ### Changed
506 * [[#2701]]: Remove documentation on offline feature [[@Baptistemontan]]
507 * [[#2713]]: Add additional info regarding using Transaction and PoolConnection as… [[@satwanjyu]]
508 * [[#2770]]: Update README.md [[@snspinn]]
509 * [[#2797]]: doc(mysql): document behavior regarding `BOOLEAN` and the query macros [[@abonander]]
510 * [[#2803]]: Don't use separate temp dir for query jsons (2) [[@mattfbacon]]
511 * [[#2819]]: postgres begin cancel safe [[@conradludgate]]
512 * [[#2832]]: Update extra_float_digits default to 2 instead of 3 [[@brianheineman]]
513 * [[#2865]]: Update Faq - Bulk upsert with optional fields [[@Vrajs16]]
514 * [[#2880]]: feat: use specific message for slow query logs [[@abonander]]
515 * [[#2882]]: Do not require db url for prepare [[@tamasfe]]
516 * [[#2890]]: doc(sqlite): cover lack of `NUMERIC` support [[@abonander]]
517 * [No PR]: Upgraded `libsqlite3-sys` to 0.27.0
518 * Note: linkage to `libsqlite3-sys` is considered semver-exempt;
519 see the release notes for 0.7.0 below for details.
520
521 ### Fixed
522 * [[#2640]]: fix: sqlx::macro db cleanup race condition by adding a margin to current timestamp [[@fhsgoncalves]]
523 * [[#2655]]: [fix] Urlencode when passing filenames to sqlite3 [[@uttarayan21]]
524 * [[#2684]]: Make PgListener recover from UnexpectedEof [[@hamiltop]]
525 * [[#2688]]: fix: Make rust_decimal and bigdecimal decoding more lenient [[@cameronbraid]]
526 * [[#2754]]: Is tests/x.py maintained? And I tried fix it. [[@qwerty2501]]
527 * [[#2784]]: fix: decode postgres time without subsecond [[@granddaifuku]]
528 * [[#2806]]: Depend on version of async-std with non-private spawn-blocking [[@A248]]
529 * [[#2820]]: fix: correct decoding of `rust_decimal::Decimal` for high-precision values [[@abonander]]
530 * [[#2822]]: issue #2821 Update error handling logic when opening a TCP connection [[@anupj]]
531 * [[#2826]]: chore: bump some sqlx-core dependencies [[@djc]]
532 * [[#2838]]: Fixes rust_decimal scale for Postgres [[@jkleinknox]]
533 * [[#2847]]: Fix comment in `sqlx migrate add` help text [[@cryeprecision]]
534 * [[#2850]]: fix(core): avoid unncessary wakeups in `try_stream!()` [[@abonander]]
535 * [[#2856]]: Prevent warnings running `cargo build` [[@nyurik]]
536 * [[#2864]]: fix(sqlite): use `AtomicUsize` for thread IDs [[@abonander]]
537 * [[#2892]]: Fixed force dropping bug [[@Vrajs16]]
538
539 [#2478]: https://github.com/launchbadge/sqlx/pull/2478
540 [#2545]: https://github.com/launchbadge/sqlx/pull/2545
541 [#2640]: https://github.com/launchbadge/sqlx/pull/2640
542 [#2655]: https://github.com/launchbadge/sqlx/pull/2655
543 [#2665]: https://github.com/launchbadge/sqlx/pull/2665
544 [#2684]: https://github.com/launchbadge/sqlx/pull/2684
545 [#2688]: https://github.com/launchbadge/sqlx/pull/2688
546 [#2701]: https://github.com/launchbadge/sqlx/pull/2701
547 [#2713]: https://github.com/launchbadge/sqlx/pull/2713
548 [#2752]: https://github.com/launchbadge/sqlx/pull/2752
549 [#2754]: https://github.com/launchbadge/sqlx/pull/2754
550 [#2769]: https://github.com/launchbadge/sqlx/pull/2769
551 [#2770]: https://github.com/launchbadge/sqlx/pull/2770
552 [#2782]: https://github.com/launchbadge/sqlx/pull/2782
553 [#2784]: https://github.com/launchbadge/sqlx/pull/2784
554 [#2793]: https://github.com/launchbadge/sqlx/pull/2793
555 [#2797]: https://github.com/launchbadge/sqlx/pull/2797
556 [#2801]: https://github.com/launchbadge/sqlx/pull/2801
557 [#2803]: https://github.com/launchbadge/sqlx/pull/2803
558 [#2806]: https://github.com/launchbadge/sqlx/pull/2806
559 [#2819]: https://github.com/launchbadge/sqlx/pull/2819
560 [#2820]: https://github.com/launchbadge/sqlx/pull/2820
561 [#2822]: https://github.com/launchbadge/sqlx/pull/2822
562 [#2826]: https://github.com/launchbadge/sqlx/pull/2826
563 [#2827]: https://github.com/launchbadge/sqlx/pull/2827
564 [#2832]: https://github.com/launchbadge/sqlx/pull/2832
565 [#2838]: https://github.com/launchbadge/sqlx/pull/2838
566 [#2847]: https://github.com/launchbadge/sqlx/pull/2847
567 [#2850]: https://github.com/launchbadge/sqlx/pull/2850
568 [#2856]: https://github.com/launchbadge/sqlx/pull/2856
569 [#2864]: https://github.com/launchbadge/sqlx/pull/2864
570 [#2865]: https://github.com/launchbadge/sqlx/pull/2865
571 [#2871]: https://github.com/launchbadge/sqlx/pull/2871
572 [#2873]: https://github.com/launchbadge/sqlx/pull/2873
573 [#2880]: https://github.com/launchbadge/sqlx/pull/2880
574 [#2882]: https://github.com/launchbadge/sqlx/pull/2882
575 [#2890]: https://github.com/launchbadge/sqlx/pull/2890
576 [#2892]: https://github.com/launchbadge/sqlx/pull/2892
577 [#2894]: https://github.com/launchbadge/sqlx/pull/2894
578
579 ## 0.7.2 - 2023-09-25
580
581 23 pull requests were merged this release cycle.
582
583 ### Added
584
585 * [[#2121]]: Add JSON support to `FromRow` derive [[@95ulisse]]
586 * [[#2533]]: Implement mysql_clear_password [[@ldanilek]]
587 * [[#2538]]: cli: add --target-version CLI flags for migrate run/revert [[@inahga]]
588 * [[#2577]]: supplement Postgres listen example with a small chat example [[@JockeM]]
589 * [[#2602]]: Support naming migrations sequentially [[@vmax]]
590 * [[#2634]]: Adding PgHasArrayType for &[u8;N] [[@snf]]
591 * [[#2646]]: Support for setting client certificate and key from bytes [[@wyhaya]]
592 * [[#2664]]: Automatically infer migration type [[@vmax]]
593 * [[#2712]]: Add impl for `Type`, `Decode`, and `Encode` for `Box<str>` and `Box<[u8]>` [[@grant0417]]
594
595 ### Changed
596 * [[#2650]]: Cleanup format arguments [[@nyurik]]
597 * [[#2695]]: remove &mut PoolConnection from Executor docs [[@olback]]
598 * This impl was removed in 0.7.0 because of coherence issues.
599 * [[#2706]]: Clarify where optional features should be enabled [[@kryptan]]
600 * [[#2717]]: Update README.md [[@fermanjj]]
601 * [[#2739]]: Bump mariadb CI images + mysql unpin [[@grooverdan]]
602 * [[#2742]]: Implemented poll_flush for Box<S:Socket> [[@bobozaur]]
603 * [[#2740]]: Remove sealed trait comments from documentation [[@bobozaur]]
604 * [[#2750]]: Fix #2384, bump flume to v0.11.0 [[@madadam]]
605 * [[#2757]]: Remove unused `remove_dir_all` crate from `sqlx-cli`, fixes RUSTSEC-2023-0018 [[@aldur]]
606
607 ### Fixed
608
609 * [[#2624]]: Documentation typo: BYTE -> BINARY [[@sebastianv89]]
610 * [[#2628]]: docs: 0.7 is stable in the entire README [[@marcusirgens]]
611 * [[#2630]]: fix(postgres): fix buffer management in PgCopyIn::read_from [[@tsing]]
612 * [[#2651]]: Chore: Fix few build warnings, and make CI fail on warn [[@nyurik]]
613 * [[#2670]]: fix: ignore extra fields in Postgres describe parsing [[@abonander]]
614 * [[#2687]]: docs: Fix description of `min_connections` [[@hakoerber]]
615
616 [#2121]: https://github.com/launchbadge/sqlx/pull/2121
617 [#2533]: https://github.com/launchbadge/sqlx/pull/2533
618 [#2538]: https://github.com/launchbadge/sqlx/pull/2538
619 [#2577]: https://github.com/launchbadge/sqlx/pull/2577
620 [#2602]: https://github.com/launchbadge/sqlx/pull/2602
621 [#2624]: https://github.com/launchbadge/sqlx/pull/2624
622 [#2628]: https://github.com/launchbadge/sqlx/pull/2628
623 [#2630]: https://github.com/launchbadge/sqlx/pull/2630
624 [#2634]: https://github.com/launchbadge/sqlx/pull/2634
625 [#2646]: https://github.com/launchbadge/sqlx/pull/2646
626 [#2650]: https://github.com/launchbadge/sqlx/pull/2650
627 [#2651]: https://github.com/launchbadge/sqlx/pull/2651
628 [#2664]: https://github.com/launchbadge/sqlx/pull/2664
629 [#2670]: https://github.com/launchbadge/sqlx/pull/2670
630 [#2687]: https://github.com/launchbadge/sqlx/pull/2687
631 [#2695]: https://github.com/launchbadge/sqlx/pull/2695
632 [#2706]: https://github.com/launchbadge/sqlx/pull/2706
633 [#2712]: https://github.com/launchbadge/sqlx/pull/2712
634 [#2717]: https://github.com/launchbadge/sqlx/pull/2717
635 [#2739]: https://github.com/launchbadge/sqlx/pull/2739
636 [#2740]: https://github.com/launchbadge/sqlx/pull/2740
637 [#2742]: https://github.com/launchbadge/sqlx/pull/2742
638 [#2750]: https://github.com/launchbadge/sqlx/pull/2750
639 [#2757]: https://github.com/launchbadge/sqlx/pull/2757
640
641 ## 0.7.1 - 2023-07-14
642
643 This release mainly addresses issues reported with the 0.7.0 release.
644
645 16 pull requests were merged this release cycle.
646
647 ### Added
648 * [[#2551]]: Introduce build_query_scalar for QueryBuilder [[@iamquang95]]
649 * [[#2605]]: Implement Default for QueryBuilder [[@Xydez]]
650 * [[#2616]]: feat(sqlx-core): add table function to database error [[@saiintbrisson]]
651 * [[#2619]]: feat: allow opt-out of `PgHasArrayType` with `#[derive(sqlx::Type)]` [[@abonander]]
652 * TL;DR: if you're getting errors from `#[derive(sqlx::Type)]` with `#[sqlx(transparent)]`
653 regarding `PgHasArrayType` not being implemented, add `#[sqlx(no_pg_array)]` to fix.
654
655 ### Changed
656 * [[#2566]]: improve docs about migration files [[@jnnnnn]]
657 * [[#2576]]: Major Version Update clap to 4.0 [[@titaniumtraveler]]
658 * [[#2597]]: Bump webpki-roots to v0.24 [[@paolobarbolini]]
659 * [[#2603]]: docs(changelog): be more verbose about offline mode breaking change [[@mrl5]]
660
661 ### Fixed
662 * [[#2553]]: Implement `Clone` for `PoolOptions` manually (#2548) [[@alilleybrinker]]
663 * [[#2580]]: Update README.md now that 0.7.0 is no longer in alpha [[@saolof]]
664 * [[#2585]]: Fix for Issue #2549 - cannot use feature "rust_decimal" without also using "bigdecimal" [[@deneut]]
665 * [[#2586]]: Fix optional dependency on sqlx-macros [[@kitterion]]
666 * [[#2593]]: Correct mention of the `tls-native-tls` in the documentation. [[@denschub]]
667 * [[#2599]]: Remove incorrect CAST in test database cleanup for MySQL. [[@fd]]
668 * [[#2613]]: Fix readme.md to reduce confusion about optional features (decimal->rust_decimal) [[@vabka]]
669 * [[#2620]]: fix(sqlite/any): encode bool as integer [[@saiintbrisson]]
670
671 [#2551]: https://github.com/launchbadge/sqlx/pull/2551
672 [#2553]: https://github.com/launchbadge/sqlx/pull/2553
673 [#2566]: https://github.com/launchbadge/sqlx/pull/2566
674 [#2576]: https://github.com/launchbadge/sqlx/pull/2576
675 [#2580]: https://github.com/launchbadge/sqlx/pull/2580
676 [#2585]: https://github.com/launchbadge/sqlx/pull/2585
677 [#2586]: https://github.com/launchbadge/sqlx/pull/2586
678 [#2593]: https://github.com/launchbadge/sqlx/pull/2593
679 [#2597]: https://github.com/launchbadge/sqlx/pull/2597
680 [#2599]: https://github.com/launchbadge/sqlx/pull/2599
681 [#2603]: https://github.com/launchbadge/sqlx/pull/2603
682 [#2605]: https://github.com/launchbadge/sqlx/pull/2605
683 [#2613]: https://github.com/launchbadge/sqlx/pull/2613
684 [#2616]: https://github.com/launchbadge/sqlx/pull/2616
685 [#2619]: https://github.com/launchbadge/sqlx/pull/2619
686 [#2620]: https://github.com/launchbadge/sqlx/pull/2620
687
688 ## 0.7.0 - 2023-06-30
689
690 At least **70 pull requests** were merged this release cycle! (The exact count is muddied with pull requests for alpha
691 releases and such.) And we gained 43 new contributors! Thank you to everyone who helped make this release a reality.
692
693 ### Breaking
694 Many revisions were made to query analysis in the SQLite driver; these are all potentially breaking changes
695 as they can change the output of `sqlx::query!()` _et al_. We'd like to thank [[@tyrelr]] for their numerous PRs to
696 this area.
697
698 The MSSQL driver has been removed as it was not nearly at the same maturity level as the other drivers.
699 [As previously announced][sqlx-pro], we have plans to introduce a fully featured replacement as a premium offering,
700 alongside drivers for other proprietary databases, with the goal to support full-time development on SQLx.
701
702 If interested, please email your inquiry to [email protected].
703
704 The offline mode for the queries has been changed to use a separate file per `query!()` invocation,
705 which is intended to reduce the number of conflicts when merging branches in a project that both modified queries.
706 This means that CLI flag `--merged` is no longer supported. See [[#2363]] for details and make sure that your
707 `sqlx-cli` version is in sync with the `sqlx` version in your project.
708
709 The type ascription override syntax for the query macros has been deprecated,
710 as parse support for it has been removed in `syn 2.0`, which we'll be upgrading to in the next breaking release.
711 This can be replaced with type overrides using casting syntax (`as`).
712 See [[#2483]] for details.
713
714 * [[#1946]]: Fix compile time verification performance regression for sqlite [[@liningpan]]
715 * [[#1960]]: Fix sqlite update return and order by type inference [[@tyrelr]]
716 * [[#1984]]: Sqlite EXPLAIN type inference improvements [[@rongcuid]]
717 * [[#2039]]: Break drivers out into separate crates, clean up some technical debt [[@abonander]]
718 * All deprecated items have been removed.
719 * The `mssql` feature and associated database driver has been deleted from the source tree. It will return as part of our planned SQLx Pro offering as a from-scratch rewrite with extra features (such as TLS) and type integrations that were previously missing.
720 * The `runtime-actix-*` features have been deleted. They were previously changed to be aliases of their `runtime-tokio-*` counterparts for backwards compatibility reasons, but their continued existence is misleading as SQLx has no special knowledge of Actix anymore.
721 * To fix, simply replace the `runtime-actix-*` feature with its `runtime-tokio-*` equivalent.
722 * The `git2` feature has been removed. This was a requested integration from a while ago that over time made less and less sense to be part of SQLx itself. We have to be careful with the crates we add to our public API as each one introduces yet another semver hazard. The expected replacement is to make `#[derive(sqlx::Type)]` useful enough that users can write wrapper types for whatever they want to use without SQLx needing to be specifically aware of it.
723 * The `Executor` impls for `Transaction` and `PoolConnection` have been deleted because they cannot exist in the new crate architecture without rewriting the `Executor` trait entirely.
724 * To fix this breakage, simply add a dereference where an `impl Executor` is expected, as they both dereference to the inner connection type which will still implement it:
725 * `&mut transaction` -> `&mut *transaction`
726 * `&mut connection` -> `&mut *connection`
727 * These cannot be blanket impls as it triggers an overflow in the compiler due to the lack of lazy normalization, and
728 the driver crates cannot provide their own impls due to the orphan rule.
729 * We're expecting to do another major refactor of traits to incorporate generic associated types (GAT).
730 This will mean another major release of SQLx but ideally most API usage will not need to change significantly, if at all.
731 * The fields of `Migrator` are now `#[doc(hidden)]` and semver-exempt; they weren't meant to be public.
732 * The `offline` feature has been removed from the `sqlx` facade crate and is enabled unconditionally as most users are expected to have enabled it anyway and disabling it doesn't seem to appreciably affect compile times.
733 * The `decimal` feature has been renamed to `rust_decimal` to match the crate it actually provides integrations for.
734 * `AnyDriver` and `AnyConnection` now require either `sqlx::any::install_drivers()` or `sqlx::any::install_default_drivers()` to be called at some point during the process' lifetime before the first connection is made, as the set of possible drivers is now determined at runtime. This was determined to be the least painful way to provide knowledge of database drivers to `Any` without them being hardcoded.
735 * The `AnyEncode` trait has been removed.
736 * [[#2109]]: feat: better database errors [[@saiintbrisson]]
737 * [[#2094]]: Update libsqlite3-sys to 0.25.1 [[@penberg]]
738 * Alongside this upgrade, we are now considering the linkage to `libsqlite3-sys` to be **semver-exempt**,
739 and we reserve the right to upgrade it as necessary. If you are using `libsqlite3-sys` directly or a crate that
740 links it such as `rusqlite`, you should pin the versions of both crates to avoid breakages from `cargo update`:
741 ```toml
742 [dependencies]
743 sqlx = { version = "=0.7.0", features = ["sqlite"] }
744 rusqlite = "=0.29.0"
745 ```
746 * [[#2132]]: fix: use owned Builder pattern for ConnectOptions [[@ar3s3ru]]
747 * [[#2253]]: Sqlite describe fixes [[@tyrelr]]
748 * [[#2285]]: `time`: Assume UTC when decoding a DATETIME column in sqlite [[@nstinus]]
749 * [[#2363]]: [offline] Change prepare to one-file-per-query [[@cycraig]]
750 * [[#2387]]: PATCH: bump libsqlite3-sys to patched version [[@grantkee]]
751 * [[#2409]]: fix(#2407): respect the HaltIfNull opcode when determining nullability [[@arlyon]]
752 * [[#2459]]: limit the number of instructions that can be evaluated [[@tyrelr]]
753 * [[#2467]]: Add and improve sqlite describe performance benchmarks [[@tyrelr]]
754 * [[#2491]]: sqlite date macro support [[@Arcayr]]
755 * Changes `OffsetDateTime` to be the first type used when deserializing a `timestamp` type.
756 * [[#2496]]: Bump to libsqlite3-sys 0.26 [[@mdecimus]]
757 * [[#2508]]: Sqlite analytical [[@tyrelr]]
758
759
760 ### Added
761 * [[#1850]]: Add client SSL authentication using key-file for Postgres, MySQL and MariaDB [[@ThibsG]]
762 * [[#2088]]: feat: Add set_connect_options method to Pool [[@moatra]]
763 * [[#2113]]: Expose PoolOptions for reading [[@FSMaxB]]
764 * [[#2115]]: Allow using complex types in `try_from` when deriving `FromRow` [[@95ulisse]]
765 * [[#2116]]: [SQLite] Add option to execute `PRAGMA optimize;` on close of a connection [[@miles170]]
766 * [[#2189]]: Added regexp support in sqlite [[@VictorKoenders]]
767 * [[#2224]]: Add From impls for Json [[@dbeckwith]]
768 * [[#2256]]: add progress handler support to sqlite [[@nbaztec]]
769 * [[#2366]]: Allow ignoring attributes for deriving FromRow [[@grgi]]
770 * [[#2369]]: new type support in query_as [[@0xdeafbeef]]
771 * [[#2379]]: feat: add `Connection::shrink_buffers`, `PoolConnection::close` [[@abonander]]
772 * [[#2400]]: fix(docs): example of `sqlx_macros_unstable` in config.toml [[@df51d]]
773 * [[#2469]]: Add Simple format for Uuid for MySQL & SQLite. [[@MidasLamb]]
774 * [[#2483]]: chore: add deprecation notice for type ascription use [[@saiintbrisson]]
775 * [[#2506]]: add args to query builder (#2494) [[@cemoktra]]
776 * [[#2554]]: Impl `AsMut` for advisory lock types (#2520) [[@alilleybrinker]]
777 * [[#2559]]: Add CLI autocompletion using clap_complete [[@titaniumtraveler]]
778
779
780 ### Changed
781 * [[#2185]]: Initial work to switch to `tracing` [[@CosmicHorrorDev]]
782 * [[#2193]]: Start testing on Postgres 15 and drop Postgres 10 [[@paolobarbolini]]
783 * We reserve the right to drop support for end-of-lifed database versions [as discussed in our FAQ][faq-db-version].
784 * [[#2213]]: Use `let else` statements in favor of macro [[@OverHash]]
785 * [[#2365]]: Update dependencies [[@paolobarbolini]]
786 * [[#2371]]: Disable rustls crate logging feature by default up to date [[@sergeiivankov]]
787 * [[#2373]]: chore: Use tracing's fields to get structured logs [[@jaysonsantos]]
788 * [[#2393]]: Lower default logging level for statements to Debug [[@bnoctis]]
789 * [[#2445]]: Traverse symlinks when resolving migrations [[@tgeoghegan]]
790 * [[#2485]]: chore(sqlx-postgres): replace `dirs` with `home` & `etcetera` [[@utkarshgupta137]]
791 * [[#2515]]: Bump mac_address to 1.1.5 [[@repnop]]
792 * [[#2440]]: Update rustls to 0.21, webpki-roots to 0.23 [[@SergioBenitez]]
793 * [[#2563]]: Update rsa to 0.9 [[@paolobarbolini]]
794 * [[#2564]]: Update bitflags to v2 [[@paolobarbolini]]
795 * [[#2565]]: Bump indexmap and ahash [[@paolobarbolini]]
796 * [[#2574]]: doc: make it clear that `ConnectOptions` types impl `FromStr` [[@abonander]]
797
798 ### Fixed
799 * [[#2098]]: Fix sqlite compilation [[@cycraig]]
800 * [[#2120]]: fix logical merge conflict [[@tyrelr]]
801 * [[#2133]]: Postgres OID resolution query does not take into account current `search_path` [[@95ulisse]]
802 * [[#2156]]: Fixed typo. [[@cdbfoster]]
803 * [[#2179]]: fix: ensures recover from fail with PgCopyIn [[@andyquinterom]]
804 * [[#2200]]: Run CI on *-dev branch [[@joehillen]]
805 * [[#2222]]: Add context to confusing sqlx prepare parse error [[@laundmo]]
806 * [[#2271]]: feat: support calling Postgres procedures with the macros [[@bgeron]]
807 * [[#2282]]: Don't run EXPLAIN nullability analysis on Materialize [[@benesch]]
808 * [[#2319]]: Set whoami default-features to false [[@thedodd]]
809 * [[#2352]]: Preparing 0.7.0-alpha.1 release [[@abonander]]
810 * [[#2355]]: Fixed the example code for `sqlx::test` [[@kenkoooo]]
811 * [[#2367]]: Fix sqlx-cli create, drop, migrate [[@cycraig]]
812 * [[#2376]]: fix(pool): close when last handle is dropped, extra check in `try_acquire` [[@abonander]]
813 * [[#2378]]: Fix README build badge [[@dbrgn]]
814 * [[#2398]]: fix(prepare): store temporary query files inside the workspace [[@aschey]]
815 * [[#2402]]: fix: drop old time 0.1.44 dep [[@codahale]]
816 * [[#2413]]: fix(macros-core): use of undeclared `tracked_path` [[@df51d]]
817 * [[#2420]]: Enable runtime-tokio feature of sqlx when building sqlx-cli [[@paolobarbolini]]
818 * [[#2453]]: in README.md, correct spelling and grammar [[@vizvasrj]]
819 * [[#2454]]: fix: ensure fresh test db's aren't accidentally deleted by do_cleanup [[@phlip9]]
820 * [[#2507]]: Exposing the Oid of PostgreSQL types [[@Razican]]
821 * [[#2519]]: Use ::std::result::Result::Ok in output.rs [[@southball]]
822 * [[#2569]]: Fix broken links to mysql error documentation [[@titaniumtraveler]]
823 * [[#2570]]: Add a newline to the generated JSON files [[@nyurik]]
824 * [[#2572]]: Do not panic when `PrepareOk` fails to decode [[@stepantubanov]]
825 * [[#2573]]: fix(sqlite) Do not drop notify mutex guard until after condvar is triggered [[@andrewwhitehead]]
826
827 [sqlx-pro]: https://github.com/launchbadge/sqlx/discussions/1616
828
829 [faq-db-version]: https://github.com/launchbadge/sqlx/blob/main/FAQ.md#what-database-versions-does-sqlx-support
830
831 [#1850]: https://github.com/launchbadge/sqlx/pull/1850
832 [#1946]: https://github.com/launchbadge/sqlx/pull/1946
833 [#1960]: https://github.com/launchbadge/sqlx/pull/1960
834 [#1984]: https://github.com/launchbadge/sqlx/pull/1984
835 [#2039]: https://github.com/launchbadge/sqlx/pull/2039
836 [#2088]: https://github.com/launchbadge/sqlx/pull/2088
837 [#2092]: https://github.com/launchbadge/sqlx/pull/2092
838 [#2094]: https://github.com/launchbadge/sqlx/pull/2094
839 [#2098]: https://github.com/launchbadge/sqlx/pull/2098
840 [#2109]: https://github.com/launchbadge/sqlx/pull/2109
841 [#2113]: https://github.com/launchbadge/sqlx/pull/2113
842 [#2115]: https://github.com/launchbadge/sqlx/pull/2115
843 [#2116]: https://github.com/launchbadge/sqlx/pull/2116
844 [#2120]: https://github.com/launchbadge/sqlx/pull/2120
845 [#2132]: https://github.com/launchbadge/sqlx/pull/2132
846 [#2133]: https://github.com/launchbadge/sqlx/pull/2133
847 [#2156]: https://github.com/launchbadge/sqlx/pull/2156
848 [#2179]: https://github.com/launchbadge/sqlx/pull/2179
849 [#2185]: https://github.com/launchbadge/sqlx/pull/2185
850 [#2189]: https://github.com/launchbadge/sqlx/pull/2189
851 [#2193]: https://github.com/launchbadge/sqlx/pull/2193
852 [#2200]: https://github.com/launchbadge/sqlx/pull/2200
853 [#2213]: https://github.com/launchbadge/sqlx/pull/2213
854 [#2222]: https://github.com/launchbadge/sqlx/pull/2222
855 [#2224]: https://github.com/launchbadge/sqlx/pull/2224
856 [#2253]: https://github.com/launchbadge/sqlx/pull/2253
857 [#2256]: https://github.com/launchbadge/sqlx/pull/2256
858 [#2271]: https://github.com/launchbadge/sqlx/pull/2271
859 [#2282]: https://github.com/launchbadge/sqlx/pull/2282
860 [#2285]: https://github.com/launchbadge/sqlx/pull/2285
861 [#2319]: https://github.com/launchbadge/sqlx/pull/2319
862 [#2352]: https://github.com/launchbadge/sqlx/pull/2352
863 [#2355]: https://github.com/launchbadge/sqlx/pull/2355
864 [#2363]: https://github.com/launchbadge/sqlx/pull/2363
865 [#2365]: https://github.com/launchbadge/sqlx/pull/2365
866 [#2366]: https://github.com/launchbadge/sqlx/pull/2366
867 [#2367]: https://github.com/launchbadge/sqlx/pull/2367
868 [#2369]: https://github.com/launchbadge/sqlx/pull/2369
869 [#2371]: https://github.com/launchbadge/sqlx/pull/2371
870 [#2373]: https://github.com/launchbadge/sqlx/pull/2373
871 [#2376]: https://github.com/launchbadge/sqlx/pull/2376
872 [#2378]: https://github.com/launchbadge/sqlx/pull/2378
873 [#2379]: https://github.com/launchbadge/sqlx/pull/2379
874 [#2387]: https://github.com/launchbadge/sqlx/pull/2387
875 [#2393]: https://github.com/launchbadge/sqlx/pull/2393
876 [#2398]: https://github.com/launchbadge/sqlx/pull/2398
877 [#2400]: https://github.com/launchbadge/sqlx/pull/2400
878 [#2402]: https://github.com/launchbadge/sqlx/pull/2402
879 [#2408]: https://github.com/launchbadge/sqlx/pull/2408
880 [#2409]: https://github.com/launchbadge/sqlx/pull/2409
881 [#2413]: https://github.com/launchbadge/sqlx/pull/2413
882 [#2420]: https://github.com/launchbadge/sqlx/pull/2420
883 [#2440]: https://github.com/launchbadge/sqlx/pull/2440
884 [#2445]: https://github.com/launchbadge/sqlx/pull/2445
885 [#2453]: https://github.com/launchbadge/sqlx/pull/2453
886 [#2454]: https://github.com/launchbadge/sqlx/pull/2454
887 [#2459]: https://github.com/launchbadge/sqlx/pull/2459
888 [#2467]: https://github.com/launchbadge/sqlx/pull/2467
889 [#2469]: https://github.com/launchbadge/sqlx/pull/2469
890 [#2483]: https://github.com/launchbadge/sqlx/pull/2483
891 [#2485]: https://github.com/launchbadge/sqlx/pull/2485
892 [#2491]: https://github.com/launchbadge/sqlx/pull/2491
893 [#2496]: https://github.com/launchbadge/sqlx/pull/2496
894 [#2506]: https://github.com/launchbadge/sqlx/pull/2506
895 [#2507]: https://github.com/launchbadge/sqlx/pull/2507
896 [#2508]: https://github.com/launchbadge/sqlx/pull/2508
897 [#2515]: https://github.com/launchbadge/sqlx/pull/2515
898 [#2519]: https://github.com/launchbadge/sqlx/pull/2519
899 [#2554]: https://github.com/launchbadge/sqlx/pull/2554
900 [#2559]: https://github.com/launchbadge/sqlx/pull/2559
901 [#2563]: https://github.com/launchbadge/sqlx/pull/2563
902 [#2564]: https://github.com/launchbadge/sqlx/pull/2564
903 [#2565]: https://github.com/launchbadge/sqlx/pull/2565
904 [#2569]: https://github.com/launchbadge/sqlx/pull/2569
905 [#2570]: https://github.com/launchbadge/sqlx/pull/2570
906 [#2572]: https://github.com/launchbadge/sqlx/pull/2572
907 [#2573]: https://github.com/launchbadge/sqlx/pull/2573
908 [#2574]: https://github.com/launchbadge/sqlx/pull/2574
909
910 ## 0.6.3 - 2023-03-21
911
912 This is a hotfix to address the breakage caused by transitive dependencies upgrading to `syn = "2"`.
913
914 We set `default-features = false` for our dependency on `syn = "1"` to be good crates.io citizens,
915 but failed to enable the features we actually used, which went undetected because we transitively depended on
916 `syn` with the default features enabled through other crates,
917 and so they were also on for us because features are additive.
918
919 When those other dependencies upgraded to `syn = "2"` it was no longer enabling those features for us,
920 and so compilation broke for projects that don't also depend on `syn = "1"`, transitively or otherwise.
921
922 There is no PR for this fix as there was no longer a dedicated development branch for `0.6`,
923 but discussion can be found in [issue #2418].
924
925 As of this release, the `0.7` release is in alpha and so development is no longer occurring against `0.6`.
926 This fix will be forward-ported to `0.7`.
927
928 [issue #2418]: https://github.com/launchbadge/sqlx/issues/2418
929
930 ## 0.6.2 - 2022-09-14
931
932 [25 pull requests][0.6.2-prs] were merged this release cycle.
933
934 ### Added
935 * [[#1081]]: Add `try_from` attribute for `FromRow` derive [[@zzhengzhuo]]
936 * Exemplifies "out of sight, out of mind." It's surprisingly easy to forget about PRs when they get pushed onto
937 the second page. We'll be sure to clean out the backlog for 0.7.0.
938 * [[#2014]]: Support additional SQLCipher options in SQLite driver. [[@szymek156]]
939 * [[#2052]]: Add issue templates [[@abonander]]
940 * [[#2053]]: Add documentation for `IpAddr` support in Postgres [[@rakshith-ravi]]
941 * [[#2062]]: Add extension support for SQLite [[@bradfier]]
942 * [[#2063]]: customizable db locking during migration [[@fuzzbuck]]
943
944 ### Changed
945 * [[#2025]]: Bump sqlformat to 2.0 [[@NSMustache]]
946 * [[#2056]]: chore: Switch to sha1 crate [[@stoically]]
947 * [[#2071]]: Use cargo check consistently in `prepare` [[@cycraig]]
948
949 ### Fixed
950 * [[#1991]]: Ensure migration progress is not lost for Postgres, MySQL and SQLite. [[@crepererum]]
951 * [[#2023]]: Fix expansion of `#[sqlx(flatten)]` for `FromRow` derive [[@RustyYato]]
952 * [[#2028]]: Use fully qualified path when forwarding to `#[test]` from `#[sqlx::test]` [[@alexander-jackson]]
953 * [[#2040]]: Fix typo in `FromRow` docs [[@zlidner]]
954 * [[#2046]]: added flag for PIPES_AS_CONCAT connection setting for MySQL to fix #2034 [[@marcustut]]
955 * [[#2055]]: Use unlock notify also on `sqlite3_exec` [[@madadam]]
956 * [[#2057]]: Make begin,commit,rollback cancel-safe in sqlite [[@madadam]]
957 * [[#2058]]: fix typo in documentation [[@lovasoa]]
958 * [[#2067]]: fix(docs): close code block in query_builder.rs [[@abonander]]
959 * [[#2069]]: Fix `prepare` race condition in workspaces [[@cycraig]]\
960 * NOTE: this changes the directory structure under `target/` that `cargo sqlx prepare` depends on.
961 If you use offline mode in your workflow, please rerun `cargo install sqlx-cli` to upgrade.
962 * [[#2072]]: SqliteConnectOptions typo [[@fasterthanlime]]
963 * [[#2074]]: fix: mssql uses unsigned for tinyint instead of signed [[@he4d]]
964 * [[#2081]]: close unnamed portal after each executed extended query [[@DXist]]
965 * [[#2086]]: PgHasArrayType for transparent types fix. [[@Wopple]]
966 * NOTE: this is a breaking change and has been postponed to 0.7.0.
967 * [[#2089]]: fix: Remove default chrono dep on time for sqlx-cli [[@TravisWhitehead]]
968 * [[#2091]]: Sqlite explain plan log efficiency [[@tyrelr]]
969
970 [0.6.2-prs]: https://github.com/launchbadge/sqlx/pulls?q=is%3Apr+is%3Aclosed+merged%3A2022-08-04..2022-09-14+
971
972 [#1081]: https://github.com/launchbadge/sqlx/pull/1081
973 [#1991]: https://github.com/launchbadge/sqlx/pull/1991
974 [#2014]: https://github.com/launchbadge/sqlx/pull/2014
975 [#2023]: https://github.com/launchbadge/sqlx/pull/2023
976 [#2025]: https://github.com/launchbadge/sqlx/pull/2025
977 [#2028]: https://github.com/launchbadge/sqlx/pull/2028
978 [#2040]: https://github.com/launchbadge/sqlx/pull/2040
979 [#2046]: https://github.com/launchbadge/sqlx/pull/2046
980 [#2052]: https://github.com/launchbadge/sqlx/pull/2052
981 [#2053]: https://github.com/launchbadge/sqlx/pull/2053
982 [#2055]: https://github.com/launchbadge/sqlx/pull/2055
983 [#2056]: https://github.com/launchbadge/sqlx/pull/2056
984 [#2057]: https://github.com/launchbadge/sqlx/pull/2057
985 [#2058]: https://github.com/launchbadge/sqlx/pull/2058
986 [#2062]: https://github.com/launchbadge/sqlx/pull/2062
987 [#2063]: https://github.com/launchbadge/sqlx/pull/2063
988 [#2067]: https://github.com/launchbadge/sqlx/pull/2067
989 [#2069]: https://github.com/launchbadge/sqlx/pull/2069
990 [#2071]: https://github.com/launchbadge/sqlx/pull/2071
991 [#2072]: https://github.com/launchbadge/sqlx/pull/2072
992 [#2074]: https://github.com/launchbadge/sqlx/pull/2074
993 [#2081]: https://github.com/launchbadge/sqlx/pull/2081
994 [#2086]: https://github.com/launchbadge/sqlx/pull/2086
995 [#2089]: https://github.com/launchbadge/sqlx/pull/2089
996 [#2091]: https://github.com/launchbadge/sqlx/pull/2091
997
998 ## 0.6.1 - 2022-08-02
999
1000 [33 pull requests][0.6.1-prs] were merged this release cycle.
1001
1002 ### Added
1003 * [[#1495]]: Add example for manual implementation of the `FromRow` trait [[@Erik1000]]
1004 * [[#1822]]: (Postgres) Add support for `std::net::IpAddr` [[@meh]]
1005 * Decoding returns an error if the `INET` value in Postgres is a prefix and not a full address
1006 (`/32` for IPv4, `/128` for IPv6).
1007 * [[#1865]]: Add SQLite support for the `time` crate [[@johnbcodes]]
1008 * [[#1902]]: Add an example of how to use `QueryBuilder::separated()` [[@sbeckeriv]]
1009 * [[#1917]]: Added docs for `sqlx::types::Json` [[@jayy-lmao]]
1010 * [[#1919]]: Implement `Clone` for `PoolOptions` [[@Thomasdezeeuw]]
1011 * [[#1953]]: Support Rust arrays in Postgres [[@e00E]]
1012 * [[#1954]]: Add `push_tuples` for `QueryBuilder` [[@0xdeafbeef]]
1013 * [[#1959]]: Support `#[sqlx(flatten)]` attribute in `FromRow` [[@TheoOiry]]
1014 * [[#1967]]: Add example with external query files [[@JoeyMckenzie]]
1015 * [[#1985]]: Add `query_builder::Separated::push_bind_unseparated()` [[@0xdeafbeef]]
1016 * [[#2001]]: Implement `#[sqlx::test]` for general use
1017 * Includes automatic database management, migration and fixture application.
1018 * Drops support for end-of-lifed database versions, see PR for details.
1019 * [[#2005]]: `QueryBuilder` improvements [[@abonander]]
1020 * Raw SQL getters, new method to build `QueryAs` instead of `Query`.
1021 * [[#2013]]: (SQLite) Allow VFS to be set as URL query parameter [[@liningpan]]
1022
1023 ### Changed
1024 * [[#1679]]: refactor: alias actix-* features to their equivalent tokio-* features [[@robjtede]]
1025 * [[#1906]]: replaced all uses of "uri" to "url" [[@RomainStorai]]
1026 * [[#1965]]: SQLite improvements [[@abonander]]
1027 * [[#1977]]: Docs: clarify relationship between `query_as!()` and `FromRow` [[@abonander]]
1028 * [[#2003]]: Replace `dotenv` with `dotenvy` [[@abonander]]
1029
1030 ### Fixed
1031 * [[#1802]]: Try avoiding a full clean in `cargo sqlx prepare --merged` [[@LovecraftianHorror]]
1032 * [[#1848]]: Fix type info access in `Any` database driver [[@raviqqe]]
1033 * [[#1910]]: Set `CARGO_TARGET_DIR` when compiling queries [[@sedrik]]
1034 * [[#1915]]: Pool: fix panic when using callbacks [[@abonander]]
1035 * [[#1930]]: Don't cache SQLite connection for macros [[@LovecraftianHorror]]
1036 * [[#1948]]: Fix panic in Postgres `BYTEA` decode [[@e00E]]
1037 * [[#1955]]: Fix typo in FAQ [[@kenkoooo]]
1038 * [[#1968]]: (Postgres) don't panic if `S` or `V` notice fields are not UTF-8 [[@abonander]]
1039 * [[#1969]]: Fix sqlx-cli build [[@ivan]]
1040 * [[#1974]]: Use the `rust-cache` action for CI [[@abonander]]
1041 * [[#1988]]: Agree on a single default runtime for the whole workspace [[@crepererum]]
1042 * [[#1989]]: Fix panics in `PgListener` [[@crepererum]]
1043 * [[#1990]]: Switch `master` to `main` in docs [[@crepererum]]
1044 * The change had already been made in the repo, the docs were out of date.
1045 * [[#1993]]: Update versions in quickstart examples in README [[@UramnOIL]]
1046
1047 [0.6.1-prs]: https://github.com/launchbadge/sqlx/pulls?page=1&q=is%3Apr+is%3Aclosed+merged%3A2022-06-17..2022-08-02
1048
1049 [#1906]: https://github.com/launchbadge/sqlx/pull/1906
1050 [#1495]: https://github.com/launchbadge/sqlx/pull/1495
1051 [#1679]: https://github.com/launchbadge/sqlx/pull/1679
1052 [#1802]: https://github.com/launchbadge/sqlx/pull/1802
1053 [#1822]: https://github.com/launchbadge/sqlx/pull/1822
1054 [#1848]: https://github.com/launchbadge/sqlx/pull/1848
1055 [#1865]: https://github.com/launchbadge/sqlx/pull/1865
1056 [#1902]: https://github.com/launchbadge/sqlx/pull/1902
1057 [#1910]: https://github.com/launchbadge/sqlx/pull/1910
1058 [#1915]: https://github.com/launchbadge/sqlx/pull/1915
1059 [#1917]: https://github.com/launchbadge/sqlx/pull/1917
1060 [#1919]: https://github.com/launchbadge/sqlx/pull/1919
1061 [#1930]: https://github.com/launchbadge/sqlx/pull/1930
1062 [#1948]: https://github.com/launchbadge/sqlx/pull/1948
1063 [#1953]: https://github.com/launchbadge/sqlx/pull/1953
1064 [#1954]: https://github.com/launchbadge/sqlx/pull/1954
1065 [#1955]: https://github.com/launchbadge/sqlx/pull/1955
1066 [#1959]: https://github.com/launchbadge/sqlx/pull/1959
1067 [#1965]: https://github.com/launchbadge/sqlx/pull/1965
1068 [#1967]: https://github.com/launchbadge/sqlx/pull/1967
1069 [#1968]: https://github.com/launchbadge/sqlx/pull/1968
1070 [#1969]: https://github.com/launchbadge/sqlx/pull/1969
1071 [#1974]: https://github.com/launchbadge/sqlx/pull/1974
1072 [#1977]: https://github.com/launchbadge/sqlx/pull/1977
1073 [#1985]: https://github.com/launchbadge/sqlx/pull/1985
1074 [#1988]: https://github.com/launchbadge/sqlx/pull/1988
1075 [#1989]: https://github.com/launchbadge/sqlx/pull/1989
1076 [#1990]: https://github.com/launchbadge/sqlx/pull/1990
1077 [#1993]: https://github.com/launchbadge/sqlx/pull/1993
1078 [#2001]: https://github.com/launchbadge/sqlx/pull/2001
1079 [#2003]: https://github.com/launchbadge/sqlx/pull/2003
1080 [#2005]: https://github.com/launchbadge/sqlx/pull/2005
1081 [#2013]: https://github.com/launchbadge/sqlx/pull/2013
1082
1083 ## 0.6.0 - 2022-06-16
1084
1085 This release marks the end of the 0.5.x series of releases and contains a number of breaking changes,
1086 mainly to do with backwards-incompatible dependency upgrades.
1087
1088 As we foresee many more of these in the future, we [surveyed the community] on how to handle this;
1089 the consensus appears to be "just release breaking changes more often."
1090
1091 As such, we expect the 0.6.x release series to be a shorter one.
1092
1093 [39 pull requests(!)][0.6.0-prs] (not counting "prepare 0.5.12 release", of course) were merged this release cycle.
1094
1095 ### Breaking
1096 * [[#1384]]: (Postgres) Move `server_version_num` from trait to inherent impl [[@AtkinsChang]]
1097 * [[#1426]]: Bump `ipnetwork` to 0.19 [[@paolobarbolini]]
1098 * [[#1455]]: Upgrade `time` to 0.3 [[@paolobarbolini]]
1099 * [[#1505]]: Upgrade `rustls` to 0.20 [[@paolobarbolini]]
1100 * Fortunately, future upgrades should not be breaking as `webpki` is no longer exposed in the API.
1101 * [[#1529]]: Upgrade `bigdecimal` to 0.3 [[@e00E]]
1102 * [[#1602]]: postgres: use `Oid` everywhere instead of `u32` [[@paolobarbolini]]
1103 * This drops the `Type`, `Decode`, `Encode` impls for `u32` for Postgres as it was misleading.
1104 Postgres doesn't support unsigned ints without using an extension. These impls were decoding Postgres `OID`s
1105 as bare `u32`s without any context (and trying to bind a `u32` to a query would produce an `OID` value in SQL).
1106 This changes that to use a newtype instead, for clarity.
1107 * [[#1612]]: Make all `ConnectOptions` types cloneable [[@05storm26]]
1108 * [[#1618]]: SQLite `chrono::DateTime<FixedOffset>` timezone fix [[@05storm26]]
1109 * `DateTime<FixedOffset>` will be stored in SQLite with the correct timezone instead of always in UTC.
1110 This was flagged as a "potentially breaking change" since it changes how dates are sent to SQLite.
1111 * [[#1733]]: Update `git2` to 0.14 [[@joshtriplett]]
1112 * [[#1734]]: Make `PgLTree::push()` infallible and take `PgLTreeLabel` directly [[@sebpuetz]]
1113 * [[#1785]]: Fix Rust type for SQLite `REAL` [[@pruthvikar]]
1114 * Makes the macros always map a `REAL` column to `f64` instead of `f32` as SQLite uses **only** 64-bit floats.
1115 * [[#1816]]: Improve SQLite support for sub-queries and CTEs [[@tyrelr]]
1116 * This likely will change the generated code for some invocations `sqlx::query!()` with SQLite.
1117 * [[#1821]]: Update `uuid` crate to v1 [[@paolobarbolini]]
1118 * [[#1901]]: Pool fixes and breaking changes [[@abonander]]
1119 * Renamed `PoolOptions::connect_timeout` to `acquire_timeout` for clarity.
1120 * Changed the expected signatures for `PoolOptions::after_connect`, `before_acquire`, `after_release`
1121 * Changed the signature for `Pool::close()` slightly
1122 * Now eagerly starts the pool closing, `.await`ing is only necessary if you want to ensure a graceful shutdown.
1123 * Deleted `PoolConnection::release()` which was previously deprecated in favor of `PoolConnection::detach()`.
1124 * Fixed connections getting leaked even when calling `.close()`.
1125 * [[#1748]]: Derive `PgHasArrayType` for `#[sqlx(transparent)]` types [[@carols10cents]]
1126 * This change was released with 0.5.12 but [we didn't realize it was a breaking change] at the time.
1127 It was reverted in 0.5.13 and postponed until this release.
1128
1129 ### Added
1130 * [[#1843]]: Expose some useful methods on `PgValueRef` [[@mfreeborn]]
1131 * [[#1889]]: SQLx-CLI: add `--connect-timeout` [[@abonander]]
1132 * Adds a default 10 second connection timeout to all commands.
1133 * [[#1890]]: Added test for mssql LoginAck [[@walf443]]
1134 * [[#1891]]: Added test for mssql ProtocolInfo [[@walf443]]
1135 * [[#1892]]: Added test for mssql ReturnValue [[@walf443]]
1136 * [[#1895]]: Add support for `i16` to `Any` driver [[@EthanYuan]]
1137 * [[#1897]]: Expose `ConnectOptions` and `PoolOptions` on `Pool` and database name on `PgConnectOptions` [[@Nukesor]]
1138
1139 ### Changed
1140 * [[#1782]]: Reuse a cached DB connection instead of always opening a new one for `sqlx-macros` [[@LovecraftianHorror]]
1141 * [[#1807]]: Bump remaining dependencies [[@paolobarbolini]]
1142 * [[#1808]]: Update to edition 2021 [[@paolobarbolini]]
1143 * Note that while SQLx [does not officially track an MSRV] and only officially supports the latest stable Rust,
1144 this effectively places a lower bound of 1.56.0 on the range of versions it may work with.
1145 * [[#1823]]: (sqlx-macros) Ignore deps when getting metadata for workspace root [[@LovecraftianHorror]]
1146 * [[#1831]]: Update `crc` to 3.0 [[@djc]]
1147 * [[#1887]]: query_as: don't stop stream after decoding error [[@lovasoa]]
1148
1149 ### Fixed
1150 * [[#1814]]: SQLx-cli README: move `Usage` to the same level as `Install` [[@tobymurray]]
1151 * [[#1815]]: SQLx-cli README: reword "building in offline mode" [[@tobymurray]]
1152 * [[#1818]]: Trim `[]` from host string before passing to TcpStream [[@smonv]]
1153 * This fixes handling of database URLs with IPv6 hosts.
1154 * [[#1842]]: Fix usage of `serde_json` in macros [[@mfreeborn]]
1155 * [[#1855]]: Postgres: fix panics on unknown type OID when decoding [[@demurgos]]
1156 * [[#1856]]: MySQL: support COLLATE_UTF8MB4_0900_AI_CI [[@scottwey]]
1157 * Fixes the MySQL driver thinking text columns are bytestring columns when querying against a Planetscale DB.
1158 * [[#1861]]: MySQL: avoid panic when streaming packets are empty [[@e-rhodes]]
1159 * [[#1863]]: Fix nullability check for inner joins in Postgres [[@OskarPersson]]
1160 * [[#1881]]: Fix `field is never read` warnings on Postgres test [[@walf443]]
1161 * [[#1882]]: Fix `unused result must be used` warnings [[@walf443]]
1162 * [[#1888]]: Fix migration checksum comparison during `sqlx migrate info` [[@mdtusz]]
1163 * [[#1894]]: Fix typos [[@kianmeng]]
1164
1165 [surveyed the community]: https://github.com/launchbadge/sqlx/issues/1796
1166 [0.6.0-prs]: https://github.com/launchbadge/sqlx/pulls?page=2&q=is%3Apr+is%3Amerged+merged%3A2022-04-14..2022-06-16
1167 [does not officially track an MSRV]: /FAQ.md#what-versions-of-rust-does-sqlx-support-what-is-sqlxs-msrv
1168 [we didn't realize it was a breaking change]: https://github.com/launchbadge/sqlx/pull/1800#issuecomment-1099898932
1169
1170 [#1384]: https://github.com/launchbadge/sqlx/pull/1384
1171 [#1426]: https://github.com/launchbadge/sqlx/pull/1426
1172 [#1455]: https://github.com/launchbadge/sqlx/pull/1455
1173 [#1505]: https://github.com/launchbadge/sqlx/pull/1505
1174 [#1529]: https://github.com/launchbadge/sqlx/pull/1529
1175 [#1602]: https://github.com/launchbadge/sqlx/pull/1602
1176 [#1612]: https://github.com/launchbadge/sqlx/pull/1612
1177 [#1618]: https://github.com/launchbadge/sqlx/pull/1618
1178 [#1733]: https://github.com/launchbadge/sqlx/pull/1733
1179 [#1734]: https://github.com/launchbadge/sqlx/pull/1734
1180 [#1782]: https://github.com/launchbadge/sqlx/pull/1782
1181 [#1785]: https://github.com/launchbadge/sqlx/pull/1785
1182 [#1807]: https://github.com/launchbadge/sqlx/pull/1807
1183 [#1808]: https://github.com/launchbadge/sqlx/pull/1808
1184 [#1814]: https://github.com/launchbadge/sqlx/pull/1814
1185 [#1815]: https://github.com/launchbadge/sqlx/pull/1815
1186 [#1816]: https://github.com/launchbadge/sqlx/pull/1816
1187 [#1818]: https://github.com/launchbadge/sqlx/pull/1818
1188 [#1821]: https://github.com/launchbadge/sqlx/pull/1821
1189 [#1823]: https://github.com/launchbadge/sqlx/pull/1823
1190 [#1831]: https://github.com/launchbadge/sqlx/pull/1831
1191 [#1842]: https://github.com/launchbadge/sqlx/pull/1842
1192 [#1843]: https://github.com/launchbadge/sqlx/pull/1843
1193 [#1855]: https://github.com/launchbadge/sqlx/pull/1855
1194 [#1856]: https://github.com/launchbadge/sqlx/pull/1856
1195 [#1861]: https://github.com/launchbadge/sqlx/pull/1861
1196 [#1863]: https://github.com/launchbadge/sqlx/pull/1863
1197 [#1881]: https://github.com/launchbadge/sqlx/pull/1881
1198 [#1882]: https://github.com/launchbadge/sqlx/pull/1882
1199 [#1887]: https://github.com/launchbadge/sqlx/pull/1887
1200 [#1888]: https://github.com/launchbadge/sqlx/pull/1888
1201 [#1889]: https://github.com/launchbadge/sqlx/pull/1889
1202 [#1890]: https://github.com/launchbadge/sqlx/pull/1890
1203 [#1891]: https://github.com/launchbadge/sqlx/pull/1891
1204 [#1892]: https://github.com/launchbadge/sqlx/pull/1892
1205 [#1894]: https://github.com/launchbadge/sqlx/pull/1894
1206 [#1895]: https://github.com/launchbadge/sqlx/pull/1895
1207 [#1897]: https://github.com/launchbadge/sqlx/pull/1897
1208 [#1901]: https://github.com/launchbadge/sqlx/pull/1901
1209
1210 ## 0.5.13 - 2022-04-15
1211
1212 This is a hotfix that reverts [#1748] as that was an accidental breaking change:
1213 the generated `PgHasArrayType` impl conflicts with manual impls of the trait.
1214 This change will have to wait for 0.6.0.
1215
1216 ## 0.5.12 - 2022-04-13 (Yanked; use 0.5.13)
1217 [27 pull requests][0.5.12-prs] were merged this release cycle.
1218
1219 ### Added
1220 * [[#1641]]: Postgres: Convenient wrapper for advisory locks [[@abonander]]
1221 * [[#1675]]: Add function to undo migrations [[@jdrouet]]
1222 * [[#1722]]: Postgres: implement `PgHasArrayType` for `serde_json::{Value, RawValue}` [[@abreis]]
1223 * [[#1736]]: Derive `Clone` for `MySqlArguments` and `MssqlArguments` [[@0xdeafbeef]]
1224 * [[#1748]]: Derive `PgHasArrayType` for `#[sqlx(transparent)]` types [[@carols10cents]]
1225 * [[#1754]]: Include affected rows alongside returned rows in query logging [[@david-mcgillicuddy-moixa]]
1226 * [[#1757]]: Implement `Type` for `Cow<str>` for MySQL, MSSQL and SQLite [[@ipetkov]]
1227 * [[#1769]]: sqlx-cli: add `--source` to migration subcommands [[@pedromfedricci]]
1228 * [[#1774]]: Postgres: make `extra_float_digits` settable [[@abonander]]
1229 * Can be set to `None` for Postgres or third-party database servers that don't support the option.
1230 * [[#1776]]: Implement close-event notification for Pool [[@abonander]]
1231 * Also fixes `PgListener` preventing `Pool::close()` from resolving.
1232 * [[#1780]]: Implement query builder [[@crajcan]]
1233 * See also [[#1790]]: Document and expand query builder [[@abonander]]
1234 * [[#1781]]: Postgres: support `NUMERIC[]` using `decimal` feature [[@tm-drtina]]
1235 * [[#1784]]: SQLite: add `FromStr`, `Copy`, `PartialEq`, `Eq` impls for options enums [[@andrewwhitehead]]
1236
1237 ### Changed
1238 * [[#1625]]: Update RustCrypto crates [[@paolobarbolini]]
1239 * [[#1725]]: Update `heck` to 0.4 [[@paolobarbolini]]
1240 * [[#1738]]: Update `regex` [[@Dylan-DPC]]
1241 * [[#1763]]: SQLite: update `libsqlite3-sys` [[@espindola]]
1242
1243
1244 ### Fixed
1245 * [[#1719]]: Fix a link in `query!()` docs [[@vbmade2000]]
1246 * [[#1731]]: Postgres: fix option passing logic [[@liushuyu]]
1247 * [[#1735]]: sqlx-cli: pass `DATABASE_URL` to command spawned in `prepare` [[@LovecraftianHorror]]
1248 * [[#1741]]: Postgres: fix typo in `TSTZRANGE` [[@mgrachev]]
1249 * [[#1761]]: Fix link from `QueryAs` to `query_as()` in docs [[@mgrachev]]
1250 * [[#1786]]: MySQL: silence compile warnings for unused fields [[@andrewwhitehead]]
1251 * [[#1789]]: SQLite: fix left-joins breaking `query!()` macros [[@tyrelr]]
1252 * [[#1791]]: Postgres: fix newline parsing of `.pgpass` files [[@SebastienGllmt]]
1253 * [[#1799]]: `PoolConnection`: don't leak connection permit if drop task fails to run [[@abonander]]
1254
1255 [#1625]: https://github.com/launchbadge/sqlx/pull/1625
1256 [#1641]: https://github.com/launchbadge/sqlx/pull/1641
1257 [#1675]: https://github.com/launchbadge/sqlx/pull/1675
1258 [#1719]: https://github.com/launchbadge/sqlx/pull/1719
1259 [#1722]: https://github.com/launchbadge/sqlx/pull/1722
1260 [#1725]: https://github.com/launchbadge/sqlx/pull/1725
1261 [#1731]: https://github.com/launchbadge/sqlx/pull/1731
1262 [#1735]: https://github.com/launchbadge/sqlx/pull/1735
1263 [#1736]: https://github.com/launchbadge/sqlx/pull/1736
1264 [#1738]: https://github.com/launchbadge/sqlx/pull/1738
1265 [#1741]: https://github.com/launchbadge/sqlx/pull/1741
1266 [#1748]: https://github.com/launchbadge/sqlx/pull/1748
1267 [#1754]: https://github.com/launchbadge/sqlx/pull/1754
1268 [#1757]: https://github.com/launchbadge/sqlx/pull/1757
1269 [#1761]: https://github.com/launchbadge/sqlx/pull/1761
1270 [#1763]: https://github.com/launchbadge/sqlx/pull/1763
1271 [#1769]: https://github.com/launchbadge/sqlx/pull/1769
1272 [#1774]: https://github.com/launchbadge/sqlx/pull/1774
1273 [#1776]: https://github.com/launchbadge/sqlx/pull/1776
1274 [#1780]: https://github.com/launchbadge/sqlx/pull/1780
1275 [#1781]: https://github.com/launchbadge/sqlx/pull/1781
1276 [#1784]: https://github.com/launchbadge/sqlx/pull/1784
1277 [#1786]: https://github.com/launchbadge/sqlx/pull/1786
1278 [#1789]: https://github.com/launchbadge/sqlx/pull/1789
1279 [#1790]: https://github.com/launchbadge/sqlx/pull/1790
1280 [#1791]: https://github.com/launchbadge/sqlx/pull/1791
1281 [#1799]: https://github.com/launchbadge/sqlx/pull/1799
1282
1283 [0.5.12-prs]: https://github.com/launchbadge/sqlx/pulls?q=is%3Apr+is%3Amerged+merged%3A2022-02-19..2022-04-13
1284
1285 ## 0.5.11 - 2022-02-17
1286 [20 pull requests][0.5.11-prs] were merged this release cycle.
1287
1288 ### Added
1289 * [[#1610]]: Allow converting `AnyConnectOptions` to a specific `ConnectOptions` [[@05storm26]]
1290 * [[#1652]]: Implement `From` for `AnyConnection` [[@genusistimelord]]
1291 * [[#1658]]: Handle `SQLITE_LOCKED` [[@madadam]]
1292 * [[#1665]]: Document offline mode usage with feature flags [[@sedrik]]
1293 * [[#1680]]: Show checksum mismatches in `sqlx migrate info` [[@ifn3]]
1294 * [[#1685]]: Add tip for setting `opt-level` for `sqlx-macros` [[@LovecraftianHorror]]
1295 * [[#1687]]: Docs: `Acquire` examples and alternative [[@stoically]]
1296 * [[#1696]]: Postgres: support for `ltree` [[@cemoktra]]
1297 * [[#1710]]: Postgres: support for `lquery` [[@cemoktra]]
1298
1299 ### Changed
1300 * [[#1605]]: Remove unused dependencies [[@paolobarbolini]]
1301 * [[#1606]]: Add target context to Postgres `NOTICE` logs [[@dbeckwith]]
1302 * [[#1684]]: Macros: Cache parsed `sqlx-data.json` instead of reparsing [[@LovecraftianHorror]]
1303
1304 ### Fixed
1305 * [[#1608]]: Drop worker shared state in shutdown (SQLite) [[@andrewwhitehead]]
1306 * [[#1619]]: Docs(macros): remove sentences banning usage of `as _` [[@k-jun]]
1307 * [[#1626]]: Simplify `cargo-sqlx` command-line definition [[@tranzystorek-io]]
1308 * [[#1636]]: Fix and extend Postgres transaction example [[@taladar]]
1309 * [[#1657]]: Fix typo in macro docs [[@p9s]]
1310 * [[#1661]]: Fix binding `Option<T>` for `Any` driver [[@ArGGu]]
1311 * [[#1667]]: MySQL: Avoid panicking if packet is empty [[@nappa85]]
1312 * [[#1692]]: Postgres: Fix power calculation when encoding `BigDecimal` into `NUMERIC` [[@VersBinarii]]
1313
1314 Additionally, we have introduced two mitigations for [the issue of the cyclic dependency on `ahash`][aHash#95]:
1315
1316 * We re-downgraded our version requirement on `indexmap` from `1.7.0` back to `1.6.2` so users can pin it to that
1317 version [as recommended in aHash#95][ahash-fix].
1318 * [This was regressed accidentally during a sweeping dependency upgrade before the last release][indexmap-regression],
1319 sorry about that.
1320 * Thanks to the work of [@LovecraftianHorror] in [#1684], we no longer require the `preserve_order` feature of
1321 `serde_json` which gives users another place to break the cycle by simply not enabling that feature.
1322 * This may introduce extra churn in Git diffs for `sqlx-data.json`, however. If this is an issue for you but
1323 the dependency cycle isn't, you can re-enable the `preserve_order` feature:
1324 ```toml
1325 [dependencies]
1326 serde_json = { version = "1", features = ["preserve_order"] }
1327 ```
1328
1329 [aHash#95]: https://github.com/tkaitchuck/aHash/issues/95
1330 [ahash-fix]: https://github.com/tkaitchuck/aHash/issues/95#issuecomment-874150078
1331 [indexmap-regression]: https://github.com/launchbadge/sqlx/pull/1603#issuecomment-1010827637
1332
1333 [#1605]: https://github.com/launchbadge/sqlx/pull/1605
1334 [#1606]: https://github.com/launchbadge/sqlx/pull/1606
1335 [#1608]: https://github.com/launchbadge/sqlx/pull/1608
1336 [#1610]: https://github.com/launchbadge/sqlx/pull/1610
1337 [#1619]: https://github.com/launchbadge/sqlx/pull/1619
1338 [#1626]: https://github.com/launchbadge/sqlx/pull/1626
1339 [#1636]: https://github.com/launchbadge/sqlx/pull/1636
1340 [#1652]: https://github.com/launchbadge/sqlx/pull/1652
1341 [#1657]: https://github.com/launchbadge/sqlx/pull/1657
1342 [#1658]: https://github.com/launchbadge/sqlx/pull/1658
1343 [#1661]: https://github.com/launchbadge/sqlx/pull/1661
1344 [#1665]: https://github.com/launchbadge/sqlx/pull/1665
1345 [#1667]: https://github.com/launchbadge/sqlx/pull/1667
1346 [#1680]: https://github.com/launchbadge/sqlx/pull/1680
1347 [#1684]: https://github.com/launchbadge/sqlx/pull/1684
1348 [#1685]: https://github.com/launchbadge/sqlx/pull/1685
1349 [#1687]: https://github.com/launchbadge/sqlx/pull/1687
1350 [#1692]: https://github.com/launchbadge/sqlx/pull/1692
1351 [#1696]: https://github.com/launchbadge/sqlx/pull/1696
1352 [#1710]: https://github.com/launchbadge/sqlx/pull/1710
1353
1354 [0.5.11-prs]: https://github.com/launchbadge/sqlx/pulls?q=is%3Apr+is%3Amerged+merged%3A2021-12-30..2022-02-17
1355
1356 ## 0.5.10 - 2021-12-29
1357 [A whopping 31 pull requests][0.5.10-prs] were merged this release cycle!
1358
1359 According to this changelog, we saw 18 new contributors! However, some of these folks may have missed getting
1360 mentioned in previous entries since we only listed highlights. To avoid anyone feeling left out, I put in the effort
1361 this time and tried to list every single one here.
1362
1363 ### Added
1364 * [[#1228]]: Add `Pool::any_kind()` [[@nitnelave]]
1365 * [[#1343]]: Add `Encode/Decode` impl for `Cow<'_, str>` [[@Drevoed]]
1366 * [[#1474]]: Derive `Clone`, `Copy` for `AnyKind` [[@yuyawk]]
1367 * [[#1497]]: Update FAQ to explain how to configure docs.rs to build a project using SQLx [[@russweas]]
1368 * [[#1498]]: Add description of migration file structure to `migrate!()` docs [[@zbigniewzolnierowicz]]
1369 * [[#1508]]: Add `.persistent(bool)` to `QueryAs`, `QueryScalar` [[@akiradeveloper]]
1370 * [[#1514]]: Add support for serialized threading mode to SQLite [[@LLBlumire]]
1371 * [[#1523]]: Allow `rust_decimal::Decimal` in `PgRange` [[@meh]]
1372 * [[#1539]]: Support `PGOPTIONS` and adding custom configuration options in `PgConnectOptions` [[@liushuyu]]
1373 * [[#1562]]: Re-export `either::Either` used by `Executor::fetch_many()` [[@DoumanAsh]]
1374 * [[#1584]]: Add feature to use RusTLS instead of `native-tls` for `sqlx-cli` [[@SonicZentropy]]
1375 * [[#1592]]: Add `AnyConnection::kind()` [[@05storm26]]
1376
1377 ### Changes
1378 * [[#1385]]: Rewrite Postgres array handling to reduce boilerplate and allow custom types [[@jplatte]]
1379 * [[#1479]]: Remove outdated mention of `runtime-async-std-native-tls` as the default runtime in README.md [[@yerke]]
1380 * [[#1526]]: Revise `Pool` docs in a couple places [[@abonander]]
1381 * [[#1535]]: Bump `libsqlite-sys` to `0.23.1` [[@nitsky]]
1382 * [[#1551]]: SQLite: make worker thread responsible for all FFI calls [[@abonander]]
1383 * If you were encountering segfaults with the SQLite driver, there's a good chance this will fix it!
1384 * [[#1557]]: CI: test with Postgres 14 [[@paolobarbolini]]
1385 * [[#1571]]: Make `whoami` dep optional, only pull it in for Postgres [[@joshtriplett]]
1386 * [[#1572]]: Update `rsa` crate to 0.5 [[@paolobarbolini]]
1387 * [[#1591]]: List SeaORM as an ORM option in the README [[@kunjee17]]
1388 * [[#1601]]: Update `itoa` and `dirs` [[@paolobarbolini]]
1389
1390 ### Fixes
1391 * [[#1475]]: Fix panic when converting a negative `chrono::Duration` to `PgInterval` [[@yuyawk]]
1392 * [[#1483]]: Fix error when decoding array of custom types from Postgres [[@demurgos]
1393 * [[#1501]]: Reduce `indexmap` version requirement to `1.6.2` [[@dimfeld]]
1394 * [[#1511]]: Fix element type given to Postgres for arrays of custom enums [[@chesedo]]
1395 * [[#1517]]: Fix mismatched type errors in MySQL type tests [[@abonander]]
1396 * [[#1537]]: Fix missing re-export of `PgCopyIn` [[@akiradeveloper]]
1397 * [[#1566]]: Match `~/.pgpass` password after URL parsing and fix user and database ordering [[@D1plo1d]]
1398 * [[#1582]]: `cargo sqlx prepare`: Append to existing `RUSTFLAGS` instead of overwriting [[@tkintscher]]
1399 * [[#1587]]: SQLite: if set, send `PRAGMA key` on a new connection before anything else. [[@parazyd]]
1400 * This should fix problems with being unable to open databases using SQLCipher.
1401
1402
1403 [#1228]: https://github.com/launchbadge/sqlx/pull/1228
1404 [#1343]: https://github.com/launchbadge/sqlx/pull/1343
1405 [#1385]: https://github.com/launchbadge/sqlx/pull/1385
1406 [#1474]: https://github.com/launchbadge/sqlx/pull/1474
1407 [#1475]: https://github.com/launchbadge/sqlx/pull/1475
1408 [#1479]: https://github.com/launchbadge/sqlx/pull/1479
1409 [#1483]: https://github.com/launchbadge/sqlx/pull/1483
1410 [#1497]: https://github.com/launchbadge/sqlx/pull/1497
1411 [#1498]: https://github.com/launchbadge/sqlx/pull/1498
1412 [#1501]: https://github.com/launchbadge/sqlx/pull/1501
1413 [#1508]: https://github.com/launchbadge/sqlx/pull/1508
1414 [#1511]: https://github.com/launchbadge/sqlx/pull/1511
1415 [#1514]: https://github.com/launchbadge/sqlx/pull/1514
1416 [#1517]: https://github.com/launchbadge/sqlx/pull/1517
1417 [#1523]: https://github.com/launchbadge/sqlx/pull/1523
1418 [#1526]: https://github.com/launchbadge/sqlx/pull/1526
1419 [#1535]: https://github.com/launchbadge/sqlx/pull/1535
1420 [#1537]: https://github.com/launchbadge/sqlx/pull/1537
1421 [#1539]: https://github.com/launchbadge/sqlx/pull/1539
1422 [#1551]: https://github.com/launchbadge/sqlx/pull/1551
1423 [#1557]: https://github.com/launchbadge/sqlx/pull/1557
1424 [#1562]: https://github.com/launchbadge/sqlx/pull/1562
1425 [#1566]: https://github.com/launchbadge/sqlx/pull/1566
1426 [#1571]: https://github.com/launchbadge/sqlx/pull/1571
1427 [#1572]: https://github.com/launchbadge/sqlx/pull/1572
1428 [#1582]: https://github.com/launchbadge/sqlx/pull/1582
1429 [#1584]: https://github.com/launchbadge/sqlx/pull/1584
1430 [#1587]: https://github.com/launchbadge/sqlx/pull/1587
1431 [#1591]: https://github.com/launchbadge/sqlx/pull/1591
1432 [#1592]: https://github.com/launchbadge/sqlx/pull/1592
1433 [#1601]: https://github.com/launchbadge/sqlx/pull/1601
1434 [0.5.10-prs]: https://github.com/launchbadge/sqlx/pulls?page=1&q=is%3Apr+merged%3A2021-10-02..2021-12-31+sort%3Acreated-asc
1435
1436 ## 0.5.9 - 2021-10-01
1437
1438 A hotfix release to address the issue of the `sqlx` crate itself still depending on older versions of `sqlx-core` and
1439 `sqlx-macros`.
1440
1441 No other changes from `0.5.8`.
1442
1443 ## 0.5.8 - 2021-10-01 (Yanked; use 0.5.9)
1444
1445 [A total of 24 pull requests][0.5.8-prs] were merged this release cycle! Some highlights:
1446
1447 * [[#1289]] Support the `immutable` option on SQLite connections [[@djmarcin]]
1448 * [[#1295]] Support custom initial options for SQLite [[@ghassmo]]
1449 * Allows specifying custom `PRAGMA`s and overriding those set by SQLx.
1450 * [[#1345]] Initial support for Postgres `COPY FROM/TO`[[@montanalow], [@abonander]]
1451 * [[#1439]] Handle multiple waiting results correctly in MySQL [[@eagletmt]]
1452
1453 [#1289]: https://github.com/launchbadge/sqlx/pull/1289
1454 [#1295]: https://github.com/launchbadge/sqlx/pull/1295
1455 [#1345]: https://github.com/launchbadge/sqlx/pull/1345
1456 [#1439]: https://github.com/launchbadge/sqlx/pull/1439
1457 [0.5.8-prs]: https://github.com/launchbadge/sqlx/pulls?q=is%3Apr+is%3Amerged+merged%3A2021-08-21..2021-10-01
1458
1459 ## 0.5.7 - 2021-08-20
1460
1461 * [[#1392]] use `resolve_path` when getting path for `include_str!()` [[@abonander]]
1462 * Fixes a regression introduced by [[#1332]].
1463 * [[#1393]] avoid recursively spawning tasks in `PgListener::drop()` [[@abonander]]
1464 * Fixes a panic that occurs when `PgListener` is dropped in `async fn main()`.
1465
1466 [#1392]: https://github.com/launchbadge/sqlx/pull/1392
1467 [#1393]: https://github.com/launchbadge/sqlx/pull/1393
1468
1469 ## 0.5.6 - 2021-08-16
1470
1471 A large bugfix release, including but not limited to:
1472
1473 * [[#1329]] Implement `MACADDR` type for Postgres [[@nomick]]
1474 * [[#1363]] Fix `PortalSuspended` for array of composite types in Postgres [[@AtkinsChang]]
1475 * [[#1320]] Reimplement `sqlx::Pool` internals using `futures-intrusive` [[@abonander]]
1476 * This addresses a number of deadlocks/stalls on acquiring connections from the pool.
1477 * [[#1332]] Macros: tell the compiler about external files/env vars to watch [[@abonander]]
1478 * Includes `sqlx build-script` to create a `build.rs` to watch `migrations/` for changes.
1479 * Nightly users can try `RUSTFLAGS=--cfg sqlx_macros_unstable` to tell the compiler
1480 to watch `migrations/` for changes instead of using a build script.
1481 * See the new section in the docs for `sqlx::migrate!()` for details.
1482 * [[#1351]] Fix a few sources of segfaults/errors in SQLite driver [[@abonander]]
1483 * Includes contributions from [[@link2ext]] and [[@madadam]].
1484 * [[#1323]] Keep track of column typing in SQLite EXPLAIN parsing [[@marshoepial]]
1485 * This fixes errors in the macros when using `INSERT/UPDATE/DELETE ... RETURNING ...` in SQLite.
1486
1487 [A total of 25 pull requests][0.5.6-prs] were merged this release cycle!
1488
1489 [#1329]: https://github.com/launchbadge/sqlx/pull/1329
1490 [#1363]: https://github.com/launchbadge/sqlx/pull/1363
1491 [#1320]: https://github.com/launchbadge/sqlx/pull/1320
1492 [#1332]: https://github.com/launchbadge/sqlx/pull/1332
1493 [#1351]: https://github.com/launchbadge/sqlx/pull/1351
1494 [#1323]: https://github.com/launchbadge/sqlx/pull/1323
1495 [0.5.6-prs]: https://github.com/launchbadge/sqlx/pulls?q=is%3Apr+is%3Amerged+merged%3A2021-05-24..2021-08-17
1496
1497 ## 0.5.5 - 2021-05-24
1498
1499 - [[#1242]] Fix infinite loop at compile time when using query macros [[@toshokan]]
1500
1501 [#1242]: https://github.com/launchbadge/sqlx/pull/1242
1502
1503 ## 0.5.4 - 2021-05-22
1504
1505 - [[#1235]] Fix compilation with rustls from an eager update to webpki [[@ETCaton]]
1506
1507 [#1235]: https://github.com/launchbadge/sqlx/pull/1235
1508
1509 ## 0.5.3 - 2021-05-21
1510
1511 - [[#1211]] Even more tweaks and fixes to the Pool internals [[@abonander]]
1512
1513 - [[#1213]] Add support for bytes and `chrono::NaiveDateTime` to `Any` [[@guylapid]]
1514
1515 - [[#1224]] Add support for `chrono::DateTime<Local>` to `Any` with `MySQL` [[@NatPRoach]]
1516
1517 - [[#1216]] Skip empty lines and comments in pgpass files [[@feikesteenbergen]]
1518
1519 - [[#1218]] Add support for `PgMoney` to the compile-time type-checking [[@iamsiddhant05]]
1520
1521 [#1211]: https://github.com/launchbadge/sqlx/pull/1211
1522 [#1213]: https://github.com/launchbadge/sqlx/pull/1213
1523 [#1216]: https://github.com/launchbadge/sqlx/pull/1216
1524 [#1218]: https://github.com/launchbadge/sqlx/pull/1218
1525 [#1224]: https://github.com/launchbadge/sqlx/pull/1224
1526
1527 ## 0.5.2 - 2021-04-15
1528
1529 - [[#1149]] Tweak and optimize Pool internals [[@abonander]]
1530
1531 - [[#1132]] Remove `'static` bound on `Connection::transaction` [[@argv-minus-one]]
1532
1533 - [[#1128]] Fix `-y` flag for `sqlx db reset -y` [[@qqwa]]
1534
1535 - [[#1099]] [[#1097]] Truncate buffer when `BufStream` is dropped [[@Diggsey]]
1536
1537 [#1132]: https://github.com/launchbadge/sqlx/pull/1132
1538 [#1149]: https://github.com/launchbadge/sqlx/pull/1149
1539 [#1128]: https://github.com/launchbadge/sqlx/pull/1128
1540 [#1099]: https://github.com/launchbadge/sqlx/pull/1099
1541 [#1097]: https://github.com/launchbadge/sqlx/issues/1097
1542
1543 ### PostgreSQL
1544
1545 - [[#1170]] Remove `Self: Type` bounds in `Encode` / `Decode` implementations for arrays [[@jplatte]]
1546
1547 Enables working around the lack of support for user-defined array types:
1548
1549 ```rust
1550 #[derive(sqlx::Encode)]
1551 struct Foos<'a>(&'a [Foo]);
1552
1553 impl sqlx::Type<sqlx::Postgres> for Foos<'_> {
1554 fn type_info() -> PgTypeInfo {
1555 PgTypeInfo::with_name("_foo")
1556 }
1557 }
1558
1559 query_as!(
1560 Whatever,
1561 "<QUERY with $1 of type foo[]>",
1562 Foos(&foo_vec) as _,
1563 )
1564 ```
1565
1566 - [[#1141]] Use `u16::MAX` instead of `i16::MAX` for a check against the largest number of parameters in a query [[@crajcan]]
1567
1568 - [[#1112]] Add support for `DOMAIN` types [[@demurgos]]
1569
1570 - [[#1100]] Explicitly `UNLISTEN` before returning connections to the pool in `PgListener` [[@Diggsey]]
1571
1572 [#1170]: https://github.com/launchbadge/sqlx/pull/1170
1573 [#1141]: https://github.com/launchbadge/sqlx/pull/1141
1574 [#1112]: https://github.com/launchbadge/sqlx/pull/1112
1575 [#1100]: https://github.com/launchbadge/sqlx/pull/1100
1576
1577 ### SQLite
1578
1579 - [[#1161]] Catch `SQLITE_MISUSE` on connection close and panic [[@link2xt]]
1580
1581 - [[#1160]] Do not cast pointers to `i32` (cast to `usize`) [[@link2xt]]
1582
1583 - [[#1156]] Reset the statement when `fetch_many` stream is dropped [[@link2xt]]
1584
1585 [#1161]: https://github.com/launchbadge/sqlx/pull/1161
1586 [#1160]: https://github.com/launchbadge/sqlx/pull/1160
1587 [#1156]: https://github.com/launchbadge/sqlx/pull/1156
1588
1589 ## 0.5.1 - 2021-02-04
1590
1591 - Update sqlx-rt to 0.3.
1592
1593 ## 0.5.0 - 2021-02-04
1594
1595 ### Changes
1596
1597 - [[#983]] [[#1022]] Upgrade async runtime dependencies [[@seryl], [@ant32], [@jplatte], [@robjtede]]
1598
1599 - tokio 1.0
1600 - actix-rt 2.0
1601
1602 - [[#854]] Allow chaining `map` and `try_map` [[@jplatte]]
1603
1604 Additionally enables calling these combinators with the macros:
1605
1606 ```rust
1607 let ones: Vec<i32> = query!("SELECT 1 as foo")
1608 .map(|row| row.foo)
1609 .fetch_all(&mut conn).await?;
1610 ```
1611
1612 - [[#940]] Rename the `#[sqlx(rename)]` attribute used to specify the type name on the database
1613 side to `#[sqlx(type_name)]` [[@jplatte]].
1614
1615 - [[#976]] Rename the `DbDone` types to `DbQueryResult`. [[@jplatte]]
1616
1617 - [[#976]] Remove the `Done` trait. The `.rows_affected()` method is now available as an inherent
1618 method on `PgQueryResult`, `MySqlQueryResult` and so on. [[@jplatte]]
1619
1620 - [[#1007]] Remove `any::AnyType` (and replace with directly implementing `Type<Any>`) [[@jplatte]]
1621
1622 ### Added
1623
1624 - [[#998]] [[#821]] Add `.constraint()` to `DatabaseError` [[@fl9]]
1625
1626 - [[#919]] For SQLite, add support for unsigned integers [[@dignifiedquire]]
1627
1628 ### Fixes
1629
1630 - [[#1002]] For SQLite, `GROUP BY` in `query!` caused an infinite loop at compile time. [[@pymongo]]
1631
1632 - [[#979]] For MySQL, fix support for non-default authentication. [[@sile]]
1633
1634 - [[#918]] Recover from dropping `wait_for_conn` inside Pool. [[@antialize]]
1635
1636 [#821]: https://github.com/launchbadge/sqlx/issues/821
1637 [#918]: https://github.com/launchbadge/sqlx/pull/918
1638 [#919]: https://github.com/launchbadge/sqlx/pull/919
1639 [#983]: https://github.com/launchbadge/sqlx/pull/983
1640 [#940]: https://github.com/launchbadge/sqlx/pull/940
1641 [#976]: https://github.com/launchbadge/sqlx/pull/976
1642 [#979]: https://github.com/launchbadge/sqlx/pull/979
1643 [#998]: https://github.com/launchbadge/sqlx/pull/998
1644 [#983]: https://github.com/launchbadge/sqlx/pull/983
1645 [#1002]: https://github.com/launchbadge/sqlx/pull/1002
1646 [#1007]: https://github.com/launchbadge/sqlx/pull/1007
1647 [#1022]: https://github.com/launchbadge/sqlx/pull/1022
1648
1649 ## 0.4.2 - 2020-12-19
1650
1651 - [[#908]] Fix `whoami` crash on FreeBSD platform [[@fundon]] [[@AldaronLau]]
1652
1653 - [[#895]] Decrement pool size when connection is released [[@andrewwhitehead]]
1654
1655 - [[#878]] Fix `conn.transaction` wrapper [[@hamza1311]]
1656
1657 ```rust
1658 conn.transaction(|transaction: &mut Transaction<Database> | {
1659 // ...
1660 });
1661 ```
1662
1663 - [[#874]] Recognize `1` as `true` for `SQLX_OFFLINE [[@Pleto]]
1664
1665 - [[#747]] [[#867]] Replace `lru-cache` with `hashlink` [[@chertov]]
1666
1667 - [[#860]] Add `rename_all` to `FromRow` and add `camelCase` and `PascalCase` [[@framp]]
1668
1669 - [[#839]] Add (optional) support for `bstr::BStr`, `bstr::BString`, and `git2::Oid` [[@joshtriplett]]
1670
1671 #### SQLite
1672
1673 - [[#893]] Fix memory leak if `create_collation` fails [[@slumber]]
1674
1675 - [[#852]] Fix potential 100% CPU usage in `fetch_one` / `fetch_optional` [[@markazmierczak]]
1676
1677 - [[#850]] Add `synchronous` option to `SqliteConnectOptions` [[@markazmierczak]]
1678
1679 #### PostgreSQL
1680
1681 - [[#889]] Fix decimals (one more time) [[@slumber]]
1682
1683 - [[#876]] Add support for `BYTEA[]` to compile-time type-checking [[@augustocdias]]
1684
1685 - [[#845]] Fix path for `&[NaiveTime]` in `query!` macros [[@msrd0]]
1686
1687 #### MySQL
1688
1689 - [[#880]] Consider `utf8mb4_general_ci` as a string [[@mcronce]]
1690
1691 [#908]: https://github.com/launchbadge/sqlx/pull/908
1692 [#895]: https://github.com/launchbadge/sqlx/pull/895
1693 [#893]: https://github.com/launchbadge/sqlx/pull/893
1694 [#889]: https://github.com/launchbadge/sqlx/pull/889
1695 [#880]: https://github.com/launchbadge/sqlx/pull/880
1696 [#878]: https://github.com/launchbadge/sqlx/pull/878
1697 [#876]: https://github.com/launchbadge/sqlx/pull/876
1698 [#874]: https://github.com/launchbadge/sqlx/pull/874
1699 [#867]: https://github.com/launchbadge/sqlx/pull/867
1700 [#860]: https://github.com/launchbadge/sqlx/pull/860
1701 [#854]: https://github.com/launchbadge/sqlx/pull/854
1702 [#852]: https://github.com/launchbadge/sqlx/pull/852
1703 [#850]: https://github.com/launchbadge/sqlx/pull/850
1704 [#845]: https://github.com/launchbadge/sqlx/pull/845
1705 [#839]: https://github.com/launchbadge/sqlx/pull/839
1706 [#747]: https://github.com/launchbadge/sqlx/issues/747
1707
1708 ## 0.4.1 – 2020-11-13
1709
1710 Fix docs.rs build by enabling a runtime feature in the docs.rs metadata in `Cargo.toml`.
1711
1712 ## 0.4.0 - 2020-11-12
1713
1714 - [[#774]] Fix usage of SQLx derives with other derive crates [[@NyxCode]]
1715
1716 - [[#762]] Fix `migrate!()` (with no params) [[@esemeniuc]]
1717
1718 - [[#755]] Add `kebab-case` to `rename_all` [[@iamsiddhant05]]
1719
1720 - [[#735]] Support `rustls` [[@jplatte]]
1721
1722 Adds `-native-tls` or `-rustls` on each runtime feature:
1723
1724 ```toml
1725 # previous
1726 features = [ "runtime-async-std" ]
1727
1728 # now
1729 features = [ "runtime-async-std-native-tls" ]
1730 ```
1731
1732 - [[#718]] Support tuple structs with `#[derive(FromRow)]` [[@dvermd]]
1733
1734 #### SQLite
1735
1736 - [[#789]] Support `$NNN` parameters [[@nitsky]]
1737
1738 - [[#784]] Use `futures_channel::oneshot` in worker for big perf win [[@markazmierczak]]
1739
1740 #### PostgreSQL
1741
1742 - [[#781]] Fix decimal conversions handling of `0.01` [[@pimeys]]
1743
1744 - [[#745]] Always prefer parsing of the non-localized notice severity field [[@dstoeckel]]
1745
1746 - [[#742]] Enable `Vec<DateTime<Utc>>` with chrono [[@mrcd]]
1747
1748 #### MySQL
1749
1750 - [[#743]] Consider `utf8mb4_bin` as a string [[@digorithm]]
1751
1752 - [[#739]] Fix minor protocol detail with `iteration-count` that was blocking Vitess [[@mcronce]]
1753
1754 [#774]: https://github.com/launchbadge/sqlx/pull/774
1755 [#789]: https://github.com/launchbadge/sqlx/pull/789
1756 [#784]: https://github.com/launchbadge/sqlx/pull/784
1757 [#781]: https://github.com/launchbadge/sqlx/pull/781
1758 [#762]: https://github.com/launchbadge/sqlx/pull/762
1759 [#755]: https://github.com/launchbadge/sqlx/pull/755
1760 [#745]: https://github.com/launchbadge/sqlx/pull/745
1761 [#743]: https://github.com/launchbadge/sqlx/pull/743
1762 [#742]: https://github.com/launchbadge/sqlx/pull/742
1763 [#735]: https://github.com/launchbadge/sqlx/pull/735
1764 [#739]: https://github.com/launchbadge/sqlx/pull/739
1765 [#718]: https://github.com/launchbadge/sqlx/pull/718
1766
1767 ## 0.4.0-beta.1 - 2020-07-27
1768
1769 ### Highlights
1770
1771 - Enable compile-time type checking from cached metadata to enable building
1772 in an environment without access to a development database (e.g., Docker, CI).
1773
1774 - Initial support for **Microsoft SQL Server**. If there is something missing that you need,
1775 open an issue. We are happy to help.
1776
1777 - SQL migrations, both with a CLI tool and programmatically loading migrations at runtime.
1778
1779 - Runtime-determined database driver, `Any`, to support compile-once and run with a database
1780 driver selected at runtime.
1781
1782 - Support for user-defined types and more generally overriding the inferred Rust type from SQL
1783 with compile-time SQL verification.
1784
1785 ### Fixed
1786
1787 #### MySQL
1788
1789 - [[#418]] Support zero dates and times [[@blackwolf12333]]
1790
1791 ### Added
1792
1793 - [[#174]] Inroduce a builder to construct connections to bypass the URL parsing
1794
1795 ```rust
1796 // MSSQL
1797 let conn = MssqlConnectOptions::new()
1798 .host("localhost")
1799 .database("master")
1800 .username("sa")
1801 .password("Password")
1802 .connect().await?;
1803
1804 // SQLite
1805 let conn = SqliteConnectOptions::from_str("sqlite://a.db")?
1806 .foreign_keys(false)
1807 .connect().await?;
1808 ```
1809
1810 - [[#127]] Get the last ID or Row ID inserted for MySQL or SQLite
1811
1812 ```rust
1813 // MySQL
1814 let id: u64 = query!("INSERT INTO table ( col ) VALUES ( ? )", val)
1815 .execute(&mut conn).await?
1816 .last_insert_id(); // LAST_INSERT_ID()
1817
1818 // SQLite
1819 let id: i64 = query!("INSERT INTO table ( col ) VALUES ( ?1 )", val)
1820 .execute(&mut conn).await?
1821 .last_insert_rowid(); // sqlite3_last_insert_rowid()
1822 ```
1823
1824 - [[#263]] Add hooks to the Pool: `after_connect`, `before_release`, and `after_acquire`
1825
1826 ```rust
1827 // PostgreSQL
1828 let pool = PgPoolOptions::new()
1829 .after_connect(|conn| Box::pin(async move {
1830 conn.execute("SET application_name = 'your_app';").await?;
1831 conn.execute("SET search_path = 'my_schema';").await?;
1832
1833 Ok(())
1834 }))
1835 .connect("postgres:// …").await?
1836 ```
1837
1838 - [[#308]] [[#495]] Extend `derive(FromRow)` with support for `#[sqlx(default)]` on fields to allow reading in a partial query [[@OriolMunoz]]
1839
1840 - [[#454]] [[#456]] Support `rust_decimal::Decimal` as an alternative to `bigdecimal::BigDecimal` for `NUMERIC` columns in MySQL and PostgreSQL [[@pimeys]]
1841
1842 - [[#181]] Column names and type information is now accessible from `Row` via `Row::columns()` or `Row::column(name)`
1843
1844 #### PostgreSQL
1845
1846 - [[#197]] [[#271]] Add initial support for `INTERVAL` (full support pending a `time::Period` type) [[@dimtion]]
1847
1848 #### MySQL
1849
1850 - [[#449]] [[#450]] Support Unix Domain Sockets (UDS) for MySQL [[@pimeys]]
1851
1852 #### SQLite
1853
1854 - Types are now inferred for expressions. This means its now possible to use `query!` and `query_as!` for:
1855
1856 ```rust
1857 let row = query!("SELECT 10 as _1, x + 5 as _2 FROM table").fetch_one(&mut conn).await?;
1858
1859 assert_eq!(row._1, 10);
1860 assert_eq!(row._2, 5); // 5 + x?
1861 ```
1862
1863 - [[#167]] Support `foreign_keys` explicitly with a `foreign_keys(true)` method available on `SqliteConnectOptions` which is a builder
1864 for new SQLite connections (and can be passed into `PoolOptions` to build a pool).
1865
1866 ```rust
1867 let conn = SqliteConnectOptions::new()
1868 .foreign_keys(true) // on by default
1869 .connect().await?;
1870 ```
1871
1872 - [[#430]] [[#438]] Add method to get the raw SQLite connection handle [[@agentsim]]
1873
1874 ```rust
1875 // conn is `SqliteConnection`
1876 // this is not unsafe, but what you do with the handle will be
1877 let ptr: *mut libsqlite3::sqlite3 = conn.as_raw_handle();
1878 ```
1879
1880 - [[#164]] Support `TIMESTAMP`, `DATETIME`, `DATE`, and `TIME` via `chrono` in SQLite [[@felipesere]] [[@meteficha]]
1881
1882 ### Changed
1883
1884 - `Transaction` now mutably borrows a connection instead of owning it. This enables a new (or nested) transaction to be started from `&mut conn`.
1885
1886 - [[#145]] [[#444]] Use a least-recently-used (LRU) cache to limit the growth of the prepared statement cache for SQLite, MySQL, and PostgreSQL [[@pimeys]]
1887
1888 #### SQLite
1889
1890 - [[#499]] `INTEGER` now resolves to `i64` instead of `i32`, `INT4` will still resolve to `i32`
1891
1892 ### Removed
1893
1894 [#127]: https://github.com/launchbadge/sqlx/issues/127
1895 [#174]: https://github.com/launchbadge/sqlx/issues/174
1896 [#145]: https://github.com/launchbadge/sqlx/issues/145
1897 [#164]: https://github.com/launchbadge/sqlx/issues/164
1898 [#167]: https://github.com/launchbadge/sqlx/issues/167
1899 [#181]: https://github.com/launchbadge/sqlx/issues/181
1900 [#197]: https://github.com/launchbadge/sqlx/issues/197
1901 [#263]: https://github.com/launchbadge/sqlx/issues/263
1902 [#308]: https://github.com/launchbadge/sqlx/issues/308
1903 [#418]: https://github.com/launchbadge/sqlx/issues/418
1904 [#430]: https://github.com/launchbadge/sqlx/issues/430
1905 [#449]: https://github.com/launchbadge/sqlx/issues/449
1906 [#499]: https://github.com/launchbadge/sqlx/issues/499
1907 [#454]: https://github.com/launchbadge/sqlx/issues/454
1908 [#271]: https://github.com/launchbadge/sqlx/pull/271
1909 [#444]: https://github.com/launchbadge/sqlx/pull/444
1910 [#438]: https://github.com/launchbadge/sqlx/pull/438
1911 [#495]: https://github.com/launchbadge/sqlx/pull/495
1912 [#495]: https://github.com/launchbadge/sqlx/pull/495
1913
1914 ## 0.3.5 - 2020-05-06
1915
1916 ### Fixed
1917
1918 - [[#259]] Handle percent-encoded paths for SQLite [[@g-s-k]]
1919
1920 - [[#281]] Deallocate SQLite statements before closing the SQLite connection [[@hasali19]]
1921
1922 - [[#284]] Fix handling of `0` for `BigDecimal` in PostgreSQL and MySQL [[@abonander]]
1923
1924 ### Added
1925
1926 - [[#256]] Add `query_unchecked!` and `query_file_unchecked!` with similar semantics to `query_as_unchecked!` [[@meh]]
1927
1928 - [[#252]] [[#297]] Derive several traits for the `Json<T>` wrapper type [[@meh]]
1929
1930 - [[#261]] Add support for `#[sqlx(rename_all = "snake_case")]` to `#[derive(Type)]` [[@shssoichiro]]
1931
1932 - [[#253]] Add support for UNIX domain sockets to PostgreSQL [[@Nilix007]]
1933
1934 - [[#251]] Add support for textual JSON on MySQL [[@blackwolf12333]]
1935
1936 - [[#275]] [[#268]] Optionally log formatted SQL queries on execution [[@shssoichiro]]
1937
1938 - [[#267]] Support Cargo.toml relative `.env` files; allows for each crate in a workspace to use their own `.env` file and thus their own `DATABASE_URL` [[@xyzd]]
1939
1940 [#252]: https://github.com/launchbadge/sqlx/pull/252
1941 [#261]: https://github.com/launchbadge/sqlx/pull/261
1942 [#256]: https://github.com/launchbadge/sqlx/pull/256
1943 [#259]: https://github.com/launchbadge/sqlx/pull/259
1944 [#253]: https://github.com/launchbadge/sqlx/pull/253
1945 [#297]: https://github.com/launchbadge/sqlx/pull/297
1946 [#251]: https://github.com/launchbadge/sqlx/pull/251
1947 [#275]: https://github.com/launchbadge/sqlx/pull/275
1948 [#267]: https://github.com/launchbadge/sqlx/pull/267
1949 [#268]: https://github.com/launchbadge/sqlx/pull/268
1950 [#281]: https://github.com/launchbadge/sqlx/pull/281
1951 [#284]: https://github.com/launchbadge/sqlx/pull/284
1952
1953 ## 0.3.4 - 2020-04-10
1954
1955 ### Fixed
1956
1957 - [[#241]] Type name for custom enum is not always attached to TypeInfo in PostgreSQL
1958
1959 - [[#237]] [[#238]] User-defined type name matching is now case-insensitive in PostgreSQL [[@qtbeee]]
1960
1961 - [[#231]] Handle empty queries (and those with comments) in SQLite
1962
1963 - [[#228]] Provide `MapRow` implementations for functions (enables `.map(|row| ...)` over `.try_map(|row| ...)`)
1964
1965 ### Added
1966
1967 - [[#234]] Add support for `NUMERIC` in MySQL with the `bigdecimal` crate [[@xiaopengli89]]
1968
1969 - [[#227]] Support `#[sqlx(rename = "new_name")]` on struct fields within a `FromRow` derive [[@sidred]]
1970
1971 [#228]: https://github.com/launchbadge/sqlx/issues/228
1972 [#231]: https://github.com/launchbadge/sqlx/issues/231
1973 [#237]: https://github.com/launchbadge/sqlx/issues/237
1974 [#241]: https://github.com/launchbadge/sqlx/issues/241
1975 [#227]: https://github.com/launchbadge/sqlx/pull/227
1976 [#234]: https://github.com/launchbadge/sqlx/pull/234
1977 [#238]: https://github.com/launchbadge/sqlx/pull/238
1978
1979 ## 0.3.3 - 2020-04-01
1980
1981 ### Fixed
1982
1983 - [[#214]] Handle percent-encoded usernames in a database URL [[@jamwaffles]]
1984
1985 ### Changed
1986
1987 - [[#216]] Mark `Cursor`, `Query`, `QueryAs`, `query::Map`, and `Transaction` as `#[must_use]` [[@Ace4896]]
1988
1989 - [[#213]] Remove matches dependency and use matches macro from std [[@nrjais]]
1990
1991 [#216]: https://github.com/launchbadge/sqlx/pull/216
1992 [#214]: https://github.com/launchbadge/sqlx/pull/214
1993 [#213]: https://github.com/launchbadge/sqlx/pull/213
1994
1995 ## 0.3.2 - 2020-03-31
1996
1997 ### Fixed
1998
1999 - [[#212]] Removed sneaky `println!` in `MySqlCursor`
2000
2001 [#212]: https://github.com/launchbadge/sqlx/issues/212
2002
2003 ## 0.3.1 - 2020-03-30
2004
2005 ### Fixed
2006
2007 - [[#203]] Allow an empty password for MySQL
2008
2009 - [[#204]] Regression in error reporting for invalid SQL statements on PostgreSQL
2010
2011 - [[#200]] Fixes the incorrect handling of raw (`r#...`) fields of a struct in the `FromRow` derive [[@sidred]]
2012
2013 [#200]: https://github.com/launchbadge/sqlx/pull/200
2014 [#203]: https://github.com/launchbadge/sqlx/issues/203
2015 [#204]: https://github.com/launchbadge/sqlx/issues/204
2016
2017 ## 0.3.0 - 2020-03-29
2018
2019 ### Breaking Changes
2020
2021 - `sqlx::Row` now has a lifetime (`'c`) tied to the database connection. In effect, this means that you cannot store `Row`s or collect
2022 them into a collection. `Query` (returned from `sqlx::query()`) has `map()` which takes a function to map from the `Row` to
2023 another type to make this transition easier.
2024
2025 In 0.2.x
2026
2027 ```rust
2028 let rows = sqlx::query("SELECT 1")
2029 .fetch_all(&mut conn).await?;
2030 ```
2031
2032 In 0.3.x
2033
2034 ```rust
2035 let values: Vec<i32> = sqlx::query("SELECT 1")
2036 .map(|row: PgRow| row.get(0))
2037 .fetch_all(&mut conn).await?;
2038 ```
2039
2040 To assist with the above, `sqlx::query_as()` now supports querying directly into tuples (up to 9 elements) or
2041 struct types with a `#[derive(FromRow)]`.
2042
2043 ```rust
2044 // This extension trait is needed until a rust bug is fixed
2045 use sqlx::postgres::PgQueryAs;
2046
2047 let values: Vec<(i32, bool)> = sqlx::query_as("SELECT 1, false")
2048 .fetch_all(&mut conn).await?;
2049 ```
2050
2051 - `HasSqlType<T>: Database` is now `T: Type<Database>` to mirror `Encode` and `Decode`
2052
2053 - `Query::fetch` (returned from `query()`) now returns a new `Cursor` type. `Cursor` is a Stream-like type where the
2054 item type borrows into the stream (which itself borrows from connection). This means that using `query().fetch()` you can now
2055 stream directly from the database with **zero-copy** and **zero-allocation**.
2056
2057 - Remove `PgTypeInfo::with_oid` and replace with `PgTypeInfo::with_name`
2058
2059 ### Added
2060
2061 - Results from the database are now zero-copy and no allocation beyond a shared read buffer
2062 for the TCP stream ( in other words, almost no per-query allocation ). Bind arguments still
2063 do allocate a buffer per query.
2064
2065 - [[#129]] Add support for [SQLite](https://sqlite.org/index.html). Generated code should be very close to normal use of the C API.
2066
2067 - Adds `Sqlite`, `SqliteConnection`, `SqlitePool`, and other supporting types
2068
2069 - [[#97]] [[#134]] Add support for user-defined types. [[@Freax13]]
2070
2071 - Rust-only domain types or transparent wrappers around SQL types. These may be used _transparently_ inplace of
2072 the SQL type.
2073
2074 ```rust
2075 #[derive(sqlx::Type)]
2076 #[repr(transparent)]
2077 struct Meters(i32);
2078 ```
2079
2080 - Enumerations may be defined in Rust and can match SQL by integer discriminant or variant name.
2081
2082 ```rust
2083 #[derive(sqlx::Type)]
2084 #[repr(i32)] // Expects a INT in SQL
2085 enum Color { Red = 1, Green = 2, Blue = 3 }
2086 ```
2087
2088 ```rust
2089 #[derive(sqlx::Type)]
2090 #[sqlx(rename = "TEXT")] // May also be the name of a user defined enum type
2091 #[sqlx(rename_all = "lowercase")] // similar to serde rename_all
2092 enum Color { Red, Green, Blue } // expects 'red', 'green', or 'blue'
2093 ```
2094
2095 - **Postgres** further supports user-defined composite types.
2096
2097 ```rust
2098 #[derive(sqlx::Type)]
2099 #[sqlx(rename = "interface_type")]
2100 struct InterfaceType {
2101 name: String,
2102 supplier_id: i32,
2103 price: f64
2104 }
2105 ```
2106
2107 - [[#98]] [[#131]] Add support for asynchronous notifications in Postgres (`LISTEN` / `NOTIFY`). [[@thedodd]]
2108
2109 - Supports automatic reconnection on connection failure.
2110
2111 - `PgListener` implements `Executor` and may be used to execute queries. Be careful however as if the
2112 intent is to handle and process messages rapidly you don't want to be tying up the connection
2113 for too long. Messages received during queries are buffered and will be delivered on the next call
2114 to `recv()`.
2115
2116 ```rust
2117 let mut listener = PgListener::new(DATABASE_URL).await?;
2118
2119 listener.listen("topic").await?;
2120
2121 loop {
2122 let message = listener.recv().await?;
2123
2124 println!("payload = {}", message.payload);
2125 }
2126 ```
2127
2128 - Add _unchecked_ variants of the query macros. These will still verify the SQL for syntactic and
2129 semantic correctness with the current database but they will not check the input or output types.
2130
2131 This is intended as a temporary solution until `query_as!` is able to support user defined types.
2132
2133 - `query_as_unchecked!`
2134 - `query_file_as_unchecked!`
2135
2136 - Add support for many more types in Postgres
2137
2138 - `JSON`, `JSONB` [[@oeb25]]
2139 - `INET`, `CIDR` [[@PoiScript]]
2140 - Arrays [[@oeb25]]
2141 - Composites ( Rust tuples or structs with a `#[derive(Type)]` )
2142 - `NUMERIC` [[@abonander]]
2143 - `OID` (`u32`)
2144 - `"CHAR"` (`i8`)
2145 - `TIMESTAMP`, `TIMESTAMPTZ`, etc. with the `time` crate [[@utter-step]]
2146 - Enumerations ( Rust enums with a `#[derive(Type)]` ) [[@Freax13]]
2147
2148 ### Changed
2149
2150 - `Query` (and `QueryAs`; returned from `query()`, `query_as()`, `query!()`, and `query_as!()`) now will accept both `&mut Connection` or
2151 `&Pool` where as in 0.2.x they required `&mut &Pool`.
2152
2153 - `Executor` now takes any value that implements `Execute` as a query. `Execute` is implemented for `Query` and `QueryAs` to mean
2154 exactly what they've meant so far, a prepared SQL query. However, `Execute` is also implemented for just `&str` which now performs
2155 a raw or unprepared SQL query. You can further use this to fetch `Row`s from the database though it is not as efficient as the
2156 prepared API (notably Postgres and MySQL send data back in TEXT mode as opposed to in BINARY mode).
2157
2158 ```rust
2159 use sqlx::Executor;
2160
2161 // Set the time zone parameter
2162 conn.execute("SET TIME ZONE LOCAL;").await
2163
2164 // Demonstrate two queries at once with the raw API
2165 let mut cursor = conn.fetch("SELECT 1; SELECT 2");
2166 let row = cursor.next().await?.unwrap();
2167 let value: i32 = row.get(0); // 1
2168 let row = cursor.next().await?.unwrap();
2169 let value: i32 = row.get(0); // 2
2170 ```
2171
2172 ### Removed
2173
2174 - `Query` (returned from `query()`) no longer has `fetch_one`, `fetch_optional`, or `fetch_all`. You _must_ map the row using `map()` and then
2175 you will have a `query::Map` value that has the former methods available.
2176
2177 ```rust
2178 let values: Vec<i32> = sqlx::query("SELECT 1")
2179 .map(|row: PgRow| row.get(0))
2180 .fetch_all(&mut conn).await?;
2181 ```
2182
2183 ### Fixed
2184
2185 - [[#62]] [[#130]] [[#135]] Remove explicit set of `IntervalStyle`. Allow usage of SQLx for CockroachDB and potentially PgBouncer. [[@bmisiak]]
2186
2187 - [[#108]] Allow nullable and borrowed values to be used as arguments in `query!` and `query_as!`. For example, where the column would
2188 resolve to `String` in Rust (TEXT, VARCHAR, etc.), you may now use `Option<String>`, `Option<&str>`, or `&str` instead. [[@abonander]]
2189
2190 - [[#108]] Make unknown type errors far more informative. As an example, trying to `SELECT` a `DATE` column will now try and tell you about the
2191 `chrono` feature. [[@abonander]]
2192
2193 ```
2194 optional feature `chrono` required for type DATE of column #1 ("now")
2195 ```
2196
2197 [#62]: https://github.com/launchbadge/sqlx/issues/62
2198 [#130]: https://github.com/launchbadge/sqlx/issues/130
2199 [#98]: https://github.com/launchbadge/sqlx/pull/98
2200 [#97]: https://github.com/launchbadge/sqlx/pull/97
2201 [#134]: https://github.com/launchbadge/sqlx/pull/134
2202 [#129]: https://github.com/launchbadge/sqlx/pull/129
2203 [#131]: https://github.com/launchbadge/sqlx/pull/131
2204 [#135]: https://github.com/launchbadge/sqlx/pull/135
2205 [#108]: https://github.com/launchbadge/sqlx/pull/108
2206
2207 ## 0.2.6 - 2020-03-10
2208
2209 ### Added
2210
2211 - [[#114]] Export `sqlx_core::Transaction` [[@thedodd]]
2212
2213 ### Fixed
2214
2215 - [[#125]] [[#126]] Fix statement execution in MySQL if it contains NULL statement values [[@repnop]]
2216
2217 - [[#105]] [[#109]] Allow trailing commas in query macros [[@timmythetiny]]
2218
2219 [#105]: https://github.com/launchbadge/sqlx/pull/105
2220 [#109]: https://github.com/launchbadge/sqlx/pull/109
2221 [#114]: https://github.com/launchbadge/sqlx/pull/114
2222 [#125]: https://github.com/launchbadge/sqlx/pull/125
2223 [#126]: https://github.com/launchbadge/sqlx/pull/126
2224 [@timmythetiny]: https://github.com/timmythetiny
2225 [@thedodd]: https://github.com/thedodd
2226
2227 ## 0.2.5 - 2020-02-01
2228
2229 ### Fixed
2230
2231 - Fix decoding of Rows containing NULLs in Postgres [#104]
2232
2233 - After a large review and some battle testing by [@ianthetechie](https://github.com/ianthetechie)
2234 of the `Pool`, a live leaking issue was found. This has now been fixed by [@abonander] in [#84] which
2235 included refactoring to make the pool internals less brittle (using RAII instead of manual
2236 work is one example) and to help any future contributors when changing the pool internals.
2237
2238 - Passwords are now being percent-decoded before being presented to the server [[@repnop]]
2239
2240 - [@100] Fix `FLOAT` and `DOUBLE` decoding in MySQL
2241
2242 [#84]: https://github.com/launchbadge/sqlx/issues/84
2243 [#100]: https://github.com/launchbadge/sqlx/issues/100
2244 [#104]: https://github.com/launchbadge/sqlx/issues/104
2245
2246 ### Added
2247
2248 - [[#72]] Add `PgTypeInfo::with_oid` to allow simple construction of `PgTypeInfo` which enables `HasSqlType`
2249 to be implemented by downstream consumers of SQLx [[@jplatte]]
2250
2251 - [[#96]] Add support for returning columns from `query!` with a name of a rust keyword by
2252 using raw identifiers [[@yaahc]]
2253
2254 - [[#71]] Implement derives for `Encode` and `Decode`. This is the first step to supporting custom types in SQLx. [[@Freax13]]
2255
2256 [#72]: https://github.com/launchbadge/sqlx/issues/72
2257 [#96]: https://github.com/launchbadge/sqlx/issues/96
2258 [#71]: https://github.com/launchbadge/sqlx/issues/71
2259
2260 ## 0.2.4 - 2020-01-18
2261
2262 ### Fixed
2263
2264 - Fix decoding of Rows containing NULLs in MySQL (and add an integration test so this doesn't break again)
2265
2266 ## 0.2.3 - 2020-01-18
2267
2268 ### Fixed
2269
2270 - Fix `query!` when used on a query that does not return results
2271
2272 ## 0.2.2 - 2020-01-16
2273
2274 ### Added
2275
2276 - [[#57]] Add support for unsigned integers and binary types in `query!` for MySQL [[@mehcode]]
2277
2278 [#57]: https://github.com/launchbadge/sqlx/issues/57
2279
2280 ### Fixed
2281
2282 - Fix stall when requesting TLS from a Postgres server that explicitly does not support TLS (such as postgres running inside docker) [[@abonander]]
2283
2284 - [[#66]] Declare used features for `tokio` in `sqlx-macros` explicitly
2285
2286 [#66]: https://github.com/launchbadge/sqlx/issues/66
2287
2288 ## 0.2.1 - 2020-01-16
2289
2290 ### Fixed
2291
2292 - [[#64], [#65]] Fix decoding of Rows containing NULLs in MySQL [[@danielakhterov]]
2293
2294 [#64]: https://github.com/launchbadge/sqlx/pull/64
2295 [#65]: https://github.com/launchbadge/sqlx/pull/65
2296
2297 - [[#55]] Use a shared tokio runtime for the `query!` macro compile-time execution (under the `runtime-tokio` feature) [[@udoprog]]
2298
2299 [#55]: https://github.com/launchbadge/sqlx/pull/55
2300
2301 ## 0.2.0 - 2020-01-15
2302
2303 ### Fixed
2304
2305 - https://github.com/launchbadge/sqlx/issues/47
2306
2307 ### Added
2308
2309 - Support Tokio through an optional `runtime-tokio` feature.
2310
2311 - Support SQL transactions. You may now use the `begin()` function on `Pool` or `Connection` to
2312 start a new SQL transaction. This returns `sqlx::Transaction` which will `ROLLBACK` on `Drop`
2313 or can be explicitly `COMMIT` using `commit()`.
2314
2315 - Support TLS connections.
2316
2317 ## 0.1.4 - 2020-01-11
2318
2319 ### Fixed
2320
2321 - https://github.com/launchbadge/sqlx/issues/43
2322
2323 - https://github.com/launchbadge/sqlx/issues/40
2324
2325 ### Added
2326
2327 - Support for `SCRAM-SHA-256` authentication in Postgres [#37](https://github.com/launchbadge/sqlx/pull/37) [@danielakhterov](https://github.com/danielakhterov)
2328
2329 - Implement `Debug` for Pool [#42](https://github.com/launchbadge/sqlx/pull/42) [@prettynatty](https://github.com/prettynatty)
2330
2331 ## 0.1.3 - 2020-01-06
2332
2333 ### Fixed
2334
2335 - https://github.com/launchbadge/sqlx/issues/30
2336
2337 ## 0.1.2 - 2020-01-03
2338
2339 ### Added
2340
2341 - Support for Authentication in MySQL 5+ including the newer authentication schemes now default in MySQL 8: `mysql_native_password`, `sha256_password`, and `caching_sha2_password`.
2342
2343 - [`Chrono`](https://github.com/chronotope/chrono) support for MySQL was only partially implemented (was missing `NaiveTime` and `DateTime<Utc>`).
2344
2345 - `Vec<u8>` (and `[u8]`) support for MySQL (`BLOB`) and Postgres (`BYTEA`).
2346
2347 [@abonander]: https://github.com/abonander
2348 [@danielakhterov]: https://github.com/danielakhterov
2349 [@mehcode]: https://github.com/mehcode
2350 [@udoprog]: https://github.com/udoprog
2351 [@jplatte]: https://github.com/jplatte
2352 [@yaahc]: https://github.com/yaahc
2353 [@freax13]: https://github.com/Freax13
2354 [@repnop]: https://github.com/repnop
2355 [@bmisiak]: https://github.com/bmisiak
2356 [@oeb25]: https://github.com/oeb25
2357 [@poiscript]: https://github.com/PoiScript
2358 [@utter-step]: https://github.com/utter-step
2359 [@sidred]: https://github.com/sidred
2360 [@ace4896]: https://github.com/Ace4896
2361 [@jamwaffles]: https://github.com/jamwaffles
2362 [@nrjais]: https://github.com/nrjais
2363 [@qtbeee]: https://github.com/qtbeee
2364 [@xiaopengli89]: https://github.com/xiaopengli89
2365 [@meh]: https://github.com/meh
2366 [@shssoichiro]: https://github.com/shssoichiro
2367 [@nilix007]: https://github.com/Nilix007
2368 [@g-s-k]: https://github.com/g-s-k
2369 [@blackwolf12333]: https://github.com/blackwolf12333
2370 [@xyzd]: https://github.com/xyzd
2371 [@hasali19]: https://github.com/hasali19
2372 [@oriolmunoz]: https://github.com/OriolMunoz
2373 [@pimeys]: https://github.com/pimeys
2374 [@agentsim]: https://github.com/agentsim
2375 [@meteficha]: https://github.com/meteficha
2376 [@felipesere]: https://github.com/felipesere
2377 [@dimtion]: https://github.com/dimtion
2378 [@fundon]: https://github.com/fundon
2379 [@aldaronlau]: https://github.com/AldaronLau
2380 [@andrewwhitehead]: https://github.com/andrewwhitehead
2381 [@slumber]: https://github.com/slumber
2382 [@mcronce]: https://github.com/mcronce
2383 [@hamza1311]: https://github.com/hamza1311
2384 [@augustocdias]: https://github.com/augustocdias
2385 [@pleto]: https://github.com/Pleto
2386 [@chertov]: https://github.com/chertov
2387 [@framp]: https://github.com/framp
2388 [@markazmierczak]: https://github.com/markazmierczak
2389 [@msrd0]: https://github.com/msrd0
2390 [@joshtriplett]: https://github.com/joshtriplett
2391 [@nyxcode]: https://github.com/NyxCode
2392 [@nitsky]: https://github.com/nitsky
2393 [@esemeniuc]: https://github.com/esemeniuc
2394 [@iamsiddhant05]: https://github.com/iamsiddhant05
2395 [@dstoeckel]: https://github.com/dstoeckel
2396 [@mrcd]: https://github.com/mrcd
2397 [@dvermd]: https://github.com/dvermd
2398 [@seryl]: https://github.com/seryl
2399 [@ant32]: https://github.com/ant32
2400 [@robjtede]: https://github.com/robjtede
2401 [@pymongo]: https://github.com/pymongo
2402 [@sile]: https://github.com/sile
2403 [@fl9]: https://github.com/fl9
2404 [@antialize]: https://github.com/antialize
2405 [@dignifiedquire]: https://github.com/dignifiedquire
2406 [@argv-minus-one]: https://github.com/argv-minus-one
2407 [@qqwa]: https://github.com/qqwa
2408 [@diggsey]: https://github.com/Diggsey
2409 [@crajcan]: https://github.com/crajcan
2410 [@demurgos]: https://github.com/demurgos
2411 [@link2xt]: https://github.com/link2xt
2412 [@guylapid]: https://github.com/guylapid
2413 [@natproach]: https://github.com/NatPRoach
2414 [@feikesteenbergen]: https://github.com/feikesteenbergen
2415 [@etcaton]: https://github.com/ETCaton
2416 [@toshokan]: https://github.com/toshokan
2417 [@nomick]: https://github.com/nomick
2418 [@marshoepial]: https://github.com/marshoepial
2419 [@link2ext]: https://github.com/link2ext
2420 [@madadam]: https://github.com/madadam
2421 [@AtkinsChang]: https://github.com/AtkinsChang
2422 [@djmarcin]: https://github.com/djmarcin
2423 [@ghassmo]: https://github.com/ghassmo
2424 [@eagletmt]: https://github.com/eagletmt
2425 [@montanalow]: https://github.com/montanalow
2426 [@nitnelave]: https://github.com/nitnelave
2427 [@Drevoed]: https://github.com/Drevoed
2428 [@yuyawk]: https://github.com/yuyawk
2429 [@yerke]: https://github.com/yerke
2430 [@russweas]: https://github.com/russweas
2431 [@zbigniewzolnierowicz]: https://github.com/zbigniewzolnierowicz
2432 [@dimfeld]: https://github.com/dimfeld
2433 [@akiradeveloper]: https://github.com/akiradeveloper
2434 [@chesedo]: https://github.com/chesedo
2435 [@LLBlumire]: https://github.com/LLBlumire
2436 [@liushuyu]: https://github.com/liushuyu
2437 [@paolobarbolini]: https://github.com/paolobarbolini
2438 [@DoumanAsh]: https://github.com/DoumanAsh
2439 [@D1plo1d]: https://github.com/D1plo1d
2440 [@tkintscher]: https://github.com/tkintscher
2441 [@SonicZentropy]: https://github.com/SonicZentropy
2442 [@parazyd]: https://github.com/parazyd
2443 [@kunjee17]: https://github.com/kunjee17
2444 [@05storm26]: https://github.com/05storm26
2445 [@dbeckwith]: https://github.com/dbeckwith
2446 [@k-jun]: https://github.com/k-jun
2447 [@tranzystorek-io]: https://github.com/tranzystorek-io
2448 [@taladar]: https://github.com/taladar
2449 [@genusistimelord]: https://github.com/genusistimelord
2450 [@p9s]: https://github.com/p9s
2451 [@ArGGu]: https://github.com/ArGGu
2452 [@sedrik]: https://github.com/sedrik
2453 [@nappa85]: https://github.com/nappa85
2454 [@ifn3]: https://github.com/ifn3
2455 [@LovecraftianHorror]: https://github.com/LovecraftianHorror
2456 [@stoically]: https://github.com/stoically
2457 [@VersBinarii]: https://github.com/VersBinarii
2458 [@cemoktra]: https://github.com/cemoktra
2459 [@jdrouet]: https://github.com/jdrouet
2460 [@vbmade2000]: https://github.com/vbmade2000
2461 [@abreis]: https://github.com/abreis
2462 [@0xdeafbeef]: https://github.com/0xdeafbeef
2463 [@Dylan-DPC]: https://github.com/Dylan-DPC
2464 [@carols10cents]: https://github.com/carols10cents
2465 [@david-mcgillicuddy-moixa]: https://github.com/david-mcgillicuddy-moixa
2466 [@ipetkov]: https://github.com/ipetkov
2467 [@pedromfedricci]: https://github.com/pedromfedricci
2468 [@tm-drtina]: https://github.com/tm-drtina
2469 [@espindola]: https://github.com/espindola
2470 [@mgrachev]: https://github.com/mgrachev
2471 [@tyrelr]: https://github.com/tyrelr
2472 [@SebastienGllmt]: https://github.com/SebastienGllmt
2473 [@e00E]: https://github.com/e00E
2474 [@sebpuetz]: https://github.com/sebpuetz
2475 [@pruthvikar]: https://github.com/pruthvikar
2476 [@tobymurray]: https://github.com/tobymurray
2477 [@djc]: https://github.com/djc
2478 [@mfreeborn]: https://github.com/mfreeborn
2479 [@scottwey]: https://github.com/scottwey
2480 [@e-rhodes]: https://github.com/e-rhodes
2481 [@OskarPersson]: https://github.com/OskarPersson
2482 [@walf443]: https://github.com/walf443
2483 [@lovasoa]: https://github.com/lovasoa
2484 [@mdtusz]: https://github.com/mdtusz
2485 [@kianmeng]: https://github.com/kianmeng
2486 [@EthanYuan]: https://github.com/EthanYuan
2487 [@Nukesor]: https://github.com/Nukesor
2488 [@smonv]: https://github.com/smonv
2489 [@Erik1000]: https://github.com/Erik1000
2490 [@raviqqe]: https://github.com/raviqqe
2491 [@johnbcodes]: https://github.com/johnbcodes
2492 [@sbeckeriv]: https://github.com/sbeckeriv
2493 [@RomainStorai]: https://github.com/RomainStorai
2494 [@jayy-lmao]: https://github.com/jayy-lmao
2495 [@Thomasdezeeuw]: https://github.com/Thomasdezeeuw
2496 [@kenkoooo]: https://github.com/kenkoooo
2497 [@TheoOiry]: https://github.com/TheoOiry
2498 [@JoeyMckenzie]: https://github.com/JoeyMckenzie
2499 [@ivan]: https://github.com/ivan
2500 [@crepererum]: https://github.com/crepererum
2501 [@UramnOIL]: https://github.com/UramnOIL
2502 [@liningpan]: https://github.com/liningpan
2503 [@zzhengzhuo]: https://github.com/zzhengzhuo
2504 [@crepererum]: https://github.com/crepererum
2505 [@szymek156]: https://github.com/szymek156
2506 [@NSMustache]: https://github.com/NSMustache
2507 [@RustyYato]: https://github.com/RustyYato
2508 [@alexander-jackson]: https://github.com/alexander-jackson
2509 [@zlidner]: https://github.com/zlidner
2510 [@zlindner]: https://github.com/zlindner
2511 [@marcustut]: https://github.com/marcustut
2512 [@rakshith-ravi]: https://github.com/rakshith-ravi
2513 [@bradfier]: https://github.com/bradfier
2514 [@fuzzbuck]: https://github.com/fuzzbuck
2515 [@cycraig]: https://github.com/cycraig
2516 [@fasterthanlime]: https://github.com/fasterthanlime
2517 [@he4d]: https://github.com/he4d
2518 [@DXist]: https://github.com/DXist
2519 [@Wopple]: https://github.com/Wopple
2520 [@TravisWhitehead]: https://github.com/TravisWhitehead
2521 [@ThibsG]: https://github.com/ThibsG
2522 [@rongcuid]: https://github.com/rongcuid
2523 [@moatra]: https://github.com/moatra
2524 [@penberg]: https://github.com/penberg
2525 [@saiintbrisson]: https://github.com/saiintbrisson
2526 [@FSMaxB]: https://github.com/FSMaxB
2527 [@95ulisse]: https://github.com/95ulisse
2528 [@miles170]: https://github.com/miles170
2529 [@ar3s3ru]: https://github.com/ar3s3ru
2530 [@cdbfoster]: https://github.com/cdbfoster
2531 [@andyquinterom]: https://github.com/andyquinterom
2532 [@CosmicHorrorDev]: https://github.com/CosmicHorrorDev
2533 [@VictorKoenders]: https://github.com/VictorKoenders
2534 [@joehillen]: https://github.com/joehillen
2535 [@OverHash]: https://github.com/OverHash
2536 [@laundmo]: https://github.com/laundmo
2537 [@nbaztec]: https://github.com/nbaztec
2538 [@bgeron]: https://github.com/bgeron
2539 [@benesch]: https://github.com/benesch
2540 [@nstinus]: https://github.com/nstinus
2541 [@grgi]: https://github.com/grgi
2542 [@sergeiivankov]: https://github.com/sergeiivankov
2543 [@jaysonsantos]: https://github.com/jaysonsantos
2544 [@dbrgn]: https://github.com/dbrgn
2545 [@grantkee]: https://github.com/grantkee
2546 [@bnoctis]: https://github.com/bnoctis
2547 [@aschey]: https://github.com/aschey
2548 [@df51d]: https://github.com/df51d
2549 [@codahale]: https://github.com/codahale
2550 [@arlyon]: https://github.com/arlyon
2551 [@SergioBenitez]: https://github.com/SergioBenitez
2552 [@tgeoghegan]: https://github.com/tgeoghegan
2553 [@vizvasrj]: https://github.com/vizvasrj
2554 [@phlip9]: https://github.com/phlip9
2555 [@MidasLamb]: https://github.com/MidasLamb
2556 [@utkarshgupta137]: https://github.com/utkarshgupta137
2557 [@Arcayr]: https://github.com/Arcayr
2558 [@mdecimus]: https://github.com/mdecimus
2559 [@Razican]: https://github.com/Razican
2560 [@southball]: https://github.com/southball
2561 [@alilleybrinker]: https://github.com/alilleybrinker
2562 [@titaniumtraveler]: https://github.com/titaniumtraveler
2563 [@nyurik]: https://github.com/nyurik
2564 [@stepantubanov]: https://github.com/stepantubanov
2565 [@iamquang95]: https://github.com/iamquang95
2566 [@jnnnnn]: https://github.com/jnnnnn
2567 [@saolof]: https://github.com/saolof
2568 [@deneut]: https://github.com/deneut
2569 [@kitterion]: https://github.com/kitterion
2570 [@denschub]: https://github.com/denschub
2571 [@fd]: https://github.com/fd
2572 [@mrl5]: https://github.com/mrl5
2573 [@Xydez]: https://github.com/Xydez
2574 [@vabka]: https://github.com/vabka
2575 [@ldanilek]: https://github.com/ldanilek
2576 [@inahga]: https://github.com/inahga
2577 [@JockeM]: https://github.com/JockeM
2578 [@vmax]: https://github.com/vmax
2579 [@sebastianv89]: https://github.com/sebastianv89
2580 [@marcusirgens]: https://github.com/marcusirgens
2581 [@tsing]: https://github.com/tsing
2582 [@snf]: https://github.com/snf
2583 [@wyhaya]: https://github.com/wyhaya
2584 [@hakoerber]: https://github.com/hakoerber
2585 [@olback]: https://github.com/olback
2586 [@kryptan]: https://github.com/kryptan
2587 [@grant0417]: https://github.com/grant0417
2588 [@fermanjj]: https://github.com/fermanjj
2589 [@grooverdan]: https://github.com/grooverdan
2590 [@bobozaur]: https://github.com/bobozaur
2591 [@aldur]: https://github.com/aldur
2592 [@hgranthorner]: https://github.com/hgranthorner
2593 [@ripa1995]: https://github.com/ripa1995
2594 [@fhsgoncalves]: https://github.com/fhsgoncalves
2595 [@uttarayan21]: https://github.com/uttarayan21
2596 [@tk2217]: https://github.com/tk2217
2597 [@hamiltop]: https://github.com/hamiltop
2598 [@cameronbraid]: https://github.com/cameronbraid
2599 [@Baptistemontan]: https://github.com/Baptistemontan
2600 [@satwanjyu]: https://github.com/satwanjyu
2601 [@boris-lok]: https://github.com/boris-lok
2602 [@qwerty2501]: https://github.com/qwerty2501
2603 [@Nemo157]: https://github.com/Nemo157
2604 [@snspinn]: https://github.com/snspinn
2605 [@granddaifuku]: https://github.com/granddaifuku
2606 [@yasamoka]: https://github.com/yasamoka
2607 [@mattfbacon]: https://github.com/mattfbacon
2608 [@A248]: https://github.com/A248
2609 [@conradludgate]: https://github.com/conradludgate
2610 [@anupj]: https://github.com/anupj
2611 [@nanoqsh]: https://github.com/nanoqsh
2612 [@brianheineman]: https://github.com/brianheineman
2613 [@jkleinknox]: https://github.com/jkleinknox
2614 [@cryeprecision]: https://github.com/cryeprecision
2615 [@Vrajs16]: https://github.com/Vrajs16
2616 [@shiftrightonce]: https://github.com/shiftrightonce
2617 [@tamasfe]: https://github.com/tamasfe
2618 [@lily-mosquitoes]: https://github.com/lily-mosquitoes
2619 [@larsschumacher]: https://github.com/larsschumacher
2620 [@shengsheng]: https://github.com/shengsheng
2621 [@Fyko]: https://github.com/Fyko
2622 [@kshramt]: https://github.com/kshramt
2623 [@Dawsoncodes]: https://github.com/Dawsoncodes
2624 [@tadghh]: https://github.com/tadghh
2625 [@holicc]: https://github.com/holicc
2626 [@takenoko-gohan]: https://github.com/takenoko-gohan
2627 [@iangilfillan]: https://github.com/iangilfillan
2628 [@iamjpotts]: https://github.com/iamjpotts
2629 [@Icerath]: https://github.com/Icerath
2630 [@pawurb]: https://github.com/pawurb
2631 [@darkecho731]: https://github.com/darkecho731
2632 [@mirek26]: https://github.com/mirek26
2633 [@Ekleog]: https://github.com/Ekleog
2634 [@zoomiti]: https://github.com/zoomiti
2635 [@ciffelia]: https://github.com/ciffelia
2636 [@rafaelGuerreiro]: https://github.com/rafaelGuerreiro
2637 [@alu]: https://github.com/alu
2638 [@BadBastion]: https://github.com/BadBastion
2639 [@tylerhawkes]: https://github.com/tylerhawkes
2640 [@g-bartoszek]: https://github.com/g-bartoszek
2641 [@benluelo]: https://github.com/benluelo
2642 [@ralpha]: https://github.com/ralpha
2643 [@nitn3lav]: https://github.com/nitn3lav
2644 [@FlakM]: https://github.com/FlakM
2645 [@hoxxep]: https://github.com/hoxxep
2646 [@NfNitLoop]: https://github.com/NfNitLoop
2647 [@GnomedDev]: https://github.com/GnomedDev
2648 [@pxp9]: https://github.com/pxp9
2649 [@RaghavRox]: https://github.com/RaghavRox
2650 [@cleverjam]: https://github.com/cleverjam
2651 [@BlackSoulHub]: https://github.com/BlackSoulHub
2652 [@levkk]: https://github.com/levkk
2653 [@danjpgriffin]: https://github.com/danjpgriffin
2654 [@toxeus]: https://github.com/toxeus
2655 [@jasonish]: https://github.com/jasonish
2656 [@AlphaKeks]: https://github.com/AlphaKeks
2657 [@Zarathustra2]: https://github.com/Zarathustra2
2658 [@gridbox]: https://github.com/gridbox
2659 [@joelkoen]: https://github.com/joelkoen
2660 [@nk9]: https://github.com/nk9
2661 [@etorreborre]: https://github.com/etorreborre
2662 [@LecrisUT]: https://github.com/LecrisUT
2663 [@JohannesIBK]: https://github.com/JohannesIBK
2664 [@Lachstec]: https://github.com/Lachstec
2665 [@SrGesus]: https://github.com/SrGesus
2666 [@CommanderStorm]: https://github.com/CommanderStorm
2667 [@hamirmahal]: https://github.com/hamirmahal
2668 [@DirectorX]: https://github.com/DirectorX
2669 [@KobusEllis]: https://github.com/KobusEllis
2670 [@YgorSouza]: https://github.com/YgorSouza
2671 [@Zarthus]: https://github.com/Zarthus
2672 [@ckampfe]: https://github.com/ckampfe
2673 [@tottoto]: https://github.com/tottoto
2674 [@ods]: https://github.com/ods
2675 [@soucosmo]: https://github.com/soucosmo
2676 [@kolinfluence]: https://github.com/kolinfluence
2677 [@joeydewaal]: https://github.com/joeydewaal
2678 [@pierre-wehbe]: https://github.com/pierre-wehbe
2679 [@carschandler]: https://github.com/carschandler
2680 [@kdesjard]: https://github.com/kdesjard
2681 [@luveti]: https://github.com/luveti
2682 [@dojiong]: https://github.com/dojiong
2683 [@jayvdb]: https://github.com/jayvdb
2684 [@kurtbuilds]: https://github.com/kurtbuilds
2685 [@lilydjwg]: https://github.com/lilydjwg
2686 [@M3t0r]: https://github.com/M3t0r
2687 [@vsuryamurthy]: https://github.com/vsuryamurthy
2688 [@manifest]: https://github.com/manifest
2689 [@tbar4]: https://github.com/tbar4
2690 [@sandhose]: https://github.com/sandhose
2691 [@IlyaBizyaev]: https://github.com/IlyaBizyaev
2692 [@philipcristiano]: https://github.com/philipcristiano
2693 [@xuehaonan27]: https://github.com/xuehaonan27
2694 [@chanks]: https://github.com/chanks
2695 [@Ddystopia]: https://github.com/Ddystopia
2696 [@veigaribo]: https://github.com/veigaribo
2697 [@Norlock]: https://github.com/Norlock
2698 [@swlynch99]: https://github.com/swlynch99
2699 [@BenoitRanque]: https://github.com/BenoitRanque
2700 [@hsivonen]: https://github.com/hsivonen
2701 [@andreweggleston]: https://github.com/andreweggleston
2702 [@Suficio]: https://github.com/Suficio