Commit graph

172 commits

Author SHA1 Message Date
Aaron L
04031a5c6f Change template naming to avoid lint errs 2016-09-20 21:08:19 -07:00
Dylan Johnston
c112ce367e Fix gosimple warning in exist tests 2016-09-21 00:39:29 +02:00
Patrick O'brien
0a1a12cd0a Primary key only tables are now handled adequately 2016-09-20 18:05:33 +10: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
a164540276 Remove temp files 2016-09-18 17:45:29 -07:00
Aaron L
c9eca3d9a8 Fix remaining to one tests 2016-09-18 17:43:44 -07:00
Aaron L
a58d588150 Fix small error message in tests
- Ensure we check foreign key values with reload AFTER we do all our
  relationship struct checks, reloading kills the relationship struct.
2016-09-18 17:20:12 -07:00
Aaron L
8cdb026200 Fix one-to-one setop generation
- Remove a bunch of useless stuff from the templating
2016-09-18 17:07:15 -07:00
Aaron L
7511730f97 Rename the test files 2016-09-18 16:52:46 -07:00
Aaron L
cc7a960943 Begin re-enabling one-to-one 2016-09-18 16:49:18 -07:00
Aaron L
eaa9a92d52 Make postgres pass again 2016-09-18 16:40:33 -07:00
Aaron L
2299bcecb1 Correct test naming 2016-09-18 16:11:19 -07:00
Aaron L
34b30ce6c3 Make templates generate again 2016-09-18 16:02:08 -07:00
Aaron L
1eb1ed10cf Fix last few bugs with find replacing 2016-09-18 11:21:26 -07:00
Aaron L
f00230c414 Fix names of txt helper functions in templates 2016-09-18 11:18:43 -07:00
Aaron L
4e20f223cd Put these aside for a minute 2016-09-18 11:14:21 -07:00
Aaron L
11098a95c3 Remove hacks from to_one 2016-09-18 11:13:22 -07:00
Aaron L
55e0ae5736 Add broken files that we'll need 2016-09-18 10:34:54 -07:00
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