Jack Christensen
d9522a4741
Inform database/sql when connections die
2014-06-20 16:33:51 -05:00
Jack Christensen
7a8e80ac0d
Make Conn Close idempotent
...
* die (which is called by Close) now closes underlying connection
2014-06-20 14:50:36 -05:00
Jack Christensen
247fd3be53
Fix CommandTag RowsAffected for INSERT
2014-06-20 13:38:01 -05:00
Jack Christensen
4efa61bf5b
Prepare returns *PreparedStatement
2014-06-20 10:47:31 -05:00
Jack Christensen
cc445627b0
Expose DataRowReader FieldDescriptions
2014-06-20 10:46:47 -05:00
Jack Christensen
772c6ca7d7
Remove MessageWriter
2014-06-19 18:10:04 -05:00
Jack Christensen
3b9a1ce659
ValueTranscoder EncodeTo now receives io.Writer
2014-06-19 17:48:26 -05:00
Jack Christensen
884252675e
Handle ValueTranscoder EncodeTo returns error on bad type
...
Instead of panicking
2014-06-19 08:03:14 -05:00
Jack Christensen
5fe3dd7ecf
Reduce nesting in message loops
2014-06-17 16:39:44 -05:00
Jack Christensen
928612917d
Fix a couple go vet discovered issues
2014-06-11 07:59:43 -05:00
Jack Christensen
b982aeb102
Improve logging some more
2014-06-05 17:36:40 -05:00
Jack Christensen
ad88123f9c
Improve logging
2014-06-04 09:31:54 -05:00
Jack Christensen
cbddbb423e
Replace logging functionality with log15
...
gopkg.in/inconshreveable/log15.v2
2014-06-02 19:47:09 -05:00
Jack Christensen
f119d5221c
Add CommandTag
2014-05-19 09:32:31 -05:00
Jack Christensen
bc2a120301
Add constants for transaction isolation levels
2014-05-19 08:25:34 -05:00
Jack Christensen
f9a2501100
Rename ConnectionPool to ConnPool
2014-05-17 13:40:50 -05:00
Jack Christensen
1ff653ae15
Rename ConnectionParameters to ConnConfig
2014-05-17 13:38:13 -05:00
Jack Christensen
4eb597d20b
Rename pgx.Connection to pgx.Conn
2014-05-17 13:11:30 -05:00
Jack Christensen
70e461b769
Renamed conn* to connection*
2013-04-20 11:55:13 -05:00
Jack Christensen
58ae1855cb
Extract Connection.SelectAll* to own file
2013-04-20 11:34:52 -05:00
Jack Christensen
e27511a4c5
Extract Connection.Select* to own file
2013-04-20 11:30:06 -05:00
Jack Christensen
0b1ac12c0e
Added basic null handling
...
* Connection.SelectRows leaves null values empty
* Select* and SelectAll* now error on null
refs #4
2013-04-20 11:14:01 -05:00
Jack Christensen
ee25d4a03a
Rename Select to SelectFunc to conform to Go standard lib style
2013-04-19 16:35:44 -05:00
Jack Christensen
bf86100fec
Rename Query to SelectRows
2013-04-19 16:18:11 -05:00
Jack Christensen
9a5c299563
Added Select to process rows as they come over the wire
...
This was accomplished by promoting private query function to
public Select.
fixes #12
2013-04-19 16:10:14 -05:00
Jack Christensen
310c7f5fd8
go fmt
2013-04-19 15:48:45 -05:00
Jack Christensen
fa4c70907c
Rename pgx.conn to pgx.Connection
2013-04-17 08:26:01 -05:00
Jack Christensen
d306d42afb
Added conn.Execute to run arbitrary SQL without a result set
...
fixed #13
2013-04-16 20:13:06 -05:00
Jack Christensen
cbf03821e1
Revert making query methods automatically escape arguments.
...
Must now call SanitizeSql explicitly.
This was necessary because go supports variadic arguments but not
totally optional arguments. So it would require something to
always be passed in.
2013-04-16 19:55:01 -05:00
Jack Christensen
8392883350
Added SQL parameter sanitization
...
fixes #3
2013-04-15 20:22:28 -05:00
Jack Christensen
2ed4f46454
Refactored query logic so only one place has query message loop
...
Also combined with this refactor is multiple functions that previously
called a []string function and then casted that to the correct type
now directly read into []correcttypt.
2013-04-13 20:28:54 -05:00
Jack Christensen
d2ad78b90e
Added SelectAll*
...
fixes #2
2013-04-13 19:03:00 -05:00
Jack Christensen
f977a3fe80
Added Select* for individual typed values.
...
fixes #1
2013-04-12 16:50:13 -05:00
Jack Christensen
3a85bae314
package name is pgx not pqx
2013-04-12 08:07:05 -05:00
Jack Christensen
1a7cf8ccc4
Added connect with md5 password
2013-04-11 21:39:44 -05:00
Jack Christensen
9e9815ae5a
Added plain text password authentication
2013-04-11 21:13:47 -05:00
Jack Christensen
7683e5cfa7
go fmt
2013-04-11 21:12:02 -05:00
Jack Christensen
0e8f00e11c
Added understanding of error messages from server
2013-04-11 20:22:55 -05:00
Jack Christensen
3e5096afef
Added ability to choose user to log in as
2013-04-11 19:42:24 -05:00
Jack Christensen
996aed65ee
Added ability to connect to databases by name
...
Add documentation to readme on how to set up tests
2013-04-11 08:56:31 -05:00
Jack Christensen
bf0891db7d
Added basic Query functionality
2013-04-08 21:28:44 -05:00
Jack Christensen
63d16ae3ac
Refactor
2013-04-08 21:23:25 -05:00
Jack Christensen
f56abaf154
Move connection specific message handling to Connect
2013-04-08 20:50:27 -05:00
Jack Christensen
006a98d1a2
Pass *messageReader to rx* instead of raw buffer
2013-04-08 20:37:09 -05:00
Jack Christensen
d6ca7af1e3
Rename processCommonMsg to processContextFeeMsg
2013-04-08 20:25:04 -05:00
Jack Christensen
d1a586ed64
go fmt
2013-04-08 20:16:49 -05:00
Jack Christensen
98890b1a50
Store backend pid and secret key
2013-04-08 20:15:34 -05:00
Jack Christensen
34e47ed59e
Store runtime parameters
2013-04-08 20:00:48 -05:00
Jack Christensen
577f9707f7
Separate receiving and processing a message
2013-04-06 16:52:06 -04:00
Jack Christensen
0cbf3b6f9e
Factor out sendSimpleQuery
2013-04-06 16:39:20 -04:00