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
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
Laurențiu Nicola
be0d71fad5
Add support for time 0.3
2021-09-24 08:26:37 +03:00
Steven Fackler
3e4be86531
more clippy
2021-08-10 21:17:50 -04:00
Aleš Bizjak
da4e323578
Implement BorrowToSql for an additional type.
...
Closes #811 .
2021-07-25 22:02:28 +02:00
Lukas Kalbertodt
6c1542f634
Add FromSql
and ToSql
impls for arrays (guarded behind feature)
...
This is feature-gated because those impls require Rust 1.51.
2021-07-13 16:03:35 +02:00
JR Smith
3b7b8000ce
Made requirement of setting feature flags to access derive macros more explicit in the documentation.
2021-07-01 16:04:19 -04:00
Tim Anderson
a8383dcc29
Add support for eui48 version 1.0
2021-06-03 10:54:37 +10:00
Steven Fackler
32524569c2
Release postgres-types v0.2.1
2021-04-03 17:10:03 -04:00
Michael Kirk
8b8491f31d
retain support for geo-types-0.6
2021-01-25 14:52:02 -06:00
Michael Kirk
37fb39202a
Added support for geo-types
0.7 via with-geo-types-0_7
feature
2021-01-25 09:30:30 -06:00
Jeff Davis
f3cbc8ce04
PgLsn type.
2021-01-09 15:18:26 -08:00
Steven Fackler
316c6dc3dc
Update codegen sources to 13.1
2020-12-26 14:09:58 -05:00
Steven Fackler
71fc3e74bd
Release postgres-types v0.2.0
2020-12-25 09:02:02 -05:00
Steven Fackler
06dcebf248
Release postgres-protocol v0.6.0
2020-12-25 08:51:47 -05:00
Nikhil Benesch
f1729e4636
deps: upgrade to tokio v1.0 ecosystem
2020-12-24 18:38:05 -05:00
Steven Fackler
bbf31696bb
Cleanups
2020-10-27 19:45:55 -04:00
Steven Fackler
46b4b8008c
Update postgres-types/src/lib.rs
2020-10-27 19:16:20 -04:00
Bernardo Uriarte Blanco
42dcfb584a
seal BorrowToSql
2020-10-27 20:23:57 +01:00
Bernardo Uriarte Blanco
0eab5fad70
make iterators from &dyn ToSql
or T: ToSql
work as parameters
2020-10-26 20:59:28 +01:00
Steven Fackler
7fd04e7a21
Release postgres-types v0.1.3
2020-10-17 15:00:47 -04:00
Steven Fackler
d1f9d6d802
fix clippy
2020-10-15 21:14:13 -04:00
Dan Burkert
aadd90854d
derive Clone, PartialEq and Eq for postgres_types::Json
...
It's a bit unwieldy using the `Json` type in structs without this.
`Json` is 'just data', so I think it's usually appropriate to consider
instances to be cloneable and testable for equivalence.
2020-10-02 15:56:50 -07:00
Nikhil Benesch
bb961edcc4
Disable chrono's "oldtime" feature to drop time v0.1
...
The latest version of chrono, v0.4.16, permits removing its dependency
on the long-deprecated time v0.1 crate by disabling the "oldtime"
feature.
For backwards compatibility, chrono is leaving the "oldtime" feature on
by default, so disabling the "oldtime" feature requires disabling all
default features and then re-enabling the one default feature ("clock")
that rust-postgres needs.
Note that this change does not cause any backwards-compatibility
problems for users of rust-postgres. The "oldtime" feature controls only
whether `time_v01::Duration` and `chrono::Duration` are the same type
and does not affect any of the APIs used by rust-postgres.
2020-09-25 15:36:51 -04:00
Nikhil Benesch
a30f0b6c05
Use checked arithmetic when decoding into chrono types
...
This avoids an overflow panic if the timestamp is the special "infinity"
or "-infinity" value and produces an error instead.
Fix #640 .
2020-07-30 22:52:56 -04:00
Steven Fackler
fe904154df
Release postgres-types v0.1.2
2020-07-03 15:16:54 -04:00
Jakub Wieczorek
5d9acb1eb1
Add support for the 0.6 version of geo_types
.
...
This change drops the support for the 0.5 version by renaming the feature,
as no version of `postgres` with it included has ever been released.
2020-06-24 12:28:21 +02:00
Steven Fackler
a12efc41d7
rustfmt
2020-06-10 16:46:55 -07:00
Steven Fackler
2b59b7e63c
fix clippy
2020-05-25 05:54:19 -07:00