Commit graph

25 commits

Author SHA1 Message Date
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
Patrick O'brien 2ecff95e42 Add SQL string cache 2016-09-01 11:28:35 +10:00
Patrick O'brien 8f6191c4d2 Move buildUpsertQuery to boil 2016-09-01 11:20:16 +10:00
Patrick O'brien d735c3df36 Add For query mod 2016-08-30 13:13:00 +10:00
Patrick O'brien 26bb719563 Remove bad things (sum, min, max, avg, etc) 2016-08-26 22:08:27 +10:00
Patrick O'brien d28b3f4b62 Finish WHERE IN feature
* Fix bug with appendOr/And ordering
2016-08-19 03:21:53 +10:00
Patrick O'brien 94d36d7bf7 Begin IN implementation 2016-08-17 15:19:23 +10:00
Aaron L efa1fbb80a Big refactor of generated code
- Stop generating helper functions for each model
- Move Insert/Update/Upsert query generation helpers to strmangle
- Add tests for query generation helpers
- Delete a lot of the Insert/Upsert tests that test the query generation
  helpers.
- Use tx for more of the tests.
2016-08-13 21:21:26 -07:00
Patrick O'brien ffa751b1a7 Add escaping question marks for args
* Add thorough ConvertQuestionMarks test
2016-08-14 00:54:46 +10:00
Patrick O'brien 8ccfdc38df Add BufPool to query_builders.go 2016-08-14 00:20:13 +10:00
Patrick O'brien 7517ad3ced Fix ? conversion to $x for having and join args 2016-08-13 03:59:50 +10:00
Patrick O'brien 4571184b7d Add args to Having query mod
* Add more thorough golden tests
* Fix bug in update column ordering, now uses sort
2016-08-13 03:08:09 +10:00
Patrick O'brien 18029166c0 Add FilterColumnsByUnique, finish UpdateAll slice
* Add FilterColumnsByUnique
* Fix lots of broken tests
* Made CompareVals less stupid

Note: UpdateAll tests still broken because Unique
is not being fetched correctly for INDEX types,
it is only working for UNIQUE constraints.
2016-08-11 22:26:49 +10:00
Patrick O'brien e3f319346f Finish UpdateAll query builder
* Add modifiers to delete builder
* Update golden file tests
* Add startAt to whereClause
2016-08-11 18:23:47 +10:00
Patrick O'brien c3f8cff117 Add Or and And query mods, add ? placeholders
* Update whereClause builder to support Or and parentheses
* ? placeholders are now used instead of $1, $2 etc for where clauses.
* Update the whereClause test to add more tests and fix broken ones.
* Fix broken golden test files.
2016-08-11 16:44:15 +10:00
Patrick O'brien af1b647fb4 Remove Or query mod, add builder whereClause test
* Add fixture tests/golden files
2016-08-09 22:29:59 +10:00
Patrick O'brien 99b292b1ee Update query builder to make queries readable
* Finish DeleteAll for slice and query
* Fixed some formatting and comments
2016-08-09 20:19:42 +10:00
Patrick O'brien 33286e648a Update repo to add vattle org paths 2016-08-09 17:59:30 +10:00
Aaron L 0b7e6fc507 Seperator -> Separator 2016-08-08 00:42:13 -07:00
Aaron L f6d113a5ef GroupBy and Having work now 2016-08-08 00:28:01 -07:00
Aaron L 1ba2333658 Add test for a query with writeStars 2016-08-07 18:07:37 -07:00
Aaron L 6596868cb8 Change join structure to truly support any join
- Also normalize the "," vs ", " in query generation
2016-08-07 18:07:37 -07:00
Aaron L 162746526c Add min/max/sum/avg to the query gen 2016-08-07 18:07:37 -07:00
Aaron L 5541b4dce9 Reorganize things before tearing apart 2016-08-07 18:07:37 -07:00