Blaine Bublitz
28c639fd84
Seems like postgres needs tests like this
2020-05-20 20:33:03 -07:00
Blaine Bublitz
03ba5ca434
I think postgres needs this
2020-05-20 20:33:03 -07:00
Blaine Bublitz
2ffbe2f06e
More copy-paste errors
2020-05-20 20:33:03 -07:00
Blaine Bublitz
84f4ab5799
Attempt to fix copy-paste errors
2020-05-20 20:33:03 -07:00
Blaine Bublitz
e5b6754ac6
fix failures
2020-05-20 20:33:03 -07:00
Blaine Bublitz
7283e690ff
rustfmt
2020-05-20 20:33:03 -07:00
Blaine Bublitz
168ce9bed0
Attempt to add integration tests
2020-05-20 20:33:03 -07:00
Ryan Leckey
52408f3cbf
test(postgres): make test_enum_type more resilient
2020-04-10 14:22:18 -07:00
Ryan Leckey
d360f682f8
fix(postgres): guarantee the type name on a PgTypeInfo to always be set
...
fixes #241
2020-04-10 13:37:08 -07:00
sid
012c186069
support rename attribute in FromRow macro
2020-04-07 14:49:34 -07:00
Ryan Leckey
4dc634f8b5
postgres: add a test to prove Type derive works for structs and fix the issue with it
...
fixes #219
2020-04-01 16:40:04 -07:00
sid
40f11ebb77
Process keyword fields correctly in FromRow macro
...
This PR fixes the the incorrect handling of keywords fields of a struct in the FromRow macro.
Currently a struct with a field like 'r#type' will try to read values from a column with the exact same name with r# prefix. With this change this field will now map to a database column with the correct name 'type' without the r# prefix.
2020-03-30 19:30:50 +05:30
Ryan Leckey
3103d50be8
postgres: implement PgTypeInfo::with_name
...
- remove PgTypeInfo::with_oid
- use a new PgRawBuffer type instead of Vec<u8> for encoding
2020-03-26 19:29:49 -07:00
Ryan Leckey
dcea3f0586
fix FromRow derive to take &Row
2020-03-24 03:08:58 -07:00
Ryan Leckey
3ecc2e06ba
Run rustfmt (small issue in a test)
2020-03-23 21:24:28 -07:00
Ryan Leckey
7bfd37e888
Add a test for #[derive(FromRow)] both with and without a declared lifetime
2020-03-23 21:22:25 -07:00
Ryan Leckey
1da6feac56
postgres: use inventory_item from fixture ( still need type name resolution for the test to work reliably )
2020-03-17 21:33:51 -07:00
Ryan Leckey
fb5db48c52
Don't test custom records until we have some kind of fixtures
2020-03-17 19:42:23 -07:00
Ryan Leckey
ff722d0e62
Run rustfmt
2020-03-17 19:35:01 -07:00
Ryan Leckey
d77b2b1e97
derives: update for new Decode/Encode traits and extensively test in usage
2020-03-17 19:26:59 -07:00