Commit graph

319 commits

Author SHA1 Message Date
Patrick O'brien
270fe59117 Fixed all template function signatures
* Added finisher function signatures
* Added VideoSlice type
* Added videoQuery type
2016-04-17 19:25:09 +10:00
Patrick O'brien
95d91f17f3 Added bind checkType function
* Added select and join querymod
2016-04-16 17:25:00 +10:00
Patrick O'brien
4b12c849fc Added some querymods
* Added finishers that are broken
* Added some template stuffs
* Added a TestTemplates file output line thingy
2016-04-16 15:17:25 +10:00
Patrick O'brien
d89d23e673 Began implementing the ORM prototype
* Hooks, query mods, and query
* Update and UpdateX
2016-04-13 23:51:58 +10:00
Patrick O'brien
d949f68ed0 Finished postgres TestMain template 2016-04-09 09:45:44 +10:00
Patrick O'brien
4955218373 Removed commented garbage, fixed test 2016-04-07 06:15:06 +10:00
Patrick O'brien
d3aeb7375d Added template sorter, MainTest separation
* Moved MainTests into a dedicated folder
* Added sorter for templates (sorts structs to top)
* Fixed all the broken tests
* Tidied up output.go functions
* Only creating one MainTest (main_test.go) per app run now
* Split test imports up into normal test imports & main test imports
2016-04-07 06:10:12 +10:00
Patrick O'brien
c84d35d394 Fixed compiler errors and broken tests 2016-04-04 20:28:58 +10:00
Patrick O'brien
8e0773b43e Added tests for interface 2016-04-03 18:02:41 +10:00
Patrick O'brien
0ffccde168 Refactored interface & added tests 2016-04-03 17:15:35 +10:00
Patrick O'brien
a7263bde40 Changed cmddata receiver names to single letter 2016-04-03 16:21:45 +10:00
Patrick O'brien
f76022c1f6 Removed things we don't need from TestTemplates 2016-04-03 16:08:02 +10:00
Patrick O'brien
dd5d643d4f Refactored init and fixed TestTemplates 2016-04-03 16:01:26 +10:00
Patrick O'brien
f7a4ed0c54 Did more stripping, fixed broken things
* Fixed broken template
* Did some reorganizing
* Need to fix TestTemplates test
2016-03-28 18:17:41 +10:00
Patrick O'brien
27cafdd2fb Finished most of the stripping 2016-03-28 01:03:14 +10:00
Patrick O'brien
c74ed4e75f Added drivername, custom driver imports
* Split main test based off driver name
2016-03-26 17:08:27 +10:00
Aaron
109ff789ef Beginnings of key support 2016-03-22 23:20:04 -07:00
Aaron
8aac8dc121 Fix a bunch of test errors. 2016-03-22 23:18:41 -07:00
Aaron
e348767e8a Use a table data structure, not names/columns.
- Load table information in one shot instead of over several different
  functions.
2016-03-22 22:05:23 -07:00
Aaron
c1cf2a30cd Rename file to match the types. 2016-03-22 21:26:15 -07:00
Aaron
1394489a63 Rename everything. 2016-03-22 21:25:57 -07:00
Patrick O'brien
48a9ba8d29 Added main template test file, fixed errors
* Fixed TestTemplates bug (now shows compile errors properly)
* Fixed all compile errors for templates (except test templates)
* Added conditional imports for column types
2016-03-23 13:08:35 +10:00
Patrick O'brien
3b0a5e80a1 Finished adding test template generation support 2016-03-21 15:15:14 +10:00
Patrick O'brien
e62b411547 Cleaned up config 2016-03-21 13:52:36 +10:00
Patrick O'brien
af1201e86e Moved config init to main func & add config_test
* Split cfg object into testCfg and cfg
* Added tests for loading toml config from file
2016-03-21 01:57:25 +10:00
Patrick O'brien
e69573f68e Added test details to config loading 2016-03-20 23:02:31 +10:00
Patrick O'brien
9d41861e90 Added Update commands 2016-03-19 16:22:10 +10:00
Patrick O'brien
54f6e43370 Added primary key flag to column data
* Added delete method attached to object
* Added primary key related template helper functions
2016-03-19 01:27:55 +10:00
Patrick O'brien
2f9c936c6a Added inflection library, fixed all templates
* Added inflection to all templates
* Fixed broken template code (for the most part)
2016-03-18 21:26:48 +10:00
Patrick O'brien
b7ab642732 Fixed all file indentation 2016-03-17 12:59:56 +10:00
Patrick O'brien
58414106a2 Fixed and renamed templates, added package names 2016-03-17 00:33:58 +10:00
Patrick O'brien
0768a89aa6 Added helpers, select to DB interface and renames
* Added select and where helpers for the templates
  - These run at run time

* Added select to the boil DB interface
* Renamed some of the broken template names and fixed some templates
2016-03-16 17:04:26 +10:00
Patrick O'brien
6228216ff6 Fixed broken tests 2016-03-16 14:03:34 +10:00
Patrick O'brien
7adc73fa59 Refactored TestTemplates 2016-03-04 11:57:22 +10:00
Patrick O'brien
c8530ba7e4 Finished TestTemplates func
* TestTemplates compiles the templates generated
  to ensure they compile without errors.
2016-03-04 05:30:48 +10:00
Patrick O'brien
896f10199e Added parellelism to tests 2016-03-03 14:14:21 +10:00
Patrick O'brien
4cc62fdf5a Added imports to output 2016-03-03 02:59:34 +10:00
Patrick O'brien
d320bb6944 Added underscores import stuff 2016-03-03 01:18:26 +10:00
Aaron
8a9003770b Add more tests.
- Start work on import printing
2016-03-01 22:34:57 -08:00
Aaron
f179ea54c8 Add tests to a lot of things.
- Clean up the outputHandler function.
2016-03-01 21:37:14 -08:00
Aaron
8a591ecdd6 More swaths of renaming awkward structs. 2016-03-01 20:05:25 -08:00
Aaron
4f619d4efe Add some tests, fix some breaks. 2016-03-01 19:11:47 -08:00
Aaron
64ec06b4b4 Rename some functions.
- Use more efficient implementation of the template funcs.
2016-03-01 08:34:57 -08:00
Aaron
80e03dc3f7 Fix DBTable 2016-03-01 07:53:56 -08:00
Patrick O'brien
dfef617a95 Yep. 2016-03-02 01:15:32 +10:00
Patrick O'brien
9eb087be80 Added folder flag and import flag
* Generates files into specified folder
* Changed the order in which things are generated
2016-03-02 00:20:13 +10:00
Patrick O'brien
7539febd22 Added nullable struct types
* Added null.v3 import
2016-03-01 21:26:00 +10:00
Patrick O'brien
57e20cbfe3 Added imports objects 2016-03-01 21:11:55 +10:00
Patrick O'brien
195e8d16e8 Broke up all commands into individual templates.
* Added bunch of new command names and descriptions.
* Changed "all" command to "boil", so we can use "all"
  for the name of the all database select helper.
2016-02-29 21:45:28 +10:00
Patrick O'brien
241cac7d67 Added comments to init sqlboiler funcs 2016-02-29 20:42:51 +10:00