Patrick O'brien
4b1c934751
Remove pointers to L, not needed
...
* Add no-tests flag
2016-09-02 11:22:56 +10:00
Aaron L
ed5a3286fc
Fix the help for basedir
2016-08-29 23:00:54 -07:00
Patrick O'brien
96d40fcfe4
Add automatic timestamps for created_at/updated_at
...
* Update and Insert
* Add --no-auto-timestamps flag
2016-08-29 00:12:37 +10:00
Patrick O'brien
95ff24b918
Add --no-hooks feature
2016-08-28 20:48:50 +10:00
Aaron L
63fae21c51
Add base_dir to make it less ornerous to use
2016-08-23 21:50:41 -07:00
Patrick O'brien
31bc69a7cc
Add cobra help for command failures
2016-08-17 00:22:41 +10:00
Patrick O'brien
b8efd30e1b
Add debug flag
2016-08-16 23:54:26 +10:00
Patrick O'brien
506de19d39
Fix exclude list, now a slice
2016-08-16 23:25:31 +10:00
Patrick O'brien
1e67965482
Add exclude/blacklist tables flag
2016-08-16 20:38:31 +10:00
Patrick O'brien
69ad07423f
Add config missing error
2016-08-15 23:15:05 +10:00
Patrick O'brien
a681624168
Remove tables flag from binary
2016-08-15 22:42:40 +10:00
Patrick O'brien
33286e648a
Update repo to add vattle org paths
2016-08-09 17:59:30 +10:00
Aaron L
ac549c9207
Make sqlboiler respect environment
...
- Stop failing on config file load, use the validation in the test
config stuff.
2016-08-05 22:15:18 -07:00
Aaron L
1eade96bcd
Fix query string building a little bit
2016-07-31 20:29:39 -07:00
Aaron L
40df1b7c86
Die if postgres driver config is missing
2016-07-31 19:05:21 -07:00
Patrick O'brien
7545343e0d
Cobra package update broke something
2016-07-17 13:46:12 +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
2b666e74de
Add postgres sslmode to configuration.
2016-07-11 15:17:49 -07:00
Aaron L
14a335cc99
Improve command error reporting & validation
2016-06-19 14:47:50 -07:00
Aaron L
44cff02828
Correct main help output
2016-06-14 07:52:58 -07:00
Patrick O'brien
6ee58a6529
Fixed the same bugs I already fixed (again)
2016-06-14 22:58:46 +10:00
Aaron L
57e20dfd72
Fix some problems with viper setup.
...
- Fix error reporting throughout the executable side of the project.
2016-06-12 15:35:38 -07:00
Aaron L
e0f461014b
Fix some configuration bits.
...
- Refix the panics that were occuring (almost all of them).
2016-06-12 12:08:34 -07:00
Aaron L
56234e37a1
Move main back to root folder.
...
- Change everything to package main.
- Make main a little more user friendly.
2016-06-12 11:19:23 -07:00
Aaron L
8757c8a184
Refactor entire project :D
...
- Move most files to root
- Remove cmds directory in favor of cmd directory with binary
- Remove all cobra from main
2016-06-11 18:25:00 -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
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
27cafdd2fb
Finished most of the stripping
2016-03-28 01:03:14 +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
b5409c7332
Fixed assign defaultRun bug, fixed "all" order
...
* Organized files better
* More comments
2016-02-29 19:39:49 +10:00
Patrick O'brien
d945bc714d
Fixed readme
2016-02-24 20:56:15 +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
bdcb196b9b
Removed redundant error output
2016-02-24 16:34:19 +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