Commit graph

45 commits

Author SHA1 Message Date
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
Patrick O'brien
b5409c7332 Fixed assign defaultRun bug, fixed "all" order
* Organized files better
* More comments
2016-02-29 19:39:49 +10:00
Patrick O'brien
20720b2cc0 Changed SQLBoiler init method
* Now uses maps to load commands
* Map for custom run handlers
* Map for template functions
* Streamlined cmd creation process
2016-02-29 15:49:26 +10:00
Patrick O'brien
25fa09cf93 Added initTemplates, moved tpls folder
* Moved all template functions to shared
2016-02-29 13:30:54 +10:00
Patrick O'brien
403951940f Added comments to all tpl statements
* Added new statements
* Modified existing statements
* (TODO: FINISH STATEMENT IMPLEMENTATIONS)
2016-02-29 12:52:17 +10:00
Patrick O'brien
d58e986c56 Added help flag to readme 2016-02-25 10:22:24 +10:00
Patrick O'brien
99ef15ddb5 Slightly change readme, add "mandatory" to -d flag 2016-02-25 10:20:39 +10:00
Patrick O'brien
c211a9ba84 Added godoc svg to readme 2016-02-25 10:16:02 +10:00
Patrick O'brien
d945bc714d Fixed readme 2016-02-24 20:56:15 +10:00
Patrick O'brien
e1e480c8e9 Finished readme 2016-02-24 20:45:09 +10:00
Patrick O'brien
35380d6634 Added comments to all oustanding files
* Deleted unused test files
2016-02-24 19:17:58 +10:00
Patrick O'brien
47c5be1038 Removed unused test files, added comments to cmds
* Added comments to all cmds files
* Removed unused test files
* Removed unimplemented command 'update'
2016-02-24 18:53:34 +10:00
Patrick O'brien
bdcb196b9b Removed redundant error output 2016-02-24 16:34:19 +10:00
Patrick O'brien
2ea3239ad1 Added all command, added output file flag 2016-02-24 15:40:07 +10:00
Patrick O'brien
69adb1a552 Finished delete command 2016-02-23 22:51:49 +10:00
Patrick O'brien
5d679aa0bc Finished select and insert commands 2016-02-23 22:38:24 +10:00
Patrick O'brien
8e9fdf2258 Removed sqlboiler binary 2016-02-23 18:30:15 +10:00
Patrick O'brien
4bd984701a Added binary to gitignore 2016-02-23 18:29:48 +10:00
Patrick O'brien
b43f9c63d8 Struct generation complete, pipes to stdout
* Database driver config & flag complete
* Table flag complete, will use all tables if non specified
2016-02-23 18:27:32 +10:00
Patrick
f72d646e66 Initial commit 2016-02-21 16:18:25 +10:00