16 Commits

Author SHA1 Message Date
Jack Christensen
fd2093cef8 Add statement type convenience methods to CommandTag and optimize
Added convenient way to check whether a statement was a select, insert,
update, or delete. These methods do not allocate.

RowsAffected now does not allocate even when a large number of rows are
affected. It also is multiple times faster, though the absolute change
is inconsequential.
2020-01-11 18:42:31 -06:00
bakape
9decdbc2ec Revert nil context support 2020-01-11 16:53:50 +02:00
bakape
9372218107 Don't synchronize with context.Background() 2020-01-01 19:34:56 +02:00
bakape
7196234521 Benchmark nil context execution 2020-01-01 14:01:30 +02:00
Artemiy Ryabinkov
529805557f
Fix linters notifications
Signed-off-by: Artemiy Ryabinkov <getlag@ya.ru>
2019-06-22 10:41:01 +03:00
Jack Christensen
a97dd2f9f6 Update test envvar and docs 2019-06-01 09:59:04 -05:00
Jack Christensen
1baf0ef57e Refactor context handling into ctxwatch package 2019-05-07 18:05:06 -05:00
Jack Christensen
9d30dad837 Do not buffer results in benchmarks 2019-04-18 22:52:07 -05:00
Jack Christensen
fbdfccf1f9 Use Go modules 2019-03-30 12:55:56 -05:00
Jack Christensen
2c8971b382 Rename some types and methods 2019-01-05 18:01:57 -06:00
Jack Christensen
cddf011806 Big restructure to better handle context cancel 2019-01-05 17:37:28 -06:00
Jack Christensen
64e80f1f72 Add benchmarks when cancellable 2019-01-02 18:16:20 -06:00
Jack Christensen
d545e0704e Prepare returns description 2019-01-01 18:03:20 -06:00
Jack Christensen
fdbf2ba728 Use pgproto3 instead of custom message encoders 2019-01-01 14:32:42 -06:00
Jack Christensen
11964a6ec3 Add non-buffered benchmark 2019-01-01 14:17:17 -06:00
Jack Christensen
bd2a5d97d0 Add benchmark to pgconn 2019-01-01 14:10:24 -06:00