Commit Graph

19 Commits (23cbe89dfdd28d2e46fdf618223e71f72d28f42a)

Author SHA1 Message Date
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 7f9540438c pgx uses pgconn.CommandTag instead of own definition 2019-01-01 16:55:48 -06:00
Jack Christensen 0330052b0a Use result readers in next/get fashion 2019-01-01 14:10:16 -06:00
Jack Christensen b537f2c412 Add ExecPrepared 2019-01-01 11:32:56 -06:00
Jack Christensen 421cfd5547 Add batched query test 2018-12-31 20:08:11 -06:00
Jack Christensen 6ac70533bf Added ExecParams 2018-12-31 19:59:32 -06:00
Jack Christensen 8d2e1463ed Fix broken tests 2018-12-31 18:45:51 -06:00
Jack Christensen 378ccb8945 PG error type is *pgconn.PgError 2018-12-31 17:46:56 -06:00
Jack Christensen 03f2d34486 Run tests in parallel 2018-12-31 17:34:44 -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 084423ae69 Add context to potentially blocking methods 2018-12-31 17:17:11 -06:00
Jack Christensen c33441674f Add pgconn.Exec 2018-12-31 13:32:26 -06:00
Jack Christensen c552e2c028 Add support for libpq target_session_attrs
Generalize AcceptConnFunc into AfterConnectFunc.
2018-12-31 12:15:29 -06:00
Jack Christensen 28ee40f347 Add AcceptConnFunc for filtering HA connections 2018-12-31 11:39:22 -06:00
Jack Christensen afd3583558 Support comma separated hosts and ports like libpq
Also add test and fix the fallback config implementation.
2018-12-31 11:14:13 -06:00
Jack Christensen 67a15e6f7f Move connection tests to pgconn 2018-12-30 21:10:06 -06:00
Jack Christensen b3c8a73dc7 Restructure connect process
- Moved lots of connection logic to pgconn from pgx
- Extracted pgpassfile package
2018-12-30 16:55:56 -06:00
Jack Christensen 9990e4894d Rename base package to pgconn 2018-12-28 17:09:56 -06:00