1122 Commits

Author SHA1 Message Date
Jack Christensen
2506e2830f Add Migrator.LoadMigrations 2014-04-19 16:00:30 -05:00
Jack Christensen
7ef0136d2d Add irreversible migration catching 2014-04-18 23:40:19 -05:00
Jack Christensen
d6614c4e3a Migrate can now migrate up and down 2014-04-18 23:11:54 -05:00
Jack Christensen
9e5a3ef0d2 Fix: Prepared statements now support NULL arguments 2014-04-02 15:52:33 -04:00
Jack Christensen
d4c2a2f18b SanitizeSql now supports nil 2014-01-18 22:13:50 -06:00
Jack Christensen
06d75e0fee Add Transaction and TransactionIso to ConnectionPool
fixes #25
2014-01-15 08:16:37 -06:00
Jack Christensen
02e4506ffb Update README.md for Go 1.2
Remove mention of Go's inability to have a maximum connection pool
size as that issue has been resolved in Go 1.2.
2013-12-10 08:28:01 -06:00
Jack Christensen
f0a3d22571 Use testing.TB interface for shared test/benchmark helpers 2013-12-10 08:25:30 -06:00
Jack Christensen
f76489f7d7 Add basic logging to pgx
fixes #21
2013-11-05 15:09:50 -06:00
Jack Christensen
007be95992 Add TLS to README.md 2013-10-03 08:11:19 -05:00
Jack Christensen
b97b012d42 Rename SSL to TLS 2013-10-03 08:07:37 -05:00
Jack Christensen
6990f3f30d Use tls.Config for TLS configuration 2013-09-30 09:00:09 -05:00
Derek Parker and Jack Christensen
21c1717d45 Add initial SSL support 2013-09-27 16:10:13 -05:00
Jack Christensen
3365402235 Start sequence at 1 2013-08-09 17:00:05 -05:00
Jack Christensen
97d933f055 Added pgx/migrate 2013-08-09 16:40:04 -05:00
Jack Christensen
f079d84728 Added SanitizeSql bool support 2013-08-06 10:20:32 -05:00
Jack Christensen
2699bf6187 Added example url shortener 2013-08-05 13:08:45 -05:00
Jack Christensen
0e30c0ae61 Fix: Prepare statement without result set 2013-08-05 11:30:20 -05:00
Jack Christensen
a74871c8ab Add license 2013-07-30 19:05:09 -05:00
Jack Christensen
91e841bddd More readme tweaks and proofreading 2013-07-30 18:06:26 -05:00
Jack Christensen
ff9cab7471 Tweak example in readme 2013-07-30 18:00:17 -05:00
Jack Christensen
c6bf85bd63 Add more docs and explanation 2013-07-30 17:53:59 -05:00
Jack Christensen
3ca58c01fe Add example for SelectRows 2013-07-30 17:53:40 -05:00
Jack Christensen
f277719f10 Remove unused test_setup.sql 2013-07-30 07:30:50 -05:00
Jack Christensen
08020c5b53 Remove experimental 2013-07-30 07:29:28 -05:00
Jack Christensen
6c576bbef6 Don't test cause of death for killed connection
Different platforms have different causes of death
2013-07-27 10:37:09 -05:00
Jack Christensen
2e8ebc0e27 Don't test cause of death for killed connection
Different platforms have different causes of death
2013-07-27 10:33:11 -05:00
Jack Christensen
2f5b2c1afc Add SelectValueTo 2013-07-26 18:08:16 -05:00
Jack Christensen
097c68e73b Check for alive before rx or tx 2013-07-26 18:07:46 -05:00
Jack Christensen
c96fa440cc Test getSharedConnection handles dead connections
If a test does something that kills a connection, it previously
would break all subsequent tests that used the shared connection.
It no longer does.
2013-07-26 16:45:27 -05:00
Jack Christensen
c36c0875c9 Make message buffer size configurable 2013-07-26 15:10:19 -05:00
Jack Christensen
3873a83a0a Buffer writes to the PostgreSQL socket
Avoid sending a packet for each write
2013-07-26 14:48:41 -05:00
Jack Christensen
ad34dc7264 Connections notice when they die and pools drop dead connections 2013-07-26 13:47:06 -05:00
Jack Christensen
a81a5f08b8 ConnectionPool now only creates the connections it needs 2013-07-26 07:27:14 -05:00
Jack Christensen
622ff142ca Add error to *ConnectionPool.Acquire return 2013-07-25 07:52:05 -05:00
Jack Christensen
209a9dfaf5 Factor out *ConnectionPool createConnection 2013-07-25 07:36:58 -05:00
Jack Christensen
7450854d50 Add benchmark of ConnectionPool Acquire/Release 2013-07-25 07:34:38 -05:00
Jack Christensen
e55a5ebccf Add AfterConnect callback for ConnectionPool 2013-07-23 17:46:38 -05:00
Jack Christensen
7f3c5ab815 Add Execute to ConnectionPool 2013-07-22 08:05:43 -05:00
Jack Christensen
dfa06ed265 Increase timeout in test to avoid flicker failure 2013-07-20 19:56:12 -05:00
Jack Christensen
0d75daf12e Add basic array transcoding for int16, int32, and int64 2013-07-20 19:51:01 -05:00
Jack Christensen
8b27a73a08 Fix typo 2013-07-20 17:02:08 -05:00
Jack Christensen
36904168b2 Don't panic! 2013-07-20 13:07:30 -05:00
Jack Christensen
0c3753e507 MessageReader uses ReadCString and ReadString names
Make consistent with MessageWriter
2013-07-20 08:40:37 -05:00
Jack Christensen
ce2d53c4fb Use deferred error handling for pgx.MessageReader 2013-07-20 08:36:33 -05:00
Jack Christensen
fd287527fe Fix connection settings example 2013-07-20 08:14:17 -05:00
Derek Parker and Jack Christensen
b271dd5bf1 Add listen/notify
fixes #8
2013-07-19 17:01:38 -05:00
Jack Christensen
9e321af35c Add binary encoding for timestamptz 2013-07-19 14:40:07 -05:00
Jack Christensen
faed7f2879 Add timestamptz transcoding 2013-07-19 13:00:22 -05:00
Jack Christensen
fdeb2412ec Add example for SelectFunc
fixes #6
2013-07-18 08:39:37 -05:00