3365 Commits

Author SHA1 Message Date
Jack Christensen
48f563a5f7 Fix bug with ready for query counter 2019-01-01 17:08:56 -06:00
Jack Christensen
7986e2726d pgx uses pgconn.CommandTag instead of own definition 2019-01-01 16:55:48 -06:00
Jack Christensen
7f9540438c pgx uses pgconn.CommandTag instead of own definition 2019-01-01 16:55:48 -06:00
Jack Christensen
fdbf2ba728 Use pgproto3 instead of custom message encoders 2019-01-01 14:32:42 -06:00
Jack Christensen
ddd37cf557 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
2818e268a8 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
Jack Christensen
96680d6489 Add benchmark to pgconn 2019-01-01 14:10:24 -06:00
Jack Christensen
914766af9b Use result readers in next/get fashion 2019-01-01 14:10:16 -06:00
Jack Christensen
0330052b0a Use result readers in next/get fashion 2019-01-01 14:10:16 -06:00
Jack Christensen
9af9f57f15 Remove another allocation 2019-01-01 13:56:09 -06:00
Jack Christensen
b12b579814 Remove another allocation 2019-01-01 13:56:09 -06:00
Jack Christensen
7bd9b776cd Remove another allocation 2019-01-01 13:52:04 -06:00
Jack Christensen
c067c970cf Remove another allocation 2019-01-01 13:52:04 -06:00
Jack Christensen
4f00c6aebd Add pgconn stress test 2019-01-01 13:49:12 -06:00
Jack Christensen
d31f38affb Add pgconn stress test 2019-01-01 13:49:12 -06:00
Jack Christensen
f225b3d4a1 Avoid allocating strings in common message types 2019-01-01 13:47:37 -06:00
Jack Christensen
8df3f2010f Avoid allocating strings in common message types 2019-01-01 13:47:37 -06:00
Jack Christensen
356a6c43d2 Avoid allocating strings in common message types 2019-01-01 13:47:37 -06:00
Jack Christensen
b793875c1f Extract bufferLastResult
Buffered exec methods need to read until pending ready for queries is 0.
Factor this common logic out.

Add stress test for PgConn.
2019-01-01 13:16:50 -06:00
Jack Christensen
4f0658d52b Extract bufferLastResult
Buffered exec methods need to read until pending ready for queries is 0.
Factor this common logic out.

Add stress test for PgConn.
2019-01-01 13:16:50 -06:00
Jack Christensen
51d654d32a Format code constants already in pgproto3 2019-01-01 11:35:39 -06:00
Jack Christensen
e78cefecc5 Format code constants already in pgproto3 2019-01-01 11:35:39 -06:00
Jack Christensen
54df8c6918 Add ExecPrepared 2019-01-01 11:32:56 -06:00
Jack Christensen
b537f2c412 Add ExecPrepared 2019-01-01 11:32:56 -06:00
Jack Christensen
13323df0dd Add batched query test 2018-12-31 20:08:11 -06:00
Jack Christensen
421cfd5547 Add batched query test 2018-12-31 20:08:11 -06:00
Jack Christensen
5f69253174 Added ExecParams 2018-12-31 19:59:32 -06:00
Jack Christensen
6ac70533bf Added ExecParams 2018-12-31 19:59:32 -06:00
Jack Christensen
650aa7059a Fix broken tests 2018-12-31 18:45:51 -06:00
Jack Christensen
8d2e1463ed Fix broken tests 2018-12-31 18:45:51 -06:00
Jack Christensen
2f156c7add Access PID and SecretKey via method 2018-12-31 18:03:55 -06:00
Jack Christensen
be7a7b44dc Access PID and SecretKey via method 2018-12-31 18:03:55 -06:00
Jack Christensen
f5faed6568 Access underlying net.Conn via method
Also remove some dead code.
2018-12-31 18:00:08 -06:00
Jack Christensen
1ff8024df9 Access underlying net.Conn via method
Also remove some dead code.
2018-12-31 18:00:08 -06:00
Jack Christensen
af2fc36c27 Remove code moved to pgconn 2018-12-31 17:52:11 -06:00
Jack Christensen
49c9674102 PG error type is *pgconn.PgError 2018-12-31 17:46:56 -06:00
Jack Christensen
378ccb8945 PG error type is *pgconn.PgError 2018-12-31 17:46:56 -06:00
Jack Christensen
103ab963eb pgx uses pgconn CancelRequest 2018-12-31 17:37:07 -06:00
Jack Christensen
bcc3da490c Run tests in parallel 2018-12-31 17:34:44 -06:00
Jack Christensen
03f2d34486 Run tests in parallel 2018-12-31 17:34:44 -06:00
Jack Christensen
53175a7bad Add cancel request to PgConn
RecoverFromTimeout automatically tries to cancel in progress requests.
2018-12-31 17:32:04 -06:00
Jack Christensen
a8ac061b6a Add cancel request to PgConn
RecoverFromTimeout automatically tries to cancel in progress requests.
2018-12-31 17:32:04 -06:00
Jack Christensen
4ee6fef452 Add context to potentially blocking methods 2018-12-31 17:17:11 -06:00
Jack Christensen
084423ae69 Add context to potentially blocking methods 2018-12-31 17:17:11 -06:00
Jack Christensen
4e12c08b04 Use buffered exec 2018-12-31 14:14:40 -06:00
Jack Christensen
d229219039 Use buffered exec 2018-12-31 14:14:40 -06:00
Jack Christensen
b419493e5c Add pgconn.Exec 2018-12-31 13:32:26 -06:00
Jack Christensen
c33441674f Add pgconn.Exec 2018-12-31 13:32:26 -06:00