Patrick O'brien
10ee452032
Hide replace flag from help output
...
* Replace flag is a "not recommended for use" flag, and is mainly
present to be used with software that is using sqlboiler as a library,
such as abcweb
2017-02-04 15:51:07 +10:00
Aaron L
671e1d7ae9
Add --wipe flag to rm the output dir pre-generate
...
- As discussed in #96
2017-01-26 20:53:34 -08:00
Patrick O'brien
e992e327c2
Fix inflection bug for "ss" words (like address)
...
* Adjust inflect rules
* Bump version to 2.1.8
2017-01-24 13:31:43 +10:00
Aaron L
761efee9f0
Add ability to replace a template
...
- This feature remains undocumented because it's not a good idea in most
cases but it enables us to replace a template. This is especially
useful when using sqlboiler as a library since testmain
problematically loads config in it's own magical way, divorced from
even the way sqlboiler in "normal" mode loads it. This enables
replacement of that mechanism by replacing it's template.
2017-01-15 21:21:04 -08:00
Aaron L
bfba60eaad
Bump version
2017-01-15 21:11:02 -08:00
Aaron L
4506da6b41
Change detection hack for broken arrays in viper
...
- Fix #91
2017-01-13 20:01:00 -08:00
Patrick O'brien
788d28400e
rename core to boilingcore to make a more sense
...
* make more sense as a third party library
2017-01-14 13:38:40 +10:00
Patrick O'brien
88cde8df0c
Made new core package to hold core of app
...
* This was primarily done so it can be used as a library in ABCWeb and
other apps.
2017-01-14 13:13:55 +10:00
Patrick O'brien
be2131c763
Bump to 2.1.5
...
* Includes fix #77 #82 (to one associations erroneously generated)
* Includes readme update
2017-01-07 01:00:02 +10:00
Patrick O'brien
dea748d409
Add --tinyint-as-bool flag (v2.1.4 release)
2017-01-02 15:16:08 +10:00
Aaron L
5449ce7c6c
Bump to 2.1.3
2016-12-27 23:31:24 -08:00
Aaron L
874efb1cce
Bump 2.1.1
2016-11-15 22:03:11 -08:00
Aaron L
ac48562dc2
Bump version
2016-11-12 00:12:04 -08:00
Chhatoi Pritam Baral
d2eccc98ad
Fix reading basedir from config and cli flag
2016-11-11 23:34:56 -08:00
Aaron L
42681453a9
Add a version command
2016-10-05 07:44:43 -07:00
Aaron L
d183ec4bb5
Postgres works again after refactor
2016-09-11 23:50:11 -07:00
Aaron L
81148d4beb
Add MySQL configuration.
2016-09-08 23:04:58 -07:00
Aaron L
16b6a2b176
Rename Exclude -> Blacklist
2016-09-08 22:41:57 -07:00
Aaron L
c65c1f6a2c
Fix a mistaken panic on bad parameters
2016-09-08 22:37:54 -07:00
Patrick O'brien
1c8a9d2e39
Add schema feature to everything (except rels)
...
* Add strmangle SchemaTable helper
2016-09-09 07:23:10 +10:00
Patrick O'brien
7144d272bd
Add whitelist feature
2016-09-06 00:41:12 +10:00
Patrick O'brien
4e8191b8dd
Add struct tags flag
2016-09-04 23:44:54 +10:00
Patrick O'brien
e35ecd76c1
Add json tables output to debug mode
2016-09-04 20:27:19 +10:00
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