Commit Graph

45 Commits

Author SHA1 Message Date
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
Joseph Koshakow
664345f9ec Update PostgreSQL files to most recent version 2022-11-21 18:40:37 -05:00
Steven Fackler
91ce9cdeec fix clippy 2021-04-24 10:34:51 -04:00
Steven Fackler
05a0643cc0 Fix matching on SqlState
Closes #756
2021-04-24 10:19:23 -04:00
Steven Fackler
316c6dc3dc Update codegen sources to 13.1 2020-12-26 14:09:58 -05:00
Steven Fackler
d1f9d6d802 fix clippy 2020-10-15 21:14:13 -04:00
Steven Fackler
c845a3683e rustfmt 2020-06-10 16:56:22 -07:00
Steven Fackler
3e67dbb773 Fix clippy 2020-06-10 16:54:07 -07:00
Michael P. Jung
edd9a5aa7f Add Hash implementation to Type 2019-12-03 20:01:43 +01:00
Steven Fackler
a22f63b5bb Fix sqlstate generation 2019-12-02 17:55:08 -08:00
Steven Fackler
dc9d07e246 Return a custom TlsStream rather than a ChannelBinding up front 2019-10-27 14:25:58 -07:00
mibac138
9a83196e23 Update dependencies 2019-10-19 20:34:11 +02:00
Steven Fackler
c7055dc665 Clippy fixes 2019-10-09 15:20:23 -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
Steven Fackler
42f1f9675c Update codegen to Postgres 12
They've removed the old header files so some updates were required
2019-10-07 16:37:25 -07:00
Steven Fackler
d8b5412602 Upgrade errcodes to Postgres 12 2019-10-03 18:25:25 -07:00
Steven Fackler
4a5d30b4c6 Buffer copy_in messages
Otherwise there's a ton of overhead passing tons of tiny messages over
channels.
2019-06-22 21:22:03 -07:00
Steven Fackler
9e4f4d3496 More clippy 2019-03-05 18:26:55 -08:00
Steven Fackler
04ce4bb7a1 Run clippy 2018-12-09 21:44:07 -08:00
Steven Fackler
69a016fd85 Rename optional crate imports 2018-12-08 18:07:09 -08:00
Steven Fackler
6ff59acdd2 rustfmt 2018-12-08 17:53:30 -08:00
Steven Fackler
4d16fbb906 Get rid of postgres-shared 2018-12-08 17:39:20 -08:00
Steven Fackler
2777703ef3 Make constants associated 2018-04-22 15:01:55 -07:00
Steven Fackler
fcbed9175b Allow FromSql to borrow from the buffer
This allows for in-place deserialization of text and bytea values in
particular.

Row::get_bytes is removed since it previously existed for this use case.

Closes #281
2018-04-22 13:16:34 -07:00
Steven Fackler
863a295aae Upgrade socket2 and log 2018-01-09 20:32:55 -08:00
Steven Fackler
bec973c776 Make Type an opaque type 2017-07-09 00:02:45 -07:00
Steven Fackler
01a1529624 Make SqlState into an opaque type rather than enum 2017-07-08 20:52:36 -07:00
Steven Fackler
6a86f8dd85 Rustfmt 2017-06-30 17:35:17 -10:00
Steven Fackler
588ecc8a6c Update codegen to Postgres 10 beta 1 2017-05-18 20:32:21 -07:00
Steven Fackler
4c91a68dcc try! -> ? 2017-02-14 22:46:19 -08:00
Steven Fackler
d08dc136bc Move types out to postgres-shared 2016-12-21 08:14:24 -08:00
Steven Fackler
3b8fc56296 Move errors to shared 2016-12-20 16:07:45 -08:00
Steven Fackler
9d53e677ff Update to protocol 0.2 2016-12-18 16:13:12 -08:00
Steven Fackler
3832c53deb Fix clippy warnings 2016-09-24 14:35:21 -07:00
Steven Fackler
f5ec24de78 Use type conversions from protocol crate
This also changes ToSql and FromSql to explicitly deal in byte buffers.
2016-09-14 23:27:33 -07:00
Steven Fackler
7509d34407 Update codegen to Postgres 9.6 RC1 2016-09-10 11:47:18 -07:00
Steven Fackler
7d07e61e9c Remove fixmes in Type builder 2016-09-10 10:30:47 -07:00
Steven Fackler
48f2825a92 Little style tweak 2016-06-15 19:07:14 -07:00
Steven Fackler
15fe3f7c5f Rustfmt 2016-02-21 20:02:34 -08:00
Steven Fackler
2ed1367a3b Adjust Type generation to match old behavior 2016-02-21 18:53:16 -08:00
Steven Fackler
844a03932a Fix back compat for TimstampTZ 2016-02-21 13:54:49 -08:00
Steven Fackler
49bbe0373d Properly HTML escape docs for Type 2016-02-21 13:45:31 -08:00
Steven Fackler
c185bcf43f Use modules rather than include! for codegenned stuff 2016-02-21 13:37:29 -08:00
Steven Fackler
ed789cfad8 Use persistent codegen for SqlState and Type
Makes it easier to detect changes and speeds up the build.
2016-02-21 13:30:31 -08:00