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
Blaž Hrastnik
7f2cbbfcfd
Support nil driver.Value
2015-04-13 14:33:16 +09:00
Jack Christensen
879ca97228
Fix Scanner that does not read entire value
2015-04-09 17:46:58 -05:00
Laurent Debacker
e511c267de
Unit test demonstrating infinite loop
...
Hi, I have just created a unit test demonstrating an infinite loop during cleanup in a defered function. The CPU will just sit at 100% use. I know this is a special case, but it's would be nice if a buggy Scanner doesn't make cleanup functions like rows.Close run indefinitely. Sadly, I'm not sure how to fix/improve this.
2015-04-09 22:10:55 +02:00
Jack Christensen
654508050c
Add failing test for empty array from debackerl
2015-04-08 16:53:08 -05:00
Laurent Debacker
bc7ca55b45
Fix decoding of ARRAY[]::text[]
...
The original version could not decode ARRAY[]::text[]. When an empty array was detected, decode1dArrayHeader was not reading enough values off the socket, and subsequent values were incorrectly read.
2015-04-08 16:53:08 -05:00
Jack Christensen
82a2d9de96
Merge pull request #76 from deoxxa/add-parsedsn
...
add ParseDSN function
2015-04-08 14:54:40 -05:00
Jack Christensen
3dcb2fcbfc
Add test for empty array between other values
2015-04-08 14:50:57 -05:00
Jack Christensen
92d38b7f37
Add test for empty array decoding
2015-04-08 14:46:14 -05:00
deoxxa
36d1a58b42
add tests for ParseDSN
2015-04-08 14:55:15 +10:00
deoxxa
7e2886c576
add ParseDSN function
2015-04-08 14:50:56 +10:00
Jack Christensen
472929b247
Update README with more advantages of pgx
...
refs #73
2015-04-02 19:53:40 -05:00
Jack Christensen
c45bb2cfa8
Remove unused text format decoders
2015-04-02 18:06:59 -05:00
Jack Christensen
fc484ab5fd
Allow NullTime to work with timestamp
2015-03-27 18:14:36 -04:00
Jack Christensen
28ef19702f
Detect too many parameters on Prepare
...
refs #65
2015-03-14 18:58:09 -05:00
Jack Christensen
cf674c6958
Enable travis errors on PG 9.0 and 9.1
2015-02-13 13:43:39 -06:00
Jack Christensen
651d976ea6
Test should not use type that does not exist in PG 9.0
2015-02-13 13:42:18 -06:00
Jack Christensen
77e61ef1bd
Merge pull request #62 from flynn/travis
...
Add Travis CI configuration
2015-02-07 11:06:52 -06:00
Jonathan Rudenberg
cf41a6e587
Add Travis CI configuration
2015-01-31 14:29:50 -08:00
Blake Gentry
3ec870dc3c
combine two small reads into one
...
There's no need to read 1 byte and then immediately read 4 more, rather
than just reading 5 bytes to begin with. Also, with this change rxMsg is
no longer swallowing an error from ReadByte.
2015-01-11 16:47:31 -08:00
Jack Christensen
1e92e5afe6
Merge pull request #59 from flynn/large-objects
...
Minor docs fixes for large objects
2015-01-02 19:05:46 -06:00
Jonathan Rudenberg
10655944aa
Minor docs fixes for large objects
2015-01-02 17:05:51 -05:00
Jack Christensen
b5eb23da7b
Merge pull request #57 from flynn/large-objects
...
Implement large object support
2015-01-02 14:18:36 -06:00