Commit Graph

2306 Commits

Author SHA1 Message Date
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
e62fe3d7c3 Migrate postgres-derive to 2018 2019-10-10 15:26:30 -07:00
Steven Fackler
e69f1583c8 cfail tests for derive 2019-10-10 15:21:45 -07:00
Steven Fackler
218d889042 Move postgres-derive in-tree 2019-10-09 19:23:12 -07:00
Steven Fackler
31855141d2 Add query_one 2019-10-09 17:45:53 -07:00
Steven Fackler
8c28f8b363 Overhaul simple_query 2019-10-09 17:04:24 -07:00
Steven Fackler
c7055dc665 Clippy fixes 2019-10-09 15:20:23 -07:00
Steven Fackler
a3f611d609 Overhaul copy_out 2019-10-08 19:01:34 -07:00
Steven Fackler
b8577b45b1 Overhaul query_portal 2019-10-08 17:22:56 -07:00
Steven Fackler
2517100132 Overhaul query
This is the template that we'll use for all other methods taking
parameters. The `foo_raw` variant is the most flexible (but annoying to
use), while `foo` covers the expected common case.
2019-10-08 17:15:41 -07:00
Steven Fackler
1473c09b83 Fix warnings 2019-10-08 16:45:48 -07:00
Steven Fackler
0d2d554122 Add a ToStatement trait in tokio-postgres 2019-10-08 19:36:24 -04:00
Steven Fackler
286ecdb5b9 Start on borrow overhaul 2019-10-08 19:34:48 -04:00
Steven Fackler
e0e8c45159 Remove unneeded feature gate 2019-10-08 16:20:30 -07:00
Steven Fackler
3650d4a6de Implement traits for NoTls
Closes #495
2019-10-08 04:25:06 -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
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
e155af6419 Fix unix socket connection
Closes #491
2019-10-03 18:09:10 -07:00
Steven Fackler
30bd89c524 Upgrade tokio and futures-preview 2019-09-30 18:26:23 -07:00
Steven Fackler
de20f0fcd6 Fix bit-vec-support 2019-09-26 18:31:51 -07:00
Steven Fackler
b483feab41
Merge pull request #467 from kaibyao/master
Updated bitvec to 0.6.1, as it supports serde Serialize/Deserialize
2019-09-26 21:26:36 -04:00
Steven Fackler
1c1a939f8a
Merge branch 'master' into master 2019-09-26 21:23:55 -04:00
Steven Fackler
983a71c470 Fix postgres 2019-09-25 18:39:51 -07:00
Steven Fackler
427340d748 Ensure connect future is Send 2019-09-25 18:30:00 -07:00
Steven Fackler
680f7b8ecb Start prepping for futures closing over parameters
Change the slice-consuming methods to requiring &(dyn ToSql + Sync),
which makes the overall value Send. If you have non-Sync values for
whatever reason, you can still use the iterator-based methods.
2019-09-25 18:22:59 -07:00
Steven Fackler
4deea3b82b
Merge pull request #488 from sfackler/channel-binding-require
Add channel_binding=disable/prefer/require to config
2019-09-25 21:18:54 -04:00
Steven Fackler
c9469ea826 Simplify logic 2019-09-25 17:59:33 -07:00
Steven Fackler
8079ed6766 Check channel binding requirements when unsupported locally 2019-09-25 17:46:15 -07:00
Steven Fackler
7b230592db Some cleanup 2019-09-25 17:44:45 -07:00
Steven Fackler
6c3a4ab192 Add channel_binding=disable/prefer/require to config
Closes #487
2019-09-24 17:03:37 -07:00
Steven Fackler
a8d945c70e Merge branch 'std-futures' 2019-09-24 16:30:23 -07:00
Steven Fackler
e2d305033e Remove vec workaround in tests 2019-09-23 15:57:58 -07:00
Steven Fackler
1fcf026af6 Remove workaround 2019-09-23 15:52:27 -07:00
Steven Fackler
1fa4838717 Upgrade to tokio alpha.5 2019-09-19 14:48:34 -07:00
Steven Fackler
5283ad4a08 Clean up workaround 2019-09-19 14:45:15 -07:00
Steven Fackler
b7fe6bece5 Update to newest nightly 2019-09-11 22:20:22 -04:00
Steven Fackler
2cc5bbf21b Inline buffer methods 2019-09-08 16:56:31 -07:00
Steven Fackler
08a163c546 Fix doc link 2019-09-08 16:54:57 -07:00
Steven Fackler
847015c655 Fix link
Closes #481
2019-09-08 16:54:10 -07:00
Steven Fackler
42cf855168 Include the Rust type name in WrongType 2019-09-06 04:37:26 -07:00
Steven Fackler
54e52bd8b2
Merge pull request #477 from jebrosen/prepare-send
Make prepare() return a Future that satisfies `Send`.
2019-09-04 08:09:46 -04:00
Jeb Rosen
98fb1173f5 Make prepare() return a Future that satisfies Send. 2019-09-03 18:44:30 -07:00
Steven Fackler
ac8d7077d3 Remove uneeded Sync bounds 2019-09-03 18:05:19 -07:00
Steven Fackler
24cf9291e1 Remove unneeded Sync bounds 2019-09-03 18:01:41 -07:00
Steven Fackler
c456d2c09f Reenable postgres-native-tls 2019-08-30 14:15:03 -07:00
Steven Fackler
2a2b76d1b8 Upgrade to tokio alpha.4 2019-08-29 18:10:58 -07:00