Aaron L
dcbc640303
Fix test suites to include one-to-one
2016-09-18 10:34:07 -07:00
Aaron L
81494a91d0
Remove one-to-one
2016-09-17 23:50:31 -07:00
Aaron L
9bc5b3fa40
Fix one-to-one in many areas
2016-09-17 22:10:19 -07:00
Patrick O'brien
40847b4b42
Fix null bytes for mysql randomize
2016-09-18 13:17:06 +10:00
Aaron L
5b97a17235
Fix erroneous generation of 1-to-1 setop remove
2016-09-17 00:09:56 -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
Patrick O'brien
6c13b63500
Fix non-int comparisons
2016-09-17 13:13:44 +10:00
Aaron L
fbb3872303
Fix bug where generation could fail
2016-09-16 08:28:05 -07: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
Aaron L
a426f09a75
Remove helpers in favor of more optimized paths
2016-09-15 23:44:44 -07:00
Aaron L
0e4372f0d5
Fix template generation problem for to_one
2016-09-15 22:03:47 -07:00
Patrick O'brien
702bb2095e
Don't output the schema
2016-09-15 01:45:28 +10:00
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
912693a124
Update parameter generation for mysql
2016-09-12 23:28:23 -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
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
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
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
Aaron L
b1efbd21c7
Add a MySQL main test that does nothing
2016-09-08 23:05:09 -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
Aaron L
70c633df5a
Make sure we generate to_many set op tests
...
README
README
README
README
2016-09-03 02:17:35 +10:00
Patrick O'brien
fd07a1a6a7
Move loaders off R to a new struct L
2016-09-02 11:03:59 +10:00
Patrick O'brien
87b1f90c43
Fix Find name
2016-09-01 11:16:21 +10:00
Patrick O'brien
e33da59f0b
Update hook names
2016-09-01 11:12:46 +10:00
Patrick O'brien
7f24185544
Add executor to hooks
2016-08-29 23:23:42 +10:00
Aaron L
9553f462c7
Merge branch 'sets'
2016-08-28 23:29:47 -07:00
Aaron L
ae99b2a649
Finish ToManyRemove.
...
- Make Set test better.
2016-08-28 23:26:44 -07:00
Aaron L
128ecb4a77
Add ToManySet test.
2016-08-28 17:07:36 -07:00
Aaron L
4ba1849297
Finish ToManyAdd
2016-08-28 16:51:07 -07:00
Aaron L
4e70c9bb17
Near completion on the ToManyAdd setop
2016-08-28 16:36:49 -07:00
Aaron L
0eea12fb75
Complete removal on the remove method
2016-08-28 15:01:37 -07:00
Patrick O'brien
e2553705e1
Remove BeforeSelect hook (makes no sense)
2016-08-28 21:23:08 +10:00
Patrick O'brien
2a5630ce3e
Add before/after select/delete to hooks generation
...
* Add tests for all hooks
2016-08-28 21:13:45 +10:00
Patrick O'brien
8aad8fc479
Rename before/after Create hook to Insert hook
2016-08-28 20:54:46 +10:00
Patrick O'brien
95ff24b918
Add --no-hooks feature
2016-08-28 20:48:50 +10:00
Aaron L
947081c579
Rename ReverseInserts -> OneToOne
...
- Fix bug & failing test
- Skip WIP test
2016-08-28 00:27:50 -07:00
Aaron L
bc71147282
WIP - Trying to fix bugs
2016-08-27 19:10:46 -07:00
Aaron L
ea22d3656c
Add more text helpers for ToMany.
2016-08-27 12:00:42 -07:00
Aaron L
1887f23ca5
Finish ToOneSet
...
- Replace the custom update that actually set every model's relationship
to the same thing with a real update method so we get logging & hooks
2016-08-26 23:36:57 -07:00
Aaron L
204ca1291d
Fix randomization so it ignores pkeys
2016-08-26 22:53:36 -07:00