1774 Commits

Author SHA1 Message Date
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
Austin Bonander
89305873b0
fix(postgres): patch nullable inference in Postgres using EXPLAIN
BREAKING CHANGE: some columns in `query!()` et. al. output will change from `T` to `Option<T>`

breakage should be minimal in practice as
these columns will need to have been manually
overridden anyway to avoid runtime errors

Signed-off-by: Austin Bonander <austin@launchbadge.com>
2021-01-20 22:27:44 -08:00
Austin Bonander
6b036055e5
format: run rustfmt 2021-01-20 22:26:48 -08:00
Austin Bonander
5e452d9e86
fix(sqlite): remove errant println!() in sqlite/explain.rs 2021-01-20 22:26:43 -08:00
Austin Bonander
7c32928ebc
feat(macros): implement query_scalar!() and variants
Signed-off-by: Austin Bonander <austin@launchbadge.com>
2021-01-20 22:23:04 -08:00
Ryan Leckey
b0c430ed18
feat(sqlite): track nullable through left joins 2021-01-20 22:22:26 -08:00
Sho Nakatani
0c0dd6936a feat: Adds Debug, Clone auto-derive to SqliteArguments 2021-01-20 22:15:48 -08:00
David Marcin
39544b1dd4 Allow symlinks to be followed for migration files 2021-01-20 22:13:50 -08:00
Marcin Kaźmierczak
8328f893e4 sqlite test - prepared statements are reset after fetch_one 2021-01-20 22:10:59 -08:00
William Hammond
25858fc42a Improves error handling in the case of missing type 2021-01-20 22:10:03 -08:00
Ryan Leckey
05c1a8899a
Merge branch 'alex-berger-feature/inline-certificates' 2021-01-20 22:08:35 -08:00
Ryan Leckey
e03c31adcd
Merge branch 'feature/inline-certificates' of https://github.com/alex-berger/sqlx into alex-berger-feature/inline-certificates 2021-01-20 22:08:26 -08:00
Florian Hübsch
68cf2f9cdb Add constraint method to DatabaseError trait
Override `constraint` method for `PgDatabaseError`.
2021-01-20 22:00:44 -08:00
Ryan Leckey
d5e0f1b92b
refactor: rename DbOutcome to DbQueryResult 2021-01-20 21:57:26 -08:00
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