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
c7a8adf2df
remove unneeded ref
2021-04-05 19:07:27 -04:00
Steven Fackler
50fa995cf9
Reorder a bit
2021-04-05 19:04:34 -04:00
Steven Fackler
a8ac31aa0f
Merge pull request #724 from vemoo/transaction-client-method
...
add `client` method to `GenericClient`
2021-04-05 19:02:37 -04:00
Steven Fackler
844a27a074
Add clear_type_cache to blocking client
2021-04-03 16:55:59 -04:00
Dmitriy Pleshevskiy
558c169b89
feat: add method to clear types cache
...
Closes #753
2021-04-01 23:39:50 +03:00
hansolshin
71cb6eef68
Add is_closed method to Error
2021-03-28 23:00:49 +09:00
Steven Fackler
49db9cd33c
upgrade socket2
2021-03-18 20:39:43 -04:00
Steven Fackler
ad2c8cf592
clippy
2021-03-16 20:44:50 -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
Steven Fackler
cc6a0ada01
Add back Error::as_db_error
...
Closes #732
2021-01-16 14:19:14 -05:00
Lachezar Lechev
41375ebd3c
Update tokio version in feature docs
2021-01-13 11:53:29 +02:00
Bernardo Uriarte Blanco
e2d327399b
add client
method to GenericClient
2020-12-26 23:17:04 +01:00
Steven Fackler
fbc42ecbe8
Stop setting timezone to UTC
...
Closes #147
2020-12-26 15:51:22 -05:00
Steven Fackler
316c6dc3dc
Update codegen sources to 13.1
2020-12-26 14:09:58 -05:00
Steven Fackler
4fb6fd906f
Release tokio-postgres v0.7.0
2020-12-25 09:09:17 -05:00
Nikhil Benesch
f1729e4636
deps: upgrade to tokio v1.0 ecosystem
2020-12-24 18:38:05 -05:00
Steven Fackler
2ab708c4bc
minor cleanup
2020-12-17 20:36:15 -05:00
zach-com
9856c7b87a
Replace impl From
block
2020-12-17 17:55:22 -05:00
zach-com
f655c3b74c
Address pull request comments
2020-12-16 15:26:06 -05:00
zach-com
07d9fb2ed6
Support connection validation with timeout
2020-12-11 13:47:39 -05:00
Kirill Fomichev
5099799166
return used features
2020-12-01 19:03:02 +03:00
Kirill Fomichev
fa8fb83ec8
Fix tokio features for runtime feature in the docs
2020-12-01 18:20:37 +03:00
Steven Fackler
5ad3c9a139
Add back keepalives config handling
...
Also fix connection timeouts to be per-address
2020-11-05 21:14:56 -05:00
Steven Fackler
bbf31696bb
Cleanups
2020-10-27 19:45:55 -04:00
Bernardo Uriarte Blanco
996f063380
map to convert to &dyn ToSql
is not longer necessary
2020-10-27 20:31:15 +01:00
Bernardo Uriarte Blanco
0e494a08a9
change rest of *_raw
methods to use BorrowToSql
2020-10-27 18:08:23 +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
2689070d19
Upgrade to tokio 0.3
2020-10-17 09:49:45 -04:00
Juan Aguilar Santillana
a2ca75e9c4
Prettify host
cast as str
2020-09-20 10:43:22 +00:00
Juan Aguilar Santillana
391a54aea1
Avoiding get reference of a u16
2020-09-20 10:37:15 +00:00
Joshua Nelson
61f6e3e5c4
Add newline before DETAIL and HINT
2020-08-01 11:12:22 -04:00
Joshua Nelson
ce7ce310b9
Give a more helpful message on error
...
Before:
```
database error: ERROR: insert or update on table "owner_rels" violates foreign key constraint "owner_rels_cid_fkey"
```
After:
```
database error: ERROR: insert or update on table "owner_rels" violates foreign key constraint "owner_rels_cid_fkey"
DETAIL: Key (cid)=(4) is not present in table "releases".
```
2020-07-31 20:59:57 -04:00
Steven Fackler
bc682b3103
Explicitly terminate the connection in sync API
...
Closes #613
2020-07-27 21:42:02 -04:00
shelvacu
c9a21f8398
Add Debug and Clone to AsyncMessage
2020-07-13 15:15:34 -07:00
Steven Fackler
3e67dbb773
Fix clippy
2020-06-10 16:54:07 -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
Naim A
a1efddd64a
fix typo
2020-05-12 13:48:01 +03:00
Nathan VanBenschoten
64d6e97eff
Re-add savepoint method to Transaction
...
Revives #184 .
The rewrite for async/await and Tokio accidentally lost functionality
that allowed users to assign specific names to savepoints when using
nested transactions. This functionality had originally been added
in #184 and had been updated in #374 .
This commit revives this functionality using a similar scheme to the
one that existed before. This should allow CockroachDB users to update
to the next patch release of version `0.17`.
2020-05-01 12:55:48 -04:00
Michael P. Jung
b10f964a1b
Add documentation for crate features
...
This closes #544
2020-03-16 15:10:25 +01:00
Steven Fackler
e51028385b
Log notices in Connection::poll impl
2020-03-05 15:51:08 -08:00
Steven Fackler
9f6d03d38b
Update tokio-util
2020-03-05 05:31:43 -08:00
Richard Dodd
6fd69dfd47
Make requested changes
2020-02-17 17:10:51 +00:00
Richard Dodd
369427b381
Allow clippy lint in macro output.
2020-02-17 17:10:51 +00: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
4c0ee2c715
Example cleanup
2020-02-09 09:58:18 -08:00
Andreas Runfalk
778f278059
Added information on how to use Vec<T> with Client::query_raw ( fixes #567 )
2020-02-06 07:49:59 +01:00
Steven Fackler
2ce4f08f46
Merge pull request #564 from benesch/startup-notices
...
Don't suppress notices during startup flow
2020-01-31 18:24:09 -05:00