Update Rust crate sqlx to 0.6 - autoclosed #11

Closed
kjuulh wants to merge 5 commits from renovate/sqlx-0.x into main
Owner

This PR contains the following updates:

Package Type Update Change
sqlx dependencies minor 0.5 -> 0.6

Release Notes

launchbadge/sqlx

v0.6.2

Compare Source

25 pull requests were merged this release cycle.

Added
  • [#​1081]]: Add `try_from` attribute for `FromRow` derive \[\[[@​zzhengzhuo](https://github.com/zzhengzhuo)]]
    -   Exemplifies "out of sight, out of mind." It's surprisingly easy to forget about PRs when they get pushed onto
        the second page. We'll be sure to clean out the backlog for 0.7.0.
    
  • [#​2014]]: Support additional SQLCipher options in SQLite driver. \[\[[@​szymek156](https://github.com/szymek156)]]
    
  • [#​2052]]: Add issue templates \[\[[@​abonander](https://github.com/abonander)]]
    
  • [#​2053]]: Add documentation for `IpAddr` support in Postgres \[\[[@​rakshith-ravi](https://github.com/rakshith-ravi)]]
    
  • [#​2062]]: Add extension support for SQLite \[\[[@​bradfier](https://github.com/bradfier)]]
    
  • [#​2063]]: customizable db locking during migration \[\[[@​fuzzbuck](https://github.com/fuzzbuck)]]
    
    
Changed
  • [#​2025]]: Bump sqlformat to 2.0 \[\[[@​NSMustache](https://github.com/NSMustache)]]
    
  • [#​2056]]: chore: Switch to sha1 crate \[\[[@​stoically](https://github.com/stoically)]]
    
  • [#​2071]]: Use cargo check consistently in `prepare` \[\[[@​cycraig](https://github.com/cycraig)]]
    
    
Fixed
  • [#​1991]]: Ensure migration progress is not lost for Postgres, MySQL and SQLite. \[\[[@​crepererum](https://github.com/crepererum)]]
    
  • [#​2023]]: Fix expansion of `#[sqlx(flatten)]` for `FromRow` derive \[\[[@​RustyYato](https://github.com/RustyYato)]]
    
  • [#​2028]]: Use fully qualified path when forwarding to `#[test]` from `#[sqlx::test]` \[\[[@​alexander-jackson](https://github.com/alexander-jackson)]]
    
  • [#​2040]]: Fix typo in `FromRow` docs \[\[[@​zlidner](https://github.com/zlidner)]]
    
  • [#​2046]]: added flag for PIPES_AS_CONCAT connection setting for MySQL to fix [#​2034](https://github.com/launchbadge/sqlx/issues/2034) \[\[[@​marcustut](https://github.com/marcustut)]]
    
  • [#​2055]]: Use unlock notify also on `sqlite3_exec`  \[\[[@​madadam](https://github.com/madadam)]]
    
  • [#​2057]]: Make begin,commit,rollback cancel-safe in sqlite  \[\[[@​madadam](https://github.com/madadam)]]
    
  • [#​2058]]: fix typo in documentation \[\[[@​lovasoa](https://github.com/lovasoa)]]
    
  • [#​2067]]: fix(docs): close code block in query_builder.rs \[\[[@​abonander](https://github.com/abonander)]]
    
  • [#​2069]]: Fix `prepare` race condition in workspaces \[\[[@​cycraig](https://github.com/cycraig)]]\\
    -   NOTE: this changes the directory structure under `target/` that `cargo sqlx prepare` depends on.
        If you use offline mode in your workflow, please rerun `cargo install sqlx-cli` to upgrade.
    
  • [#​2072]]: SqliteConnectOptions typo \[\[[@​fasterthanlime](https://github.com/fasterthanlime)]]
    
  • [#​2074]]: fix: mssql uses unsigned for tinyint instead of signed \[\[[@​he4d](https://github.com/he4d)]]
    
  • [#​2081]]: close unnamed portal after each executed extended query \[\[[@​DXist](https://github.com/DXist)]]
    
  • [#​2086]]: PgHasArrayType for transparent types fix. \[\[[@​Wopple](https://github.com/Wopple)]]
    -   NOTE: this is a breaking change and has been postponed to 0.7.0.
    
  • [#​2089]]: fix: Remove default chrono dep on time for sqlx-cli \[\[[@​TravisWhitehead](https://github.com/TravisWhitehead)]]
    
  • [#​2091]]: Sqlite explain plan log efficiency \[\[[@​tyrelr](https://github.com/tyrelr)]]
    
    

v0.6.1

Compare Source

33 pull requests were merged this release cycle.

Added
  • [#​1495]]: Add example for manual implementation of the `FromRow` trait \[\[[@​Erik1000](https://github.com/Erik1000)]]
    
  • [#​1822]]: (Postgres) Add support for `std::net::IpAddr` \[\[[@​meh](https://github.com/meh)]]
    -   Decoding returns an error if the `INET` value in Postgres is a prefix and not a full address
        (`/32` for IPv4, `/128` for IPv6).
    
  • [#​1865]]: Add SQLite support for the `time` crate \[\[[@​johnbcodes](https://github.com/johnbcodes)]]
    
  • [#​1902]]: Add an example of how to use `QueryBuilder::separated()` \[\[[@​sbeckeriv](https://github.com/sbeckeriv)]]
    
  • [#​1917]]: Added docs for `sqlx::types::Json` \[\[[@​jayy-lmao](https://github.com/jayy-lmao)]]
    
  • [#​1919]]: Implement `Clone` for `PoolOptions` \[\[[@​Thomasdezeeuw](https://github.com/Thomasdezeeuw)]]
    
  • [#​1953]]: Support Rust arrays in Postgres \[\[[@​e00E](https://github.com/e00E)]]
    
  • [#​1954]]: Add `push_tuples` for `QueryBuilder` \[\[[@​0xdeafbeef](https://github.com/0xdeafbeef)]]
    
  • [#​1959]]: Support `#[sqlx(flatten)]` attribute in `FromRow` \[\[[@​TheoOiry](https://github.com/TheoOiry)]]
    
  • [#​1967]]: Add example with external query files \[\[[@​JoeyMckenzie](https://github.com/JoeyMckenzie)]]
    
  • [#​1985]]: Add `query_builder::Separated::push_bind_unseparated()` \[\[[@​0xdeafbeef](https://github.com/0xdeafbeef)]]
    
  • [#​2001]]: Implement `#[sqlx::test]` for general use
    -   Includes automatic database management, migration and fixture application.
    -   Drops support for end-of-lifed database versions, see PR for details.
    
  • [#​2005]]: `QueryBuilder` improvements \[\[[@​abonander](https://github.com/abonander)]]
    -   Raw SQL getters, new method to build `QueryAs` instead of `Query`.
    
  • [#​2013]]: (SQLite) Allow VFS to be set as URL query parameter \[\[[@​liningpan](https://github.com/liningpan)]]
    
    
Changed
  • [#​1679]]: refactor: alias actix-\* features to their equivalent tokio-\* features \[\[[@​robjtede](https://github.com/robjtede)]]
    
  • [#​1906]]: replaced all uses of "uri" to "url" \[\[[@​RomainStorai](https://github.com/RomainStorai)]]
    
  • [#​1965]]: SQLite improvements \[\[[@​abonander](https://github.com/abonander)]]
    
  • [#​1977]]: Docs: clarify relationship between `query_as!()` and `FromRow` \[\[[@​abonander](https://github.com/abonander)]]
    
  • [#​2003]]: Replace `dotenv` with `dotenvy` \[\[[@​abonander](https://github.com/abonander)]]
    
    
Fixed
  • [#​1802]]: Try avoiding a full clean in `cargo sqlx prepare --merged` \[\[[@​LovecraftianHorror](https://github.com/LovecraftianHorror)]]
    
  • [#​1848]]: Fix type info access in `Any` database driver \[\[[@​raviqqe](https://github.com/raviqqe)]]
    
  • [#​1910]]: Set `CARGO_TARGET_DIR` when compiling queries \[\[[@​sedrik](https://github.com/sedrik)]]
    
  • [#​1915]]: Pool: fix panic when using callbacks \[\[[@​abonander](https://github.com/abonander)]]
    
  • [#​1930]]: Don't cache SQLite connection for macros \[\[[@​LovecraftianHorror](https://github.com/LovecraftianHorror)]]
    
  • [#​1948]]: Fix panic in Postgres `BYTEA` decode \[\[[@​e00E](https://github.com/e00E)]]
    
  • [#​1955]]: Fix typo in FAQ \[\[[@​kenkoooo](https://github.com/kenkoooo)]]
    
  • [#​1968]]: (Postgres) don't panic if `S` or `V` notice fields are not UTF-8 \[\[[@​abonander](https://github.com/abonander)]]
    
  • [#​1969]]: Fix sqlx-cli build \[\[[@​ivan](https://github.com/ivan)]]
    
  • [#​1974]]: Use the `rust-cache` action for CI \[\[[@​abonander](https://github.com/abonander)]]
    
  • [#​1988]]: Agree on a single default runtime for the whole workspace \[\[[@​crepererum](https://github.com/crepererum)]]
    
  • [#​1989]]: Fix panics in `PgListener` \[\[[@​crepererum](https://github.com/crepererum)]]
    
  • [#​1990]]: Switch `master` to `main` in docs \[\[[@​crepererum](https://github.com/crepererum)]]
    -   The change had already been made in the repo, the docs were out of date.
    
  • [#​1993]]: Update versions in quickstart examples in README \[\[[@​UramnOIL](https://github.com/UramnOIL)]]
    
    

v0.6.0

Compare Source

This release marks the end of the 0.5.x series of releases and contains a number of breaking changes,
mainly to do with backwards-incompatible dependency upgrades.

As we foresee many more of these in the future, we surveyed the community on how to handle this;
the consensus appears to be "just release breaking changes more often."

As such, we expect the 0.6.x release series to be a shorter one.

39 pull requests(!) (not counting "prepare 0.5.12 release", of course) were merged this release cycle.

Breaking
  • [#​1384]]: (Postgres) Move `server_version_num` from trait to inherent impl \[\[[@​AtkinsChang](https://github.com/AtkinsChang)]]
    
  • [#​1426]]: Bump `ipnetwork` to 0.19 \[\[[@​paolobarbolini](https://github.com/paolobarbolini)]]
    
  • [#​1455]]: Upgrade `time` to 0.3 \[\[[@​paolobarbolini](https://github.com/paolobarbolini)]]
    
  • [#​1505]]: Upgrade `rustls` to 0.20 \[\[[@​paolobarbolini](https://github.com/paolobarbolini)]]
    -   Fortunately, future upgrades should not be breaking as `webpki` is no longer exposed in the API.
    
  • [#​1529]]: Upgrade `bigdecimal` to 0.3 \[\[[@​e00E](https://github.com/e00E)]]
    
  • [#​1602]]: postgres: use `Oid` everywhere instead of `u32` \[\[[@​paolobarbolini](https://github.com/paolobarbolini)]]
    -   This drops the `Type`, `Decode`, `Encode` impls for `u32` for Postgres as it was misleading.
        Postgres doesn't support unsigned ints without using an extension. These impls were decoding Postgres `OID`s
        as bare `u32`s without any context (and trying to bind a `u32` to a query would produce an `OID` value in SQL).
        This changes that to use a newtype instead, for clarity.
    
  • [#​1612]]: Make all `ConnectOptions` types cloneable \[\[[@​05storm26](https://github.com/05storm26)]]
    
  • [#&#8203;1618]]: SQLite `chrono::DateTime<FixedOffset>` timezone fix \[\[[@&#8203;05storm26](https://github.com/05storm26)]]
    -   `DateTime<FixedOffset>` will be stored in SQLite with the correct timezone instead of always in UTC.
        This was flagged as a "potentially breaking change" since it changes how dates are sent to SQLite.
    
  • [#&#8203;1733]]: Update `git2` to 0.14 \[\[[@&#8203;joshtriplett](https://github.com/joshtriplett)]]
    
  • [#&#8203;1734]]: Make `PgLTree::push()` infallible and take `PgLTreeLabel` directly \[\[[@&#8203;sebpuetz](https://github.com/sebpuetz)]]
    
  • [#&#8203;1785]]: Fix Rust type for SQLite `REAL` \[\[[@&#8203;pruthvikar](https://github.com/pruthvikar)]]
    -   Makes the macros always map a `REAL` column to `f64` instead of `f32` as SQLite uses **only** 64-bit floats.
    
  • [#&#8203;1816]]: Improve SQLite support for sub-queries and CTEs \[\[[@&#8203;tyrelr](https://github.com/tyrelr)]]
    -   This likely will change the generated code for some invocations `sqlx::query!()` with SQLite.
    
  • [#&#8203;1821]]: Update `uuid` crate to v1 \[\[[@&#8203;paolobarbolini](https://github.com/paolobarbolini)]]
    
  • [#&#8203;1901]]: Pool fixes and breaking changes \[\[[@&#8203;abonander](https://github.com/abonander)]]
    -   Renamed `PoolOptions::connect_timeout` to `acquire_timeout` for clarity.
    -   Changed the expected signatures for `PoolOptions::after_connect`, `before_acquire`, `after_release`
    -   Changed the signature for `Pool::close()` slightly
        -   Now eagerly starts the pool closing, `.await`ing is only necessary if you want to ensure a graceful shutdown.
    -   Deleted `PoolConnection::release()` which was previously deprecated in favor of `PoolConnection::detach()`.
    -   Fixed connections getting leaked even when calling `.close()`.
    
  • \[[#&#8203;1748](https://github.com/launchbadge/sqlx/issues/1748)]]: Derive `PgHasArrayType` for `#[sqlx(transparent)]` types \[\[[@&#8203;carols10cents](https://github.com/carols10cents)]]
    -   This change was released with 0.5.12 but [we didn't realize it was a breaking change] at the time.\
        It was reverted in 0.5.13 and postponed until this release.
    
    
Added
  • [#&#8203;1843]]: Expose some useful methods on `PgValueRef` \[\[[@&#8203;mfreeborn](https://github.com/mfreeborn)]]
    
  • [#&#8203;1889]]: SQLx-CLI: add `--connect-timeout` \[\[[@&#8203;abonander](https://github.com/abonander)]]
    -   Adds a default 10 second connection timeout to all commands.
    
  • [#&#8203;1890]]: Added test for mssql LoginAck \[\[[@&#8203;walf443](https://github.com/walf443)]]
    
  • [#&#8203;1891]]: Added test for mssql ProtocolInfo \[\[[@&#8203;walf443](https://github.com/walf443)]]
    
  • [#&#8203;1892]]: Added test for mssql ReturnValue \[\[[@&#8203;walf443](https://github.com/walf443)]]
    
  • [#&#8203;1895]]: Add support for `i16` to `Any` driver \[\[[@&#8203;EthanYuan](https://github.com/EthanYuan)]]
    
  • [#&#8203;1897]]: Expose `ConnectOptions` and `PoolOptions` on `Pool` and database name on `PgConnectOptions` \[\[[@&#8203;Nukesor](https://github.com/Nukesor)]]
    
    
Changed
  • [#&#8203;1782]]: Reuse a cached DB connection instead of always opening a new one for `sqlx-macros` \[\[[@&#8203;LovecraftianHorror](https://github.com/LovecraftianHorror)]]
    
  • [#&#8203;1807]]: Bump remaining dependencies \[\[[@&#8203;paolobarbolini](https://github.com/paolobarbolini)]]
    
  • [#&#8203;1808]]: Update to edition 2021 \[\[[@&#8203;paolobarbolini](https://github.com/paolobarbolini)]]
    -   Note that while SQLx [does not officially track an MSRV] and only officially supports the latest stable Rust,
        this effectively places a lower bound of 1.56.0 on the range of versions it may work with.
    
  • [#&#8203;1823]]: (sqlx-macros) Ignore deps when getting metadata for workspace root \[\[[@&#8203;LovecraftianHorror](https://github.com/LovecraftianHorror)]]
    
  • [#&#8203;1831]]: Update `crc` to 3.0 \[\[[@&#8203;djc](https://github.com/djc)]]
    
  • [#&#8203;1887]]: query_as: don't stop stream after decoding error \[\[[@&#8203;lovasoa](https://github.com/lovasoa)]]
    
    
Fixed
  • [#&#8203;1814]]: SQLx-cli README: move `Usage` to the same level as `Install` \[\[[@&#8203;tobymurray](https://github.com/tobymurray)]]
    
  • [#&#8203;1815]]: SQLx-cli README: reword "building in offline mode" \[\[[@&#8203;tobymurray](https://github.com/tobymurray)]]
    
  • [#&#8203;1818]]: Trim `[]` from host string before passing to TcpStream \[\[[@&#8203;smonv](https://github.com/smonv)]]
    -   This fixes handling of database URLs with IPv6 hosts.
    
  • [#&#8203;1842]]: Fix usage of `serde_json` in macros \[\[[@&#8203;mfreeborn](https://github.com/mfreeborn)]]
    
  • [#&#8203;1855]]: Postgres: fix panics on unknown type OID when decoding \[\[[@&#8203;demurgos](https://github.com/demurgos)]]
    
  • [#&#8203;1856]]: MySQL: support COLLATE_UTF8MB4\_0900\_AI_CI \[\[[@&#8203;scottwey](https://github.com/scottwey)]]
    -   Fixes the MySQL driver thinking text columns are bytestring columns when querying against a Planetscale DB.
    
  • [#&#8203;1861]]: MySQL: avoid panic when streaming packets are empty \[\[[@&#8203;e-rhodes](https://github.com/e-rhodes)]]
    
  • [#&#8203;1863]]: Fix nullability check for inner joins in Postgres \[\[[@&#8203;OskarPersson](https://github.com/OskarPersson)]]
    
  • [#&#8203;1881]]: Fix `field is never read` warnings on Postgres test \[\[[@&#8203;walf443](https://github.com/walf443)]]
    
  • [#&#8203;1882]]: Fix `unused result must be used` warnings \[\[[@&#8203;walf443](https://github.com/walf443)]]
    
  • [#&#8203;1888]]: Fix migration checksum comparison during `sqlx migrate info` \[\[[@&#8203;mdtusz](https://github.com/mdtusz)]]
    
  • [#&#8203;1894]]: Fix typos \[\[[@&#8203;kianmeng](https://github.com/kianmeng)]]
    
    

v0.5.13

Compare Source

This is a hotfix that reverts [#​1748] as that was an accidental breaking change:
the generated PgHasArrayType impl conflicts with manual impls of the trait.
This change will have to wait for 0.6.0.

v0.5.12

Compare Source

27 pull requests were merged this release cycle.

Added
  • [#&#8203;1641]]: Postgres: Convenient wrapper for advisory locks \[\[[@&#8203;abonander](https://github.com/abonander)]]
    
  • [#&#8203;1675]]: Add function to undo migrations \[\[[@&#8203;jdrouet](https://github.com/jdrouet)]]
    
  • [#&#8203;1722]]: Postgres: implement `PgHasArrayType` for `serde_json::{Value, RawValue}` \[\[[@&#8203;abreis](https://github.com/abreis)]]
    
  • [#&#8203;1736]]: Derive `Clone` for `MySqlArguments` and `MssqlArguments` \[\[[@&#8203;0xdeafbeef](https://github.com/0xdeafbeef)]]
    
  • [#&#8203;1748]]: Derive `PgHasArrayType` for `#[sqlx(transparent)]` types \[\[[@&#8203;carols10cents](https://github.com/carols10cents)]]
    
  • [#&#8203;1754]]: Include affected rows alongside returned rows in query logging \[\[[@&#8203;david-mcgillicuddy-moixa](https://github.com/david-mcgillicuddy-moixa)]]
    
  • [#&#8203;1757]]: Implement `Type` for `Cow<str>` for MySQL, MSSQL and SQLite \[\[[@&#8203;ipetkov](https://github.com/ipetkov)]]
    
  • [#&#8203;1769]]: sqlx-cli: add `--source` to migration subcommands \[\[[@&#8203;pedromfedricci](https://github.com/pedromfedricci)]]
    
  • [#&#8203;1774]]: Postgres: make `extra_float_digits` settable \[\[[@&#8203;abonander](https://github.com/abonander)]]
    -   Can be set to `None` for Postgres or third-party database servers that don't support the option.
    
  • [#&#8203;1776]]: Implement close-event notification for Pool \[\[[@&#8203;abonander](https://github.com/abonander)]]
    -   Also fixes `PgListener` preventing `Pool::close()` from resolving.
    
  • [#&#8203;1780]]: Implement query builder \[\[[@&#8203;crajcan](https://github.com/crajcan)]]
    -   See also \[[#&#8203;1790]]: Document and expand query builder \[\[[@&#8203;abonander](https://github.com/abonander)]]
    
  • [#&#8203;1781]]: Postgres: support `NUMERIC[]` using `decimal` feature \[\[[@&#8203;tm-drtina](https://github.com/tm-drtina)]]
    
  • [#&#8203;1784]]: SQLite: add `FromStr`, `Copy`, `PartialEq`, `Eq` impls for options enums \[\[[@&#8203;andrewwhitehead](https://github.com/andrewwhitehead)]]
    
    
Changed
  • [#&#8203;1625]]: Update RustCrypto crates \[\[[@&#8203;paolobarbolini](https://github.com/paolobarbolini)]]
    
  • [#&#8203;1725]]: Update `heck` to 0.4 \[\[[@&#8203;paolobarbolini](https://github.com/paolobarbolini)]]
    
  • [#&#8203;1738]]: Update `regex` \[\[[@&#8203;Dylan-DPC](https://github.com/Dylan-DPC)]]
    
  • [#&#8203;1763]]: SQLite: update `libsqlite3-sys` \[\[[@&#8203;espindola](https://github.com/espindola)]]
    
    
Fixed
  • [#&#8203;1719]]: Fix a link in `query!()` docs \[\[[@&#8203;vbmade2000](https://github.com/vbmade2000)]]
    
  • [#&#8203;1731]]: Postgres: fix option passing logic \[\[[@&#8203;liushuyu](https://github.com/liushuyu)]]
    
  • [#&#8203;1735]]: sqlx-cli: pass `DATABASE_URL` to command spawned in `prepare` \[\[[@&#8203;LovecraftianHorror](https://github.com/LovecraftianHorror)]]
    
  • [#&#8203;1741]]: Postgres: fix typo in `TSTZRANGE` \[\[[@&#8203;mgrachev](https://github.com/mgrachev)]]
    
  • [#&#8203;1761]]: Fix link from `QueryAs` to `query_as()` in docs \[\[[@&#8203;mgrachev](https://github.com/mgrachev)]]
    
  • [#&#8203;1786]]: MySQL: silence compile warnings for unused fields \[\[[@&#8203;andrewwhitehead](https://github.com/andrewwhitehead)]]
    
  • [#&#8203;1789]]: SQLite: fix left-joins breaking `query!()` macros \[\[[@&#8203;tyrelr](https://github.com/tyrelr)]]
    
  • [#&#8203;1791]]: Postgres: fix newline parsing of `.pgpass` files \[\[[@&#8203;SebastienGllmt](https://github.com/SebastienGllmt)]]
    
  • [#&#8203;1799]]: `PoolConnection`: don't leak connection permit if drop task fails to run \[\[[@&#8203;abonander](https://github.com/abonander)]]
    
    

v0.5.11

Compare Source

20 pull requests were merged this release cycle.

Added
  • [#&#8203;1610]]: Allow converting `AnyConnectOptions` to a specific `ConnectOptions` \[\[[@&#8203;05storm26](https://github.com/05storm26)]]
    
  • [#&#8203;1652]]: Implement `From` for `AnyConnection` \[\[[@&#8203;genusistimelord](https://github.com/genusistimelord)]]
    
  • [#&#8203;1658]]: Handle `SQLITE_LOCKED` \[\[[@&#8203;madadam](https://github.com/madadam)]]
    
  • [#&#8203;1665]]: Document offline mode usage with feature flags \[\[[@&#8203;sedrik](https://github.com/sedrik)]]
    
  • [#&#8203;1680]]: Show checksum mismatches in `sqlx migrate info` \[\[[@&#8203;ifn3](https://github.com/ifn3)]]
    
  • [#&#8203;1685]]: Add tip for setting `opt-level` for `sqlx-macros` \[\[[@&#8203;LovecraftianHorror](https://github.com/LovecraftianHorror)]]
    
  • [#&#8203;1687]]: Docs: `Acquire` examples and alternative \[\[[@&#8203;stoically](https://github.com/stoically)]]
    
  • [#&#8203;1696]]: Postgres: support for `ltree` \[\[[@&#8203;cemoktra](https://github.com/cemoktra)]]
    
  • [#&#8203;1710]]: Postgres: support for `lquery` \[\[[@&#8203;cemoktra](https://github.com/cemoktra)]]
    
    
Changed
  • [#&#8203;1605]]: Remove unused dependencies \[\[[@&#8203;paolobarbolini](https://github.com/paolobarbolini)]]
    
  • [#&#8203;1606]]: Add target context to Postgres `NOTICE` logs \[\[[@&#8203;dbeckwith](https://github.com/dbeckwith)]]
    
  • [#&#8203;1684]]: Macros: Cache parsed `sqlx-data.json` instead of reparsing \[\[[@&#8203;LovecraftianHorror](https://github.com/LovecraftianHorror)]]
    
    
Fixed
  • [#&#8203;1608]]: Drop worker shared state in shutdown (SQLite) \[\[[@&#8203;andrewwhitehead](https://github.com/andrewwhitehead)]]
    
  • [#&#8203;1619]]: Docs(macros): remove sentences banning usage of `as _` \[\[[@&#8203;k-jun](https://github.com/k-jun)]]
    
  • [#&#8203;1626]]: Simplify `cargo-sqlx` command-line definition \[\[[@&#8203;tranzystorek-io](https://github.com/tranzystorek-io)]]
    
  • [#&#8203;1636]]: Fix and extend Postgres transaction example \[\[[@&#8203;taladar](https://github.com/taladar)]]
    
  • [#&#8203;1657]]: Fix typo in macro docs \[\[[@&#8203;p9s](https://github.com/p9s)]]
    
  • [#&#8203;1661]]: Fix binding `Option<T>` for `Any` driver \[\[[@&#8203;ArGGu](https://github.com/ArGGu)]]
    
  • [#&#8203;1667]]: MySQL: Avoid panicking if packet is empty \[\[[@&#8203;nappa85](https://github.com/nappa85)]]
    
  • [#&#8203;1692]]: Postgres: Fix power calculation when encoding `BigDecimal` into `NUMERIC` \[\[[@&#8203;VersBinarii](https://github.com/VersBinarii)]]
    
    

Additionally, we have introduced two mitigations for the issue of the cyclic dependency on ahash:

v0.5.10

Compare Source

A whopping 31 pull requests were merged this release cycle!

According to this changelog, we saw 18 new contributors! However, some of these folks may have missed getting
mentioned in previous entries since we only listed highlights. To avoid anyone feeling left out, I put in the effort
this time and tried to list every single one here.

Added
  • [#&#8203;1228]]: Add `Pool::any_kind()` \[\[[@&#8203;nitnelave](https://github.com/nitnelave)]]
    
  • [#&#8203;1343]]: Add `Encode/Decode` impl for `Cow<'_, str>` \[\[[@&#8203;Drevoed](https://github.com/Drevoed)]]
    
  • [#&#8203;1474]]: Derive `Clone`, `Copy` for `AnyKind` \[\[[@&#8203;yuyawk](https://github.com/yuyawk)]]
    
  • [#&#8203;1497]]: Update FAQ to explain how to configure docs.rs to build a project using SQLx \[\[[@&#8203;russweas](https://github.com/russweas)]]
    
  • [#&#8203;1498]]: Add description of migration file structure to `migrate!()` docs \[\[[@&#8203;zbigniewzolnierowicz](https://github.com/zbigniewzolnierowicz)]]
    
  • [#&#8203;1508]]: Add `.persistent(bool)` to `QueryAs`, `QueryScalar` \[\[[@&#8203;akiradeveloper](https://github.com/akiradeveloper)]]
    
  • [#&#8203;1514]]: Add support for serialized threading mode to SQLite \[\[[@&#8203;LLBlumire](https://github.com/LLBlumire)]]
    
  • [#&#8203;1523]]: Allow `rust_decimal::Decimal` in `PgRange` \[\[[@&#8203;meh](https://github.com/meh)]]
    
  • [#&#8203;1539]]: Support `PGOPTIONS` and adding custom configuration options in `PgConnectOptions` \[\[[@&#8203;liushuyu](https://github.com/liushuyu)]]
    
  • [#&#8203;1562]]: Re-export `either::Either` used by `Executor::fetch_many()` \[\[[@&#8203;DoumanAsh](https://github.com/DoumanAsh)]]
    
  • [#&#8203;1584]]: Add feature to use RusTLS instead of `native-tls` for `sqlx-cli` \[\[[@&#8203;SonicZentropy](https://github.com/SonicZentropy)]]
    
  • [#&#8203;1592]]: Add `AnyConnection::kind()` \[\[[@&#8203;05storm26](https://github.com/05storm26)]]
    
    
Changes
  • [#&#8203;1385]]: Rewrite Postgres array handling to reduce boilerplate and allow custom types \[\[[@&#8203;jplatte](https://github.com/jplatte)]]
    
  • [#&#8203;1479]]: Remove outdated mention of `runtime-async-std-native-tls` as the default runtime in README.md \[\[[@&#8203;yerke](https://github.com/yerke)]]
    
  • [#&#8203;1526]]: Revise `Pool` docs in a couple places \[\[[@&#8203;abonander](https://github.com/abonander)]]
    
  • [#&#8203;1535]]: Bump `libsqlite-sys` to `0.23.1` \[\[[@&#8203;nitsky](https://github.com/nitsky)]]
    
  • [#&#8203;1551]]: SQLite: make worker thread responsible for all FFI calls \[\[[@&#8203;abonander](https://github.com/abonander)]]
    -   If you were encountering segfaults with the SQLite driver, there's a good chance this will fix it!
    
  • [#&#8203;1557]]: CI: test with Postgres 14 \[\[[@&#8203;paolobarbolini](https://github.com/paolobarbolini)]]
    
  • [#&#8203;1571]]: Make `whoami` dep optional, only pull it in for Postgres \[\[[@&#8203;joshtriplett](https://github.com/joshtriplett)]]
    
  • [#&#8203;1572]]: Update `rsa` crate to 0.5 \[\[[@&#8203;paolobarbolini](https://github.com/paolobarbolini)]]
    
  • [#&#8203;1591]]: List SeaORM as an ORM option in the README \[\[[@&#8203;kunjee17](https://github.com/kunjee17)]]
    
  • [#&#8203;1601]]: Update `itoa` and `dirs` \[\[[@&#8203;paolobarbolini](https://github.com/paolobarbolini)]]
    
    
Fixes
  • [#&#8203;1475]]: Fix panic when converting a negative `chrono::Duration` to `PgInterval` \[\[[@&#8203;yuyawk](https://github.com/yuyawk)]]
    
  • [#&#8203;1483]]: Fix error when decoding array of custom types from Postgres \[\[[@&#8203;demurgos](https://github.com/demurgos)]
    
  • [#&#8203;1501]]: Reduce `indexmap` version requirement to `1.6.2` \[\[[@&#8203;dimfeld](https://github.com/dimfeld)]]
    
  • [#&#8203;1511]]: Fix element type given to Postgres for arrays of custom enums \[\[[@&#8203;chesedo](https://github.com/chesedo)]]
    
  • [#&#8203;1517]]: Fix mismatched type errors in MySQL type tests \[\[[@&#8203;abonander](https://github.com/abonander)]]
    
  • [#&#8203;1537]]: Fix missing re-export of `PgCopyIn` \[\[[@&#8203;akiradeveloper](https://github.com/akiradeveloper)]]
    
  • [#&#8203;1566]]: Match `~/.pgpass` password after URL parsing and fix user and database ordering \[\[[@&#8203;D1plo1d](https://github.com/D1plo1d)]]
    
  • [#&#8203;1582]]: `cargo sqlx prepare`: Append to existing `RUSTFLAGS` instead of overwriting \[\[[@&#8203;tkintscher](https://github.com/tkintscher)]]
    
  • [#&#8203;1587]]: SQLite: if set, send `PRAGMA key` on a new connection before anything else. \[\[[@&#8203;parazyd](https://github.com/parazyd)]]
    -   This should fix problems with being unable to open databases using SQLCipher.
    
    

v0.5.9

Compare Source

A hotfix release to address the issue of the sqlx crate itself still depending on older versions of sqlx-core and
sqlx-macros.

No other changes from 0.5.8.

v0.5.8

Compare Source

A total of 24 pull requests were merged this release cycle! Some highlights:

  • [#&#8203;1289]] Support the `immutable` option on SQLite connections \[\[[@&#8203;djmarcin](https://github.com/djmarcin)]]
    
  • [#&#8203;1295]] Support custom initial options for SQLite \[\[[@&#8203;ghassmo](https://github.com/ghassmo)]]
    -   Allows specifying custom `PRAGMA`s and overriding those set by SQLx.
    
  • [#&#8203;1345]] Initial support for Postgres `COPY FROM/TO`\[\[[@&#8203;montanalow](https://github.com/montanalow)], \[[@&#8203;abonander](https://github.com/abonander)]]
    
  • [#&#8203;1439]] Handle multiple waiting results correctly in MySQL \[\[[@&#8203;eagletmt](https://github.com/eagletmt)]]
    
    

v0.5.7

Compare Source

  • [#&#8203;1392]] use `resolve_path` when getting path for `include_str!()` \[\[[@&#8203;abonander](https://github.com/abonander)]]
    -   Fixes a regression introduced by \[\[[#&#8203;1332](https://github.com/launchbadge/sqlx/issues/1332)]].
    
  • [#&#8203;1393]] avoid recursively spawning tasks in `PgListener::drop()` \[\[[@&#8203;abonander](https://github.com/abonander)]]
    -   Fixes a panic that occurs when `PgListener` is dropped in `async fn main()`.
    
    

v0.5.6

Compare Source

A large bugfix release, including but not limited to:

  • [#&#8203;1329]] Implement `MACADDR` type for Postgres \[\[[@&#8203;nomick](https://github.com/nomick)]]
    
  • [#&#8203;1363]] Fix `PortalSuspended` for array of composite types in Postgres \[\[[@&#8203;AtkinsChang](https://github.com/AtkinsChang)]]
    
  • [#&#8203;1320]] Reimplement `sqlx::Pool` internals using `futures-intrusive` \[\[[@&#8203;abonander](https://github.com/abonander)]]
    -   This addresses a number of deadlocks/stalls on acquiring connections from the pool.
    
  • [#&#8203;1332]] Macros: tell the compiler about external files/env vars to watch \[\[[@&#8203;abonander](https://github.com/abonander)]]
    -   Includes `sqlx build-script` to create a `build.rs` to watch `migrations/` for changes.
    -   Nightly users can try `RUSTFLAGS=--cfg sqlx_macros_unstable` to tell the compiler
        to watch `migrations/` for changes instead of using a build script.
    -   See the new section in the docs for `sqlx::migrate!()` for details.
    
  • [#&#8203;1351]] Fix a few sources of segfaults/errors in SQLite driver \[\[[@&#8203;abonander](https://github.com/abonander)]]
    -   Includes contributions from \[\[[@&#8203;link2ext](https://github.com/link2ext)]] and \[\[[@&#8203;madadam](https://github.com/madadam)]].
    
  • [#&#8203;1323]] Keep track of column typing in SQLite EXPLAIN parsing \[\[[@&#8203;marshoepial](https://github.com/marshoepial)]]
    -   This fixes errors in the macros when using `INSERT/UPDATE/DELETE ... RETURNING ...` in SQLite.
    
    

A total of 25 pull requests were merged this release cycle!

v0.5.5

Compare Source

  • [#&#8203;1242]] Fix infinite loop at compile time when using query macros \[\[[@&#8203;toshokan](https://github.com/toshokan)]]
    
    

v0.5.4

Compare Source

  • [#&#8203;1235]] Fix compilation with rustls from an eager update to webpki \[\[[@&#8203;ETCaton](https://github.com/ETCaton)]]
    
    

v0.5.3

Compare Source

  • [#&#8203;1211]] Even more tweaks and fixes to the Pool internals \[\[[@&#8203;abonander](https://github.com/abonander)]]
    
    
  • [#&#8203;1213]] Add support for bytes and `chrono::NaiveDateTime` to `Any` \[\[[@&#8203;guylapid](https://github.com/guylapid)]]
    
    
  • [#&#8203;1224]] Add support for `chrono::DateTime<Local>` to `Any` with `MySQL` \[\[[@&#8203;NatPRoach](https://github.com/NatPRoach)]]
    
    
  • [#&#8203;1216]] Skip empty lines and comments in pgpass files \[\[[@&#8203;feikesteenbergen](https://github.com/feikesteenbergen)]]
    
    
  • [#&#8203;1218]] Add support for `PgMoney` to the compile-time type-checking \[\[[@&#8203;iamsiddhant05](https://github.com/iamsiddhant05)]]
    
    

v0.5.2

Compare Source

  • [#&#8203;1149]] Tweak and optimize Pool internals \[\[[@&#8203;abonander](https://github.com/abonander)]]
    
    
  • [#&#8203;1132]] Remove `'static` bound on `Connection::transaction` \[\[[@&#8203;argv-minus-one](https://github.com/argv-minus-one)]]
    
    
  • [#&#8203;1128]] Fix `-y` flag for `sqlx db reset -y` \[\[[@&#8203;qqwa](https://github.com/qqwa)]]
    
    
  • [#&#8203;1099]] \[[#&#8203;1097]] Truncate buffer when `BufStream` is dropped \[\[[@&#8203;Diggsey](https://github.com/Diggsey)]]
    
    
PostgreSQL
  • [#&#8203;1170]] Remove `Self: Type` bounds in `Encode` / `Decode` implementations for arrays \[\[[@&#8203;jplatte](https://github.com/jplatte)]]
    
    Enables working around the lack of support for user-defined array types:
    
    ```rust
    #[derive(sqlx::Encode)]
    struct Foos<'a>(&'a [Foo]);
    
    impl sqlx::Type<sqlx::Postgres> for Foos<'_> {
        fn type_info() -> PgTypeInfo {
            PgTypeInfo::with_name("_foo")
        }
    }
    
    query_as!(
        Whatever,
        "<QUERY with $1 of type foo[]>",
        Foos(&foo_vec) as _,
    )
    ```
    
    
  • [#&#8203;1141]] Use `u16::MAX` instead of `i16::MAX` for a check against the largest number of parameters in a query \[\[[@&#8203;crajcan](https://github.com/crajcan)]]
    
    
  • [#&#8203;1112]] Add support for `DOMAIN` types \[\[[@&#8203;demurgos](https://github.com/demurgos)]]
    
    
  • [#&#8203;1100]] Explicitly `UNLISTEN` before returning connections to the pool in `PgListener` \[\[[@&#8203;Diggsey](https://github.com/Diggsey)]]
    
    
SQLite
  • [#&#8203;1161]] Catch `SQLITE_MISUSE` on connection close and panic \[\[[@&#8203;link2xt](https://github.com/link2xt)]]
    
    
  • [#&#8203;1160]] Do not cast pointers to `i32` (cast to `usize`) \[\[[@&#8203;link2xt](https://github.com/link2xt)]]
    
    
  • [#&#8203;1156]] Reset the statement when `fetch_many` stream is dropped \[\[[@&#8203;link2xt](https://github.com/link2xt)]]
    
    

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled due to failing status checks.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [sqlx](https://github.com/launchbadge/sqlx) | dependencies | minor | `0.5` -> `0.6` | --- ### Release Notes <details> <summary>launchbadge/sqlx</summary> ### [`v0.6.2`](https://github.com/launchbadge/sqlx/blob/HEAD/CHANGELOG.md#&#8203;062---2022-09-14) [Compare Source](https://github.com/launchbadge/sqlx/compare/v0.6.1...v0.6.2) [25 pull requests][0.6.2-prs] were merged this release cycle. ##### Added - \[[#&#8203;1081]]: Add `try_from` attribute for `FromRow` derive \[\[[@&#8203;zzhengzhuo](https://github.com/zzhengzhuo)]] - Exemplifies "out of sight, out of mind." It's surprisingly easy to forget about PRs when they get pushed onto the second page. We'll be sure to clean out the backlog for 0.7.0. - \[[#&#8203;2014]]: Support additional SQLCipher options in SQLite driver. \[\[[@&#8203;szymek156](https://github.com/szymek156)]] - \[[#&#8203;2052]]: Add issue templates \[\[[@&#8203;abonander](https://github.com/abonander)]] - \[[#&#8203;2053]]: Add documentation for `IpAddr` support in Postgres \[\[[@&#8203;rakshith-ravi](https://github.com/rakshith-ravi)]] - \[[#&#8203;2062]]: Add extension support for SQLite \[\[[@&#8203;bradfier](https://github.com/bradfier)]] - \[[#&#8203;2063]]: customizable db locking during migration \[\[[@&#8203;fuzzbuck](https://github.com/fuzzbuck)]] ##### Changed - \[[#&#8203;2025]]: Bump sqlformat to 2.0 \[\[[@&#8203;NSMustache](https://github.com/NSMustache)]] - \[[#&#8203;2056]]: chore: Switch to sha1 crate \[\[[@&#8203;stoically](https://github.com/stoically)]] - \[[#&#8203;2071]]: Use cargo check consistently in `prepare` \[\[[@&#8203;cycraig](https://github.com/cycraig)]] ##### Fixed - \[[#&#8203;1991]]: Ensure migration progress is not lost for Postgres, MySQL and SQLite. \[\[[@&#8203;crepererum](https://github.com/crepererum)]] - \[[#&#8203;2023]]: Fix expansion of `#[sqlx(flatten)]` for `FromRow` derive \[\[[@&#8203;RustyYato](https://github.com/RustyYato)]] - \[[#&#8203;2028]]: Use fully qualified path when forwarding to `#[test]` from `#[sqlx::test]` \[\[[@&#8203;alexander-jackson](https://github.com/alexander-jackson)]] - \[[#&#8203;2040]]: Fix typo in `FromRow` docs \[\[[@&#8203;zlidner](https://github.com/zlidner)]] - \[[#&#8203;2046]]: added flag for PIPES_AS_CONCAT connection setting for MySQL to fix [#&#8203;2034](https://github.com/launchbadge/sqlx/issues/2034) \[\[[@&#8203;marcustut](https://github.com/marcustut)]] - \[[#&#8203;2055]]: Use unlock notify also on `sqlite3_exec` \[\[[@&#8203;madadam](https://github.com/madadam)]] - \[[#&#8203;2057]]: Make begin,commit,rollback cancel-safe in sqlite \[\[[@&#8203;madadam](https://github.com/madadam)]] - \[[#&#8203;2058]]: fix typo in documentation \[\[[@&#8203;lovasoa](https://github.com/lovasoa)]] - \[[#&#8203;2067]]: fix(docs): close code block in query_builder.rs \[\[[@&#8203;abonander](https://github.com/abonander)]] - \[[#&#8203;2069]]: Fix `prepare` race condition in workspaces \[\[[@&#8203;cycraig](https://github.com/cycraig)]]\\ - NOTE: this changes the directory structure under `target/` that `cargo sqlx prepare` depends on. If you use offline mode in your workflow, please rerun `cargo install sqlx-cli` to upgrade. - \[[#&#8203;2072]]: SqliteConnectOptions typo \[\[[@&#8203;fasterthanlime](https://github.com/fasterthanlime)]] - \[[#&#8203;2074]]: fix: mssql uses unsigned for tinyint instead of signed \[\[[@&#8203;he4d](https://github.com/he4d)]] - \[[#&#8203;2081]]: close unnamed portal after each executed extended query \[\[[@&#8203;DXist](https://github.com/DXist)]] - \[[#&#8203;2086]]: PgHasArrayType for transparent types fix. \[\[[@&#8203;Wopple](https://github.com/Wopple)]] - NOTE: this is a breaking change and has been postponed to 0.7.0. - \[[#&#8203;2089]]: fix: Remove default chrono dep on time for sqlx-cli \[\[[@&#8203;TravisWhitehead](https://github.com/TravisWhitehead)]] - \[[#&#8203;2091]]: Sqlite explain plan log efficiency \[\[[@&#8203;tyrelr](https://github.com/tyrelr)]] [0.6.2-prs]: https://github.com/launchbadge/sqlx/pulls?q=is%3Apr+is%3Aclosed+merged%3A2022-08-04..2022-09-14+ [#&#8203;1081]: https://github.com/launchbadge/sqlx/pull/1081 [#&#8203;1991]: https://github.com/launchbadge/sqlx/pull/1991 [#&#8203;2014]: https://github.com/launchbadge/sqlx/pull/2014 [#&#8203;2023]: https://github.com/launchbadge/sqlx/pull/2023 [#&#8203;2025]: https://github.com/launchbadge/sqlx/pull/2025 [#&#8203;2028]: https://github.com/launchbadge/sqlx/pull/2028 [#&#8203;2040]: https://github.com/launchbadge/sqlx/pull/2040 [#&#8203;2046]: https://github.com/launchbadge/sqlx/pull/2046 [#&#8203;2052]: https://github.com/launchbadge/sqlx/pull/2052 [#&#8203;2053]: https://github.com/launchbadge/sqlx/pull/2053 [#&#8203;2055]: https://github.com/launchbadge/sqlx/pull/2055 [#&#8203;2056]: https://github.com/launchbadge/sqlx/pull/2056 [#&#8203;2057]: https://github.com/launchbadge/sqlx/pull/2057 [#&#8203;2058]: https://github.com/launchbadge/sqlx/pull/2058 [#&#8203;2062]: https://github.com/launchbadge/sqlx/pull/2062 [#&#8203;2063]: https://github.com/launchbadge/sqlx/pull/2063 [#&#8203;2067]: https://github.com/launchbadge/sqlx/pull/2067 [#&#8203;2069]: https://github.com/launchbadge/sqlx/pull/2069 [#&#8203;2071]: https://github.com/launchbadge/sqlx/pull/2071 [#&#8203;2072]: https://github.com/launchbadge/sqlx/pull/2072 [#&#8203;2074]: https://github.com/launchbadge/sqlx/pull/2074 [#&#8203;2081]: https://github.com/launchbadge/sqlx/pull/2081 [#&#8203;2086]: https://github.com/launchbadge/sqlx/pull/2086 [#&#8203;2089]: https://github.com/launchbadge/sqlx/pull/2089 [#&#8203;2091]: https://github.com/launchbadge/sqlx/pull/2091 ### [`v0.6.1`](https://github.com/launchbadge/sqlx/blob/HEAD/CHANGELOG.md#&#8203;061---2022-08-02) [Compare Source](https://github.com/launchbadge/sqlx/compare/v0.6.0...v0.6.1) [33 pull requests][0.6.1-prs] were merged this release cycle. ##### Added - \[[#&#8203;1495]]: Add example for manual implementation of the `FromRow` trait \[\[[@&#8203;Erik1000](https://github.com/Erik1000)]] - \[[#&#8203;1822]]: (Postgres) Add support for `std::net::IpAddr` \[\[[@&#8203;meh](https://github.com/meh)]] - Decoding returns an error if the `INET` value in Postgres is a prefix and not a full address (`/32` for IPv4, `/128` for IPv6). - \[[#&#8203;1865]]: Add SQLite support for the `time` crate \[\[[@&#8203;johnbcodes](https://github.com/johnbcodes)]] - \[[#&#8203;1902]]: Add an example of how to use `QueryBuilder::separated()` \[\[[@&#8203;sbeckeriv](https://github.com/sbeckeriv)]] - \[[#&#8203;1917]]: Added docs for `sqlx::types::Json` \[\[[@&#8203;jayy-lmao](https://github.com/jayy-lmao)]] - \[[#&#8203;1919]]: Implement `Clone` for `PoolOptions` \[\[[@&#8203;Thomasdezeeuw](https://github.com/Thomasdezeeuw)]] - \[[#&#8203;1953]]: Support Rust arrays in Postgres \[\[[@&#8203;e00E](https://github.com/e00E)]] - \[[#&#8203;1954]]: Add `push_tuples` for `QueryBuilder` \[\[[@&#8203;0xdeafbeef](https://github.com/0xdeafbeef)]] - \[[#&#8203;1959]]: Support `#[sqlx(flatten)]` attribute in `FromRow` \[\[[@&#8203;TheoOiry](https://github.com/TheoOiry)]] - \[[#&#8203;1967]]: Add example with external query files \[\[[@&#8203;JoeyMckenzie](https://github.com/JoeyMckenzie)]] - \[[#&#8203;1985]]: Add `query_builder::Separated::push_bind_unseparated()` \[\[[@&#8203;0xdeafbeef](https://github.com/0xdeafbeef)]] - \[[#&#8203;2001]]: Implement `#[sqlx::test]` for general use - Includes automatic database management, migration and fixture application. - Drops support for end-of-lifed database versions, see PR for details. - \[[#&#8203;2005]]: `QueryBuilder` improvements \[\[[@&#8203;abonander](https://github.com/abonander)]] - Raw SQL getters, new method to build `QueryAs` instead of `Query`. - \[[#&#8203;2013]]: (SQLite) Allow VFS to be set as URL query parameter \[\[[@&#8203;liningpan](https://github.com/liningpan)]] ##### Changed - \[[#&#8203;1679]]: refactor: alias actix-\* features to their equivalent tokio-\* features \[\[[@&#8203;robjtede](https://github.com/robjtede)]] - \[[#&#8203;1906]]: replaced all uses of "uri" to "url" \[\[[@&#8203;RomainStorai](https://github.com/RomainStorai)]] - \[[#&#8203;1965]]: SQLite improvements \[\[[@&#8203;abonander](https://github.com/abonander)]] - \[[#&#8203;1977]]: Docs: clarify relationship between `query_as!()` and `FromRow` \[\[[@&#8203;abonander](https://github.com/abonander)]] - \[[#&#8203;2003]]: Replace `dotenv` with `dotenvy` \[\[[@&#8203;abonander](https://github.com/abonander)]] ##### Fixed - \[[#&#8203;1802]]: Try avoiding a full clean in `cargo sqlx prepare --merged` \[\[[@&#8203;LovecraftianHorror](https://github.com/LovecraftianHorror)]] - \[[#&#8203;1848]]: Fix type info access in `Any` database driver \[\[[@&#8203;raviqqe](https://github.com/raviqqe)]] - \[[#&#8203;1910]]: Set `CARGO_TARGET_DIR` when compiling queries \[\[[@&#8203;sedrik](https://github.com/sedrik)]] - \[[#&#8203;1915]]: Pool: fix panic when using callbacks \[\[[@&#8203;abonander](https://github.com/abonander)]] - \[[#&#8203;1930]]: Don't cache SQLite connection for macros \[\[[@&#8203;LovecraftianHorror](https://github.com/LovecraftianHorror)]] - \[[#&#8203;1948]]: Fix panic in Postgres `BYTEA` decode \[\[[@&#8203;e00E](https://github.com/e00E)]] - \[[#&#8203;1955]]: Fix typo in FAQ \[\[[@&#8203;kenkoooo](https://github.com/kenkoooo)]] - \[[#&#8203;1968]]: (Postgres) don't panic if `S` or `V` notice fields are not UTF-8 \[\[[@&#8203;abonander](https://github.com/abonander)]] - \[[#&#8203;1969]]: Fix sqlx-cli build \[\[[@&#8203;ivan](https://github.com/ivan)]] - \[[#&#8203;1974]]: Use the `rust-cache` action for CI \[\[[@&#8203;abonander](https://github.com/abonander)]] - \[[#&#8203;1988]]: Agree on a single default runtime for the whole workspace \[\[[@&#8203;crepererum](https://github.com/crepererum)]] - \[[#&#8203;1989]]: Fix panics in `PgListener` \[\[[@&#8203;crepererum](https://github.com/crepererum)]] - \[[#&#8203;1990]]: Switch `master` to `main` in docs \[\[[@&#8203;crepererum](https://github.com/crepererum)]] - The change had already been made in the repo, the docs were out of date. - \[[#&#8203;1993]]: Update versions in quickstart examples in README \[\[[@&#8203;UramnOIL](https://github.com/UramnOIL)]] [0.6.1-prs]: https://github.com/launchbadge/sqlx/pulls?page=1&q=is%3Apr+is%3Aclosed+merged%3A2022-06-17..2022-08-02 [#&#8203;1906]: https://github.com/launchbadge/sqlx/pull/1906 [#&#8203;1495]: https://github.com/launchbadge/sqlx/pull/1495 [#&#8203;1679]: https://github.com/launchbadge/sqlx/pull/1679 [#&#8203;1802]: https://github.com/launchbadge/sqlx/pull/1802 [#&#8203;1822]: https://github.com/launchbadge/sqlx/pull/1822 [#&#8203;1848]: https://github.com/launchbadge/sqlx/pull/1848 [#&#8203;1865]: https://github.com/launchbadge/sqlx/pull/1865 [#&#8203;1902]: https://github.com/launchbadge/sqlx/pull/1902 [#&#8203;1910]: https://github.com/launchbadge/sqlx/pull/1910 [#&#8203;1915]: https://github.com/launchbadge/sqlx/pull/1915 [#&#8203;1917]: https://github.com/launchbadge/sqlx/pull/1917 [#&#8203;1919]: https://github.com/launchbadge/sqlx/pull/1919 [#&#8203;1930]: https://github.com/launchbadge/sqlx/pull/1930 [#&#8203;1948]: https://github.com/launchbadge/sqlx/pull/1948 [#&#8203;1953]: https://github.com/launchbadge/sqlx/pull/1953 [#&#8203;1954]: https://github.com/launchbadge/sqlx/pull/1954 [#&#8203;1955]: https://github.com/launchbadge/sqlx/pull/1955 [#&#8203;1959]: https://github.com/launchbadge/sqlx/pull/1959 [#&#8203;1965]: https://github.com/launchbadge/sqlx/pull/1965 [#&#8203;1967]: https://github.com/launchbadge/sqlx/pull/1967 [#&#8203;1968]: https://github.com/launchbadge/sqlx/pull/1968 [#&#8203;1969]: https://github.com/launchbadge/sqlx/pull/1969 [#&#8203;1974]: https://github.com/launchbadge/sqlx/pull/1974 [#&#8203;1977]: https://github.com/launchbadge/sqlx/pull/1977 [#&#8203;1985]: https://github.com/launchbadge/sqlx/pull/1985 [#&#8203;1988]: https://github.com/launchbadge/sqlx/pull/1988 [#&#8203;1989]: https://github.com/launchbadge/sqlx/pull/1989 [#&#8203;1990]: https://github.com/launchbadge/sqlx/pull/1990 [#&#8203;1993]: https://github.com/launchbadge/sqlx/pull/1993 [#&#8203;2001]: https://github.com/launchbadge/sqlx/pull/2001 [#&#8203;2003]: https://github.com/launchbadge/sqlx/pull/2003 [#&#8203;2005]: https://github.com/launchbadge/sqlx/pull/2005 [#&#8203;2013]: https://github.com/launchbadge/sqlx/pull/2013 ### [`v0.6.0`](https://github.com/launchbadge/sqlx/blob/HEAD/CHANGELOG.md#&#8203;060---2022-06-16) [Compare Source](https://github.com/launchbadge/sqlx/compare/v0.5.13...v0.6.0) This release marks the end of the 0.5.x series of releases and contains a number of breaking changes, mainly to do with backwards-incompatible dependency upgrades. As we foresee many more of these in the future, we [surveyed the community] on how to handle this; the consensus appears to be "just release breaking changes more often." As such, we expect the 0.6.x release series to be a shorter one. [39 pull requests(!)][0.6.0-prs] (not counting "prepare 0.5.12 release", of course) were merged this release cycle. ##### Breaking - \[[#&#8203;1384]]: (Postgres) Move `server_version_num` from trait to inherent impl \[\[[@&#8203;AtkinsChang](https://github.com/AtkinsChang)]] - \[[#&#8203;1426]]: Bump `ipnetwork` to 0.19 \[\[[@&#8203;paolobarbolini](https://github.com/paolobarbolini)]] - \[[#&#8203;1455]]: Upgrade `time` to 0.3 \[\[[@&#8203;paolobarbolini](https://github.com/paolobarbolini)]] - \[[#&#8203;1505]]: Upgrade `rustls` to 0.20 \[\[[@&#8203;paolobarbolini](https://github.com/paolobarbolini)]] - Fortunately, future upgrades should not be breaking as `webpki` is no longer exposed in the API. - \[[#&#8203;1529]]: Upgrade `bigdecimal` to 0.3 \[\[[@&#8203;e00E](https://github.com/e00E)]] - \[[#&#8203;1602]]: postgres: use `Oid` everywhere instead of `u32` \[\[[@&#8203;paolobarbolini](https://github.com/paolobarbolini)]] - This drops the `Type`, `Decode`, `Encode` impls for `u32` for Postgres as it was misleading. Postgres doesn't support unsigned ints without using an extension. These impls were decoding Postgres `OID`s as bare `u32`s without any context (and trying to bind a `u32` to a query would produce an `OID` value in SQL). This changes that to use a newtype instead, for clarity. - \[[#&#8203;1612]]: Make all `ConnectOptions` types cloneable \[\[[@&#8203;05storm26](https://github.com/05storm26)]] - \[[#&#8203;1618]]: SQLite `chrono::DateTime<FixedOffset>` timezone fix \[\[[@&#8203;05storm26](https://github.com/05storm26)]] - `DateTime<FixedOffset>` will be stored in SQLite with the correct timezone instead of always in UTC. This was flagged as a "potentially breaking change" since it changes how dates are sent to SQLite. - \[[#&#8203;1733]]: Update `git2` to 0.14 \[\[[@&#8203;joshtriplett](https://github.com/joshtriplett)]] - \[[#&#8203;1734]]: Make `PgLTree::push()` infallible and take `PgLTreeLabel` directly \[\[[@&#8203;sebpuetz](https://github.com/sebpuetz)]] - \[[#&#8203;1785]]: Fix Rust type for SQLite `REAL` \[\[[@&#8203;pruthvikar](https://github.com/pruthvikar)]] - Makes the macros always map a `REAL` column to `f64` instead of `f32` as SQLite uses **only** 64-bit floats. - \[[#&#8203;1816]]: Improve SQLite support for sub-queries and CTEs \[\[[@&#8203;tyrelr](https://github.com/tyrelr)]] - This likely will change the generated code for some invocations `sqlx::query!()` with SQLite. - \[[#&#8203;1821]]: Update `uuid` crate to v1 \[\[[@&#8203;paolobarbolini](https://github.com/paolobarbolini)]] - \[[#&#8203;1901]]: Pool fixes and breaking changes \[\[[@&#8203;abonander](https://github.com/abonander)]] - Renamed `PoolOptions::connect_timeout` to `acquire_timeout` for clarity. - Changed the expected signatures for `PoolOptions::after_connect`, `before_acquire`, `after_release` - Changed the signature for `Pool::close()` slightly - Now eagerly starts the pool closing, `.await`ing is only necessary if you want to ensure a graceful shutdown. - Deleted `PoolConnection::release()` which was previously deprecated in favor of `PoolConnection::detach()`. - Fixed connections getting leaked even when calling `.close()`. - \[\[[#&#8203;1748](https://github.com/launchbadge/sqlx/issues/1748)]]: Derive `PgHasArrayType` for `#[sqlx(transparent)]` types \[\[[@&#8203;carols10cents](https://github.com/carols10cents)]] - This change was released with 0.5.12 but [we didn't realize it was a breaking change] at the time.\ It was reverted in 0.5.13 and postponed until this release. ##### Added - \[[#&#8203;1843]]: Expose some useful methods on `PgValueRef` \[\[[@&#8203;mfreeborn](https://github.com/mfreeborn)]] - \[[#&#8203;1889]]: SQLx-CLI: add `--connect-timeout` \[\[[@&#8203;abonander](https://github.com/abonander)]] - Adds a default 10 second connection timeout to all commands. - \[[#&#8203;1890]]: Added test for mssql LoginAck \[\[[@&#8203;walf443](https://github.com/walf443)]] - \[[#&#8203;1891]]: Added test for mssql ProtocolInfo \[\[[@&#8203;walf443](https://github.com/walf443)]] - \[[#&#8203;1892]]: Added test for mssql ReturnValue \[\[[@&#8203;walf443](https://github.com/walf443)]] - \[[#&#8203;1895]]: Add support for `i16` to `Any` driver \[\[[@&#8203;EthanYuan](https://github.com/EthanYuan)]] - \[[#&#8203;1897]]: Expose `ConnectOptions` and `PoolOptions` on `Pool` and database name on `PgConnectOptions` \[\[[@&#8203;Nukesor](https://github.com/Nukesor)]] ##### Changed - \[[#&#8203;1782]]: Reuse a cached DB connection instead of always opening a new one for `sqlx-macros` \[\[[@&#8203;LovecraftianHorror](https://github.com/LovecraftianHorror)]] - \[[#&#8203;1807]]: Bump remaining dependencies \[\[[@&#8203;paolobarbolini](https://github.com/paolobarbolini)]] - \[[#&#8203;1808]]: Update to edition 2021 \[\[[@&#8203;paolobarbolini](https://github.com/paolobarbolini)]] - Note that while SQLx [does not officially track an MSRV] and only officially supports the latest stable Rust, this effectively places a lower bound of 1.56.0 on the range of versions it may work with. - \[[#&#8203;1823]]: (sqlx-macros) Ignore deps when getting metadata for workspace root \[\[[@&#8203;LovecraftianHorror](https://github.com/LovecraftianHorror)]] - \[[#&#8203;1831]]: Update `crc` to 3.0 \[\[[@&#8203;djc](https://github.com/djc)]] - \[[#&#8203;1887]]: query_as: don't stop stream after decoding error \[\[[@&#8203;lovasoa](https://github.com/lovasoa)]] ##### Fixed - \[[#&#8203;1814]]: SQLx-cli README: move `Usage` to the same level as `Install` \[\[[@&#8203;tobymurray](https://github.com/tobymurray)]] - \[[#&#8203;1815]]: SQLx-cli README: reword "building in offline mode" \[\[[@&#8203;tobymurray](https://github.com/tobymurray)]] - \[[#&#8203;1818]]: Trim `[]` from host string before passing to TcpStream \[\[[@&#8203;smonv](https://github.com/smonv)]] - This fixes handling of database URLs with IPv6 hosts. - \[[#&#8203;1842]]: Fix usage of `serde_json` in macros \[\[[@&#8203;mfreeborn](https://github.com/mfreeborn)]] - \[[#&#8203;1855]]: Postgres: fix panics on unknown type OID when decoding \[\[[@&#8203;demurgos](https://github.com/demurgos)]] - \[[#&#8203;1856]]: MySQL: support COLLATE_UTF8MB4\_0900\_AI_CI \[\[[@&#8203;scottwey](https://github.com/scottwey)]] - Fixes the MySQL driver thinking text columns are bytestring columns when querying against a Planetscale DB. - \[[#&#8203;1861]]: MySQL: avoid panic when streaming packets are empty \[\[[@&#8203;e-rhodes](https://github.com/e-rhodes)]] - \[[#&#8203;1863]]: Fix nullability check for inner joins in Postgres \[\[[@&#8203;OskarPersson](https://github.com/OskarPersson)]] - \[[#&#8203;1881]]: Fix `field is never read` warnings on Postgres test \[\[[@&#8203;walf443](https://github.com/walf443)]] - \[[#&#8203;1882]]: Fix `unused result must be used` warnings \[\[[@&#8203;walf443](https://github.com/walf443)]] - \[[#&#8203;1888]]: Fix migration checksum comparison during `sqlx migrate info` \[\[[@&#8203;mdtusz](https://github.com/mdtusz)]] - \[[#&#8203;1894]]: Fix typos \[\[[@&#8203;kianmeng](https://github.com/kianmeng)]] [surveyed the community]: https://github.com/launchbadge/sqlx/issues/1796 [0.6.0-prs]: https://github.com/launchbadge/sqlx/pulls?page=2&q=is%3Apr+is%3Amerged+merged%3A2022-04-14..2022-06-16 [does not officially track an MSRV]: /FAQ.md#what-versions-of-rust-does-sqlx-support-what-is-sqlxs-msrv [we didn't realize it was a breaking change]: https://github.com/launchbadge/sqlx/pull/1800#issuecomment-1099898932 [#&#8203;1384]: https://github.com/launchbadge/sqlx/pull/1384 [#&#8203;1426]: https://github.com/launchbadge/sqlx/pull/1426 [#&#8203;1455]: https://github.com/launchbadge/sqlx/pull/1455 [#&#8203;1505]: https://github.com/launchbadge/sqlx/pull/1505 [#&#8203;1529]: https://github.com/launchbadge/sqlx/pull/1529 [#&#8203;1602]: https://github.com/launchbadge/sqlx/pull/1602 [#&#8203;1612]: https://github.com/launchbadge/sqlx/pull/1612 [#&#8203;1618]: https://github.com/launchbadge/sqlx/pull/1618 [#&#8203;1733]: https://github.com/launchbadge/sqlx/pull/1733 [#&#8203;1734]: https://github.com/launchbadge/sqlx/pull/1734 [#&#8203;1782]: https://github.com/launchbadge/sqlx/pull/1782 [#&#8203;1785]: https://github.com/launchbadge/sqlx/pull/1785 [#&#8203;1807]: https://github.com/launchbadge/sqlx/pull/1807 [#&#8203;1808]: https://github.com/launchbadge/sqlx/pull/1808 [#&#8203;1814]: https://github.com/launchbadge/sqlx/pull/1814 [#&#8203;1815]: https://github.com/launchbadge/sqlx/pull/1815 [#&#8203;1816]: https://github.com/launchbadge/sqlx/pull/1816 [#&#8203;1818]: https://github.com/launchbadge/sqlx/pull/1818 [#&#8203;1821]: https://github.com/launchbadge/sqlx/pull/1821 [#&#8203;1823]: https://github.com/launchbadge/sqlx/pull/1823 [#&#8203;1831]: https://github.com/launchbadge/sqlx/pull/1831 [#&#8203;1842]: https://github.com/launchbadge/sqlx/pull/1842 [#&#8203;1843]: https://github.com/launchbadge/sqlx/pull/1843 [#&#8203;1855]: https://github.com/launchbadge/sqlx/pull/1855 [#&#8203;1856]: https://github.com/launchbadge/sqlx/pull/1856 [#&#8203;1861]: https://github.com/launchbadge/sqlx/pull/1861 [#&#8203;1863]: https://github.com/launchbadge/sqlx/pull/1863 [#&#8203;1881]: https://github.com/launchbadge/sqlx/pull/1881 [#&#8203;1882]: https://github.com/launchbadge/sqlx/pull/1882 [#&#8203;1887]: https://github.com/launchbadge/sqlx/pull/1887 [#&#8203;1888]: https://github.com/launchbadge/sqlx/pull/1888 [#&#8203;1889]: https://github.com/launchbadge/sqlx/pull/1889 [#&#8203;1890]: https://github.com/launchbadge/sqlx/pull/1890 [#&#8203;1891]: https://github.com/launchbadge/sqlx/pull/1891 [#&#8203;1892]: https://github.com/launchbadge/sqlx/pull/1892 [#&#8203;1894]: https://github.com/launchbadge/sqlx/pull/1894 [#&#8203;1895]: https://github.com/launchbadge/sqlx/pull/1895 [#&#8203;1897]: https://github.com/launchbadge/sqlx/pull/1897 [#&#8203;1901]: https://github.com/launchbadge/sqlx/pull/1901 ### [`v0.5.13`](https://github.com/launchbadge/sqlx/blob/HEAD/CHANGELOG.md#&#8203;0513---2022-04-15) [Compare Source](https://github.com/launchbadge/sqlx/compare/v0.5.12...v0.5.13) This is a hotfix that reverts \[[#&#8203;1748](https://github.com/launchbadge/sqlx/issues/1748)] as that was an accidental breaking change:\ the generated `PgHasArrayType` impl conflicts with manual impls of the trait.\ This change will have to wait for 0.6.0. ### [`v0.5.12`](https://github.com/launchbadge/sqlx/blob/HEAD/CHANGELOG.md#&#8203;0512---2022-04-13-Yanked-use-0513) [Compare Source](https://github.com/launchbadge/sqlx/compare/v0.5.11...v0.5.12) [27 pull requests][0.5.12-prs] were merged this release cycle. ##### Added - \[[#&#8203;1641]]: Postgres: Convenient wrapper for advisory locks \[\[[@&#8203;abonander](https://github.com/abonander)]] - \[[#&#8203;1675]]: Add function to undo migrations \[\[[@&#8203;jdrouet](https://github.com/jdrouet)]] - \[[#&#8203;1722]]: Postgres: implement `PgHasArrayType` for `serde_json::{Value, RawValue}` \[\[[@&#8203;abreis](https://github.com/abreis)]] - \[[#&#8203;1736]]: Derive `Clone` for `MySqlArguments` and `MssqlArguments` \[\[[@&#8203;0xdeafbeef](https://github.com/0xdeafbeef)]] - \[[#&#8203;1748]]: Derive `PgHasArrayType` for `#[sqlx(transparent)]` types \[\[[@&#8203;carols10cents](https://github.com/carols10cents)]] - \[[#&#8203;1754]]: Include affected rows alongside returned rows in query logging \[\[[@&#8203;david-mcgillicuddy-moixa](https://github.com/david-mcgillicuddy-moixa)]] - \[[#&#8203;1757]]: Implement `Type` for `Cow<str>` for MySQL, MSSQL and SQLite \[\[[@&#8203;ipetkov](https://github.com/ipetkov)]] - \[[#&#8203;1769]]: sqlx-cli: add `--source` to migration subcommands \[\[[@&#8203;pedromfedricci](https://github.com/pedromfedricci)]] - \[[#&#8203;1774]]: Postgres: make `extra_float_digits` settable \[\[[@&#8203;abonander](https://github.com/abonander)]] - Can be set to `None` for Postgres or third-party database servers that don't support the option. - \[[#&#8203;1776]]: Implement close-event notification for Pool \[\[[@&#8203;abonander](https://github.com/abonander)]] - Also fixes `PgListener` preventing `Pool::close()` from resolving. - \[[#&#8203;1780]]: Implement query builder \[\[[@&#8203;crajcan](https://github.com/crajcan)]] - See also \[[#&#8203;1790]]: Document and expand query builder \[\[[@&#8203;abonander](https://github.com/abonander)]] - \[[#&#8203;1781]]: Postgres: support `NUMERIC[]` using `decimal` feature \[\[[@&#8203;tm-drtina](https://github.com/tm-drtina)]] - \[[#&#8203;1784]]: SQLite: add `FromStr`, `Copy`, `PartialEq`, `Eq` impls for options enums \[\[[@&#8203;andrewwhitehead](https://github.com/andrewwhitehead)]] ##### Changed - \[[#&#8203;1625]]: Update RustCrypto crates \[\[[@&#8203;paolobarbolini](https://github.com/paolobarbolini)]] - \[[#&#8203;1725]]: Update `heck` to 0.4 \[\[[@&#8203;paolobarbolini](https://github.com/paolobarbolini)]] - \[[#&#8203;1738]]: Update `regex` \[\[[@&#8203;Dylan-DPC](https://github.com/Dylan-DPC)]] - \[[#&#8203;1763]]: SQLite: update `libsqlite3-sys` \[\[[@&#8203;espindola](https://github.com/espindola)]] ##### Fixed - \[[#&#8203;1719]]: Fix a link in `query!()` docs \[\[[@&#8203;vbmade2000](https://github.com/vbmade2000)]] - \[[#&#8203;1731]]: Postgres: fix option passing logic \[\[[@&#8203;liushuyu](https://github.com/liushuyu)]] - \[[#&#8203;1735]]: sqlx-cli: pass `DATABASE_URL` to command spawned in `prepare` \[\[[@&#8203;LovecraftianHorror](https://github.com/LovecraftianHorror)]] - \[[#&#8203;1741]]: Postgres: fix typo in `TSTZRANGE` \[\[[@&#8203;mgrachev](https://github.com/mgrachev)]] - \[[#&#8203;1761]]: Fix link from `QueryAs` to `query_as()` in docs \[\[[@&#8203;mgrachev](https://github.com/mgrachev)]] - \[[#&#8203;1786]]: MySQL: silence compile warnings for unused fields \[\[[@&#8203;andrewwhitehead](https://github.com/andrewwhitehead)]] - \[[#&#8203;1789]]: SQLite: fix left-joins breaking `query!()` macros \[\[[@&#8203;tyrelr](https://github.com/tyrelr)]] - \[[#&#8203;1791]]: Postgres: fix newline parsing of `.pgpass` files \[\[[@&#8203;SebastienGllmt](https://github.com/SebastienGllmt)]] - \[[#&#8203;1799]]: `PoolConnection`: don't leak connection permit if drop task fails to run \[\[[@&#8203;abonander](https://github.com/abonander)]] [#&#8203;1625]: https://github.com/launchbadge/sqlx/pull/1625 [#&#8203;1641]: https://github.com/launchbadge/sqlx/pull/1641 [#&#8203;1675]: https://github.com/launchbadge/sqlx/pull/1675 [#&#8203;1719]: https://github.com/launchbadge/sqlx/pull/1719 [#&#8203;1722]: https://github.com/launchbadge/sqlx/pull/1722 [#&#8203;1725]: https://github.com/launchbadge/sqlx/pull/1725 [#&#8203;1731]: https://github.com/launchbadge/sqlx/pull/1731 [#&#8203;1735]: https://github.com/launchbadge/sqlx/pull/1735 [#&#8203;1736]: https://github.com/launchbadge/sqlx/pull/1736 [#&#8203;1738]: https://github.com/launchbadge/sqlx/pull/1738 [#&#8203;1741]: https://github.com/launchbadge/sqlx/pull/1741 [#&#8203;1748]: https://github.com/launchbadge/sqlx/pull/1748 [#&#8203;1754]: https://github.com/launchbadge/sqlx/pull/1754 [#&#8203;1757]: https://github.com/launchbadge/sqlx/pull/1757 [#&#8203;1761]: https://github.com/launchbadge/sqlx/pull/1761 [#&#8203;1763]: https://github.com/launchbadge/sqlx/pull/1763 [#&#8203;1769]: https://github.com/launchbadge/sqlx/pull/1769 [#&#8203;1774]: https://github.com/launchbadge/sqlx/pull/1774 [#&#8203;1776]: https://github.com/launchbadge/sqlx/pull/1776 [#&#8203;1780]: https://github.com/launchbadge/sqlx/pull/1780 [#&#8203;1781]: https://github.com/launchbadge/sqlx/pull/1781 [#&#8203;1784]: https://github.com/launchbadge/sqlx/pull/1784 [#&#8203;1786]: https://github.com/launchbadge/sqlx/pull/1786 [#&#8203;1789]: https://github.com/launchbadge/sqlx/pull/1789 [#&#8203;1790]: https://github.com/launchbadge/sqlx/pull/1790 [#&#8203;1791]: https://github.com/launchbadge/sqlx/pull/1791 [#&#8203;1799]: https://github.com/launchbadge/sqlx/pull/1799 [0.5.12-prs]: https://github.com/launchbadge/sqlx/pulls?q=is%3Apr+is%3Amerged+merged%3A2022-02-19..2022-04-13 ### [`v0.5.11`](https://github.com/launchbadge/sqlx/blob/HEAD/CHANGELOG.md#&#8203;0511---2022-02-17) [Compare Source](https://github.com/launchbadge/sqlx/compare/v0.5.10...v0.5.11) [20 pull requests][0.5.11-prs] were merged this release cycle. ##### Added - \[[#&#8203;1610]]: Allow converting `AnyConnectOptions` to a specific `ConnectOptions` \[\[[@&#8203;05storm26](https://github.com/05storm26)]] - \[[#&#8203;1652]]: Implement `From` for `AnyConnection` \[\[[@&#8203;genusistimelord](https://github.com/genusistimelord)]] - \[[#&#8203;1658]]: Handle `SQLITE_LOCKED` \[\[[@&#8203;madadam](https://github.com/madadam)]] - \[[#&#8203;1665]]: Document offline mode usage with feature flags \[\[[@&#8203;sedrik](https://github.com/sedrik)]] - \[[#&#8203;1680]]: Show checksum mismatches in `sqlx migrate info` \[\[[@&#8203;ifn3](https://github.com/ifn3)]] - \[[#&#8203;1685]]: Add tip for setting `opt-level` for `sqlx-macros` \[\[[@&#8203;LovecraftianHorror](https://github.com/LovecraftianHorror)]] - \[[#&#8203;1687]]: Docs: `Acquire` examples and alternative \[\[[@&#8203;stoically](https://github.com/stoically)]] - \[[#&#8203;1696]]: Postgres: support for `ltree` \[\[[@&#8203;cemoktra](https://github.com/cemoktra)]] - \[[#&#8203;1710]]: Postgres: support for `lquery` \[\[[@&#8203;cemoktra](https://github.com/cemoktra)]] ##### Changed - \[[#&#8203;1605]]: Remove unused dependencies \[\[[@&#8203;paolobarbolini](https://github.com/paolobarbolini)]] - \[[#&#8203;1606]]: Add target context to Postgres `NOTICE` logs \[\[[@&#8203;dbeckwith](https://github.com/dbeckwith)]] - \[[#&#8203;1684]]: Macros: Cache parsed `sqlx-data.json` instead of reparsing \[\[[@&#8203;LovecraftianHorror](https://github.com/LovecraftianHorror)]] ##### Fixed - \[[#&#8203;1608]]: Drop worker shared state in shutdown (SQLite) \[\[[@&#8203;andrewwhitehead](https://github.com/andrewwhitehead)]] - \[[#&#8203;1619]]: Docs(macros): remove sentences banning usage of `as _` \[\[[@&#8203;k-jun](https://github.com/k-jun)]] - \[[#&#8203;1626]]: Simplify `cargo-sqlx` command-line definition \[\[[@&#8203;tranzystorek-io](https://github.com/tranzystorek-io)]] - \[[#&#8203;1636]]: Fix and extend Postgres transaction example \[\[[@&#8203;taladar](https://github.com/taladar)]] - \[[#&#8203;1657]]: Fix typo in macro docs \[\[[@&#8203;p9s](https://github.com/p9s)]] - \[[#&#8203;1661]]: Fix binding `Option<T>` for `Any` driver \[\[[@&#8203;ArGGu](https://github.com/ArGGu)]] - \[[#&#8203;1667]]: MySQL: Avoid panicking if packet is empty \[\[[@&#8203;nappa85](https://github.com/nappa85)]] - \[[#&#8203;1692]]: Postgres: Fix power calculation when encoding `BigDecimal` into `NUMERIC` \[\[[@&#8203;VersBinarii](https://github.com/VersBinarii)]] Additionally, we have introduced two mitigations for [the issue of the cyclic dependency on `ahash`][aHash#&#8203;95]: - We re-downgraded our version requirement on `indexmap` from `1.7.0` back to `1.6.2` so users can pin it to that version [as recommended in aHash#&#8203;95][ahash-fix]. - [This was regressed accidentally during a sweeping dependency upgrade before the last release][indexmap-regression], sorry about that. - Thanks to the work of \[[@&#8203;LovecraftianHorror](https://github.com/LovecraftianHorror)] in [#&#8203;1684], we no longer require the `preserve_order` feature of `serde_json` which gives users another place to break the cycle by simply not enabling that feature. - This may introduce extra churn in Git diffs for `sqlx-data.json`, however. If this is an issue for you but the dependency cycle isn't, you can re-enable the `preserve_order` feature: ```toml [dependencies] serde_json = { version = "1", features = ["preserve_order"] } ``` [aHash#&#8203;95]: https://github.com/tkaitchuck/aHash/issues/95 [ahash-fix]: https://github.com/tkaitchuck/aHash/issues/95#issuecomment-874150078 [indexmap-regression]: https://github.com/launchbadge/sqlx/pull/1603#issuecomment-1010827637 [#&#8203;1605]: https://github.com/launchbadge/sqlx/pull/1605 [#&#8203;1606]: https://github.com/launchbadge/sqlx/pull/1606 [#&#8203;1608]: https://github.com/launchbadge/sqlx/pull/1608 [#&#8203;1610]: https://github.com/launchbadge/sqlx/pull/1610 [#&#8203;1619]: https://github.com/launchbadge/sqlx/pull/1619 [#&#8203;1626]: https://github.com/launchbadge/sqlx/pull/1626 [#&#8203;1636]: https://github.com/launchbadge/sqlx/pull/1636 [#&#8203;1652]: https://github.com/launchbadge/sqlx/pull/1652 [#&#8203;1657]: https://github.com/launchbadge/sqlx/pull/1657 [#&#8203;1658]: https://github.com/launchbadge/sqlx/pull/1658 [#&#8203;1661]: https://github.com/launchbadge/sqlx/pull/1661 [#&#8203;1665]: https://github.com/launchbadge/sqlx/pull/1665 [#&#8203;1667]: https://github.com/launchbadge/sqlx/pull/1667 [#&#8203;1680]: https://github.com/launchbadge/sqlx/pull/1680 [#&#8203;1684]: https://github.com/launchbadge/sqlx/pull/1684 [#&#8203;1685]: https://github.com/launchbadge/sqlx/pull/1685 [#&#8203;1687]: https://github.com/launchbadge/sqlx/pull/1687 [#&#8203;1692]: https://github.com/launchbadge/sqlx/pull/1692 [#&#8203;1696]: https://github.com/launchbadge/sqlx/pull/1696 [#&#8203;1710]: https://github.com/launchbadge/sqlx/pull/1710 [0.5.11-prs]: https://github.com/launchbadge/sqlx/pulls?q=is%3Apr+is%3Amerged+merged%3A2021-12-30..2022-02-17 ### [`v0.5.10`](https://github.com/launchbadge/sqlx/blob/HEAD/CHANGELOG.md#&#8203;0510---2021-12-29) [Compare Source](https://github.com/launchbadge/sqlx/compare/v0.5.9...v0.5.10) [A whopping 31 pull requests][0.5.10-prs] were merged this release cycle! According to this changelog, we saw 18 new contributors! However, some of these folks may have missed getting mentioned in previous entries since we only listed highlights. To avoid anyone feeling left out, I put in the effort this time and tried to list every single one here. ##### Added - \[[#&#8203;1228]]: Add `Pool::any_kind()` \[\[[@&#8203;nitnelave](https://github.com/nitnelave)]] - \[[#&#8203;1343]]: Add `Encode/Decode` impl for `Cow<'_, str>` \[\[[@&#8203;Drevoed](https://github.com/Drevoed)]] - \[[#&#8203;1474]]: Derive `Clone`, `Copy` for `AnyKind` \[\[[@&#8203;yuyawk](https://github.com/yuyawk)]] - \[[#&#8203;1497]]: Update FAQ to explain how to configure docs.rs to build a project using SQLx \[\[[@&#8203;russweas](https://github.com/russweas)]] - \[[#&#8203;1498]]: Add description of migration file structure to `migrate!()` docs \[\[[@&#8203;zbigniewzolnierowicz](https://github.com/zbigniewzolnierowicz)]] - \[[#&#8203;1508]]: Add `.persistent(bool)` to `QueryAs`, `QueryScalar` \[\[[@&#8203;akiradeveloper](https://github.com/akiradeveloper)]] - \[[#&#8203;1514]]: Add support for serialized threading mode to SQLite \[\[[@&#8203;LLBlumire](https://github.com/LLBlumire)]] - \[[#&#8203;1523]]: Allow `rust_decimal::Decimal` in `PgRange` \[\[[@&#8203;meh](https://github.com/meh)]] - \[[#&#8203;1539]]: Support `PGOPTIONS` and adding custom configuration options in `PgConnectOptions` \[\[[@&#8203;liushuyu](https://github.com/liushuyu)]] - \[[#&#8203;1562]]: Re-export `either::Either` used by `Executor::fetch_many()` \[\[[@&#8203;DoumanAsh](https://github.com/DoumanAsh)]] - \[[#&#8203;1584]]: Add feature to use RusTLS instead of `native-tls` for `sqlx-cli` \[\[[@&#8203;SonicZentropy](https://github.com/SonicZentropy)]] - \[[#&#8203;1592]]: Add `AnyConnection::kind()` \[\[[@&#8203;05storm26](https://github.com/05storm26)]] ##### Changes - \[[#&#8203;1385]]: Rewrite Postgres array handling to reduce boilerplate and allow custom types \[\[[@&#8203;jplatte](https://github.com/jplatte)]] - \[[#&#8203;1479]]: Remove outdated mention of `runtime-async-std-native-tls` as the default runtime in README.md \[\[[@&#8203;yerke](https://github.com/yerke)]] - \[[#&#8203;1526]]: Revise `Pool` docs in a couple places \[\[[@&#8203;abonander](https://github.com/abonander)]] - \[[#&#8203;1535]]: Bump `libsqlite-sys` to `0.23.1` \[\[[@&#8203;nitsky](https://github.com/nitsky)]] - \[[#&#8203;1551]]: SQLite: make worker thread responsible for all FFI calls \[\[[@&#8203;abonander](https://github.com/abonander)]] - If you were encountering segfaults with the SQLite driver, there's a good chance this will fix it! - \[[#&#8203;1557]]: CI: test with Postgres 14 \[\[[@&#8203;paolobarbolini](https://github.com/paolobarbolini)]] - \[[#&#8203;1571]]: Make `whoami` dep optional, only pull it in for Postgres \[\[[@&#8203;joshtriplett](https://github.com/joshtriplett)]] - \[[#&#8203;1572]]: Update `rsa` crate to 0.5 \[\[[@&#8203;paolobarbolini](https://github.com/paolobarbolini)]] - \[[#&#8203;1591]]: List SeaORM as an ORM option in the README \[\[[@&#8203;kunjee17](https://github.com/kunjee17)]] - \[[#&#8203;1601]]: Update `itoa` and `dirs` \[\[[@&#8203;paolobarbolini](https://github.com/paolobarbolini)]] ##### Fixes - \[[#&#8203;1475]]: Fix panic when converting a negative `chrono::Duration` to `PgInterval` \[\[[@&#8203;yuyawk](https://github.com/yuyawk)]] - \[[#&#8203;1483]]: Fix error when decoding array of custom types from Postgres \[\[[@&#8203;demurgos](https://github.com/demurgos)] - \[[#&#8203;1501]]: Reduce `indexmap` version requirement to `1.6.2` \[\[[@&#8203;dimfeld](https://github.com/dimfeld)]] - \[[#&#8203;1511]]: Fix element type given to Postgres for arrays of custom enums \[\[[@&#8203;chesedo](https://github.com/chesedo)]] - \[[#&#8203;1517]]: Fix mismatched type errors in MySQL type tests \[\[[@&#8203;abonander](https://github.com/abonander)]] - \[[#&#8203;1537]]: Fix missing re-export of `PgCopyIn` \[\[[@&#8203;akiradeveloper](https://github.com/akiradeveloper)]] - \[[#&#8203;1566]]: Match `~/.pgpass` password after URL parsing and fix user and database ordering \[\[[@&#8203;D1plo1d](https://github.com/D1plo1d)]] - \[[#&#8203;1582]]: `cargo sqlx prepare`: Append to existing `RUSTFLAGS` instead of overwriting \[\[[@&#8203;tkintscher](https://github.com/tkintscher)]] - \[[#&#8203;1587]]: SQLite: if set, send `PRAGMA key` on a new connection before anything else. \[\[[@&#8203;parazyd](https://github.com/parazyd)]] - This should fix problems with being unable to open databases using SQLCipher. [#&#8203;1228]: https://github.com/launchbadge/sqlx/pull/1228 [#&#8203;1343]: https://github.com/launchbadge/sqlx/pull/1343 [#&#8203;1385]: https://github.com/launchbadge/sqlx/pull/1385 [#&#8203;1474]: https://github.com/launchbadge/sqlx/pull/1474 [#&#8203;1475]: https://github.com/launchbadge/sqlx/pull/1475 [#&#8203;1479]: https://github.com/launchbadge/sqlx/pull/1479 [#&#8203;1483]: https://github.com/launchbadge/sqlx/pull/1483 [#&#8203;1497]: https://github.com/launchbadge/sqlx/pull/1497 [#&#8203;1498]: https://github.com/launchbadge/sqlx/pull/1498 [#&#8203;1501]: https://github.com/launchbadge/sqlx/pull/1501 [#&#8203;1508]: https://github.com/launchbadge/sqlx/pull/1508 [#&#8203;1511]: https://github.com/launchbadge/sqlx/pull/1511 [#&#8203;1514]: https://github.com/launchbadge/sqlx/pull/1514 [#&#8203;1517]: https://github.com/launchbadge/sqlx/pull/1517 [#&#8203;1523]: https://github.com/launchbadge/sqlx/pull/1523 [#&#8203;1526]: https://github.com/launchbadge/sqlx/pull/1526 [#&#8203;1535]: https://github.com/launchbadge/sqlx/pull/1535 [#&#8203;1537]: https://github.com/launchbadge/sqlx/pull/1537 [#&#8203;1539]: https://github.com/launchbadge/sqlx/pull/1539 [#&#8203;1551]: https://github.com/launchbadge/sqlx/pull/1551 [#&#8203;1557]: https://github.com/launchbadge/sqlx/pull/1557 [#&#8203;1562]: https://github.com/launchbadge/sqlx/pull/1562 [#&#8203;1566]: https://github.com/launchbadge/sqlx/pull/1566 [#&#8203;1571]: https://github.com/launchbadge/sqlx/pull/1571 [#&#8203;1572]: https://github.com/launchbadge/sqlx/pull/1572 [#&#8203;1582]: https://github.com/launchbadge/sqlx/pull/1582 [#&#8203;1584]: https://github.com/launchbadge/sqlx/pull/1584 [#&#8203;1587]: https://github.com/launchbadge/sqlx/pull/1587 [#&#8203;1591]: https://github.com/launchbadge/sqlx/pull/1591 [#&#8203;1592]: https://github.com/launchbadge/sqlx/pull/1592 [#&#8203;1601]: https://github.com/launchbadge/sqlx/pull/1601 [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 ### [`v0.5.9`](https://github.com/launchbadge/sqlx/blob/HEAD/CHANGELOG.md#&#8203;059---2021-10-01) [Compare Source](https://github.com/launchbadge/sqlx/compare/v0.5.8...v0.5.9) A hotfix release to address the issue of the `sqlx` crate itself still depending on older versions of `sqlx-core` and `sqlx-macros`. No other changes from `0.5.8`. ### [`v0.5.8`](https://github.com/launchbadge/sqlx/blob/HEAD/CHANGELOG.md#&#8203;058---2021-10-01-Yanked-use-059) [Compare Source](https://github.com/launchbadge/sqlx/compare/v0.5.7...v0.5.8) [A total of 24 pull requests][0.5.8-prs] were merged this release cycle! Some highlights: - \[[#&#8203;1289]] Support the `immutable` option on SQLite connections \[\[[@&#8203;djmarcin](https://github.com/djmarcin)]] - \[[#&#8203;1295]] Support custom initial options for SQLite \[\[[@&#8203;ghassmo](https://github.com/ghassmo)]] - Allows specifying custom `PRAGMA`s and overriding those set by SQLx. - \[[#&#8203;1345]] Initial support for Postgres `COPY FROM/TO`\[\[[@&#8203;montanalow](https://github.com/montanalow)], \[[@&#8203;abonander](https://github.com/abonander)]] - \[[#&#8203;1439]] Handle multiple waiting results correctly in MySQL \[\[[@&#8203;eagletmt](https://github.com/eagletmt)]] [#&#8203;1289]: https://github.com/launchbadge/sqlx/pull/1289 [#&#8203;1295]: https://github.com/launchbadge/sqlx/pull/1295 [#&#8203;1345]: https://github.com/launchbadge/sqlx/pull/1345 [#&#8203;1439]: https://github.com/launchbadge/sqlx/pull/1439 [0.5.8-prs]: https://github.com/launchbadge/sqlx/pulls?q=is%3Apr+is%3Amerged+merged%3A2021-08-21..2021-10-01 ### [`v0.5.7`](https://github.com/launchbadge/sqlx/blob/HEAD/CHANGELOG.md#&#8203;057---2021-08-20) [Compare Source](https://github.com/launchbadge/sqlx/compare/v0.5.6...v0.5.7) - \[[#&#8203;1392]] use `resolve_path` when getting path for `include_str!()` \[\[[@&#8203;abonander](https://github.com/abonander)]] - Fixes a regression introduced by \[\[[#&#8203;1332](https://github.com/launchbadge/sqlx/issues/1332)]]. - \[[#&#8203;1393]] avoid recursively spawning tasks in `PgListener::drop()` \[\[[@&#8203;abonander](https://github.com/abonander)]] - Fixes a panic that occurs when `PgListener` is dropped in `async fn main()`. [#&#8203;1392]: https://github.com/launchbadge/sqlx/pull/1392 [#&#8203;1393]: https://github.com/launchbadge/sqlx/pull/1393 ### [`v0.5.6`](https://github.com/launchbadge/sqlx/blob/HEAD/CHANGELOG.md#&#8203;056---2021-08-16) [Compare Source](https://github.com/launchbadge/sqlx/compare/v0.5.5...v0.5.6) A large bugfix release, including but not limited to: - \[[#&#8203;1329]] Implement `MACADDR` type for Postgres \[\[[@&#8203;nomick](https://github.com/nomick)]] - \[[#&#8203;1363]] Fix `PortalSuspended` for array of composite types in Postgres \[\[[@&#8203;AtkinsChang](https://github.com/AtkinsChang)]] - \[[#&#8203;1320]] Reimplement `sqlx::Pool` internals using `futures-intrusive` \[\[[@&#8203;abonander](https://github.com/abonander)]] - This addresses a number of deadlocks/stalls on acquiring connections from the pool. - \[[#&#8203;1332]] Macros: tell the compiler about external files/env vars to watch \[\[[@&#8203;abonander](https://github.com/abonander)]] - Includes `sqlx build-script` to create a `build.rs` to watch `migrations/` for changes. - Nightly users can try `RUSTFLAGS=--cfg sqlx_macros_unstable` to tell the compiler to watch `migrations/` for changes instead of using a build script. - See the new section in the docs for `sqlx::migrate!()` for details. - \[[#&#8203;1351]] Fix a few sources of segfaults/errors in SQLite driver \[\[[@&#8203;abonander](https://github.com/abonander)]] - Includes contributions from \[\[[@&#8203;link2ext](https://github.com/link2ext)]] and \[\[[@&#8203;madadam](https://github.com/madadam)]]. - \[[#&#8203;1323]] Keep track of column typing in SQLite EXPLAIN parsing \[\[[@&#8203;marshoepial](https://github.com/marshoepial)]] - This fixes errors in the macros when using `INSERT/UPDATE/DELETE ... RETURNING ...` in SQLite. [A total of 25 pull requests][0.5.6-prs] were merged this release cycle! [#&#8203;1329]: https://github.com/launchbadge/sqlx/pull/1329 [#&#8203;1363]: https://github.com/launchbadge/sqlx/pull/1363 [#&#8203;1320]: https://github.com/launchbadge/sqlx/pull/1320 [#&#8203;1332]: https://github.com/launchbadge/sqlx/pull/1332 [#&#8203;1351]: https://github.com/launchbadge/sqlx/pull/1351 [#&#8203;1323]: https://github.com/launchbadge/sqlx/pull/1323 [0.5.6-prs]: https://github.com/launchbadge/sqlx/pulls?q=is%3Apr+is%3Amerged+merged%3A2021-05-24..2021-08-17 ### [`v0.5.5`](https://github.com/launchbadge/sqlx/blob/HEAD/CHANGELOG.md#&#8203;055---2021-05-24) [Compare Source](https://github.com/launchbadge/sqlx/compare/v0.5.4...v0.5.5) - \[[#&#8203;1242]] Fix infinite loop at compile time when using query macros \[\[[@&#8203;toshokan](https://github.com/toshokan)]] [#&#8203;1242]: https://github.com/launchbadge/sqlx/pull/1242 ### [`v0.5.4`](https://github.com/launchbadge/sqlx/blob/HEAD/CHANGELOG.md#&#8203;054---2021-05-22) [Compare Source](https://github.com/launchbadge/sqlx/compare/v0.5.3...v0.5.4) - \[[#&#8203;1235]] Fix compilation with rustls from an eager update to webpki \[\[[@&#8203;ETCaton](https://github.com/ETCaton)]] [#&#8203;1235]: https://github.com/launchbadge/sqlx/pull/1235 ### [`v0.5.3`](https://github.com/launchbadge/sqlx/blob/HEAD/CHANGELOG.md#&#8203;053---2021-05-21) [Compare Source](https://github.com/launchbadge/sqlx/compare/v0.5.2...v0.5.3) - \[[#&#8203;1211]] Even more tweaks and fixes to the Pool internals \[\[[@&#8203;abonander](https://github.com/abonander)]] - \[[#&#8203;1213]] Add support for bytes and `chrono::NaiveDateTime` to `Any` \[\[[@&#8203;guylapid](https://github.com/guylapid)]] - \[[#&#8203;1224]] Add support for `chrono::DateTime<Local>` to `Any` with `MySQL` \[\[[@&#8203;NatPRoach](https://github.com/NatPRoach)]] - \[[#&#8203;1216]] Skip empty lines and comments in pgpass files \[\[[@&#8203;feikesteenbergen](https://github.com/feikesteenbergen)]] - \[[#&#8203;1218]] Add support for `PgMoney` to the compile-time type-checking \[\[[@&#8203;iamsiddhant05](https://github.com/iamsiddhant05)]] [#&#8203;1211]: https://github.com/launchbadge/sqlx/pull/1211 [#&#8203;1213]: https://github.com/launchbadge/sqlx/pull/1213 [#&#8203;1216]: https://github.com/launchbadge/sqlx/pull/1216 [#&#8203;1218]: https://github.com/launchbadge/sqlx/pull/1218 [#&#8203;1224]: https://github.com/launchbadge/sqlx/pull/1224 ### [`v0.5.2`](https://github.com/launchbadge/sqlx/blob/HEAD/CHANGELOG.md#&#8203;052---2021-04-15) [Compare Source](https://github.com/launchbadge/sqlx/compare/v0.5.1...v0.5.2) - \[[#&#8203;1149]] Tweak and optimize Pool internals \[\[[@&#8203;abonander](https://github.com/abonander)]] - \[[#&#8203;1132]] Remove `'static` bound on `Connection::transaction` \[\[[@&#8203;argv-minus-one](https://github.com/argv-minus-one)]] - \[[#&#8203;1128]] Fix `-y` flag for `sqlx db reset -y` \[\[[@&#8203;qqwa](https://github.com/qqwa)]] - \[[#&#8203;1099]] \[[#&#8203;1097]] Truncate buffer when `BufStream` is dropped \[\[[@&#8203;Diggsey](https://github.com/Diggsey)]] [#&#8203;1132]: https://github.com/launchbadge/sqlx/pull/1132 [#&#8203;1149]: https://github.com/launchbadge/sqlx/pull/1149 [#&#8203;1128]: https://github.com/launchbadge/sqlx/pull/1128 [#&#8203;1099]: https://github.com/launchbadge/sqlx/pull/1099 [#&#8203;1097]: https://github.com/launchbadge/sqlx/issues/1097 ##### PostgreSQL - \[[#&#8203;1170]] Remove `Self: Type` bounds in `Encode` / `Decode` implementations for arrays \[\[[@&#8203;jplatte](https://github.com/jplatte)]] Enables working around the lack of support for user-defined array types: ```rust #[derive(sqlx::Encode)] struct Foos<'a>(&'a [Foo]); impl sqlx::Type<sqlx::Postgres> for Foos<'_> { fn type_info() -> PgTypeInfo { PgTypeInfo::with_name("_foo") } } query_as!( Whatever, "<QUERY with $1 of type foo[]>", Foos(&foo_vec) as _, ) ``` - \[[#&#8203;1141]] Use `u16::MAX` instead of `i16::MAX` for a check against the largest number of parameters in a query \[\[[@&#8203;crajcan](https://github.com/crajcan)]] - \[[#&#8203;1112]] Add support for `DOMAIN` types \[\[[@&#8203;demurgos](https://github.com/demurgos)]] - \[[#&#8203;1100]] Explicitly `UNLISTEN` before returning connections to the pool in `PgListener` \[\[[@&#8203;Diggsey](https://github.com/Diggsey)]] [#&#8203;1170]: https://github.com/launchbadge/sqlx/pull/1170 [#&#8203;1141]: https://github.com/launchbadge/sqlx/pull/1141 [#&#8203;1112]: https://github.com/launchbadge/sqlx/pull/1112 [#&#8203;1100]: https://github.com/launchbadge/sqlx/pull/1100 ##### SQLite - \[[#&#8203;1161]] Catch `SQLITE_MISUSE` on connection close and panic \[\[[@&#8203;link2xt](https://github.com/link2xt)]] - \[[#&#8203;1160]] Do not cast pointers to `i32` (cast to `usize`) \[\[[@&#8203;link2xt](https://github.com/link2xt)]] - \[[#&#8203;1156]] Reset the statement when `fetch_many` stream is dropped \[\[[@&#8203;link2xt](https://github.com/link2xt)]] [#&#8203;1161]: https://github.com/launchbadge/sqlx/pull/1161 [#&#8203;1160]: https://github.com/launchbadge/sqlx/pull/1160 [#&#8203;1156]: https://github.com/launchbadge/sqlx/pull/1156 </details> --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled due to failing status checks. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
kjuulh added 1 commit 2022-10-26 12:02:34 +02:00
Update Rust crate sqlx to 0.6
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build encountered an error
458e327d0c
kjuulh changed title from Update Rust crate sqlx to 0.6 to Update Rust crate sqlx to 0.6 - autoclosed 2022-10-26 18:06:41 +02:00
kjuulh closed this pull request 2022-10-26 18:06:41 +02:00
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build encountered an error

Pull request closed

Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: kjuulh/como#11
No description provided.