Gregor Giesen
54c5d6bc3c
derive FromRow: sqlx(default) for all fields ( #2801 )
...
* derive FromRow: sqlx(default) for all fields
* error in test_struct_default fixed
* derive FromRow: struct level sqlx(default) requires and uses Default implementation
* Update sqlx-core/src/from_row.rs
Co-authored-by: Austin Bonander <austin.bonander@gmail.com>
* Update sqlx-core/src/from_row.rs
Co-authored-by: Austin Bonander <austin.bonander@gmail.com>
* satify cargo fmt
---------
Co-authored-by: Austin Bonander <austin.bonander@gmail.com>
2023-10-17 16:13:40 -07:00
Yuri Astrakhan
a824e8468c
Cleanup format arguments ( #2650 )
...
Inlined format args make code more readable, and code more compact.
I ran this clippy command to fix most cases, and then cleaned up a few trailing commas and uncaught edge cases.
```
cargo clippy --bins --examples --benches --tests --lib --workspace --fix -- -A clippy::all -W clippy::uninlined_format_args
```
2023-07-31 13:27:04 -07:00
Austin Bonander
1d1095e94f
feat: allow opt-out of PgHasArrayType
with #[derive(sqlx::Type)]
( #2619 )
...
closes #2611
2023-07-14 16:16:18 -07:00
Gregor Giesen
cc91986a42
fixed cargo format check
2023-03-13 18:06:44 -07:00
Gregor Giesen
03de69bcaa
test for FromRow -> skip attribute
2023-03-13 18:06:44 -07:00
Vladimir
5a8cd959c2
fix test
2023-03-08 18:55:53 -08:00
Vladimir
4b8fa7a4d7
feat: support new types in sqlx::query_as!
2023-03-08 18:55:53 -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
Théo OIRY
7cdb68be1a
support flatten attribute in FromRow macro ( #1959 )
...
* support flatten attribute in FromRow macro
* added docs for flatten FromRow attribute
2022-07-12 14:28:07 -07:00
Carol (Nichols || Goulding)
f5392151f3
Derive PgHasArrayType for transparent sqlx types ( #1748 )
...
Fixes #1744 .
2022-03-23 16:41:36 -07:00
Jonas Platte
fd8b2b7f8a
Rename sqlx(rename) attribute to sqlx(type_name)
2021-01-12 03:39:10 -08: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
00a999145f
Add mixedCase and CamelCase to rename-all, added rename-all to FromRow
2020-12-19 07:14:09 +00:00
dvermd
964837e255
Add #[derive(FromRow)] for tuple struct
2020-10-26 01:33:59 -07:00
Siddhant
65de83aff8
Fixed test cases
2020-10-20 15:13:18 -07:00
Siddhant
14191da283
Edited test cases to create and drop type
2020-10-20 15:13:18 -07:00
Siddhant
497f92f602
Added test cases for kebab-case enums
2020-10-20 15:13:18 -07:00
Danny Weinberg
f0f93c4f79
Fix options in tests
2020-07-24 07:25:29 -07:00
Danny Weinberg
036bd2a05d
Add SCREAMING_SNAKE_CASE rename_all option
...
This mirrors the addition of `uppercase` in https://github.com/launchbadge/sqlx/pull/304 , but for all uppercase snake case.
2020-07-24 07:25:29 -07:00
OriolMunoz
993352e9d4
Support for #[sqlx(default)]
2020-07-12 03:57:17 -07:00
Ryan Leckey
c9f3e1adca
feat(postgres): add support for built-in range types and allow derives to handle custom range types
...
Co-authored-by: Caio <c410.f3r@gmail.com>
2020-06-12 15:33:19 -07:00
Ryan Leckey
e5b6047009
feat: introduce docker-compose based testing for running locally against many database combinations
2020-05-30 17:51:55 -07:00