Ryan Leckey
401554dd2a
Merge branch 'lumeohq-del-done'
2021-01-20 21:52:07 -08:00
Jonas Platte
4d03e5be0b
rt: Normalize TOML array formatting
2021-01-20 21:51:32 -08:00
Jonas Platte
227ed73315
rt: Disable macros in actix and tokio runtimes
2021-01-20 21:51:32 -08:00
Jonas Platte
d7761c74fa
Upgrade actix-rt to 2.0.0-beta.2
2021-01-20 21:51:32 -08:00
Jonas Platte
e29b07c069
Add a changelog entry for the async runtime update
2021-01-20 21:51:31 -08:00
Jonas Platte
c5d43db312
Upgrade async runtime dependencies
...
Co-authored-by: Josh Toft <joshtoft@gmail.com>
Co-authored-by: Philip A Reimer <antreimer@gmail.com>
2021-01-20 21:50:45 -08:00
Ryan Leckey
de4a7decfb
fix(sqlite): i64 -> u64 in type docs
2021-01-20 21:50:45 -08:00
dignifiedquire
1d87b6cc8d
feat: implement unsigned int support for sqlite
2021-01-20 21:50:45 -08:00
Jonas Platte
8d0a1e9146
Remove cargo_metadata dependency
...
It was not pulling its weight.
Just look at that Cargo.lock diff!
2021-01-20 21:50:45 -08:00
Jonas Platte
e8c367db6e
sqlx-macros: Replace lazy_static by once_cell
2021-01-20 21:50:45 -08:00
Jonas Platte
890f289f2f
Fix docs for cargo sqlx prepare
2021-01-20 21:50:45 -08:00
Jonas Platte
686b227ac1
Add recommended merge behaviour settings for VSCode + rust-analyzer
2021-01-20 21:50:45 -08:00
Jonas Platte
a1e9ce638b
Clean up imports in sqlx_macros::query
2021-01-20 21:50:44 -08:00
Jonas Platte
e6af514df6
[offline] Don't read sqlx-data.json into a String before parsing
2021-01-20 21:50:44 -08:00
Jonas Platte
1e71237c04
[offline] Use buffering for JSON file reading / writing
2021-01-20 21:50:44 -08:00
Jonas Platte
1966bd5aeb
Clean up some import grouping / ordering
2021-01-20 21:50:44 -08:00
Takeru Ohta
a6aef7817b
fix to read just 20 bytes for AuthSwitchRequest data
2021-01-20 21:50:44 -08:00
Jonas Platte
70e1f7a1c7
rt: Normalize TOML array formatting
2021-01-20 21:49:46 -08:00
Jonas Platte
9f8f0650c0
rt: Disable macros in actix and tokio runtimes
2021-01-20 21:49:46 -08:00
Jonas Platte
3a8c89babf
Upgrade actix-rt to 2.0.0-beta.2
2021-01-20 21:49:46 -08:00
Jonas Platte
f13c187f26
Add a changelog entry for the async runtime update
2021-01-20 21:49:46 -08:00
Jonas Platte
cdafc8ae17
Upgrade async runtime dependencies
...
Co-authored-by: Josh Toft <joshtoft@gmail.com>
Co-authored-by: Philip A Reimer <antreimer@gmail.com>
2021-01-20 21:49:46 -08:00
Ryan Leckey
2a80700813
fix(sqlite): i64 -> u64 in type docs
2021-01-13 23:35:31 -08:00
dignifiedquire
b02c6c59cf
feat: implement unsigned int support for sqlite
2021-01-13 23:06:23 -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
Jonas Platte
501be329e7
Fix docs for cargo sqlx prepare
2021-01-13 23:05:56 -08:00
Jonas Platte
b814cbbedf
Add recommended merge behaviour settings for VSCode + rust-analyzer
2021-01-13 23:05:56 -08:00
Jonas Platte
751fe03228
Clean up imports in sqlx_macros::query
2021-01-13 23:05:56 -08:00
Jonas Platte
d2d56c69fa
[offline] Don't read sqlx-data.json into a String before parsing
2021-01-13 23:05:56 -08:00
Jonas Platte
52a7c35439
[offline] Use buffering for JSON file reading / writing
2021-01-13 23:05:56 -08:00
Jonas Platte
ce56f191ec
Clean up some import grouping / ordering
2021-01-13 23:05:56 -08:00
Takeru Ohta
043bbd5a84
fix to read just 20 bytes for AuthSwitchRequest data
2021-01-13 23:03:34 -08:00
Jonas Platte
08a76f45ae
Rename DbDone to DbOutcome
2021-01-12 14:45:01 +01:00
Jonas Platte
a1d562f04b
Remove the Done trait
2021-01-12 14:37:44 +01:00
Jonas Platte
fd0101afb2
Update some postgres trybuild tests
2021-01-12 03:39:10 -08:00
Jonas Platte
b3f78b8255
Add a trybuild test for sqlx(rename) deprecation warning
2021-01-12 03:39:10 -08:00
Jonas Platte
e2f7aa2eca
Restore support for sqlx(rename) on types, with a deprecation warning
2021-01-12 03:39:10 -08:00
Jonas Platte
fd8b2b7f8a
Rename sqlx(rename) attribute to sqlx(type_name)
2021-01-12 03:39:10 -08:00
Jonas Platte
74835bfe58
Allow chaining map / try_map on queries
...
To support `.map()` / `.try_map()` on `query!()` (and `query_as!()`).
2021-01-05 23:50:27 -08:00
Jonas Platte
9eca6413fe
Remove TryMapRow and MapRow
...
These traits were a workaround for a bug in rustc that an earlier
revision of the API triggered, but the API has since been changed.
2021-01-05 23:50:23 -08:00
Chloe Ross
2890d154a3
doc: use the fancy new intra-crate doc links everywhere
2021-01-04 18:39:03 -08:00
Austin Bonander
ef6c73c985
doc: add tables describing the right method to call on query!() et al
...
Signed-off-by: Austin Bonander <austin@launchbadge.com>
2021-01-04 12:03:42 -08:00
up9cloud
e7eaed6220
remove unnecessary Fut
2021-01-04 09:31:47 -08:00
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