fix(deps): update rust crate sqlx-core to 0.6.2 #14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.5.10
->0.6.2
Release Notes
launchbadge/sqlx
v0.6.2
Compare Source
25 pull requests were merged this release cycle.
Added
try_from
attribute forFromRow
derive [[@zzhengzhuo]]the second page. We'll be sure to clean out the backlog for 0.7.0.
IpAddr
support in Postgres [[@rakshith-ravi]]Changed
prepare
[[@cycraig]]Fixed
#[sqlx(flatten)]
forFromRow
derive [[@RustyYato]]#[test]
from#[sqlx::test]
[[@alexander-jackson]]FromRow
docs [[@zlidner]]sqlite3_exec
[[@madadam]]prepare
race condition in workspaces [[@cycraig]]\target/
thatcargo sqlx prepare
depends on.If you use offline mode in your workflow, please rerun
cargo install sqlx-cli
to upgrade.v0.6.1
Compare Source
33 pull requests were merged this release cycle.
Added
FromRow
trait [[@Erik1000]]std::net::IpAddr
[[@meh]]INET
value in Postgres is a prefix and not a full address(
/32
for IPv4,/128
for IPv6).time
crate [[@johnbcodes]]QueryBuilder::separated()
[[@sbeckeriv]]sqlx::types::Json
[[@jayy-lmao]]Clone
forPoolOptions
[[@Thomasdezeeuw]]push_tuples
forQueryBuilder
[[@0xdeafbeef]]#[sqlx(flatten)]
attribute inFromRow
[[@TheoOiry]]query_builder::Separated::push_bind_unseparated()
[[@0xdeafbeef]]#[sqlx::test]
for general useQueryBuilder
improvements [[@abonander]]QueryAs
instead ofQuery
.Changed
query_as!()
andFromRow
[[@abonander]]dotenv
withdotenvy
[[@abonander]]Fixed
cargo sqlx prepare --merged
[[@LovecraftianHorror]]Any
database driver [[@raviqqe]]CARGO_TARGET_DIR
when compiling queries [[@sedrik]]BYTEA
decode [[@e00E]]S
orV
notice fields are not UTF-8 [[@abonander]]rust-cache
action for CI [[@abonander]]PgListener
[[@crepererum]]master
tomain
in docs [[@crepererum]]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
server_version_num
from trait to inherent impl [[@AtkinsChang]]ipnetwork
to 0.19 [[@paolobarbolini]]time
to 0.3 [[@paolobarbolini]]rustls
to 0.20 [[@paolobarbolini]]webpki
is no longer exposed in the API.bigdecimal
to 0.3 [[@e00E]]Oid
everywhere instead ofu32
[[@paolobarbolini]]Type
,Decode
,Encode
impls foru32
for Postgres as it was misleading.Postgres doesn't support unsigned ints without using an extension. These impls were decoding Postgres
OID
sas bare
u32
s without any context (and trying to bind au32
to a query would produce anOID
value in SQL).This changes that to use a newtype instead, for clarity.
ConnectOptions
types cloneable [[@05storm26]]chrono::DateTime<FixedOffset>
timezone fix [[@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.
git2
to 0.14 [[@joshtriplett]]PgLTree::push()
infallible and takePgLTreeLabel
directly [[@sebpuetz]]REAL
[[@pruthvikar]]REAL
column tof64
instead off32
as SQLite uses only 64-bit floats.sqlx::query!()
with SQLite.uuid
crate to v1 [[@paolobarbolini]]PoolOptions::connect_timeout
toacquire_timeout
for clarity.PoolOptions::after_connect
,before_acquire
,after_release
Pool::close()
slightly.await
ing is only necessary if you want to ensure a graceful shutdown.PoolConnection::release()
which was previously deprecated in favor ofPoolConnection::detach()
..close()
.PgHasArrayType
for#[sqlx(transparent)]
types [[@carols10cents]]It was reverted in 0.5.13 and postponed until this release.
Added
PgValueRef
[[@mfreeborn]]--connect-timeout
[[@abonander]]i16
toAny
driver [[@EthanYuan]]ConnectOptions
andPoolOptions
onPool
and database name onPgConnectOptions
[[@Nukesor]]Changed
sqlx-macros
[[@LovecraftianHorror]]this effectively places a lower bound of 1.56.0 on the range of versions it may work with.
crc
to 3.0 [[@djc]]Fixed
Usage
to the same level asInstall
[[@tobymurray]][]
from host string before passing to TcpStream [[@smonv]]serde_json
in macros [[@mfreeborn]]field is never read
warnings on Postgres test [[@walf443]]unused result must be used
warnings [[@walf443]]sqlx migrate info
[[@mdtusz]]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
PgHasArrayType
forserde_json::{Value, RawValue}
[[@abreis]]Clone
forMySqlArguments
andMssqlArguments
[[@0xdeafbeef]]PgHasArrayType
for#[sqlx(transparent)]
types [[@carols10cents]]Type
forCow<str>
for MySQL, MSSQL and SQLite [[@ipetkov]]--source
to migration subcommands [[@pedromfedricci]]extra_float_digits
settable [[@abonander]]None
for Postgres or third-party database servers that don't support the option.PgListener
preventingPool::close()
from resolving.NUMERIC[]
usingdecimal
feature [[@tm-drtina]]FromStr
,Copy
,PartialEq
,Eq
impls for options enums [[@andrewwhitehead]]Changed
heck
to 0.4 [[@paolobarbolini]]regex
[[@Dylan-DPC]]libsqlite3-sys
[[@espindola]]Fixed
query!()
docs [[@vbmade2000]]DATABASE_URL
to command spawned inprepare
[[@LovecraftianHorror]]TSTZRANGE
[[@mgrachev]]QueryAs
toquery_as()
in docs [[@mgrachev]]query!()
macros [[@tyrelr]].pgpass
files [[@SebastienGllmt]]PoolConnection
: don't leak connection permit if drop task fails to run [[@abonander]]v0.5.11
Compare Source
20 pull requests were merged this release cycle.
Added
AnyConnectOptions
to a specificConnectOptions
[[@05storm26]]From
forAnyConnection
[[@genusistimelord]]SQLITE_LOCKED
[[@madadam]]sqlx migrate info
[[@ifn3]]opt-level
forsqlx-macros
[[@LovecraftianHorror]]Acquire
examples and alternative [[@stoically]]ltree
[[@cemoktra]]lquery
[[@cemoktra]]Changed
NOTICE
logs [[@dbeckwith]]sqlx-data.json
instead of reparsing [[@LovecraftianHorror]]Fixed
as _
[[@k-jun]]cargo-sqlx
command-line definition [[@tranzystorek-io]]Option<T>
forAny
driver [[@ArGGu]]BigDecimal
intoNUMERIC
[[@VersBinarii]]Additionally, we have introduced two mitigations for the issue of the cyclic dependency on
ahash
:indexmap
from1.7.0
back to1.6.2
so users can pin it to thatversion as recommended in aHash#95.
sorry about that.
preserve_order
feature ofserde_json
which gives users another place to break the cycle by simply not enabling that feature.sqlx-data.json
, however. If this is an issue for you butthe dependency cycle isn't, you can re-enable the
preserve_order
feature:Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ 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.
This PR has been generated by Mend Renovate. View repository job log here.