Commit graph

754 commits

Author SHA1 Message Date
Aaron L
f1f311b70f Add DB name stuff to randomize package 2016-09-12 22:43:09 -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
37a05de380 Fix a mistake in the insert query 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
d1ea925523 Fix bug in debug output 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
9bcaf51493 Fix randomize for all array types, remove generic
* GenericArray can't work with generated code.
* Multi-dimensional arrays can't work because
  PSQL does not have a method to discover array
  depth.
2016-09-12 07:22:17 +10:00
Patrick O'brien
e62dfe369f Add array types and hstore types 2016-09-12 03:40:59 +10:00
Patrick O'brien
a1f91416f9 Add link to project page 2016-09-11 13:02:54 +10:00
Patrick O'brien
793522650c Add lq, rq, and indexplaceholders args everywhere 2016-09-10 05:15:50 +10:00
Patrick O'brien
f14301de7b Add things to shut tests up 2016-09-10 03:35:32 +10:00
Patrick O'brien
419f2760c7 Change quotes to bytes 2016-09-10 03:30:46 +10:00
Patrick O'brien
9e6a3d5ee3 Add quote dialects 2016-09-10 03:14:18 +10:00
Patrick O'brien
817189fbfd Fixed outstanding failed tests 2016-09-10 01:06:07 +10:00
Patrick O'brien
ac02f7d2e0 Fix broken relationship templates by adding schema 2016-09-09 22:31:51 +10:00
Patrick O'brien
51b4f9b309 Fix superfluous arg to placeholders 2016-09-09 17:57:01 +10:00
Aaron L
b1efbd21c7 Add a MySQL main test that does nothing 2016-09-08 23:05:09 -07:00
Aaron L
81148d4beb Add MySQL configuration. 2016-09-08 23:04:58 -07:00
Aaron L
aadcf63e52 Fix problem with mysql table query. 2016-09-08 23:04:33 -07:00
Aaron L
1e0b90a99c Fix problem with table lookup in postgres 2016-09-08 22:42:49 -07:00
Aaron L
16b6a2b176 Rename Exclude -> Blacklist 2016-09-08 22:41:57 -07:00
Aaron L
c65c1f6a2c Fix a mistaken panic on bad parameters 2016-09-08 22:37:54 -07:00
Aaron L
97d6636da4 Add a MySQL driver 2016-09-08 22:22:28 -07:00
Aaron L
0eac708c56 Fix bad SQL parameterization 2016-09-08 20:48:22 -07:00
Aaron L
6224b1c463 Move globals away so we can make mysql driver 2016-09-08 20:41:50 -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
Patrick O'brien
3929729a2c Add schema flags to readme 2016-09-09 03:43:36 +10:00
Patrick O'brien
8d486ef51b Add schema FAQ to readme 2016-09-09 03:39:27 +10:00
Patrick O'brien
ac42fbc2c7 Add json to uppercase words 2016-09-09 01:22:22 +10:00
Patrick O'brien
5300a0f6a4 Fix all postgres types, fix all randomize types 2016-09-09 00:35:43 +10:00
Patrick O'brien
14c8f651c4 Add all postgres types to test_schema 2016-09-08 19:52:52 +10:00
Patrick O'brien
757cbde016 Add NullJSON and JSON types, fix randomize struct 2016-09-08 19:07:33 +10:00
Patrick O'brien
ce8573eccd Updated to null.v5, update postgres driver types 2016-09-07 23:50:54 +10:00
Patrick O'brien
41c36cadf3 ValuesFromMapping now gets values 2016-09-06 01:24:19 +10:00
Patrick O'brien
7144d272bd Add whitelist feature 2016-09-06 00:41:12 +10:00
Patrick O'brien
d5eb79ae28 Fix formatting (gofmt -s for goreportcard.com) 2016-09-05 21:47:17 +10:00
Patrick O'brien
b89e2c3429 Fix lint errors 2016-09-05 21:33:18 +10:00
Patrick O'brien
9b0cfc2901 Fix more typos in comments 2016-09-05 21:28:58 +10:00
Patrick O'brien
bfc87ac1ca Fix typo in comment 2016-09-05 21:05:59 +10:00
Aaron L
a4a1766028 Merge pull request #28 from GeertJohan/patch-1
Fix example in README
2016-09-05 00:55:36 -07:00
Geert-Johan Riemer
c6c0db5b88 Fix example in README
Percentages in a string should be either escaped `"%%"` or placed in a raw string. ````%````
2016-09-05 09:51:34 +02:00
Patrick O'brien
003a51d90f Fix tag command in README 2016-09-05 13:08:08 +10:00
Aaron L
9a534e73e2 Fix download command in README 2016-09-04 14:42:14 -07:00
Patrick O'brien
5d3bd0ba54 Add Go version compatibility requirements 2016-09-05 02:11:27 +10:00
Patrick O'brien
a90796c698 Fix images 2016-09-05 01:49:30 +10:00
Patrick O'brien
f0e723a58e Add benchmarks 2016-09-05 01:44:29 +10:00
Patrick O'brien
51a86dde3d Add tags feature to readme 2016-09-04 23:56:36 +10:00
Patrick O'brien
4e8191b8dd Add struct tags flag 2016-09-04 23:44:54 +10:00
Patrick O'brien
e35ecd76c1 Add json tables output to debug mode 2016-09-04 20:27:19 +10:00