2
0

Commit Graph

  • 2e952f0ebf Merge pull request #47 from karlseguin/quickaffected Jack Christensen 2014-11-17 20:32:07 -06:00
  • a8f5ce12c5 Trying to reduce memory allocation. logQueryArgs is called even when using the default discardLogger. This allocates quite a bit of memory. Created a default dlogger instance and avoid logging code when that's our logger. I couldn't think of a better implementation without touching the Logger interface. Karl Seguin 2014-11-18 07:53:33 +07:00
  • e5b2fbd819 select; is valid in 9.4. This causes the two tests to exec successfully when we're trying to get a syntax error. Karl Seguin 2014-11-17 21:21:08 +07:00
  • 04b54f03a5 Use LastIndex instead of Split for better performance getting the number of rows affected from CommandTag Karl Seguin 2014-11-16 12:43:47 +07:00
  • d857f18454 Update changelog Jack Christensen 2014-11-12 08:15:40 -06:00
  • d2ce556450 ConnPool no longer creates connections just to release them. Jack Christensen 2014-11-12 08:11:33 -06:00
  • efea92e8be Fix connection pool close Jack Christensen 2014-11-11 17:59:13 -06:00
  • 95e9e0b308 Add example of listen/notify support Jack Christensen 2014-11-01 10:44:22 -05:00
  • f46655d849 Update changelog Jack Christensen 2014-10-31 10:34:50 -05:00
  • 194a077220 Add test for writing []byte to text/varchar Jack Christensen 2014-10-31 10:33:38 -05:00
  • 161ec8db6d Support writing to postgres 'text' values from both strings as well as []byte. If the input is already []byte, this will avoid having the caller convert to string and then back to []byte. Potentially saves some allocs. Hari Bhaskaran 2014-10-21 12:09:51 -07:00
  • 3beff78461 Release v2.4.0 Jack Christensen 2014-10-03 15:00:20 -05:00
  • 5edd660971 WaitForNotification detects lost connections quicker Jack Christensen 2014-09-27 13:38:01 -05:00
  • d5e170cc0f Add stdlib test for []byte Jack Christensen 2014-10-03 14:52:33 -05:00
  • 4e51ff728f Allow reading any value into []byte Jack Christensen 2014-09-27 15:34:52 -05:00
  • 6a4284a30c Add test for no-op Exec Jack Christensen 2014-09-27 14:40:13 -05:00
  • 44f44c1baa Merge pull request #39 from anaxagoras/emptyquery Jack Christensen 2014-09-27 14:37:13 -05:00
  • 9e30e7aa93 Remove duplicate line Jack Christensen 2014-09-27 12:20:36 -05:00
  • 3d7974ce30 Always use keep-alive on TCP conns Jack Christensen 2014-09-27 12:13:10 -05:00
  • a724d7bce6 Merge pull request #38 from anaxagoras/keepalive Jack Christensen 2014-09-27 12:04:17 -05:00
  • f715715c86 add support for EmptyQueryResponse Andy Walker 2014-09-26 17:14:28 -04:00
  • 33fb73b8ab name consistency Andy Walker 2014-09-24 18:53:07 -04:00
  • b46ee0a951 Add keep-alive option by creating a dialer first, then setting KeepAlive option Andy Walker 2014-09-24 18:38:15 -04:00
  • 9c725fcb0d Merge pull request #37 from anaxagoras/master Jack Christensen 2014-09-22 16:39:57 -05:00
  • 401fac5fa2 document ParseHstore Andy Walker 2014-09-22 13:22:15 -04:00
  • 174929c406 Update obsolete documentation refs to TextEncoder and BinaryEncoder Jack Christensen 2014-09-19 17:45:44 -05:00
  • f8e59bbd7d Update changelog Jack Christensen 2014-09-19 17:41:01 -05:00
  • 0a213e6474 Add hstore to docs Jack Christensen 2014-09-19 17:38:35 -05:00
  • 98853ea98f more docs Jack Christensen 2014-09-17 17:00:55 -05:00
  • 11a75aa29e Add tests for NullHstore Jack Christensen 2014-09-19 17:34:02 -05:00
  • 274a14fe73 Rename NullHstore value to Hstore Jack Christensen 2014-09-19 16:35:26 -05:00
  • 890357732b Add tests for Hstore Jack Christensen 2014-09-19 16:30:43 -05:00
  • 2f1ec582d7 Instead of native map[string]string, use type pgx.Hstore instead Andy Walker 2014-09-18 13:22:51 -04:00
  • 821605a8dd Adding hstore support. map[string]string will encode to hstores and throw errors on hstores with NULL values, and there is now a NullHstore type that is basically map[string]NullString and will both accept and decode NULL values properly Andy Walker 2014-09-17 16:17:23 -04:00
  • 0441bcd8e4 spurious return Andy Walker 2014-09-17 16:16:07 -04:00
  • 8f81acfb5f Enhance support for custom types Jack Christensen 2014-09-13 11:33:34 -05:00
  • 68034af721 Started a changelog Jack Christensen 2014-09-16 16:59:13 -05:00
  • 3e174dda8b Remove debug Println Brian Dunn and Jack Christensen 2014-09-16 16:52:42 -05:00
  • a68115fc03 Fix data race with Rows and ConnPool Brian Dunn and Jack Christensen 2014-09-16 16:29:45 -05:00
  • a5f082fa03 Extract more error information Jack Christensen 2014-09-15 14:52:32 -05:00
  • 92cbc6566d Fix log truncation Jack Christensen 2014-09-15 14:27:28 -05:00
  • b21a653085 Truncate logged strings and byte slices Jack Christensen 2014-09-15 13:53:59 -05:00
  • 5dbc03602d Improve wrong number of arguments error message for Rows.Scan Jack Christensen 2014-09-05 11:14:11 -05:00
  • f5156ac4eb discardLogger should be private Jack Christensen 2014-09-04 16:45:35 -05:00
  • 717ca04aa7 Remove Crit from pgx.Logger Jack Christensen 2014-09-04 16:40:26 -05:00
  • c24c28b218 Update README.md for logging Jack Christensen 2014-09-04 16:34:25 -05:00
  • ff905fe862 Finish compatible interface to inconshreveable/log15 Jack Christensen 2014-09-04 16:27:40 -05:00
  • 98109c57bb Use interface for logging instead of log15 directly Jack Christensen 2014-07-14 09:42:52 -05:00
  • 311c332fdc More logging Jack Christensen 2014-09-03 11:13:29 -05:00
  • e47838d926 Add logging to Query Jack Christensen 2014-09-03 10:34:45 -05:00
  • b8881af745 Better error when Scan fails due to unknown destination type Jack Christensen 2014-09-02 16:58:10 -05:00
  • d28108b127 Merge pull request #29 from antonypp/patch-1 Jack Christensen 2014-08-18 09:22:27 -05:00
  • 962bb4d8cd Fix bug with bulid with env: GOOS=linux GOARCH=386 Anton Taraev 2014-08-18 02:32:33 +04:00
  • e2c9d2f13a Better error messages on decode* for wrong oid Jack Christensen 2014-08-08 11:18:46 -05:00
  • 0ddf94ef9d Add pgx.Oid serialization Jack Christensen 2014-08-08 10:51:54 -05:00
  • 4d4a45fc34 Fix error message for too big for int32 Jack Christensen 2014-08-08 10:39:51 -05:00
  • 2a04433355 Fix misleading error message Jack Christensen 2014-08-08 10:31:47 -05:00
  • fb55203324 Add support for varchar[] Jack Christensen 2014-07-31 13:35:44 -05:00
  • 56d0518e04 Add test for ConnPool.Exec Jack Christensen 2014-07-29 17:49:13 -05:00
  • 9b38093862 Add TLS to conn_config_test.go.example Jack Christensen 2014-07-29 17:41:53 -05:00
  • e29574d447 Add support for integer, float and text arrays Jack Christensen 2014-07-26 15:03:52 -05:00
  • b06d71f684 Update test to work on Windows Jack Christensen 2014-07-26 09:50:43 -05:00
  • 3761c6335e Ensure db is valid at end of tests Jack Christensen 2014-07-19 17:52:36 -05:00
  • 3144b5363f Support unknown PostgreSQL types as strings Jack Christensen 2014-07-19 17:49:11 -05:00
  • 6b78c7aa34 Merge prepared and unprepared tests Jack Christensen 2014-07-19 17:23:00 -05:00
  • 61bf7d841a Always use bound parameters Jack Christensen 2014-07-18 14:44:34 -05:00
  • d57e4902a1 Update README.md Jack Christensen 2014-07-17 09:17:55 -05:00
  • a2a828134c Add todo CLI app example of CRUD actions Jack Christensen 2014-07-17 09:16:13 -05:00
  • f7171f34e7 Add docs for pgx/stdlib Jack Christensen 2014-07-14 08:16:03 -05:00
  • ec82bc9d1e Fix stdlib Jack Christensen 2014-07-14 07:58:37 -05:00
  • ce3c76408e Tx.QueryRow implemented in terms of Tx.Query Jack Christensen 2014-07-14 07:55:20 -05:00
  • 1027d2d014 Fix Values when there is a null Jack Christensen 2014-07-13 13:35:28 -05:00
  • a12b7ed6c1 Handle Scanning null into core types Jack Christensen 2014-07-12 22:07:21 -05:00
  • 5dace165f5 Add example custom type Jack Christensen 2014-07-12 21:40:48 -05:00
  • 88d5a25fc4 Fix ConnPool test Jack Christensen 2014-07-12 21:38:08 -05:00
  • aff5043df9 Added a lot of documentation Jack Christensen 2014-07-12 21:17:38 -05:00
  • e33fb9d5d8 Remove ConnPool functions overlapped by Stat Jack Christensen 2014-07-12 20:12:56 -05:00
  • 4fbd76bee5 Make MsgReader private Jack Christensen 2014-07-12 20:08:17 -05:00
  • f215c8bf5f Change Scan / decodeX to use ValueReader Jack Christensen 2014-07-12 19:39:58 -05:00
  • 70c32fadc6 Rows does not expose MsgReader Jack Christensen 2014-07-12 11:47:10 -05:00
  • 546a2fc670 NullX Scan check oids Jack Christensen 2014-07-12 11:41:23 -05:00
  • 1cb3ac91f3 EncodeBinary checks oid of param Jack Christensen 2014-07-12 09:46:33 -05:00
  • ed2b3b3b49 Add timestamp support Jack Christensen 2014-07-12 09:33:49 -05:00
  • c108378973 Reorganize code Jack Christensen 2014-07-12 08:50:30 -05:00
  • 92b204309c Remove commented out test Jack Christensen 2014-07-12 08:20:06 -05:00
  • 713a8f48a7 Failing to write to Conn.conn kills Conn Jack Christensen 2014-07-12 08:04:09 -05:00
  • ae6a87545b Use database/sql style transaction interface Jack Christensen 2014-07-12 07:59:30 -05:00
  • f31665c5db wip Jack Christensen 2014-07-12 07:11:16 -05:00
  • 19537badff Add Rows.Values Jack Christensen 2014-07-11 16:55:45 -05:00
  • 6c1c819a5e Error detection for mismatched types Jack Christensen 2014-07-11 16:07:08 -05:00
  • 95301ea276 Correct Null* docs Jack Christensen 2014-07-11 15:25:40 -05:00
  • 4bdefced66 Add NullTime Jack Christensen 2014-07-11 15:25:26 -05:00
  • 724adde815 Add NullBool Jack Christensen 2014-07-11 15:00:13 -05:00
  • 294c05efcc Add test for date Jack Christensen 2014-07-11 14:39:06 -05:00
  • 93677e40dd Add test for timestamptz Jack Christensen 2014-07-11 14:37:16 -05:00
  • 12861ff7f1 Remove unused code Jack Christensen 2014-07-11 14:33:54 -05:00
  • 7ca95d7f73 Add NullString Jack Christensen 2014-07-11 14:16:25 -05:00
  • 6eac791f51 Encode* should be value, not pointer to value Jack Christensen 2014-07-11 11:44:02 -05:00
  • 32a368a75b Add more Null* types Jack Christensen 2014-07-11 11:41:32 -05:00
  • 24395d98df Add more testing of Encode* Jack Christensen 2014-07-11 11:16:12 -05:00