Jack Christensen
516c88fde3
Update changelog
2015-09-21 07:54:22 -05:00
Jack Christensen
90b2e0acb7
Add additional testing around listen/notify
2015-09-17 17:40:04 -05:00
Jack Christensen
86837e5576
Add guards against usage of busy connection
2015-09-16 10:22:16 -05:00
Jack Christensen
51407590eb
Add LogLevelFromString func
2015-09-16 09:21:51 -05:00
Jack Christensen
23c48c2f87
Add trace logging
2015-09-16 08:40:01 -05:00
Jack Christensen
a1aa06c934
More efficient logging with log levels
2015-09-16 08:20:51 -05:00
Jack Christensen
a2e078597b
Add logging to rxMsg
...
Also benchmark what a log call costs
2015-09-14 10:25:48 -05:00
Jack Christensen
057da9f8e7
Add benchmarks for logging
2015-09-14 10:01:05 -05:00
Jack Christensen
3316ed2ff4
Update changelog
2015-09-12 19:42:15 -05:00
Jack Christensen
93aa2b2e80
ConnPool.Begin retry logic checks connection IsAlive
...
ErrDeadConn is returned when calling an already dead connection. But the initial failure returns the real error. So we check for IsAlive instead of ErrDeadConn.
Added test for ConnPool.Begin retry logic.
2015-09-12 19:39:37 -05:00
Jack Christensen
6e5fa60c4c
Fix cases where net conn write failure was not marking connection as dead
...
Also added loop to run these timing sensitive tests multiple times.
2015-09-12 19:32:55 -05:00
Jack Christensen
bc4742b80a
DRY ConnPool Begin and BeginIso
2015-09-12 19:12:55 -05:00
Jack Christensen
6ac98ef613
Add test for ConnPool.Begin retry
...
Also fix bug where conn is not released on non ErrDeadConn error
returned from Conn.Begin
2015-09-12 19:10:55 -05:00
Joseph Glanville
4868929ff1
ConnPool.Begin/BeginIso will retry if they Acquire a dead connection
2015-09-11 03:05:43 +10:00
Jack Christensen
8b296b9d58
Encode from net.IP to inet and cidr
2015-09-09 18:49:20 -05:00
Jack Christensen
ee7d621528
Update changelog
2015-09-09 18:31:19 -05:00
Jack Christensen
4ff46becfc
Generalize pointer to string uuid transcoding to any non-varchar/text type
2015-09-09 18:07:05 -05:00
Joseph Glanville
2184ffb5e9
Add support for encoding to UUID from string types
2015-09-10 00:58:51 +10:00
Jack Christensen
b1d721c487
Merge pull request #91 from titanous/patch-1
...
Fix feature attribution in CHANGELOG
2015-09-08 13:13:59 -05:00
Jonathan Rudenberg
53967c704a
Fix feature attribution in CHANGELOG
2015-09-08 17:43:41 +00:00
Jack Christensen
e4f401f6ec
Add documentation for pointer to pointer null mapping
2015-09-08 12:15:16 -05:00
Jack Christensen
73135865e7
Add benchmarks for NullX vs pointer to pointer
2015-09-08 12:08:20 -05:00
Jonathan Rudenberg
272262536b
Add support for pointers to pointers
...
Using types like **string allows the inner pointer to be nil’ed out,
avoiding the need for NullX types.
Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
2015-09-08 11:52:58 -05:00
Jack Christensen
4ebb0508b6
Encode dates in binary format
...
- Also allow NullTime to handle dates
2015-09-08 11:51:28 -05:00
Jack Christensen
65f5b33f3f
Fake example if PostgreSQL server too old for JSON
2015-09-04 14:10:18 -05:00
Jack Christensen
5ea6b04624
Add docs and example for JSON
2015-09-04 14:00:21 -05:00
Jack Christensen
fff5b9759b
Add tests for other types of JSON objects
2015-09-04 13:40:59 -05:00
Jack Christensen
9d200733b9
Merge common JSON and JSONB
2015-09-04 11:04:51 -05:00
Jack Christensen
7383e240d4
Skip JSON/JSONB tests for older PostgreSQL servers
2015-09-04 09:13:15 -05:00
Joseph Glanville
0013733535
Add JSON/JSONB support
2015-09-04 18:15:46 +10:00
Jack Christensen
fee3679cb9
Note inet and cidr support in README.md
2015-09-03 13:48:18 -05:00
Jack Christensen
063b0062b5
Use map literal for DefaultTypeFormats
2015-09-03 13:44:10 -05:00
Jack Christensen
f672dd2732
Remove mustPrepare from tests
...
Now that Query/QueryRow always prepares statements when given SQL
text there is no need to test raw SQL and prepared statements of
the same query.
2015-09-03 13:39:28 -05:00
Jack Christensen
e69d2bba26
Release 2.6.0 / update changelog
2015-09-03 13:03:52 -05:00
Jack Christensen
fd39261551
Use binary transcoding for inet/cidr
...
fixes #87
2015-09-03 11:39:32 -05:00
Jack Christensen
9af068add0
Add cidr support
2015-09-03 09:42:01 -05:00
Jack Christensen
d494f83cd1
Add inet support
2015-09-03 09:33:19 -05:00
Samuel Stauffer
a56e35ad0a
Support decoding of TimestampOid in stdlib driver
2015-08-25 17:33:17 -07:00
Jack Christensen
a0c76b897c
Fix doc typos
2015-08-21 13:50:31 -05:00
Jack Christensen
c44cbb12ab
Add sslmode note for ParseDSN
2015-08-21 13:50:06 -05:00
Rick Snyder
6413491657
Add support for specifying sslmode in connection strings
...
Add tests for sslmode parameter when calling ParseURI. Fix existing tests to work since default sslmode is 'prefer'
Make sure we default to prefer if sslmode is not provided in ParseDSN
Fix existing tests for ParseDSN to expect TLS configuration for prefer since prefer is the default sslmode; also, add tests for ParseDSN when specifying sslmode parameter on connection string
2015-08-19 11:33:12 -04:00
Jack Christensen
db5300358a
Allow ConnPool to have MaxConnections of 1
2015-05-25 09:54:56 -05:00
Jack Christensen
07a11abc07
Add basic PGSSLMODE support to ParseEnvLibpq
2015-05-23 13:49:26 -05:00
Jack Christensen
51d6d1a3a6
Add ParseEnvLibpq with support for basic envvars
2015-05-23 12:46:36 -05:00
Jack Christensen
dd9d960ba3
Add fallback TLS ConnConfig option
...
This is in preparation for supporting libpq style SSL options.
2015-05-23 11:57:36 -05:00
Jack Christensen
0c0a426d18
Add named error for server refused TLS
2015-05-15 19:21:59 -05:00
Jack Christensen
5bb7f64dac
Add more error fields to PgError
2015-05-01 18:06:17 -05:00
Lewis Marshall
784d12cbbc
Support using a custom dialer
...
For example I may want to use a dialer which retries transient network
errors (e.g. DNS issues).
Signed-off-by: Lewis Marshall <lewis@lmars.net>
2015-04-18 22:42:55 +01:00
Jack Christensen
d46a762159
Release 2.5.0 / update changelog
2015-04-15 08:12:17 -05:00
Jack Christensen
acdf5acc5a
Add test for stdlib query nil
2015-04-15 08:01:26 -05:00