Commit graph

1712 commits

Author SHA1 Message Date
Austin Bonander
93ba3d59e7 fix(logging): make query logging obey level setting for sqlx::query target
Signed-off-by: Austin Bonander <austin@launchbadge.com>
2020-12-29 15:28:06 -08:00
Kirill Bulatov
7cb49d2cd6 Fix the formatting 2020-12-29 11:30:34 -08:00
Kirill Bulatov
24c85d20d6 Add a way to disable query logging programmatically 2020-12-29 11:30:34 -08:00
dragonn
63bbd3445b Fixing don't parse all attributes as Meta in parse_container_attributes 2020-12-26 06:40:28 -08:00
Jakob Truelsen
9146929575 Do not attempt to reconnect on every Io error.
Io errors can describe a lot of things, when connecting to a database in general only
ECONNREFUSED can be hoped to be resolved by waiting. Other errors will require
user intervention
2020-12-25 19:36:54 -08:00
Jakob Truelsen
46f9f44d41 Do not call connect it a bussy loop on connection refused.
If the connection to the database is refused, it is not helpfull to hammer it with connection
attempts, instead we should wait a bit before connecting again. Here we start waiting 10ms,
doubling the wait time for every attempt before setteling out at 2s
2020-12-25 19:36:54 -08:00
Brandon
b8839c6d90 Convert to intra-crate links 2020-12-23 18:49:39 -08:00
Brandon
cbc1deb363 Fix broken link in Transaction docs 2020-12-23 18:49:39 -08:00
Jakob Truelsen
c7cf104a8f Handle dropping wait_for_conn
If wait_for_conn is dropped before completing, release will call
wake on a waker that noone is listining on. This leads to a state where
waiting will gro indefinitly while all connections are idle.

To fix this we turn waiting into a queue of unique Weak pointers.
This way if wait_for_conn is dropped the pointer in waiting cannot
be upgraded, we can use this as a signal that we shoud wake the
next one instead.
2020-12-22 20:13:40 -08:00
Southball
ffc2c6c67a Fix README.md to include mysql flag 2020-12-22 20:08:48 -08:00
Ryan Leckey
3aeb46f329
Update CHANGELOG.md 2020-12-19 11:41:03 -08:00
Ryan Leckey
b6cc0b4a76
Update CHANGELOG 2020-12-19 01:14:30 -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
Ryan Leckey
46d30d2b5c
fix: rollback another update for async-rustls 2020-12-19 00:41:43 -08:00
Ryan Leckey
2d3b9e4909
fix: rollback (another) update to rustls 2020-12-19 00:37:45 -08:00
Ryan Leckey
7bbf89c301
fix: rollback a couple package updates (forgot to check tokio) 2020-12-19 00:34:10 -08:00
Ryan Leckey
c410f88bcd
chore: update several dependencies 2020-12-19 00:26:06 -08:00
Ryan Leckey
4cf1f304f9
chore: update lockfile 2020-12-19 00:08:39 -08:00
Ryan Leckey
e9e1dcf78e
style: rustfmt 2020-12-19 00:08:29 -08:00
Ryan Leckey
0c08527fc5
Update CHANGELOG 2020-12-19 00:08:18 -08:00
Ryan Leckey
00d3211f03
add runtime-async-std-native-tls to docs.rs feature in sqlx-core 2020-12-18 23:30:29 -08:00
Ryan Leckey
0862b6e102
Merge branch 'slumber-slumber-another-fix-for-decimals' 2020-12-18 23:23:12 -08:00
Ryan Leckey
405553cc43
Merge branch 'slumber-another-fix-for-decimals' of https://github.com/slumber/sqlx into slumber-slumber-another-fix-for-decimals 2020-12-18 23:23:06 -08:00
Mike Cronce
ff05ad9a10 examples/mysql/todos/Cargo.toml: Add runtime feature 2020-12-19 07:17:55 +00:00
Mike Cronce
376ea3f596 sqlx-core/src/mysql/types/str.rs: + COLLATE_UTF8MB4_GENERAL_CI 2020-12-19 07:17:28 +00:00
Hamza
d1417dc2ec Ensure tests pass 2020-12-19 07:17:12 +00:00
Hamza
8a55ae2d32 Fix transaction wrapper 2020-12-19 07:17:12 +00:00
Augusto
ef42bd44bd Adding support for vector of bytea type in postgres 2020-12-19 07:16:04 +00:00
Federico Rampazzo
c416c94d43 Fix escaping test query 2020-12-19 07:14:09 +00:00
Federico Rampazzo
3a7fe4da94 Fix more typos 2020-12-19 07:14:09 +00:00
Federico Rampazzo
0bb5e92836 Fix typo 2020-12-19 07:14:09 +00:00
Federico Rampazzo
05e42a8cac Cargo fmt 2020-12-19 07:14:09 +00:00
Federico Rampazzo
b9e57de005 Rename mixedCase to camelCase, CamelCase to PascalCase, aligning with serde 2020-12-19 07:14:09 +00:00
Federico Rampazzo
aa0adaa434 Updated rename-all docs 2020-12-19 07:14:09 +00:00
Federico Rampazzo
00a999145f Add mixedCase and CamelCase to rename-all, added rename-all to FromRow 2020-12-19 07:14:09 +00:00
Marcin Kaźmierczak
e584618041 sqlite synchronous setting 2020-12-19 06:03:50 +00:00
Ryan Leckey
c24460d906
chore: update lockfile 2020-12-18 21:58:12 -08:00
Ryan Leckey
107d0ff870
Merge branch 'joshtriplett-types' 2020-12-18 21:57:48 -08:00
Ryan Leckey
4f261b7346
test: added an explicit cast for bstr test where sqlite failed to do an implicit cast 2020-12-18 21:56:50 -08:00
Ryan Leckey
4ee1727ba6
fix: tweak bstr and git2 Encode impls 2020-12-18 21:56:29 -08:00
Ryan Leckey
716517a84f
chore: add bstr and git2 to "all-types" feature 2020-12-18 21:56:12 -08:00
Matt Paul
a92bbc6bcb
Add docker-compose and .env 2020-12-18 21:33:53 -08:00
Matt Paul
548c3a20d8
Update readme 2020-12-18 21:33:53 -08:00
Matt Paul
b070aae909
Write test 2020-12-18 21:33:53 -08:00
Matt Paul
9cdbab2d1c
Implement TodoRepo trait 2020-12-18 21:33:52 -08:00
Matt Paul
6ac5d2269e
Extract postgres todo repo struct 2020-12-18 21:33:52 -08:00
Matt Paul
012d72464e
Make mockable-todos example compile 2020-12-18 21:33:52 -08:00
Matt Paul
44e7bb4183
Make todos example compile 2020-12-18 21:33:52 -08:00
Matt Paul
5d3936517b
Copy 'todos' example directory as starting point 2020-12-18 21:33:52 -08:00