Commit Graph

43 Commits

Author SHA1 Message Date
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
Jakub Wieczorek
887be86816 Add support for geo-types=0.5
Support for geo-types=0.4 (via the `with-geo-types_04` feature) has been preserved for convenience.
2020-05-25 13:45:17 +02:00
Steven Fackler
d8470a75a5 Release postgres-types v0.1.1 2020-03-05 16:00:49 -08:00
Aaron Loucks
6d8c403a8d OffsetDateTime now only supports TIMESTAMPZ 2020-02-28 19:52:20 -05:00
Aaron Loucks
2082d4f781 Add support for time-0.2 types 2020-02-28 18:05:51 -05:00
Richard Dodd
51dac3c862 Add Debug impls.
This commit makes the following changes

 - Add an opaque `Debug` impl for `Client`.
 - Add a rich `Debug` impl for `Row`.
 - Make the `Debug` impl for `Type` clearer.
 - Change the `Debug` for `Column` to be slightly neater.
2020-02-17 17:10:51 +00:00
Steven Fackler
245ccb7bab Release postgres-types v0.1.0 2019-12-23 15:31:41 -08:00
Steven Fackler
ca80f647e8 Release postgres-derive v0.4.0 2019-12-23 15:27:41 -08:00
Steven Fackler
1c5ceebe8a Release postgres-protocol v0.5.0 2019-12-23 15:23:25 -08:00
Steven Fackler
2615441c7d Doc cleanup and "real" extensible enums 2019-12-21 18:14:28 -08:00
Steven Fackler
37d0a83434 remove uuid 0.7 support 2019-12-19 16:41:26 -08:00
Michael P. Jung
edd9a5aa7f Add Hash implementation to Type 2019-12-03 20:01:43 +01:00
Steven Fackler
de2b78dcef Release postgres-types v0.1.0-alpha.2 2019-11-27 20:38:32 -05:00
Steven Fackler
2d083ec1c8 Release postgres-protocol v0.5.0-alpha.2 2019-11-27 20:32:13 -05:00
Steven Fackler
4a51a7e00a Fix serde-json 2019-11-26 16:43:10 -08:00
Steven Fackler
12c2ef79b6 Upgrade to tokio 0.2/futures 0.3 2019-11-26 16:32:36 -08:00
mibac138
a943a0e666 Support uuid 0.8 2019-10-19 19:52:07 +02:00
Steven Fackler
4745cda7b7 Release postgres-types v0.1.0-alpha.1 2019-10-14 17:56:10 -07:00
Steven Fackler
94115a81b4 Release postgres-derive v0.4.0-alpha.1 2019-10-14 17:50:04 -07:00
Steven Fackler
9ebdca23e1 Release postgres-protocol v0.5.0-alpha.1 2019-10-14 17:46:45 -07:00
Steven Fackler
20adbaf36b Fix build for real 2019-10-12 18:01:27 -07:00
Steven Fackler
ffd7245e54 Use BytesMut for messages
Benchmarks indicate that malloc accounts for a significant amount of the
runtime of queries. The message buffer accounts for ~half of that (the
other being channels), and this change should eliminate it.
2019-10-12 16:30:27 -07:00
Steven Fackler
e99d65ed97 Derive documentation 2019-10-10 17:06:54 -07:00
Steven Fackler
01cc7e4715 Clean up derived code 2019-10-10 16:03:48 -07:00
Steven Fackler
218d889042 Move postgres-derive in-tree 2019-10-09 19:23:12 -07:00
Steven Fackler
c92e95dac2 Fix tests 2019-10-07 17:18:00 -07:00
Steven Fackler
4b5bcbb602 Split ToSql/FromSql out to a separate crate
Prep for a `derive` feature.
2019-10-07 17:14:18 -07:00