Commit graph

47 commits

Author SHA1 Message Date
Aaron L
ab01c9d234 Don't eat so many spaces in to_many templates
- Fix #89
2017-01-10 18:16:02 -08:00
Aaron L
9402c8fe07 Fix area where the wrong columns were being used 2016-09-22 00:21:12 -07:00
Aaron L
d438ce5fc1 Remove a couple seldom used vars 2016-09-22 00:21:12 -07:00
Aaron L
3474602ab5 Correct bits here and there from last commits 2016-09-19 18:59:46 -07:00
Patrick O'brien
342a4512b4 Fix relationship tests bug, not setting Valid 2016-09-19 17:03:29 +10:00
Aaron L
f00230c414 Fix names of txt helper functions in templates 2016-09-18 11:18:43 -07:00
Aaron L
81494a91d0 Remove one-to-one 2016-09-17 23:50:31 -07:00
Aaron L
afe2665e52 Clean up the bytes checks with text helpers 2016-09-17 00:02:03 -07:00
Aaron L
69a59043c8 Revert "Fix compare against null.Bytes"
This reverts commit bbd9277e0e.
2016-09-16 23:04:58 -07:00
Patrick O'brien
bbd9277e0e Fix compare against null.Bytes 2016-09-17 14:32:19 +10:00
Aaron L
71cda35c50 Fix randomization in relationship tests 2016-09-16 08:22:09 -07:00
Aaron L
32561717b1 Clean up the byte primary key stuff 2016-09-16 08:02:32 -07:00
Aaron L
c624943f53 Make a rough sketch of what this would look like
Needs cleanup: Do not merge
2016-09-16 00:22:12 -07:00
Patrick O'brien
83f7092dc6 Add MySQL Upsert, fix identation in all tpls 2016-09-14 18:14:07 +10:00
Aaron L
912693a124 Update parameter generation for mysql 2016-09-12 23:28:23 -07:00
Aaron L
8392a4ba2a Fix quoting throughout templates
- Use "" style strings for all templates
- Attach a Quote and SchemaTable that understand escaped quotes so we
  can use "" style strings without repercussion.
- Make SchemaTable use escaped quotes
- Remove schemaTable from the templates in favor of .SchemaTable
2016-09-11 23:50:11 -07:00
Patrick O'brien
793522650c Add lq, rq, and indexplaceholders args everywhere 2016-09-10 05:15:50 +10:00
Patrick O'brien
ac02f7d2e0 Fix broken relationship templates by adding schema 2016-09-09 22:31:51 +10: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
fd07a1a6a7 Move loaders off R to a new struct L 2016-09-02 11:03:59 +10:00
Aaron L
ea22d3656c Add more text helpers for ToMany. 2016-08-27 12:00:42 -07:00
Aaron L
f489e22ab4 Rename Loaded -> R 2016-08-26 21:40:29 -07:00
Aaron L
d130354890 Fix eager loading, off-by-one pointer 2016-08-23 22:07:51 -07:00
Aaron L
509fe44f4e Rename Relationships struct to Loaded 2016-08-22 21:54:02 -07:00
Aaron L
c04e0d003a Make relationships only return query objects. 2016-08-18 00:19:15 -07:00
Aaron L
79520d27fb Use new randomize package 2016-08-18 00:06:28 -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
Patrick O'brien
9f63e653a6 Update readme, remove parallel from rel tests 2016-08-16 01:48:37 +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
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
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
d25712f929 Change entire project tests. 2016-08-14 01:58:36 -07:00
Aaron L
c278bb6667 Remove unused code from templates 2016-08-14 00:43:30 -07:00
Aaron L
1875bac7cf Correct improper detection of one-to-one 2016-08-13 15:33:54 -07:00
Aaron L
fd569fac7c Fix to_many tests. 2016-08-08 00:17:36 -07: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
2d732c727a Remove X funcs and add G funcs 2016-08-01 15:10:10 +10:00
Aaron L
d4170806f5 Produce true one_to_one relationships.
- Generating code & test for one_to_one by calling existing to_one
  templates with the reversed texts function output as input.
- Add a section to reverse the order of the function inserts.
2016-07-17 17:50:01 -07:00
Aaron L
fc5bbc3e2e Use the cached relationship information 2016-07-16 13:02:35 -07:00
Aaron L
929db1de2a Fix error with to_many null foreign keys. 2016-07-14 23:37:39 -07:00
Aaron L
bbf40bea53 Fix to_many relationship bug.
- IDs were being inserted incorrectly causing an sql key duplicate error
  instead of being inserted into the join table.
2016-07-14 23:28:33 -07:00
Aaron L
e6b8cfff93 Use MustTx 2016-07-14 23:15:35 -07:00
Aaron L
afb006b563 Fix to_many relationship tests. 2016-07-13 23:09:05 -07:00
Aaron L
f1df86ab9e Finish to_many base test case (no join table) 2016-07-13 22:34:18 -07:00
Aaron L
272660ca75 Relationship to many test work. 2016-07-13 22:34:18 -07:00