Commit graph

327 commits

Author SHA1 Message Date
Patrick O'brien
d92a439c54 Modify postgres query to get is_unique for indexes
* Remove unused SnakeCase function
* Fix formatting bug in relationship structs
2016-08-13 17:30:55 +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
4b27cea3a6 Add join with where using args test 2016-08-13 03:28:46 +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
d1265764dc Remove unecessary print 2016-08-11 22:38:55 +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
3431919269 Fix broken whereclause test 2016-08-09 18:11:28 +10:00
Patrick O'brien
33286e648a Update repo to add vattle org paths 2016-08-09 17:59:30 +10:00
Patrick O'brien
2ece7d14f6 Clean up helpers, remove duplicate funcs
* Refactor DeleteAll for slice
2016-08-09 15:57:54 +10:00
Aaron L
8e3c1d41da GenerateParamFlags -> Placeholders
- Rewrite Placeholders to not use as much wizardry and magnetism
2016-08-08 20:19:26 -07:00
Aaron L
a98e474c9c Refactor WhereMultiple into new WhereClause 2016-08-08 19:33:10 -07:00
Aaron L
db747cccfe Fix fallout of whereclause change 2016-08-08 17:36:37 -07:00
Aaron L
b1d1b30724 Fix where clauses for templates 2016-08-08 17:36:37 -07:00
Aaron L
89ec1cfdb7 Delete useless duplicate method. 2016-08-08 17:36:37 -07:00
Aaron L
005218d61f Add WhereMultiple
- Change the order of the args in WhereClause to support varargs
2016-08-08 17:36:37 -07:00
Aaron L
097de57e59 Add InClause 2016-08-08 17:36:37 -07:00
Aaron L
7c65598f17 Fix spacing problem. 2016-08-08 17:36:37 -07:00
Patrick O'brien
b9fc5e4080 Fix ReloadAll 0 value primary key collisions 2016-08-09 10:34:21 +10:00
Patrick O'brien
fa8e431349 Add ReloadAll for ObjectSlice
* Fix RandomizeSlice bug overwriting blacklisted columns
* Add GroupAt param to param flags generator
2016-08-08 23:30:29 +10:00
Patrick O'brien
6fc2ad8760 Remove coveralls support because it sucks 2016-08-08 18:55:03 +10:00
Patrick O'brien
bfb749db4c Simplify coverprofile to get basic case working 2016-08-08 18:49:59 +10:00
Patrick O'brien
54696e75ca Add goveralls to circleCI and coveralls badge 2016-08-08 18:15:16 +10:00
Patrick O'brien
79ad706f78 Merge branch 'master' of github.com:nullbio/sqlboiler 2016-08-08 17:50:14 +10:00
Patrick O'brien
a35cd0e55f Add badges, fix license 2016-08-08 17:49:52 +10:00
Aaron L
58d3dcff48 Missed some more gofmt -s 2016-08-08 00:47:33 -07:00
Aaron L
81d3e15aa9 Run gofmt -s to remove needless repetition 2016-08-08 00:46:06 -07: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
d999c7b4d7 Fix failing test.
- Let's not be smart about renames in Bind(), just do the normal thing
  and bind to whatever the user's asked us to.
2016-08-08 00:20:19 -07:00
Aaron L
fd569fac7c Fix to_many tests. 2016-08-08 00:17:36 -07:00
Patrick O'brien
342038f288 Fix circleCI error reporting 2016-08-08 17:03:21 +10:00
Patrick O'brien
a073752df2 Remove duplicates from insert whitelist 2016-08-08 16:59:54 +10:00
Aaron L
1c7ad18ab1 Fix previous edit mistake 2016-08-07 23:37:05 -07:00
Aaron L
44cf647d05 Rewrite Find using normal sql 2016-08-07 23:36:11 -07:00
Aaron L
444153222b Use the new bind in all templates 2016-08-07 23:07:15 -07:00
Aaron L
989bece6b3 Restore Exec/One/All 2016-08-07 18:16:34 -07:00
Aaron L
b3ba8462d9 Fix inner join query mod 2016-08-07 18:12:13 -07:00
Aaron L
113754d38b Finish bind tests
- One test failing because lack of idMap usage
2016-08-07 18:07:37 -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
1236072f05 Fix struct tags for bind 2016-08-07 18:07:37 -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
Aaron L
8298da6f48 Refactor GetStructPointers 2016-08-07 18:07:37 -07:00
Patrick O'brien
7977cf1721 Merge branch 'master' of github.com:nullbio/sqlboiler 2016-08-08 09:34:26 +10:00