Commit graph

291 commits

Author SHA1 Message Date
Austin Bonander
28cfdbb40c
Release/0.8.3 ()
* chore: create 0.8.3 release

* fix: prevent dead-branch warning from Clippy in query macros

cc 

* fix: move `#[allow]` from previous commit to the `if` block
2025-01-03 20:28:57 -08:00
Ilya Bizyaev
35c78f5175
Support building with rustls but native certificates ()
This adds an alternative TLS configuration that relies on rustls-native-certs,
for users who cannot bundle the MPL-licensed webpki-roots.

The approach is copied from reqwest:

* https://github.com/seanmonstar/reqwest/blob/3ad6e02cd/Cargo.toml#L48
* https://github.com/seanmonstar/reqwest/blob/3ad6e02cd/src/async_impl/client.rs#L513

— except error handling is relaxed to accommodate for tls_config.root_cert_path.
2024-11-27 16:39:18 -08:00
依云
5b8bb3b28b
Add a "sqlite-unbundled" feature that dynamically links to system libsqlite3.so library ()
* Add a "sqlite-unbundled" feature that dynamically links to system libsqlite3.so library

* update README abouot the newly-added `sqlite-unbundled` feature

* Update README.md to make it clear with bulleted list

Co-authored-by: Austin Bonander <austin.bonander@gmail.com>

* more cfg feature updates

Co-authored-by: Austin Bonander <austin.bonander@gmail.com>

* update documentation in sqlx-sqlx/src/lib.rs too

and also mention possible build time increasement.

* cargo fmt

* Add "sqlite-unbundled" feature to sqlx-cli

* Add sqlite-unbundled to gituhb actions tests

* cfg(feature = "sqlite") => cfg(any(feature = "sqlite", feature = "sqlite-unbundled"))

* fix

* CI: make sqlite-unbundled tests workaround required-features

by duplicating the relevant test section

* use an internal "_sqlite" feature to do the conditional compilation

---------

Co-authored-by: Austin Bonander <austin.bonander@gmail.com>
2024-10-02 11:55:21 -07:00
John Vandenberg
063953fe60
chore: Update async-std v1.13 in lock file () 2024-09-08 21:52:59 -07:00
Austin Bonander
c253e65819 chore: prepare 0.8.2 release 2024-09-03 14:14:56 -07:00
Austin Bonander
998344dcb7 doc(FAQ): refine MSRV policy 2024-09-03 14:14:56 -07:00
Austin Bonander
9c94ce891a chore: prepare release 0.8.1 2024-08-24 00:17:41 -07:00
Austin Bonander
0aa06763e5 chore(mysql): create regression test for RUSTSEC-2024-0363 2024-08-23 23:39:32 -07:00
Austin Bonander
791433afbb chore(sqlite): create regression test for RUSTSEC-2024-0363 2024-08-23 23:39:32 -07:00
Austin Bonander
b1539b60a1 chore(postgres): create regression test for RUSTSEC-2024-0363 2024-08-23 23:39:32 -07:00
Austin Bonander
2ab7565bd8 chore: configure clippy cast lints at workspace level 2024-08-23 23:39:32 -07:00
Dirkjan Ochtman
a892ebc6e2
Upgrade to rustls 0.23 () 2024-08-04 16:39:13 -07:00
Frank Elsinga
49d5dd7f42
bumped to libsqlite3-sys=0.30.1 () 2024-07-27 17:59:00 -07:00
Austin Bonander
6651d2df72
Fix CI after Rust 1.80, remove dead feature references ()
* fix(ci): update workflows/examples.yml

* Removed archived `actions-rs` actions
* Upgraded `Swatinem/rust-cache`, `actions/checkout`, `actions/download-artifact`, `actions/upload-artifact`

* chore: deprecate `AnyKind`

* fix: remove dead references to DB features in `sqlx-core`

This reactivates a couple of tests that had stopped working.

* chore(ci): move sqlx-cli checks to their own workflow

* fix(ci): remove remaining `uses: actions-rs/cargo`

* fix warnings

* chore: add titles to sqlx-cli jobs

* fix warnings (2)

* fix error in pool example

* fix warnings (3)

* fix query_builder test

* fix: don't run CLI tests on Windows

* chore: upgrade `rust-toolchain` to 1.80

* fix(postgres): fix missing Tokio specialization in `PgCopyIn`

Caught by the new `unexpected_cfgs` lint.

* fix new warnings
2024-07-26 23:15:32 -07:00
Yuta Kobayashi
f2fea27cba
Fix encoding and decoding of MySQL enums in sqlx::Type () 2024-07-25 02:47:36 -07:00
Austin Bonander
da0ffd7dcf chore: bump version to 0.8.0 2024-07-22 18:36:35 -07:00
Austin Bonander
c90a7fff49 fix: enable clock and std features of chrono for the workspace
fixes 
2024-07-22 18:36:35 -07:00
Frank Elsinga
b37b34bd04
chore:added a testcase for sqlx migrate add ... () 2024-07-19 18:50:18 -07:00
Joshua Potts
d1f180fbc5 fix: Minimally upgrade minimal dependencies to resolve build issues on declared minimum versions
Signed-off-by: Joshua Potts <8704475+iamjpotts@users.noreply.github.com>
2024-07-11 11:59:15 -07:00
Austin Bonander
16e3f1025a fix(postgres): add missing type resolution for arrays by name 2024-07-08 00:14:19 -07:00
BlackSoulHub
6a4f61e3b3
Update time to 0.3.36 ()
* update time to 0.3.35

* fmt fix

