uint
uint copied to clipboard
chore(deps): update sqlx-core requirement from 0.7 to 0.8
Updates the requirements on sqlx-core to permit the latest version.
Changelog
Sourced from sqlx-core's changelog.
0.8.0 - 2024-07-22
70 pull requests were merged this release cycle.
#2697 was merged the same day as release 0.7.4 and so was missed by the automatic CHANGELOG generation.
Breaking
- [#2697]: fix(macros): only enable chrono when time is disabled [[
@saiintbrisson
]]- [#2973]: Generic Associated Types in Database, replacing HasValueRef, HasArguments, HasStatement [[
@nitn3lav
]]- [#2482]: chore: bump syn to 2.0 [[
@saiintbrisson
]]
- Deprecated type ascription syntax in the query macros was removed.
- [#2736]: Fix describe on PostgreSQL views with rules [[
@tsing
]]
- Potentially breaking: nullability inference changes for Postgres.
- [#2869]: Implement PgHasArrayType for all references [[
@tylerhawkes
]]
- Conflicts with existing manual implementations.
- [#2940]: fix: Decode and Encode derives (#1031) [[
@benluelo
]]
- Changes lifetime obligations for field types.
- [#3064]: Sqlite explain graph [[
@tyrelr
]]
- Potentially breaking: nullability inference changes for SQLite.
- [#3123]: Reorder attrs in sqlx::test macro [[
@bobozaur
]]
- Potentially breaking: attributes on
#[sqlx::test]
usages are applied in the correct order now.- [#3126]: Make Encode return a result [[
@FSMaxB
]]- [#3130]: Add version information for failed cli migration (#3129) [[
@FlakM
]]
- Breaking changes to
MigrateError
.- [#3181]: feat: no tx migration [[
@cleverjam
]]
- (Postgres only) migrations that should not run in a transaction can be flagged by adding
-- no-transaction
to the beginning.- Breaking change: added field to
Migration
- [#3184]: [BREAKING} fix(sqlite): always use
i64
as intermediate when decoding [[@abonander
]]
- integer decoding will now loudly error on overflow instead of silently truncating.
- some usages of the query!() macros might change an i32 to an i64.
- [#3252]: fix
#[derive(sqlx::Type)]
in Postgres [[@abonander
]]
- Manual implementations of PgHasArrayType for enums will conflict with the generated one. Delete the manual impl or add
#[sqlx(no_pg_array)]
where conflicts occur.- Type equality for PgTypeInfo is now schema-aware.
- [#3329]: fix: correct handling of arrays of custom types in Postgres [[
@abonander
]]
- Potential breaking change:
PgTypeInfo::with_name()
infers types that start with_
to be arrays of the un-prefixed type. Wrap type names in quotes to bypass this behavior.- [#3356]: breaking: fix name collision in
FromRow
, returnError::ColumnDecode
forTryFrom
errors [[@abonander
]]
- Breaking behavior change: errors with
#[sqlx(try_from = "T")]
now returnError::ColumnDecode
instead ofError::ColumnNotFound
.- Breaking because
#[sqlx(default)]
on an individual field or the struct itself would have previously suppressed the error. This doesn't seem like good behavior as it could result in some potentially very difficult bugs.
- Instead, create a wrapper implementing
From
and apply the default explicitly.- [#3337]: allow rename with rename_all (close #2896) [[
@DirectorX
]]
- Changes the precedence of
#[sqlx(rename)]
and#[sqlx(rename_all)]
to match the expected behavior (rename
wins).- [#3285]: fix: use correct names for sslmode options [[
@lily-mosquitoes
]]
- Changes the output of
ConnectOptions::to_url_lossy()
to match what parsing expects.Added
- [#2917]: Add Debug impl for PgRow [[
@g-bartoszek
]]- [#3113]: feat: new derive feature flag [[
@saiintbrisson
]]- [#3154]: feat: add
MySqlTime
, auditmysql::types
for panics [[@abonander
]]- [#3188]: feat(cube): support postgres cube [[
@jayy-lmao
]]
... (truncated)
Commits
da0ffd7
chore: bump version to 0.8.09e1aa74
chore: prepare changelog entry for 0.8.0c90a7ff
fix: enableclock
andstd
features of chrono for the workspacec50572e
fix: sqlite update_hook char types (#3288)940d9fb
Add example on how to use Transaction as Executor (#3311)eaad7b2
doc: Minor rust docs fixes (#3312)4fc5b30
breaking: fix name collision inFromRow
, returnError::ColumnDecode
for `...b37b34b
chore:added a testcase forsqlx migrate add ...
(#3352)543395d
fix: build script new line at eof (#3353)4683cc3
Add support for PostgreSQL HSTORE data type (#3343)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)