Patrick O'brien
8a2373b354
Add more uppercase words to titlecase
2016-07-17 13:33:16 +10:00
Patrick O'brien
4036786b6a
Got insert testing in a better state
...
* Split up insert function for testing
* Add DBType to global state
* Move test reflection helpers to testing.go
* Add incremental seed to randomizeField to avoid duplicate constraint
error messages
* Fixed Viper SSL default bug
* Fixed pgpass SSL inclusion bug
* Add MakeStringMap strmangle helper
* Change test errors from error to skip
2016-07-14 02:51:40 +10:00
Aaron L
ce30724f98
Add identifier function for use in templates.
2016-07-01 15:58:51 -07:00
Aaron L
6dac631a93
Add new functions to support more templating
...
- Add joinSlices
- Add ways to pull apart a slice of SQLColumnDef
- Try to stop generating join tables (but it still gens for some reason)
2016-06-26 23:59:27 -07:00
Aaron L
49d3260dcd
Fix where clause so it outputs quotes.
...
- Fix templates that this change broke
2016-06-26 23:56:45 -07:00
Aaron L
60f6080e73
Refactor dbdrivers into two packages
...
- Break dbdrivers into bdb and drivers
- Break each type in dbdrivers into it's own file set.
2016-06-22 23:11:32 -07:00
Aaron L
119e683952
Use extensive piping throughout the templates
...
- Haskell ftw
2016-06-19 22:22:50 -07:00
Aaron L
7c2a04ba4d
Clean up ridiculous amount of strmangle
2016-06-19 18:45:33 -07:00
Aaron L
30ece150e7
Fix strmangle's AutoIncPrimaryKey function.
...
- It's test was also a dead unicorn of unhappiness.
2016-06-19 17:17:09 -07:00
Aaron L
2819c1c889
Fix some missing parallels
2016-06-19 14:50:35 -07:00
Patrick O'brien
7aba7104a5
Fix null package imports, finish Bind
...
* Fix randomizeStruct time randomization
* Defer close sql.Rows
* Begin Delete test template
2016-06-08 15:45:34 +10:00
Patrick O'brien
8f3ff66339
Finished insert and update, added UpdateAt
2016-05-06 19:31:51 +10:00
Patrick O'brien
92e2608a1b
Finished Update and UpdateX (needs make and copy)
...
* Added test for camelCaseCommaList
* Added function signature for UpdateAt and UpdateAtX
* Moved column type slices to helpers.tpl
2016-05-05 19:01:24 +10:00
Patrick O'brien
f1e8b21c0e
Fixed most template compile errors
...
* Empty params still erroring the exec due to comma
2016-05-03 23:42:25 +10:00
Patrick O'brien
f059bdebf4
Finished insert template
...
* Removed functions in helpers not being used
2016-05-02 16:34:25 +10:00
Patrick O'brien
c17e48c14a
Moved template functions to strmangle package
...
* Finished Find and FindX
2016-04-25 11:43:09 +10:00