2cbbb9c1 to
gorpallow ColumnMaps to set an sqltype which is not used yet but will be used in sql creation
fae5be90 to
gorpremove panics when tables are not found, error channels are good enough for that case, move the remaining SqlExecutor interface for dbmap into mapper.go
7fc58dcd to
gorpremove used-once _rawexec test function
aea7f791 to
gorpremove a lot of old introspective stuff which is no longer necessary
c1032fb9 to
gorpuse sqlx.StructScan in rawquery, remove slice return for Select
8ccfe824 to
gorpfinish removal of hookArg and runHook in favor of using interfaces, which will end up not using select after the list/struct return support is removed
@jmoiron@brianpkennedy haha, does that make it more or less trustworthy? :)
74f43408 to
gorpupdating more readme to make it less hideous
85f775e3 to
gorpadd some test-all explanations to the readme
9ad13f8d to
gorpadd some notes about test-all usage
4f72cf84 to
gorpadd drone status and a note about the fork
0b31b8a2 to
gorpnew test-all script which uses ./environ file for normal testing but is based off some env variables so it fits in well with dronio CI
605458c8 to
gorpall tests passing, performance isn't that hot
@jmoirongot http://t.co/JjdW05FMYP running CI w/ @droneio; super impressed, efortless #golang testing w/ 3 databases https://t.co/HZZDlHutvj
@jmoiron"For Humans" considered harmful.
8c37ae15 to
gorpall mappers strings.ToLower() field & db names by default; must use tags and TableWithName for different behavior. I prefer this default because InitiialCaps is part of go's visibility and not a style guideline, and trying to CamelCase->snake_case is beset by weird behavior.
85841bec to
gorpWIP replacement of Get internals with StructScan; this had implications with the TableMap, and I had to replace the ability to Rename colmaps, but since you can control table field names through struct tags I decided that having only One Place to do that was best, and doing it in the tags has advantages. Get currently doesn't return errors as I thought it should, and the Optimistic Locking is purposefully broken at the moment
d926ea9a to
gorpadd bench_all.sh with some benchmark output, fix benchmarks for all dialects, add a ReBind function which takes a query and a dialect and formats its bindvars according to that dialect (given the basic '?' bindvar scheme)
0d53cffa to
gorpreplace most of the hook system with a simpler one that uses interfaces to pre-calculate hook support and uses a lot less reflect
@jmoironPSA: Don't write #golang APIs taking empty struct literals for type polymorphism. Go allows the caller to control memory, you should too.
3017cc9f to
gorpremove type conversion stuff (this is handled by the database/sql/driver Scanner interface) and get tests working on pg and sqlite