Update Rust crate sqlx to 0.6 - autoclosed #11
Reference in New Issue
Block a user
No description provided.
Delete Branch "renovate/sqlx-0.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
0.5->0.6Release Notes
launchbadge/sqlx
v0.6.2Compare Source
25 pull requests were merged this release cycle.
Added
try_fromattribute forFromRowderive [[@zzhengzhuo]]the second page. We'll be sure to clean out the backlog for 0.7.0.
IpAddrsupport in Postgres [[@rakshith-ravi]]Changed
prepare[[@cycraig]]Fixed
#[sqlx(flatten)]forFromRowderive [[@RustyYato]]#[test]from#[sqlx::test][[@alexander-jackson]]FromRowdocs [[@zlidner]]sqlite3_exec[[@madadam]]preparerace condition in workspaces [[@cycraig]]\target/thatcargo sqlx preparedepends on.If you use offline mode in your workflow, please rerun
cargo install sqlx-clito upgrade.v0.6.1Compare Source
33 pull requests were merged this release cycle.
Added
FromRowtrait [[@Erik1000]]std::net::IpAddr[[@meh]]INETvalue in Postgres is a prefix and not a full address(
/32for IPv4,/128for IPv6).timecrate [[@johnbcodes]]QueryBuilder::separated()[[@sbeckeriv]]sqlx::types::Json[[@jayy-lmao]]CloneforPoolOptions[[@Thomasdezeeuw]]push_tuplesforQueryBuilder[[@0xdeafbeef]]#[sqlx(flatten)]attribute inFromRow[[@TheoOiry]]query_builder::Separated::push_bind_unseparated()[[@0xdeafbeef]]#[sqlx::test]for general useQueryBuilderimprovements [[@abonander]]QueryAsinstead ofQuery.Changed
query_as!()andFromRow[[@abonander]]dotenvwithdotenvy[[@abonander]]Fixed
cargo sqlx prepare --merged[[@LovecraftianHorror]]Anydatabase driver [[@raviqqe]]CARGO_TARGET_DIRwhen compiling queries [[@sedrik]]BYTEAdecode [[@e00E]]SorVnotice fields are not UTF-8 [[@abonander]]rust-cacheaction for CI [[@abonander]]PgListener[[@crepererum]]mastertomainin docs [[@crepererum]]v0.6.0Compare 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_numfrom trait to inherent impl [[@AtkinsChang]]ipnetworkto 0.19 [[@paolobarbolini]]timeto 0.3 [[@paolobarbolini]]rustlsto 0.20 [[@paolobarbolini]]webpkiis no longer exposed in the API.bigdecimalto 0.3 [[@e00E]]Oideverywhere instead ofu32[[@paolobarbolini]]Type,Decode,Encodeimpls foru32for Postgres as it was misleading.Postgres doesn't support unsigned ints without using an extension. These impls were decoding Postgres
OIDsas bare
u32s without any context (and trying to bind au32to a query would produce anOIDvalue in SQL).This changes that to use a newtype instead, for clarity.
ConnectOptionstypes 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.
git2to 0.14 [[@joshtriplett]]PgLTree::push()infallible and takePgLTreeLabeldirectly [[@sebpuetz]]REAL[[@pruthvikar]]REALcolumn tof64instead off32as SQLite uses only 64-bit floats.sqlx::query!()with SQLite.uuidcrate to v1 [[@paolobarbolini]]PoolOptions::connect_timeouttoacquire_timeoutfor clarity.PoolOptions::after_connect,before_acquire,after_releasePool::close()slightly.awaiting is only necessary if you want to ensure a graceful shutdown.PoolConnection::release()which was previously deprecated in favor ofPoolConnection::detach()..close().PgHasArrayTypefor#[sqlx(transparent)]types [[@carols10cents]]It was reverted in 0.5.13 and postponed until this release.
Added
PgValueRef[[@mfreeborn]]--connect-timeout[[@abonander]]i16toAnydriver [[@EthanYuan]]ConnectOptionsandPoolOptionsonPooland 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.
crcto 3.0 [[@djc]]Fixed
Usageto the same level asInstall[[@tobymurray]][]from host string before passing to TcpStream [[@smonv]]serde_jsonin macros [[@mfreeborn]]field is never readwarnings on Postgres test [[@walf443]]unused result must be usedwarnings [[@walf443]]sqlx migrate info[[@mdtusz]]v0.5.13Compare Source
This is a hotfix that reverts [#1748] as that was an accidental breaking change:
the generated
PgHasArrayTypeimpl conflicts with manual impls of the trait.This change will have to wait for 0.6.0.
v0.5.12Compare Source
27 pull requests were merged this release cycle.
Added
PgHasArrayTypeforserde_json::{Value, RawValue}[[@abreis]]CloneforMySqlArgumentsandMssqlArguments[[@0xdeafbeef]]PgHasArrayTypefor#[sqlx(transparent)]types [[@carols10cents]]TypeforCow<str>for MySQL, MSSQL and SQLite [[@ipetkov]]--sourceto migration subcommands [[@pedromfedricci]]extra_float_digitssettable [[@abonander]]Nonefor Postgres or third-party database servers that don't support the option.PgListenerpreventingPool::close()from resolving.NUMERIC[]usingdecimalfeature [[@tm-drtina]]FromStr,Copy,PartialEq,Eqimpls for options enums [[@andrewwhitehead]]Changed
heckto 0.4 [[@paolobarbolini]]regex[[@Dylan-DPC]]libsqlite3-sys[[@espindola]]Fixed
query!()docs [[@vbmade2000]]DATABASE_URLto command spawned inprepare[[@LovecraftianHorror]]TSTZRANGE[[@mgrachev]]QueryAstoquery_as()in docs [[@mgrachev]]query!()macros [[@tyrelr]].pgpassfiles [[@SebastienGllmt]]PoolConnection: don't leak connection permit if drop task fails to run [[@abonander]]v0.5.11Compare Source
20 pull requests were merged this release cycle.
Added
AnyConnectOptionsto a specificConnectOptions[[@05storm26]]FromforAnyConnection[[@genusistimelord]]SQLITE_LOCKED[[@madadam]]sqlx migrate info[[@ifn3]]opt-levelforsqlx-macros[[@LovecraftianHorror]]Acquireexamples and alternative [[@stoically]]ltree[[@cemoktra]]lquery[[@cemoktra]]Changed
NOTICElogs [[@dbeckwith]]sqlx-data.jsoninstead of reparsing [[@LovecraftianHorror]]Fixed
as _[[@k-jun]]cargo-sqlxcommand-line definition [[@tranzystorek-io]]Option<T>forAnydriver [[@ArGGu]]BigDecimalintoNUMERIC[[@VersBinarii]]Additionally, we have introduced two mitigations for the issue of the cyclic dependency on
ahash:indexmapfrom1.7.0back to1.6.2so users can pin it to thatversion as recommended in aHash#95.
sorry about that.
preserve_orderfeature ofserde_jsonwhich 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_orderfeature:v0.5.10Compare 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
Pool::any_kind()[[@nitnelave]]Encode/Decodeimpl forCow<'_, str>[[@Drevoed]]Clone,CopyforAnyKind[[@yuyawk]]migrate!()docs [[@zbigniewzolnierowicz]].persistent(bool)toQueryAs,QueryScalar[[@akiradeveloper]]rust_decimal::DecimalinPgRange[[@meh]]PGOPTIONSand adding custom configuration options inPgConnectOptions[[@liushuyu]]either::Eitherused byExecutor::fetch_many()[[@DoumanAsh]]native-tlsforsqlx-cli[[@SonicZentropy]]AnyConnection::kind()[[@05storm26]]Changes
runtime-async-std-native-tlsas the default runtime in README.md [[@yerke]]Pooldocs in a couple places [[@abonander]]libsqlite-systo0.23.1[[@nitsky]]whoamidep optional, only pull it in for Postgres [[@joshtriplett]]rsacrate to 0.5 [[@paolobarbolini]]itoaanddirs[[@paolobarbolini]]Fixes
chrono::DurationtoPgInterval[[@yuyawk]]indexmapversion requirement to1.6.2[[@dimfeld]]PgCopyIn[[@akiradeveloper]]~/.pgpasspassword after URL parsing and fix user and database ordering [[@D1plo1d]]cargo sqlx prepare: Append to existingRUSTFLAGSinstead of overwriting [[@tkintscher]]PRAGMA keyon a new connection before anything else. [[@parazyd]]v0.5.9Compare Source
A hotfix release to address the issue of the
sqlxcrate itself still depending on older versions ofsqlx-coreandsqlx-macros.No other changes from
0.5.8.v0.5.8Compare Source
A total of 24 pull requests were merged this release cycle! Some highlights:
immutableoption on SQLite connections [[@djmarcin]]PRAGMAs and overriding those set by SQLx.COPY FROM/TO[[@montanalow], [@abonander]]v0.5.7Compare Source
resolve_pathwhen getting path forinclude_str!()[[@abonander]]PgListener::drop()[[@abonander]]PgListeneris dropped inasync fn main().v0.5.6Compare Source
A large bugfix release, including but not limited to:
MACADDRtype for Postgres [[@nomick]]PortalSuspendedfor array of composite types in Postgres [[@AtkinsChang]]sqlx::Poolinternals usingfutures-intrusive[[@abonander]]sqlx build-scriptto create abuild.rsto watchmigrations/for changes.RUSTFLAGS=--cfg sqlx_macros_unstableto tell the compilerto watch
migrations/for changes instead of using a build script.sqlx::migrate!()for details.INSERT/UPDATE/DELETE ... RETURNING ...in SQLite.A total of 25 pull requests were merged this release cycle!
v0.5.5Compare Source
v0.5.4Compare Source
v0.5.3Compare Source
[#1211] Even more tweaks and fixes to the Pool internals [[@abonander]]
[#1213] Add support for bytes and
chrono::NaiveDateTimetoAny[[@guylapid]][#1224] Add support for
chrono::DateTime<Local>toAnywithMySQL[[@NatPRoach]][#1216] Skip empty lines and comments in pgpass files [[@feikesteenbergen]]
[#1218] Add support for
PgMoneyto the compile-time type-checking [[@iamsiddhant05]]v0.5.2Compare Source
[#1149] Tweak and optimize Pool internals [[@abonander]]
[#1132] Remove
'staticbound onConnection::transaction[[@argv-minus-one]][#1128] Fix
-yflag forsqlx db reset -y[[@qqwa]][#1099] [#1097] Truncate buffer when
BufStreamis dropped [[@Diggsey]]PostgreSQL
[#1170] Remove
Self: Typebounds inEncode/Decodeimplementations for arrays [[@jplatte]]Enables working around the lack of support for user-defined array types:
[#1141] Use
u16::MAXinstead ofi16::MAXfor a check against the largest number of parameters in a query [[@crajcan]][#1112] Add support for
DOMAINtypes [[@demurgos]][#1100] Explicitly
UNLISTENbefore returning connections to the pool inPgListener[[@Diggsey]]SQLite
[#1161] Catch
SQLITE_MISUSEon connection close and panic [[@link2xt]][#1160] Do not cast pointers to
i32(cast tousize) [[@link2xt]][#1156] Reset the statement when
fetch_manystream is dropped [[@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.
This PR has been generated by Renovate Bot.
Update Rust crate sqlx to 0.6to Update Rust crate sqlx to 0.6 - autoclosedPull request closed