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
2a5ad27041
go fmt
2013-04-13 20:28:45 -05:00
Jack Christensen
d2ad78b90e
Added SelectAll*
...
fixes #2
2013-04-13 19:03:00 -05:00
Jack Christensen
8a0fa50882
Extracted Connect code from non-Connect tests
2013-04-13 18:08:45 -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
431b44eefe
Add test for connecting as correct user
2013-04-11 20:40:06 -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
669cca8b3a
Added script for database setup
2013-04-11 19:38:30 -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
86099237bd
Add failing test for Conn.Query
2013-04-08 20:16:11 -05:00
Jack Christensen
98890b1a50
Store backend pid and secret key
2013-04-08 20:15:34 -05:00
Jack Christensen
b04166bcf5
Add test for runtime parameter storage
2013-04-08 20:08:22 -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
Jack Christensen
aff1eee892
Basic query functionality
2013-04-06 14:52:08 -04:00
Jack Christensen
bc830d4a21
Added conn.Close
2013-03-30 21:53:56 -05:00
Jack Christensen
0e992bbaa5
Extract conn.getBuf
2013-03-30 21:47:27 -05:00
Jack Christensen
9fb925d55e
Remove debug prints
2013-03-30 21:21:56 -05:00
Jack Christensen
efa94833e4
Extract txStartupMessage
2013-03-30 21:21:10 -05:00
Jack Christensen
24e11001c5
Connect receives messages until ReadyForQuery
2013-03-30 21:20:56 -05:00
Jack Christensen
e37c0c9e3a
Parse messages up to ready for query
2013-03-30 20:56:51 -05:00
Jack Christensen
aefc85a67b
Parse ParameterStatus
2013-03-30 20:28:23 -05:00
Jack Christensen
226142ae1b
Added rxMsg*
2013-03-30 19:57:37 -05:00
Jack Christensen
18e225b66d
go fmt
2013-03-30 18:13:40 -05:00
Jack Christensen
05f94f7107
Messages use Bytes instead of WriteTo
2013-03-30 18:08:47 -05:00
Jack Christensen
5563e0c825
Extracting connection
2013-03-30 17:56:31 -05:00
Jack Christensen
6fb92c12b8
Use message names matching PostgreSQL docs
2013-03-30 17:13:35 -05:00
Jack Christensen
9c12da11f7
Added startup message
2013-03-30 16:50:36 -05:00
Jack Christensen
9a68d024c5
Initial commit
2013-03-30 12:06:27 -07:00