Commit graph

26 commits

Author SHA1 Message Date
Patrick O'brien
1c28f761f1 Upsert fixed 2016-09-15 01:36:36 +10:00
Patrick O'brien
83f7092dc6 Add MySQL Upsert, fix identation in all tpls 2016-09-14 18:14:07 +10:00
Aaron L
4f1565147a Fix indentation 2016-09-13 21:57:34 -07:00
Aaron L
e5edef144b Fix up postgres main just like mysql 2016-09-13 21:46:58 -07:00
Aaron L
76b75dfaaa Remove foreign keys from mysql dump 2016-09-12 22:43:29 -07:00
Aaron L
1b5cea823f Get mysql tests running.
- Needs disabling of Foreign Key constraints + upsert deletion to have a
  chance of working.
2016-09-11 23:50:11 -07:00
Aaron L
d183ec4bb5 Postgres works again after refactor 2016-09-11 23:50:11 -07:00
Aaron L
9d29d2b946 Refactor all the bits.
- Make TestMain be driver-based
- Move config to TestMain file
- Make config a little more sane in pgmain
2016-09-11 23:50:11 -07:00
Patrick O'brien
ac02f7d2e0 Fix broken relationship templates by adding schema 2016-09-09 22:31:51 +10:00
Aaron L
b1efbd21c7 Add a MySQL main test that does nothing 2016-09-08 23:05:09 -07:00
Patrick O'brien
22a904d025 Convert sqlboiler tests to MockDriver
* Improve impl of mock driver
2016-08-18 22:11:49 +10:00
Aaron L
5360d3094e Use errors package all over the project
In general:
errors.New("thing") -> errors.New
fmt.Errorf("thing %s", arg) -> errors.Errorf
fmt.Errorf("thing %v", err) -> errors.Wrap
fmt.Errorf("thing %s %v", arg, err) -> errors.Wrapf
2016-08-13 11:37:16 -07: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
0008aa0495 Fix test.sqldebug flag 2016-08-03 21:37:59 -07:00
Aaron L
735012c4e9 Add optional password-ability to tests 2016-07-31 21:24:33 -07:00
Patrick O'brien
4fcfcfe24c Finished hook tests
* Fixed hook bug
2016-07-16 01:21:09 +10:00
Patrick O'brien
81883d5f75 Finish update tests
* Add SetMerge helper
* Add quotes around all column names in statements
* Fix blacklist bug in RandomizeStruct
* Split up update helper
2016-07-15 20:14:47 +10:00
Aaron L
95ef4ce74b Allow debug to be toggled by a flag. 2016-07-14 22:45:43 -07: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
Patrick O'brien
7a0b84848f Add more tests to insert template tests
* Add helpers to assist with template tests
* Change null []byte from string to []byte
2016-07-06 16:02:35 +10:00
Aaron L
85ff9a797a Merge conflict resolution (late) 2016-06-27 00:02:10 -07:00
Aaron L
0e7c2561db Correct test running. 2016-06-26 23:59:27 -07:00
Patrick O'brien
4412026e63 Change testmain config load to viper & vala 2016-06-27 14:53:23 +10:00
Patrick O'brien
6ee58a6529 Fixed the same bugs I already fixed (again) 2016-06-14 22:58:46 +10: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