Commit Graph

2688 Commits

Author SHA1 Message Date
Mateusz Mikuła
1d9c93d2ae Add conversions from Uuid 1.0 2022-04-20 21:57:59 +02:00
Steven Fackler
024794abb7
Merge pull request #886 from neondatabase/funbringer/fix-some-warnings
Hide `tokio_postgres::client::SocketConfig` behind "runtime" feature
2022-04-16 10:18:23 -06:00
Dmitry Ivanov
cf381ce6a2 Hide tokio_postgres::client::SocketConfig behind "runtime" feature
This fixes warnings reported by rust 1.60 when doing the following:

```shell
$ cargo test --manifest-path tokio-postgres/Cargo.toml --no-default-features
```
2022-04-16 18:06:01 +03:00
Steven Fackler
812dfa710a
Update ci.yml 2022-04-16 09:10:09 -04:00
Steven Fackler
38da7fa8fe
Merge pull request #875 from halfmatthalfcat/ltree-support
Add ltree, lquery and ltxtquery support
2022-03-22 20:07:32 -04:00
Matt Oliver
6fae6552ec Fix tests, replace match with matches! 2022-03-16 21:23:15 -05: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
Steven Fackler
a638adaf79
Merge pull request #877 from timando/cidr
Add ToSql / FromSql for IpInet and IpCidr from cidr crate
2022-03-16 21:03:32 -04: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
25cabd5d85
Merge pull request #870 from sfackler/dependabot/cargo/tokio-util-0.7
Update tokio-util requirement from 0.6 to 0.7
2022-02-11 09:01:11 -05:00
dependabot[bot]
7fd748ba96
Update tokio-util requirement from 0.6 to 0.7
Updates the requirements on [tokio-util](https://github.com/tokio-rs/tokio) to permit the latest version.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/commits)

---
updated-dependencies:
- dependency-name: tokio-util
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-11 13:47:41 +00:00
Steven Fackler
8262109598
Merge pull request #865 from sfackler/dependabot/cargo/parking_lot-0.12
Update parking_lot requirement from 0.11 to 0.12
2022-01-31 09:17:57 -05:00
Steven Fackler
a07a39cc87
Update ci.yml 2022-01-31 09:11:29 -05:00
dependabot[bot]
842e5cfdcb
Update parking_lot requirement from 0.11 to 0.12
Updates the requirements on [parking_lot](https://github.com/Amanieu/parking_lot) to permit the latest version.
- [Release notes](https://github.com/Amanieu/parking_lot/releases)
- [Changelog](https://github.com/Amanieu/parking_lot/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Amanieu/parking_lot/compare/0.11.0...0.12.0)

---
updated-dependencies:
- dependency-name: parking_lot
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-31 13:15:32 +00: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
Steven Fackler
18a4e0543c
Merge pull request #856 from malobre/feature/box_str_sql
Implement `ToSql` & `FromSql` for `Box<str>`
2021-12-29 20:34:45 -05: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
630f179892
Release postgres-protocol v0.6.3 2021-12-10 19:21:59 -05:00
Steven Fackler
c3a029e60c
Merge pull request #849 from sfackler/md-updates
Update hash crates
2021-12-08 18:40:57 -05:00
Steven Fackler
76cd380e5a
clippy 2021-12-08 18:35:18 -05:00
Steven Fackler
8ead6e6c69
Update hash crates 2021-12-08 18:30:44 -05:00
Steven Fackler
c5591c810c
Release postgres-derive v0.4.1 2021-11-23 23:50:27 -05:00
Steven Fackler
385bf35803
Merge pull request #841 from sfackler/fix-raw-idents
Fix handling of raw ident fields in derive
2021-11-23 18:49:21 -05:00
Steven Fackler
dc591ff2ca
Fix handling of raw ident fields in derive 2021-11-23 23:40:00 -05: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
84fa5fa1d0 Release tokio-postgres v0.7.5 2021-10-29 21:33:07 -04:00
Steven Fackler
8bb5712406 Implement ToStatement for String
Closes #794
2021-10-28 19:41:32 -04:00
Steven Fackler
da6e2b1164
Merge pull request #835 from ilslv/master
Fix transaction not being rolled back on `Client::transaction()` `Future` dropped before completion
2021-10-28 19:30:25 -04:00
Steven Fackler
33703689e0 Clean up licenses 2021-10-28 19:22:13 -04:00
Steven Fackler
a47a8edf98 Remove src/url.rs from THIRD_PARTY
It hasn't existed in the project for quite a while
2021-10-28 19:16:57 -04:00
Steven Fackler
24b01add82 Don't use a built container for test postgres 2021-10-28 19:08:38 -04:00
ilslv
f6189a95f2 Fix transaction not being rolled back on Client::transaction() Future dropped before completion 2021-10-28 12:10:30 +03:00
Steven Fackler
0adcf58555 Release tokio-postgres v0.7.4 2021-10-19 19:58:49 -04:00
Steven Fackler
7f38b392e7
Merge pull request #833 from sfackler/deferred-constraint
Fix commit-time error reporting
2021-10-19 19:57:42 -04:00
Steven Fackler
b2df11579f Fix commit-time error reporting
Closes #832
2021-10-19 19:36:14 -04:00
Steven Fackler
d45461614a Release postgres v0.19.2 2021-09-29 19:38:29 -04:00
Steven Fackler
8542d078bf Release tokio-postgres v0.7.2 2021-09-29 19:34:32 -04:00
Steven Fackler
349c38b1fe Release postgres-protocol v0.6.2 2021-09-29 19:27:15 -04:00
Steven Fackler
c7785d0b10 Release postgres-types v0.2.2 2021-09-29 19:24:46 -04:00
Steven Fackler
3854aecbb1
Merge pull request #825 from lnicola/gate-doctests
Add feature gates for doctests
2021-09-25 13:13:15 -04:00
Laurențiu Nicola
34d8b77644 Add feature gates for doctests 2021-09-25 20:04:41 +03:00