Orion Kindel
c7abba1e13
feat: compile-time assoc of rust <> postgres types
2023-07-07 12:17:52 -05:00
Orion Kindel
6c6a266c14
fix: dx changes
2023-07-06 22:29:28 -05:00
Steven Fackler
790af54a0f
Merge pull request #1008 from JaydenElliott/feature/rename_all_attr
...
added `rename_all` container attribute for enums and structs
2023-06-10 07:36:30 -07:00
Steven Fackler
22469d6b38
Merge pull request #1029 from laptou/master
...
allow `BorrowToSql` for non-static `Box<dyn ToSql>`
2023-05-07 13:52:52 -04:00
Ibiyemi Abiodun
80adf0448b
allow BorrowToSql
for non-static Box<dyn ToSql>
2023-05-07 13:37:52 -04:00
Steven Fackler
d92b3b0a63
Fix int2vector serialization
2023-05-01 19:45:54 -04:00
Steven Fackler
e71335ee43
fix serialization of oidvector
2023-05-01 19:33:49 -04:00
Basti Ortiz
98abdf9fa2
refactor(types): prefer matches!
macro for readability
2023-04-07 21:43:25 +08:00
Basti Ortiz
a67fe643a9
refactor(types): simplify <&str as ToSql>::to_sql
2023-04-07 21:39:37 +08:00
jaydenelliott
f4b181a201
Rename_all attribute documentation
2023-03-28 22:25:50 +11:00
Steven Fackler
5be97d9559
Release postgres-types v0.2.5
2023-03-27 18:59:29 -04:00
Joseph Koshakow
0c86f9362f
Add multirange kind and run cargo fmt
2022-11-21 18:40:37 -05:00
Joseph Koshakow
f413e66b14
Add support for multiranges
2022-11-21 18:40:37 -05:00
Steven Fackler
6c18ac09b9
rustfmt
2022-11-21 15:20:25 -08:00
Steven Fackler
7faeea5acc
Fix clippy/deprecation warnings
2022-11-21 15:19:11 -08:00
Steven Fackler
5b95068ee6
Release postgres-types v0.2.4
2022-08-20 15:28:42 -04:00
Steven Fackler
d6a6e9db83
Fix smol_str feature
2022-08-20 15:18:19 -04:00
Alex Pearson
569689deaa
encode format with types
2022-08-16 08:13:26 -04:00
Basti Ortiz
5f3e7aecad
Fix: address Clippy warnings
2022-08-15 00:37:47 +08:00
Harry Maclean
17da49912d
Impl Clone + Copy for Format
2022-08-03 23:52:10 +12:00
Harry Maclean
0d11db6940
Delegate to inner type for encode_format
...
In the ToSql impls for &T and Option<T>, override encode_format to
delegate to the impl for T. This ensures that if T overrides this
method, it also overrides it for &T and Option<T>.
2022-08-03 23:33:54 +12:00
Harry Maclean
f048f39812
Derive Debug for Format
...
It's useful to be able to inspect Format values when debugging.
2022-08-03 23:32:30 +12:00
Steven Fackler
d7b10f2cea
cleanup
2022-07-18 20:18:18 -04:00
Steven Fackler
09e86560dd
Merge pull request #836 from subzerocloud/master
...
Implement Unknown encoding for query parameters
2022-07-18 20:16:40 -04:00
BratSinot
9ae23bd822
Merge branch 'master' into smol_str
2022-07-05 15:00:01 +02:00
BratSinot
68b1be6715
rustfmt fix
2022-07-05 14:58:26 +02:00
Steven Fackler
db4c65e884
clippy
2022-07-05 07:26:32 -04:00
BratSinot
cff971d48c
Fix suggestions.
2022-07-05 09:13:19 +02:00
BratSinot
7699c78037
Add FromSql / ToSql for smol_str::SmolStr.
2022-07-04 12:25:58 +02:00
Sylwester Rąpała
6b8cb8a2be
chore: update ToSql documentation about [u8; N]
2022-06-30 00:13:19 +02:00
Sylwester Rąpała
9daf8b1e5d
feat: support [u8; N] as BYTEA
2022-06-29 22:11:12 +02:00
Maël Obréjan
1bd0d9271e
Implement ToSql
& FromSql
for Box<[T]>
2022-06-24 11:41:03 +02:00
Steven Fackler
695067c299
Release postgres-types v0.2.3
2022-04-30 08:40:50 -04:00
Mateusz Mikuła
1d9c93d2ae
Add conversions from Uuid 1.0
2022-04-20 21:57:59 +02:00
Matt Oliver
d9d283e131
Split out ltree,query,txtquery protocol parsers, add tests, rust fmt
2022-03-16 21:23:15 -05:00
Matt Oliver
6ae60d6d09
Add types to type docs
2022-03-16 21:23:15 -05:00
Matt Oliver
944b72974f
Add ltree, lquery and ltxtquery support
2022-03-16 21:23:15 -05:00
Tim Anderson
27039f6c3a
Change error handling in cidr
FromSql
implementations
2022-03-17 09:31:13 +10:00
Tim Anderson
dd7bc073f7
Document cidr type conversion and run rustfmt
2022-03-16 14:32:50 +10:00
Tim Anderson
9685f9c532
Add ToSql / FromSql for IpInet and IpCidr from cidr crate
2022-03-16 14:13:36 +10:00
Steven Fackler
86c914c6fc
Merge pull request #853 from elpiel/boxed-dyn-ToSql
...
Boxed owned query parameters
2021-12-31 16:27:29 -05:00
Steven Fackler
774016d5c7
Merge pull request #857 from malobre/feature/derive-transparent
...
Derive transparent
2021-12-30 17:54:42 -05:00
Maël Obréjan
4561d44661
Add #[postgres(transparent)]
2021-12-30 22:29:07 +01:00
Maël Obréjan
35f4c0aeef
Implement ToSql
& FromSql
for Box<str>
2021-12-26 21:09:46 +01:00
Lachezar Lechev
c516805275
impl BorrowToSql for:
...
- Box<dyn ToSql + Sync>
- Box<dyn ToSql + Sync + Send>
2021-12-16 10:37:53 +02:00
Ruslan Talpa
683868850e
remove "Unknown" and add Format enum
2021-11-19 09:22:36 +02:00
Ruslan Talpa
08b7c65f8d
remove as_string
2021-11-02 11:13:25 +02:00
Ruslan Talpa
6c407d39d5
implement Unknown encoding for query parameters
2021-11-01 12:31:59 +02:00
Steven Fackler
33703689e0
Clean up licenses
2021-10-28 19:22:13 -04:00
Steven Fackler
c7785d0b10
Release postgres-types v0.2.2
2021-09-29 19:24:46 -04:00