Commit graph

179 commits

Author SHA1 Message Date
Aaron L
5149df8359 Move everything to better package structure 2016-09-14 20:45:09 -07:00
Patrick O'brien
f6b4d3c6fd Rename exec funcs to conform to sql stdlib 2016-09-15 02:14:30 +10:00
Patrick O'brien
7ce5ac18ac Add P versions of query exec funcs
- Update readme
2016-09-14 19:42:07 +10:00
Patrick O'brien
83f7092dc6 Add MySQL Upsert, fix identation in all tpls 2016-09-14 18:14:07 +10:00
Patrick O'brien
91bb5ee940 Change Exec funcs to methods with Query receiver 2016-09-13 19:46:32 +10:00
Aaron L
1facccacc1 Fix an edge case for MySQL
- This patch removes auto-generation of queries that have the pattern
  COUNT(tablename.*) which is a syntax error in mysql.
2016-09-13 00:48:14 -07:00
Aaron L
f1f311b70f Add DB name stuff to randomize package 2016-09-12 22:43:09 -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
793522650c Add lq, rq, and indexplaceholders args everywhere 2016-09-10 05:15:50 +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
5300a0f6a4 Fix all postgres types, fix all randomize types 2016-09-09 00:35:43 +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
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
acad9f7de5 Finish Insert() caching. 2016-09-03 12:47:27 -07:00
Aaron L
e1bfd9d0da Remove TitleCases from NonZeroDefaultSet 2016-09-03 11:54:23 -07:00
Aaron L
67f72d4596 Export some functions we'll need.
- Add a second layer of caching so it can be exploited by models
2016-09-03 11:37:56 -07:00
Aaron L
e0ea582e37 Allow binding to []struct, not just []*struct 2016-09-03 10:43:32 -07:00
Aaron L
08dc7a5cc1 Add extra type information everywhere for binding. 2016-09-03 10:33:28 -07:00
Aaron L
988cb2bf04 saving in case of emergency 2016-09-03 08:00:16 -07:00
Patrick O'brien
09fb8005f6 Add TitleCase cache 2016-09-02 17:55:16 +10:00
Patrick O'brien
530aec1e16 Remove pointers to L, not needed 2016-09-02 11:10:00 +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
fdac827cd8 Tidy up optimization 2016-08-31 21:34:10 -07:00
Aaron L
2d0924a625 Remove a bunch of unused code.
- Optimize the TitleCaseIdentifier loop
2016-08-31 21:34:10 -07:00
Aaron L
9f52cf6ec9 Delete unused code 2016-08-31 21:34:10 -07:00
Aaron L
6b966954ee Fix random bits that were unfinished. 2016-08-31 21:34:10 -07:00
Aaron L
e4d7f1b8e2 Second optimization pass 2016-08-31 21:34:10 -07:00
Aaron L
7fb0e43648 Start optimization on bind 2016-08-31 21:34:10 -07:00
Patrick O'brien
2ecff95e42 Add SQL string cache 2016-09-01 11:28:35 +10:00
Patrick O'brien
d56e28a36d Fix Location pointer 2016-09-01 11:24:39 +10:00
Patrick O'brien
8f6191c4d2 Move buildUpsertQuery to boil 2016-09-01 11:20:16 +10:00
Patrick O'brien
e33da59f0b Update hook names 2016-09-01 11:12:46 +10:00
Aaron L
32b5952c96 Make sure we pass around the addr of slices.
- Use reflect.Indirect instead of .Elem()
2016-08-29 22:49:02 -07:00
Aaron L
f2b8f39d47 Initial nested eager load. 2016-08-29 22:49:02 -07:00
Patrick O'brien
d735c3df36 Add For query mod 2016-08-30 13:13:00 +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
Patrick O'brien
96d40fcfe4 Add automatic timestamps for created_at/updated_at
* Update and Insert
* Add --no-auto-timestamps flag
2016-08-29 00:12:37 +10: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
09cdb7a652 Fix SQL (takes exec now)
* Add SQLG
* Update templates using SQL
2016-08-28 14:51:03 +10:00
Aaron L
f489e22ab4 Rename Loaded -> R 2016-08-26 21:40:29 -07:00