Austin Bonander
dcb58b0e2c
0.7.0 release ( #2575 )
...
* 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
Luiz Carvalho
4095ac44ae
chore: add deprecation notice for type ascription use ( #2483 )
...
* chore: add deprecation notice for type ascription use
* docs: type ascription deprecation
2023-05-04 12:58:57 -07:00
Austin Bonander
eade49cfb0
0.7.0-alpha.1 release
2023-02-21 14:56:54 -08:00
Austin Bonander
b5312c3b6f
Break drivers out into separate crates, clean up some technical debt ( #2039 )
...
* WIP rt refactors
* refactor: break drivers out into separate crates
also cleans up significant technical debt
2023-02-21 13:25:25 -08:00
Austin Bonander
b6cddcd014
prepare 0.6.2 release ( #2092 )
2022-09-14 15:23:06 -07:00
Austin Bonander
cb52c7c62b
chore: prep 0.6.1 release
2022-08-02 19:16:32 -07:00
Rob Ede
7adbb7fefc
refactor: remove direct actix-rt support ( #1679 )
...
actix- runtime feature flags are now aliases for tokio- flags
2022-08-01 21:48:40 -07:00
Austin Bonander
a2eceec33b
chore: replace dotenv
with dotenvy
( #2003 )
...
* chore: replace `dotenv` with `dotenvy`
The former appears to be unmaintained and the latter is a drop-in replacement.
* chore: fix all warnings
2022-07-28 14:33:44 -07:00
Marco Neumann
05d64fb722
fix: agree one a single default runtime for the whole workspace ( #1988 )
...
This fixes `cargo check --workspace` and rust-analyzer.
Also see <https://github.com/launchbadge/sqlx/discussions/1956 >.
2022-07-28 13:15:40 -07:00
Austin Bonander
17cebde64a
preparing 0.6.0 release ( #1911 )
...
* preparing 0.6.0 release
* run `cargo update` (not `upgrade`)
2022-06-16 15:53:09 -07:00
LovecraftianHorror
a2691b9635
Reuse a cached DB connection instead of always recreating for sqlx-macros
( #1782 )
...
* refactor: Reuse a cached connection instead of always recreating for `sqlx-macros`
* fix: Fix type inference issue when no database features used
* refactor: Switch cached db conn to an `AnyConnection`
* fix: Fix invalid variant name only exposed with features
* fix: Tweak connection options for SQLite with `sqlx-macros`
* fix: Remove read only option for SQLite connection
* fix: Fix feature flags regarding usage of `sqlx_core::any`
2022-05-25 18:22:09 -07:00
Paolo Barbolini
fc9c9be5e8
Update to edition 2021 ( #1808 )
...
* Update to edition 2021
* Fix running tests
2022-04-15 12:52:00 -07:00
Austin Bonander
2e026cae67
prepare 0.5.12 release ( #1800 )
...
* prepare release 0.5.12
* chore: remove mentions of things happening in 0.6
except one mention that should still be happening in 0.6
2022-04-14 14:21:15 -07:00
Paolo Barbolini
ccbbe102b2
Update RustCrypto crates ( #1625 )
...
* Update RustCrypto crates
* rsa bump
* rsa dump
* rsa bump
* Bump rsa to 0.6.0-pre crates.io release
* Bump hkdf
* Resync Cargo.lock
* Bump rsa to 0.6.0
2022-04-11 11:24:09 -07:00
Paolo Barbolini
5b85a034da
Update heck to 0.4 ( #1725 )
2022-02-28 15:51:50 -08:00
Austin Bonander
eaf41fd092
prepare 0.5.11 release ( #1715 )
2022-02-18 13:49:06 -08:00
Austin Bonander
fdbfc5dfc3
Prepare 0.5.10 release ( #1603 )
...
* fix(cli): change new `rustls` and `native-tls` features to use correct runtime feature
* chore: upgrade SQLx crates to 0.5.10, upgrade all dependencies to latest versions
chore(cli): upgraded `clap` to `3.0.0-rc.9`
* fix(tests/sqlite): ignore `issue_1467()` as spuriously failing
I'm well aware of the principle that a spuriously failing test is a failing test, but even though I have it outputting the seed used with a reproducible PRNG, I can't reproduce the failures locally, so 🤷 .
* chore: add CHANGELOG entry for 0.5.10
2021-12-29 17:25:49 -08:00
Austin Bonander
9abe9b3ac5
prepare 0.5.9 hotfix release ( #1469 )
2021-10-01 15:52:52 -07:00
Austin Bonander
1b5dd6514b
preparing 0.5.8 release ( #1466 )
...
* preparing 0.5.8 release
* fix warnings before release
2021-10-01 14:45:25 -07:00
Paolo Barbolini
efd08cc4b3
Reduce futures-util features ( #1427 )
...
* Reduce futures-util features
* Remove unused futures crate from sqlx-macros
2021-09-08 12:36:05 -07:00
Austin Bonander
3749e0ea37
chore: prepare 0.5.7 (hotfix) release ( #1394 )
2021-08-20 17:14:42 -07:00
Austin Bonander
207e6db2ce
chore: bump versions of sqlx-* in dependencies
2021-08-17 12:49:02 -07:00
Austin Bonander
6bb1c716bd
preparing 0.5.6 release ( #1382 )
...
* fix(pool): reenable connection reaper
* fix warnings
* chore: bump published crates to 0.5.6
* chore: update CHANGELOG.md for 0.5.6
2021-08-17 12:44:24 -07:00
nomick
be189bd11e
Support MACADDR in Postgres ( #1329 )
2021-07-19 16:55:53 -07:00
Ryan Leckey
694a2ac478
release: v0.5.5
2021-05-24 09:34:34 -07:00
Ryan Leckey
5d9c292132
release: v0.5.4
2021-05-22 16:38:54 -07:00
Jonas Platte
901f858fbc
sqlx-data.json removal prep work ( #1184 )
...
* macros: Reduce I/O
by doing all .env and environment variable reading inside a Lazy initializer.
* Use the default runtime and TLS backend for all examples
Before, rust-analyzer was always hitting the
"only one runtime can be enabled" compile_error in sqlx-rt.
2021-05-21 17:33:56 -07:00
Ryan Leckey
13f7c7124a
release: v0.5.3
2021-05-21 17:27:15 -07:00
Ryan Leckey
f7775f7fde
release: 0.5.2
2021-04-15 18:40:46 -07:00
Ryan Leckey
cbe820760f
release: 0.5.1
2021-02-04 09:16:11 -08:00
Ryan Leckey
efccd6c9b8
chore: update sqlx-rt to 0.3
2021-02-04 09:15:00 -08:00
Ryan Leckey
94d0baeb52
release: 0.5
2021-02-04 06:32:50 -08:00
Jonas Platte
d3b7a0783e
macros: Only depend on serde when it's actually used
2021-01-31 16:57:29 -08:00
Jonas Platte
6ad0a9ada7
macros: Only depend on once_cell when it's actually used
2021-01-31 16:57:29 -08:00
Jonas Platte
0758ffd10e
Remove cargo_metadata dependency
...
It was not pulling its weight.
Just look at that Cargo.lock diff!
2021-01-13 23:05:56 -08:00
Jonas Platte
5d564167ca
sqlx-macros: Replace lazy_static by once_cell
2021-01-13 23:05:56 -08:00
Ryan Leckey
80d02d203f
fix: when sqlx-macros enables migrate feature, enable in sqlx-core
2020-12-19 01:11:06 -08:00
Ryan Leckey
565d0a91a3
release: v0.4.2
2020-12-19 01:07:50 -08:00
Joe Grund
3e1da43434
Support workspaces for offline feature
...
This patch enables having a top-level `sqlx-data.json` file within a
workspace.
It does this by using a full clean / check instead of `cargo rustc`
which fails on a workspace.
A `--merged` flag is introduced to switch to the workspace behavior
Fixes #353 .
Signed-off-by: Joe Grund <jgrund@whamcloud.io>
2020-12-19 05:17:07 +00:00
Ryan Leckey
0b03dc6762
prepare v0.4.0
2020-11-12 07:46:13 -08:00
Jonas Platte
b14266ba2e
Add rustls support
2020-11-12 07:32:59 -08:00
Jonas Platte
a161bcba05
Rename cargo features in preparation for rustls support
2020-11-12 07:32:21 -08:00
Chloe Ross
1949445cf0
other: don't deadname self
2020-07-31 04:14:48 -07:00
Julius de Bruijn
1a59d3308a
Pg: Implementing BIT
and VARBIT
using BitVec
2020-07-27 03:36:44 -07:00
Ryan Leckey
22f1f93b79
chore: prepare sqlx v0.4.0-beta.1 and sqlx-cli v0.1.0-beta.1
2020-07-27 01:43:02 -07:00
Raphaël Thériault
e5e9665bd9
Add migrate! macro for embedded migrations
2020-07-23 14:22:50 -04:00
Julius de Bruijn
dce7c71c37
Add macro extensions for Decimal
2020-07-09 12:32:19 -07:00
Ryan Leckey
8d188c5f1a
feat: expose column information on Row
...
- add database-specific Column types: MySqlColumn, PgColumn, etc.
- add Row::columns() -> &[DB::Column]
- add Row::column(I) and Row::try_column(I)
2020-07-05 03:48:36 -07:00
Austin Bonander
17e88ac1a4
perf: implement pool benchmark, make fairness an option
2020-07-03 05:59:20 -07:00
Ryan Leckey
6497d67b6a
feat(mssql): add macro support
2020-06-07 16:29:46 -07:00