Jack Christensen
8df9964ce8
MessageWriter needs to be public for custom value transcoders
2013-07-15 17:57:43 -05:00
Jack Christensen
1af652ce07
More docs and make ValueTranscoder visible.
2013-07-15 17:45:20 -05:00
Jack Christensen
462df934ab
Add docs for MessageReader
2013-07-15 08:30:02 -05:00
Jack Christensen
df0a537f59
Make Oid public
2013-07-15 08:28:33 -05:00
Jack Christensen
1d1d836207
Added more docs
2013-07-15 08:14:32 -05:00
Jack Christensen
0de2a7897a
Added more docs
2013-07-14 17:02:49 -05:00
Jack Christensen
aeeb8a724a
Added some documentation
...
Made preparedStatement invisible outside package
2013-07-14 16:55:08 -05:00
Jack Christensen
00e3ec32ca
Add TransationIso
...
fixes #5
2013-07-13 19:58:44 -05:00
Jack Christensen
98d4ce4c09
DRYed test and benchmark
2013-07-13 19:23:13 -05:00
Jack Christensen
8afcde41f2
Start factoring test helpers out
2013-07-13 17:29:24 -04:00
Jack Christensen
26105f4409
Added *Connection.Transaction
2013-07-13 10:19:29 -04:00
Jack Christensen
ad27e43224
Rollback in progress transactions when releasing connection
2013-07-13 09:15:40 -04:00
Jack Christensen
e162a0bbcb
Update tx status on ready for query message
2013-07-13 09:04:38 -04:00
Jack Christensen
b4e96027b3
Add one shot queries against connection pool
...
finishes #17
2013-07-12 18:42:22 -04:00
Jack Christensen
c69e638f68
Added (remove|restore)BinaryEncoders
...
Makes it so the oid doesn't have to be hard coded into text
benchmarks that disable binary encoding.
2013-07-12 18:21:40 -04:00
Jack Christensen
53da3bb789
Use binary encoding for bool
2013-07-12 18:02:23 -04:00
Jack Christensen
62dba1a94c
Encode float params in binary
2013-07-12 17:30:45 -04:00
Jack Christensen
8c7ea78485
Add binary decoding for floats
2013-07-11 12:42:17 -04:00
Jack Christensen
01b7865abf
Rename writeStringNull to writeCString
2013-07-10 08:35:41 -04:00
Jack Christensen
41df8763c6
Refactor transcoder to use messageWriter
2013-07-10 08:34:18 -04:00
Jack Christensen
abfbf42cc5
Refactor sendPreparedQuery to messageWriter
2013-07-09 19:07:07 -04:00
Jack Christensen
07b6385f1d
Started refactor to messageWriter
2013-07-09 17:22:30 -05:00
Jack Christensen
84a9da28e2
Refactor MessageReader to use bytes.Buffer
...
Must clearer than manipulating byte slices
2013-07-09 13:25:28 -05:00
Jack Christensen
07c2ad1846
Failure of Prepare should not break connection
2013-07-09 12:51:00 -05:00
Jack Christensen
6fb360ba6c
Execute failures don't break connection
2013-07-09 10:17:53 -05:00
Jack Christensen
a1c24661cd
Added binary encoding for int2
2013-07-08 18:11:10 -05:00
Jack Christensen
31a9683cc1
Added binary encoding to int4 and int8
2013-07-08 18:03:24 -05:00
Jack Christensen
85ffca4fe0
Added int8 binary decoding
...
Refactored benchmarks
2013-07-08 17:56:14 -05:00
Jack Christensen
a6e742db24
Continue receiving and ignoring messages on SelectFunc until readyForQuery
2013-07-08 16:17:40 -05:00
Jack Christensen
b8be47feb8
Add basic benchmarks
2013-07-08 15:37:46 -05:00
Jack Christensen
fe2f62f034
Fix Execute SQL larger than sharedBufferSize
2013-07-08 14:32:28 -05:00
Jack Christensen
e99a9b2306
Make connections configurable and skippable
...
It is a hassle to setup all potential connection and authentication
types. And it is impossible to test Unix domain sockets on Windows. Make
testing non-default connections optional.
2013-07-07 21:34:11 -05:00
Jack Christensen
a98db507b7
Added bytea support to prepared statements
...
fixes #9 , fixes #10
2013-07-01 17:12:07 -05:00
Jack Christensen
52c26ba14c
Treat unknown oid's as text type
2013-07-01 16:50:16 -05:00
Jack Christensen
732534b944
Add test for boolean transcoding
2013-07-01 16:43:27 -05:00
Jack Christensen
ecd3923968
Refactor prepared statement path to use ValueTranscoder
2013-07-01 16:40:53 -05:00
Jack Christensen
5073a3b9e0
Dirty, but somewhat working prepared statements and extended protocol
2013-07-01 15:41:20 -05:00
Jack Christensen
1042f095ee
More pluggable value transcoding
2013-06-30 09:25:19 -05:00
Jack Christensen
d6a0f417c6
Remove unreachable panics (Go 1.1 doesn't need them)
2013-06-29 19:42:52 -05:00
Jack Christensen
73a4cfd360
Query methods sanitize arguments
...
fixes #18
2013-06-29 19:40:17 -05:00
Jack Christensen
be073a1c82
Refactor getBuf so it no longer needs a size
2013-06-29 17:27:54 -05:00
Jack Christensen
258cd170ce
Extract txMsg
2013-06-29 17:07:54 -05:00
Jack Christensen
357e5c4735
Refactor to using bytes.Buffer
2013-06-29 16:39:07 -05:00
Jack Christensen
6339e54be4
SelectValue(s) require exactly one column
2013-06-29 13:39:35 -05:00
Jack Christensen
3acfffc142
Removed unused rxDataRowFirstValue
2013-06-29 13:24:28 -05:00
Jack Christensen
08801c2fe4
Select(Value|Row) require exactly one found row
2013-06-29 13:23:26 -05:00
Jack Christensen
aabf563a3b
SelectValue and SelectRow error if no rows found
...
fixes #14
2013-06-29 13:10:24 -05:00
Jack Christensen
b53b014b54
DRY tests
2013-06-29 12:39:34 -05:00
Jack Christensen
6ab233c6f9
Remove ERB templating support
2013-06-29 12:09:41 -05:00
Jack Christensen
520da3a102
Use interace{} returning SelectValue(s)
...
Instead of SelectInt32, SelectAllString, etc.
fixes #19
2013-06-29 12:07:31 -05:00