* update version to 0.3.36
2024-04-11 19:26:12 -07:00
Cody Casterline
352b02de6a
Bump libsqlite3-sys to v0.28 ()
This includes SQLite v3.45(.1), which includes new JSONB functionality.
2024-03-30 15:59:51 -07:00
Luiz Carvalho
1c7b3d0751
feat: new derive feature flag ()
* feat: new derive feature flag

* doc: add new derive flag to readme

* fix: macros feature flag cfg
2024-03-30 15:24:56 -07:00
Guilherme Favero Ferreira
c5357f18e5 bump bigdecimal version 2024-03-11 23:57:07 -07:00
Austin Bonander
30db1f8ffc chore: bump version to 0.8.0-alpha.0 2024-03-11 22:38:24 -07:00
Austin Bonander
248d6170a7 chore: prepare 0.7.4 release 2024-03-11 22:01:04 -07:00
Austin Bonander
e5c18b354e fix: gate sqlcipher testing behind cfg to make development less annoying 2024-03-05 18:33:56 -08:00
iamjpotts
235604fbce
chore(dev-deps): Upgrade env_logger from 0.9 to 0.11 ()
Signed-off-by: Joshua Potts <8704475+iamjpotts@users.noreply.github.com>
2024-01-25 23:30:25 -08:00
iamjpotts
3946cc82db
chore(deps): Upgrade criterion to 0.5.1 ()
Signed-off-by: Joshua Potts <8704475+iamjpotts@users.noreply.github.com>
2024-01-25 23:30:14 -08:00
iamjpotts
5890afe95b
chore(deps): Replace unmaintained tempdir crate with tempfile ()
Signed-off-by: Joshua Potts <8704475+iamjpotts@users.noreply.github.com>
2024-01-22 20:16:06 -08:00
Austin Bonander
213ecd743c chore: upgrade libsqlite3-sys 2023-11-22 17:55:04 -08:00
Austin Bonander
31d402b469 chore: prepare 0.7.3 release 2023-11-22 17:43:46 -08:00
Austin Bonander
9fc9e7518e
feat: Text adapter () 2023-11-22 17:06:47 -08:00
A248
b1387057e5
Depend on version of async-std with non-private spawn-blocking () 2023-10-07 21:00:45 -07:00
Austin Bonander
e80291b2a7
chore: prepare 0.7.2 release () 2023-09-26 14:35:56 -07:00
Joakim Malmberg
8cad54cc9f
Add postgres chat exmaple ()
Co-authored-by: Stephen <webmaster@scd31.com>
2023-07-24 16:09:06 -07:00
Austin Bonander
c70cfaf035
prepare 0.7.1 release () 2023-07-14 17:24:52 -07:00
Luiz Carvalho
3662bdab84
fix(sqlite): encode bool as integer () 2023-07-14 16:27:53 -07:00
kitterion
310af5c2c8
Fix optional dependency on sqlx-macros () 2023-07-06 16:01:21 -07:00
Austin Bonander
dcb58b0e2c
0.7.0 release ()
* WIP preparing 0.7.0 release

* fix: re-enable examples

* fix doctests in `sqlx-core`

* cherry-pick CHANGELOG entry for 0.6.3

* add actions workflow for examples

* fix(cli): close connection after running migrations

* fix examples

* fix(sqlite): fix parsing of URLs via `Any`

* fix(example): don't let Postgres `listen` example run forever

* fix Postgres `transaction` example
2023-07-03 14:37:37 -07:00
Wesley Norris
d750f28ef0
Bump mac_address to 1.1.5 () 2023-06-12 12:44:55 -07:00
Austin Bonander
253d8c9f69
0.7.0-alpha.3 release 2023-05-11 16:49:24 -07:00
Mauro D
af0f04a108
Bump to libsqlite3-sys 0.26 () 2023-05-11 15:43:52 -07:00
tyrelr
0dfebb202f
Add and improve sqlite describe performance benchmarks ()
* add basic describe benchmarks

* separate memory from query state

* move branch tracking & deduplication logic into a dedicated BranchList class

* Convert to using IntMap

* move intmap to a separate module, drop dead code, clean up function names

* Update Cargo.lock

* skip branches to check foreign keys, as they generally shouldn't impact query result type
2023-05-08 12:44:28 -07:00
Austin Bonander
15458fa9d6
fix: update docs.rs features metadata 2023-03-16 17:11:46 -07:00
Austin Bonander
551d622cc1 0.7.0-alpha.2 release 2023-03-16 17:03:14 -07:00
Coda Hale
bce16a5c1d fix: drop old time 0.1.44 dep
chrono 0.4's default features include the `oldtime` feature which pulls in time 0.1.44.
This is an unmaintained version with soundness issues () and is rarely needed.
If downstream users require this dependency, they can enable the feature themselves.
2023-03-14 18:07:52 -07:00
grantkee
aff632a9ec bump libsqlite3-sys to patched version 2023-03-10 14:37:09 -08:00
Austin Bonander
eade49cfb0
0.7.0-alpha.1 release 2023-02-21 14:56:54 -08:00
Trangar
ad8ef8d608 Added regexp support in sqlite ()
* CHANGELOG: mention that users should upgrade CLI

* Added regexp support in sqlite

* Added a with_regexp function to sqliteconnectoptions

* Fixed tests

* Undo CHANGELOG.md change

---------

Co-authored-by: Austin Bonander <austin.bonander@gmail.com>
Co-authored-by: Victor Koenders <victor.koenders@qrtech.se>
2023-02-21 13:25:25 -08:00