Commit graph

12 commits

Author SHA1 Message Date
Aaron L 912693a124 Update parameter generation for mysql 2016-09-12 23:28:23 -07:00
Aaron L 79520d27fb Use new randomize package 2016-08-18 00:06:28 -07:00
Patrick O'brien 76d4b84019 Convert all tests to go 1.7 Run format
* This fixes postgres deadlocks
2016-08-15 19:36:38 +10:00
Aaron L 1caa8afa73 Change seed to start at a random value.
- Insert at least some randomness.
2016-08-14 20:44:59 -07:00
Aaron L 6f963d518c Make all tests create random seed and use MustTx
- Mark Upsert/Find for parallelism
2016-08-14 20:14:39 -07:00
Aaron L d25712f929 Change entire project tests. 2016-08-14 01:58:36 -07:00
Aaron L efa1fbb80a Big refactor of generated code
- Stop generating helper functions for each model
- Move Insert/Update/Upsert query generation helpers to strmangle
- Add tests for query generation helpers
- Delete a lot of the Insert/Upsert tests that test the query generation
  helpers.
- Use tx for more of the tests.
2016-08-13 21:21:26 -07:00
Patrick O'brien d2862ef281 Fix broken tests due to spacing 2016-08-13 22:34:46 +10:00
Patrick O'brien 18029166c0 Add FilterColumnsByUnique, finish UpdateAll slice
* Add FilterColumnsByUnique
* Fix lots of broken tests
* Made CompareVals less stupid

Note: UpdateAll tests still broken because Unique
is not being fetched correctly for INDEX types,
it is only working for UNIQUE constraints.
2016-08-11 22:26:49 +10:00
Patrick O'brien feb85a2a44 Finish upsert and upsert tests
* Fix find bug in query generator
2016-08-05 12:59:40 +10:00
Patrick O'brien 8a3a08baa0 Finish upsert, most of upsert tests
* Fix Upsert hooks
* Rename singleton template files
2016-08-05 00:26:39 +10:00
Patrick O'brien 70b2dcfbb2 Boilerplate for upsert 2016-08-05 00:25:35 +10:00