Commit Graph

1326 Commits (e83d1d2228e858edf309a703de9c612eed9de298)

Author SHA1 Message Date
Jack Christensen e83d1d2228 Recover from context cancellation during CopyFrom 2019-01-26 12:20:36 -06:00
Jack Christensen 68d6d1c779 Properly abort CopyFrom on reader error 2019-01-26 10:21:16 -06:00
Jack Christensen 73003f86ee Move CopyFrom to pgconn 2019-01-19 17:24:48 -06:00
Jack Christensen fb15f44dfa Add PgConn.EscapeString 2019-01-19 15:44:03 -06:00
Jack Christensen 248754aa61 Remove obsolete comment 2019-01-19 15:41:42 -06:00
Jack Christensen a0cef77510 Use NoError instead of Nil for assertions 2019-01-19 14:51:07 -06:00
Jack Christensen 5907f222ee Add PgConn.CopyTo 2019-01-19 14:49:39 -06:00
Jack Christensen e97dbe1b22 Fix doc typo 2019-01-19 14:49:26 -06:00
David Bariod 903a7734c5 support binding of []int type to array integer 2019-01-19 11:44:30 -06:00
Josh Leverette f05150fccb Fix encoding of ErrorResponse 2019-01-19 11:42:30 -06:00
Jack Christensen 2061295f7f Add PgConn.WaitForNotification 2019-01-14 20:51:53 -06:00
Jack Christensen d5dc748918 Add listen/notify to pgconn 2019-01-14 20:39:10 -06:00
Jack Christensen da695c2ff8 Fix die on receive message error 2019-01-14 20:27:34 -06:00
Jack Christensen 340a2a5886 Fix prepare failure 2019-01-12 16:16:47 -06:00
Jack Christensen c4050134cc Begin delegation of Prepare to pgconn 2019-01-12 12:19:12 -06:00
Jack Christensen 08bd2b612f Streamline test 2019-01-12 12:04:44 -06:00
Jack Christensen 7f373ee92b Add custom context cancellation hook 2019-01-12 11:37:13 -06:00
Jack Christensen 1257b89df7 Update main pgx package to compile with new pgconn 2019-01-05 19:00:41 -06:00
Jack Christensen e78fd95296 Fix switching CommandTag back to string 2019-01-05 18:53:07 -06:00
Jack Christensen f02ad34d66 Add example 2019-01-05 18:47:50 -06:00
Jack Christensen 14172b138b Add more docs 2019-01-05 18:40:33 -06:00
Jack Christensen 8feee74396 CommandTag is string 2019-01-05 18:06:25 -06:00
Jack Christensen 2f0db78865 Rename some types and methods 2019-01-05 18:01:57 -06:00
Jack Christensen caf72c627a Add some docs for batch 2019-01-05 17:46:47 -06:00
Jack Christensen c3da7991ba Remove Pg prefix for a couple types 2019-01-05 17:41:43 -06:00
Jack Christensen 31cb2b4e72 Big restructure to better handle context cancel 2019-01-05 17:37:28 -06:00
Jack Christensen 67725478c5 Add benchmarks when cancellable 2019-01-02 18:16:20 -06:00
Jack Christensen 381f0ca040 Back out of some over optimization 2019-01-02 18:16:08 -06:00
Jack Christensen 8af697bacf Extract startOperation 2019-01-02 14:56:24 -06:00
Jack Christensen ad7a822723 Tweak RecoverFromTimeout docs 2019-01-02 14:20:10 -06:00
Jack Christensen 166e5e4e9d Fix typo 2019-01-02 14:10:57 -06:00
Jack Christensen b3cc9aa8a7 Add ensureReadyForQuery to pgconn 2019-01-02 13:59:00 -06:00
Jack Christensen 19a8df16b6 Move notice handling to pgconn 2019-01-02 13:15:26 -06:00
Jack Christensen 89c3d8af5d Remove ExecEx 2019-01-02 12:52:37 -06:00
Jack Christensen 12857ad05b Implement pgx.Conn.Exec in terms of pgconn.PgConn.Exec 2019-01-02 12:32:36 -06:00
Jack Christensen 23cbe89dfd Handle empty query response 2019-01-02 12:28:11 -06:00
Jack Christensen 413ef99979 Prepare returns description 2019-01-01 18:03:20 -06:00
Jack Christensen 48f563a5f7 Fix bug with ready for query counter 2019-01-01 17:08:56 -06:00
Jack Christensen 7f9540438c pgx uses pgconn.CommandTag instead of own definition 2019-01-01 16:55:48 -06:00
Jack Christensen ddd37cf557 Use pgproto3 instead of custom message encoders 2019-01-01 14:32:42 -06:00
Jack Christensen 2818e268a8 Add non-buffered benchmark 2019-01-01 14:17:17 -06:00
Jack Christensen 96680d6489 Add benchmark to pgconn 2019-01-01 14:10:24 -06:00
Jack Christensen 0330052b0a Use result readers in next/get fashion 2019-01-01 14:10:16 -06:00
Jack Christensen b12b579814 Remove another allocation 2019-01-01 13:56:09 -06:00
Jack Christensen c067c970cf Remove another allocation 2019-01-01 13:52:04 -06:00
Jack Christensen d31f38affb Add pgconn stress test 2019-01-01 13:49:12 -06:00
Jack Christensen 356a6c43d2 Avoid allocating strings in common message types 2019-01-01 13:47:37 -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 e78cefecc5 Format code constants already in pgproto3 2019-01-01 11:35:39 -06:00
Jack Christensen b537f2c412 Add ExecPrepared 2019-01-01 11:32:56 -06:00