Commit graph

42 commits

Author SHA1 Message Date
Aaron L
9c2a4d7852 Merge branch 'eager' 2016-08-17 23:17:13 -07:00
Patrick O'brien
8806e76d9f Nearly finished relationship bind helper
* If only reflection would be nice
2016-08-18 03:56:00 +10:00
Patrick O'brien
94d36d7bf7 Begin IN implementation 2016-08-17 15:19:23 +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
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
Aaron L
0b7e6fc507 Seperator -> Separator 2016-08-08 00:42:13 -07:00
Aaron L
44cf647d05 Rewrite Find using normal sql 2016-08-07 23:36:11 -07:00
Aaron L
989bece6b3 Restore Exec/One/All 2016-08-07 18:16:34 -07:00
Aaron L
ee2b4e7990 Rewrite bind.
- Break bind down into separate functions
- Implement naming inference in bind for multiple tables
- Make One and All take the same code path mostly
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
Aaron L
307fe4919a Add parsing routine for SQL from/join statements
- Bonus: Add yaml/toml struct tags for models
2016-08-05 23:51:13 -07:00
Patrick O'brien
feb85a2a44 Finish upsert and upsert tests
* Fix find bug in query generator
2016-08-05 12:59:40 +10:00
Patrick O'brien
8dbf322754 Add Update back for UpdateAll 2016-08-05 00:26:39 +10:00
Patrick O'brien
70b2dcfbb2 Boilerplate for upsert 2016-08-05 00:25:35 +10:00
Aaron L
f98ff568fb Remove unused fields 2016-08-03 22:44:57 -07:00
Aaron L
1a1a025b58 Add append versions of boil query helpers 2016-08-03 22:22:17 -07:00
Aaron L
48e14f4fd8 Add multiple from statements. 2016-08-03 21:50:26 -07:00
Patrick O'brien
775c5ba369 Fix IdentQuote bug, add Reload helpers 2016-08-02 20:00:00 +10:00
Patrick O'brien
fb8540af1a Change to IdentQuote, add IdentQuote to Select QM 2016-08-02 13:25:02 +10:00
Aaron L
fd7cb01b89 Add an order by query 2016-07-31 21:05:03 -07:00
Aaron L
b8c28c7cf8 Add offset and limit generation 2016-07-31 19:21:06 -07:00
Patrick O'brien
f713e041ad Add sql query mod, finish or querymod
* Add comments to kill lint errors
2016-07-19 14:07:12 +10:00
Patrick O'brien
f45d137f5f Added panic functions
* Fixed linter errors
* Added lots of missing comments
* Fixed broken boil tests
* Skipped unfinished functions instead of error
2016-07-16 21:22:57 +10:00
Patrick O'brien
0bb847c0da Refactor Where clause, add to insert builder
* Fix Find template comparison, replace DeepEqual
2016-06-12 07:55:23 -07:00
Patrick O'brien
9ede42c577 Added args to delete query builder
* Fixed delete query builder WHERE bug
* Finished Delete template tests
2016-06-10 15:20:26 +10:00
Patrick O'brien
1e412cec74 Added COUNT function to select query builder 2016-06-10 09:43:45 +10:00
Patrick O'brien
4ad069f64d Finish BindAll implementation 2016-06-07 14:38:17 +10:00
Patrick O'brien
3e467f2329 Fixed some bugs, added GetSelect
* Begun BindAll, Bind and BindOne
2016-06-05 16:13:38 +10:00
Patrick O'brien
3152eed170 Added debug mode, test singles
* Where statement OR/AND support
* Added null-extended library to use different data types
* Added disable triggers function for test main
2016-06-03 07:07:51 +10:00
Patrick O'brien
019ab3b502 Finished finishers 2016-05-10 20:20:29 +10:00
Patrick O'brien
a957bc3836 Changed From qmod to Table, added default values
* Added drivername to tplData
2016-04-26 19:27:00 +10:00
Patrick O'brien
6d8706c07d Added execquery implementations 2016-04-20 23:03:33 +10:00
Patrick O'brien
2abe35e6f9 Moved Apply back to query mods
* Added tests for query file
2016-04-20 22:51:04 +10:00
Patrick O'brien
2fc2a36306 Begin query building
* Added golden fixtures
2016-04-19 15:31:07 +10:00
Patrick O'brien
dc50c0d42c Made qs package, added single templates support 2016-04-19 12:02:32 +10:00
Patrick O'brien
95d91f17f3 Added bind checkType function
* Added select and join querymod
2016-04-16 17:25:00 +10:00
Patrick O'brien
4b12c849fc Added some querymods
* Added finishers that are broken
* Added some template stuffs
* Added a TestTemplates file output line thingy
2016-04-16 15:17:25 +10:00
Patrick O'brien
d89d23e673 Began implementing the ORM prototype
* Hooks, query mods, and query
* Update and UpdateX
2016-04-13 23:51:58 +10:00