Commit graph

1921 commits

Author SHA1 Message Date
Austin Bonander
5295ff10a5 fix: pool internals improvements
* fix `DecrementSizeGuard::drop()` only waking one `Waiter` regardless of whether that waiter was already woken
* fix connect-backoff loop giving up the size guard
* don't cut in line to open a new connection
* have tasks waiting on `acquire()` wake periodically to check if there's a connection in the queue

Signed-off-by: Austin Bonander <austin@launchbadge.com>
2021-04-06 09:04:20 -07:00
Kitsu
64e872ffd8
Remove redunant braces in type_name (#1153) 2021-04-05 13:11:37 -07:00
crajcan
469c4ac130
Correct Postgres' Length Limit for Bind Parameters (#1141)
* Bump limit for postgres' bind parameters

* Fix lingering fmt error
2021-03-29 19:39:27 -07:00
Chris Pick
c83427f8fc
Fix sqlx-cli crate link (#1139)
Co-authored-by: Chris Pick <chris@chrispick.com>
2021-03-26 21:40:32 -07:00
Ryan Leckey
b6e1275617
fix: derive(Type) should emit a forwarded impl for the compatible function 2021-03-18 16:12:00 -07:00
Charles Samborski
93b90be9f7 fix(postgres): Add support for domain types description
Fix commit updates the `postgres::connection::describe` module to add full support for domain types. Domain types were previously confused with their category which caused invalid oid resolution.

Fixes launchbadge/sqlx#110
2021-03-16 20:23:03 +01:00
Rich Murphey
edcc91c9f2
replace deprecated compare_and_swap() with compare_exchange() (#1080) 2021-03-03 08:50:12 -08:00
Nathan Roach
d5f9f08c62 Fixing NaiveTime not including SQLite 2021-02-27 01:24:25 -08:00
Nathan Roach
4b5f41eebe Fixing format, removing duplicate NaiveDate 2021-02-27 01:24:25 -08:00
Nathan Roach
9d6c5defd4 Adding derivation of any types for chrono types present in all of the featured sql types at compile time 2021-02-27 01:24:25 -08:00
Jonas Platte
e8f4eebdbe Make re-exports from other crates show up as such
… in `types` and sub-modules.
2021-02-27 01:22:22 -08:00
Imbolc
98812561f6 Update README.md 2021-02-27 01:06:42 -08:00
Imbolc
cded993246 A little ambiguity in readme 2021-02-27 01:06:42 -08:00
mareq
111265b5ab doc: Add information on the required structure of the migration scripts 2021-02-27 01:06:17 -08:00
Jonas Platte
f9ff8aee38 Mark derived impl blocks #[automatically_derived] 2021-02-27 01:05:48 -08:00
Austin Bonander
0ed524d65c fix(pool): always ping connection on release to see if it's still viable
Signed-off-by: Austin Bonander <austin@launchbadge.com>
2021-02-27 00:56:08 -08:00
Timo Kröger
68d404568e Fix changelog dates: 0.5 was released in 2021 2021-02-22 10:49:04 -08:00
Austin Bonander
1a9e0d9a52 ban Ord::{min, max} with Clippy as it's too easy to misread
It is *much* too easy to misread `x.min(y)` as "`x` should be *at least* `y`" when in fact it means the *exact* opposite, and same with `x.max(y)`. This has bitten us in the gluteus maximus a number of times both in SQLx and in private projects.

Signed-off-by: Austin Bonander <austin@launchbadge.com>
2021-02-05 13:30:35 -08: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
7127357254
release(sqlx-rt): 0.3 2021-02-04 09:11:23 -08:00
Ryan Leckey
8da44b9898
cli: update README 2021-02-04 06:37:46 -08:00
Ryan Leckey
d07ab853ba
chore: update lockfile 2021-02-04 06:33:54 -08:00
Ryan Leckey
94d0baeb52
release: 0.5 2021-02-04 06:32:50 -08:00
Ryan Leckey
12246da4d1
chore: update CHANGELOG for 0.5 2021-02-04 06:19:12 -08:00
Ryan Leckey
2fd26b5504
sqlite: remove support for u64
see https://github.com/launchbadge/sqlx/pull/919#discussion_r557106441
2021-02-04 06:17:17 -08:00
Ryan Leckey
a23013e9e5
chore: update lockfile 2021-02-04 05:54:20 -08:00
Jonas Platte
a7eeacbef3 Rewrap lines in sqlx_macros::derives::{decode, encode} 2021-02-04 05:48:26 -08:00
Jonas Platte
c251ba1e12 Fix non-overridden type name not being quoted 2021-02-04 05:48:26 -08:00
Jonas Platte
cf97315c74 Replace qualified uses of proc_macro2::TokenStream 2021-02-04 05:48:26 -08:00
Rob Ede
1803020650 update lockfile 2021-02-04 04:51:22 -08:00
Rob Ede
e197d5b0e2 rt: update to actix-rt v2 2021-02-04 04:51:22 -08:00
Tom Dohrmann
cfe61a4724 fix typos 2021-02-03 01:58:57 -08:00
Tom Dohrmann
4f5f532909 fix paths for bool & fix typo 2021-02-03 01:58:57 -08:00
Tom Dohrmann
b4dc5c353e run cargo fmt 2021-02-03 01:58:57 -08:00
Tom Dohrmann
76326c6619 use absolute paths in macros 2021-02-03 01:58:57 -08:00
wuaoxiang
31abe22e34 fix(sqlite): GROUP BY in query! cause infinite loop at compile time 2021-01-31 16:58:48 -08:00
Jonas Platte
2b2418c6d1 Add a test for nesting .map 2021-01-31 16:57:29 -08:00
Jonas Platte
7ebd362453 Update issue_104 test to use map instead of try_map 2021-01-31 16:57:29 -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
5d3858d5e3 Update CHANGELOG.md 2021-01-31 16:56:37 -08:00
Jonas Platte
6fea00304e Remove any::AnyType
It was not actually used in a meaningful way.
2021-01-31 16:56:37 -08:00
AriusX7
ed20639d47 Move Cargo.toml check to run_prepare_step 2021-01-31 16:55:57 -08:00
AriusX7
264cb09528 Don't require Cargo.toml for all subcommands 2021-01-31 16:55:57 -08:00
Jonas Platte
1b217cfac4 Make impl Acquire for &'_ Pool<DB> more general 2021-01-31 16:54:22 -08:00
Jonas Platte
77238108cf Require Acquire::Connection to be Send 2021-01-31 16:54:22 -08:00
Emilio González
df6a2a2eb6 Update sqlx-cli/README.md 2021-01-29 07:13:07 +08:00
Tim Habermaas
af7f259445 Remove fetch_scalar mention from README.md
The function no longer exists. Fixes #969.
2021-01-23 10:47:33 -08:00
Ryan Leckey
df393128f8
style: rustfmt 2021-01-20 22:29:05 -08:00