13 Commits

Author SHA1 Message Date
Jack Christensen
73a4cfd360 Query methods sanitize arguments
fixes #18
2013-06-29 19:40:17 -05:00
Jack Christensen
6339e54be4 SelectValue(s) require exactly one column 2013-06-29 13:39:35 -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
520da3a102 Use interace{} returning SelectValue(s)
Instead of SelectInt32, SelectAllString, etc.

fixes #19
2013-06-29 12:07:31 -05:00
Jack Christensen
9294c0ee57 Add SelectRow 2013-06-07 14:23:46 -05:00
Jack Christensen
36e4d74d30 Add DataRowReader and change Connection.SelectFunc to use it
Preparatory step for structure binding. refs #11
2013-05-01 08:51:09 -05:00
Jack Christensen
78590be058 Made many things public so SelectFunc is actually usable by others
Definitely, need to add higher level methods for other packages to
use. May rehide some of these interfaces at that point.
2013-04-26 17:06:49 -05:00
Jack Christensen
19d4a4d577 Make ConnectionParameters fields public 2013-04-23 08:57:29 -05:00
Jack Christensen
d1a56c95d2 Connect via TCP
fixes #15
2013-04-23 08:15:05 -05:00
Jack Christensen
460acd7757 Use struct instead of map[string]string for connection params 2013-04-23 08:05:05 -05:00
Jack Christensen
70e461b769 Renamed conn* to connection* 2013-04-20 11:55:13 -05:00