Commit graph

422 commits

Author SHA1 Message Date
Aaron L
453858d026 Put the templates in their proper place 2016-08-17 23:26:17 -07:00
Patrick O'brien
3d92184af1 Merge branch 'master' of github.com:vattle/sqlboiler 2016-08-18 16:18:29 +10:00
Patrick O'brien
34651b1942 Fix pointer to MockDriver 2016-08-18 16:18:10 +10:00
Aaron L
9c2a4d7852 Merge branch 'eager' 2016-08-17 23:17:13 -07:00
Aaron L
92c4e7f8f3 Support many_to_many eager loading properly
- Reorder the where statement in to_many to match eager loading.
2016-08-17 23:09:54 -07:00
Patrick O'brien
8d0cd2a53d Move fakeDB to MockDriver in drivers package 2016-08-18 15:26:24 +10:00
Patrick O'brien
3ae0b8a0d6 Fix randomize struct not ignoring boil - tag 2016-08-18 14:21:08 +10:00
Aaron L
e3ff48e647 Test the to_one eager loading. 2016-08-17 18:53:08 -07:00
Aaron L
3ecb8f96c0 Fix the loadRelationships code & test 2016-08-17 18:52:42 -07:00
Patrick O'brien
8806e76d9f Nearly finished relationship bind helper
* If only reflection would be nice
2016-08-18 03:56:00 +10:00
Patrick O'brien
94d36d7bf7 Begin IN implementation 2016-08-17 15:19:23 +10:00
Aaron L
22cf8091a9 Add the running of to_one tests.
- Fix the running of one_to_one tests.
2016-08-16 22:14:07 -07:00
Aaron L
fb198cc92c Looking like to_many eager load is done
- Fix to_many join table query
- Fix testing output
- Add debug logging
2016-08-16 22:14:07 -07:00
Aaron L
756281f9fb WIP Debugging eager loading 2016-08-16 22:14:07 -07:00
Aaron L
932f14d26c Fix up some bits in eager load to_many 2016-08-16 22:14:07 -07:00
Aaron L
7ce4146854 Add GetSliceValues to help clean up eager loads 2016-08-16 22:14:07 -07:00
Aaron L
eae23ae42b Add eager loading for to_many
- Needs tests
2016-08-16 22:14:07 -07:00
Aaron L
80c08ce20a Make Bind act on a sql.Rows
- This change was important to be able to call boil.Bind() from other
  contexts than a query. We don't use query mods everywhere, and we
  shouldn't. This allows us to use the bind independent of that.
2016-08-16 22:14:07 -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
9d6de3ba68 Remove test file for query mods 2016-08-16 22:41:43 +10:00
Patrick O'brien
1e67965482 Add exclude/blacklist tables flag 2016-08-16 20:38:31 +10:00
Patrick O'brien
79dfcf3ebf Fix circle path yet again 2016-08-16 17:56:45 +10:00
Patrick O'brien
a9f0854dcf Fix circle golang path 2016-08-16 17:34:57 +10:00
Patrick O'brien
bc9ae18df0 Patch go-junit-report 2016-08-16 17:27:15 +10:00
Patrick O'brien
8b6a2f7852 Break up test suite further to avoid dead locks 2016-08-16 14:07:15 +10:00
Patrick O'brien
b11132ea2d Fix circle to use go1.7 2016-08-16 13:22:50 +10:00
Patrick O'brien
9f63e653a6 Update readme, remove parallel from rel tests 2016-08-16 01:48:37 +10:00
Patrick O'brien
a54725f0fc Add more tests
* Fix broken readme link
2016-08-16 01:46:41 +10:00
Patrick O'brien
e8443fa274 Add tests for keys.go 2016-08-16 00:38:26 +10:00
Patrick O'brien
8ea1aaa6cd Update readme 2016-08-15 23:37:41 +10:00
Patrick O'brien
69ad07423f Add config missing error 2016-08-15 23:15:05 +10:00
Patrick O'brien
aa3988b822 Update LICENSE to BSD 2016-08-15 22:43:42 +10:00
Patrick O'brien
aaa567c7df Add panic condition 2016-08-15 22:43:10 +10:00
Patrick O'brien
a681624168 Remove tables flag from binary 2016-08-15 22:42:40 +10:00
Patrick O'brien
8f0abc95ee Fix circle.yml 2016-08-15 20:02:47 +10:00
Patrick O'brien
99a149d9d7 Update circle to use go1.7rc3 2016-08-15 19:58:32 +10:00
Patrick O'brien
984e5f9bac Uppercase any non-words (words w/o vowels aeiouy)
* This lets us find accronyms easily, example:
db, ssn, tx, etc.
2016-08-15 19:51:00 +10: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
Patrick O'brien
7be2f9f2bc Add RandomizeStruct test 2016-08-15 15:00:26 +10:00
Aaron L
6e18bbd5f1 Remove random from generation 2016-08-14 21:13:24 -07: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
490cdef5bc Force local seeds for randomize struct.
- Global data is actually a bad idea
2016-08-14 20:12:01 -07:00
Aaron L
81433cfaf4 Not freeing rows objects. 2016-08-14 18:36:22 -07:00
Patrick O'brien
75e28d3f5b Refactor RandomizeField
* Fix randomize arg in relationship helper
* Fix param name for RandomizeStruct
2016-08-15 01:32:57 +10:00
Aaron L
6a040bc11c Fix wording of testing 2016-08-14 03:07:23 -07:00
Aaron L
ff981ee885 Make counters atomic 2016-08-14 02:31:51 -07:00
Aaron L
522375f422 Fix duplicate key problems 2016-08-14 02:21:46 -07:00