Benjamin Swart
7c7c80dcaa
Make incorrect number of paramaters an error
2023-02-25 18:24:35 +01:00
Alex Chi
b1842390c3
update comments
...
Signed-off-by: Alex Chi <iskyzh@gmail.com>
2023-01-16 22:54:20 -05:00
Alex Chi
205af89aaf
feat: add rows_affected
to RowStream
...
Signed-off-by: Alex Chi <iskyzh@gmail.com>
2023-01-15 21:16:56 -05:00
Alex Pearson
8158eed052
Move parameter count assertion above format encoding derivation
2022-08-16 08:13:26 -04:00
Alex Pearson
569689deaa
encode format with types
2022-08-16 08:13:26 -04:00
Basti Ortiz
65c1d146a6
Chore(tokio-postgres): prefer sub-crates of futures
2022-08-14 23:31:17 +08:00
Steven Fackler
a624282bed
rustfmt
2022-08-04 13:07:13 -04:00
Steven Fackler
d7b10f2cea
cleanup
2022-07-18 20:18:18 -04:00
Ruslan Talpa
683868850e
remove "Unknown" and add Format enum
2021-11-19 09:22:36 +02:00
Ruslan Talpa
6c407d39d5
implement Unknown encoding for query parameters
2021-11-01 12:31:59 +02:00
Steven Fackler
b2df11579f
Fix commit-time error reporting
...
Closes #832
2021-10-19 19:36:14 -04:00
Steven Fackler
bbf31696bb
Cleanups
2020-10-27 19:45:55 -04: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
8ee231f803
Add remaining log statements
2019-12-17 18:11:40 -08:00
Michael P. Jung
d9a999a578
Add back logging of queries
...
This fixes #492
2019-12-16 14:36:23 +01:00
Steven Fackler
12c2ef79b6
Upgrade to tokio 0.2/futures 0.3
2019-11-26 16:32:36 -08:00
Steven Fackler
c98f605622
Switch to pin-project-lite
2019-11-18 18:12:34 -08:00
Steven Fackler
9d2ec747ef
Add some simple benchmarks
2019-10-15 18:17:10 -07:00
Steven Fackler
7b73eee3fb
Make streams !Unpin
...
Hedging against the future if we end up using an intrusive list
implementation
2019-10-14 16:42:54 -07:00
Steven Fackler
0736382593
Fix tests
2019-10-12 17:47:55 -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
c7055dc665
Clippy fixes
2019-10-09 15:20:23 -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
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
26a17ac4ed
Support portals
2019-08-01 20:43:13 -07:00
Steven Fackler
dea6c3ebc5
Fix target_session_attrs handling
2019-07-28 17:48:32 -07:00
Steven Fackler
e77b0fd009
Add simple_query and batch_execute
2019-07-28 15:52:46 -07:00
Steven Fackler
51f02c89ee
Fully working prepare
2019-07-28 09:26:04 -07:00
Steven Fackler
77caff91ef
Add query/select
2019-07-24 21:28:52 -07:00