Commit graph

507 commits

Author SHA1 Message Date
Aaron L
01124d9d0b Add IdentQuoteSlice 2016-08-03 21:46:58 -07:00
Aaron L
0008aa0495 Fix test.sqldebug flag 2016-08-03 21:37:59 -07:00
Patrick O'brien
ed2c5e407d Fix insert and update whitelist generators 2016-08-04 13:55:25 +10:00
Aaron L
b8b44eba98 Document generateInsertColumns properly. 2016-08-03 20:52:43 -07:00
Aaron L
7abeba46f9 Redo the update inference docs 2016-08-03 20:38:23 -07:00
Aaron L
4a90e726db Fixed up documentation. 2016-08-03 20:23:55 -07:00
Aaron L
20fe91c398 Make identquote understand * 2016-08-03 19:19:09 -07:00
Patrick O'brien
964f367700 Add Exists feature 2016-08-03 20:23:43 +10:00
Patrick O'brien
0a2507178e Fix silly regexp pattern 2016-08-03 15:31:59 +10:00
Patrick O'brien
afedc92224 Change Enforced to Validated 2016-08-03 14:22:32 +10:00
Patrick O'brien
c7c0fe5c0d Add provision for enforced types, eg uuid
* Add enforced to column data
* Add enforced list to driver
* Fix bug in TitleCase (now uses regexp)
* Fix broken zero-value enforced type inserts by using RandomizeEnforcedStruct
2016-08-03 12:05:05 +10:00
Patrick O'brien
39fe91f2cb Add RandomizeEnforcedStruct
* Fix broken Select QM test
2016-08-03 10:53:34 +10:00
Patrick O'brien
775c5ba369 Fix IdentQuote bug, add Reload helpers 2016-08-02 20:00:00 +10:00
Aaron L
9a5742eeea Use query generation for relationship_to_one
- This allows the use of query mods
2016-08-01 20:38:32 -07:00
Patrick O'brien
fb8540af1a Change to IdentQuote, add IdentQuote to Select QM 2016-08-02 13:25:02 +10:00
Patrick O'brien
b171fd42ba Add smart quote helper 2016-08-02 12:55:40 +10:00
Patrick O'brien
65b80ddc13 Merge branch 'master' of github.com:nullbio/sqlboiler 2016-08-01 17:42:23 +10:00
Patrick O'brien
01228b4e26 Add stack implementation for SmartQuote 2016-08-01 17:41:52 +10:00
Aaron L
1cb57741cf Change default ints to int not int32
- THANKS PATRICK
2016-07-31 22:50:33 -07:00
Patrick O'brien
a3ea7a3c0c Merge branch 'master' of github.com:nullbio/sqlboiler 2016-08-01 15:12:08 +10:00
Patrick O'brien
2d732c727a Remove X funcs and add G funcs 2016-08-01 15:10:10 +10:00
Aaron L
757aaf3a4d Fix tests for uuid string types 2016-07-31 21:56:49 -07:00
Aaron L
735012c4e9 Add optional password-ability to tests 2016-07-31 21:24:33 -07:00
Aaron L
fd7cb01b89 Add an order by query 2016-07-31 21:05:03 -07:00
Aaron L
4735ce993c Fix some latent renames 2016-07-31 20:57:09 -07:00
Aaron L
1eade96bcd Fix query string building a little bit 2016-07-31 20:29:39 -07:00
Patrick O'brien
edecf1b704 Add "count as" query fixture 2016-08-01 13:06:51 +10:00
Aaron L
b8c28c7cf8 Add offset and limit generation 2016-07-31 19:21:06 -07:00
Aaron L
40df1b7c86 Die if postgres driver config is missing 2016-07-31 19:05:21 -07:00
Patrick O'brien
ba5034b7ee Fix things 2016-07-19 15:36:26 +10: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
Aaron L
b447018220 Rename ReverseArgs -> ReverseInserts
- Remove debug comment
2016-07-17 17:52:55 -07:00
Aaron L
d4170806f5 Produce true one_to_one relationships.
- Generating code & test for one_to_one by calling existing to_one
  templates with the reversed texts function output as input.
- Add a section to reverse the order of the function inserts.
2016-07-17 17:50:01 -07:00
Aaron L
1513661e15 New texts to reverse a "to_many" into "to_one" 2016-07-17 17:48:08 -07:00
Aaron L
423d4b66bf Fix a bug in the column constraint detection
- Without the table constraint any table in the DB that was named the
  same as another would trigger false positives.
2016-07-17 17:47:06 -07:00
Aaron L
71dc36c8e6 Delete some comments 2016-07-17 17:46:49 -07:00
Aaron L
1a53eab27f Rewrite to_one template as a sub-template
- This allows us to use the sub-template in other templates.
2016-07-16 23:57:08 -07:00
Aaron L
f4ce95891c Refine the relationship to_one texts.
- This is so we can completely replace the data set being used
  (combination of tplData, and texts) by texts data.
2016-07-16 23:56:09 -07:00
Aaron L
e08eacad05 Stop dividing templates up, and execute by name
- This allows us to use templates defined from anywhere in other
  templates.
2016-07-16 23:55:15 -07:00
Patrick O'brien
7545343e0d Cobra package update broke something 2016-07-17 13:46:12 +10:00
Patrick O'brien
20ce662a67 Merge branch 'master' of github.com:nullbio/sqlboiler 2016-07-17 13:33:49 +10:00
Patrick O'brien
8a2373b354 Add more uppercase words to titlecase 2016-07-17 13:33:16 +10:00
Aaron L
e4ddb7e0a8 Fix Patrick's jackal test. 2016-07-16 13:23:15 -07:00
Aaron L
fc5bbc3e2e Use the cached relationship information 2016-07-16 13:02:35 -07:00
Patrick O'brien
488e203c0b Change objectSlice to be exported (ObjectSlice) 2016-07-17 00:15:14 +10:00
Patrick O'brien
4278d21b37 Fixed whitespace on template output 2016-07-16 22:11:10 +10:00
Patrick O'brien
916b7026dc Fix relationship to one bug 2016-07-16 21:40:50 +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
a559738d59 Added boil error helpers 2016-07-16 15:38:51 +10:00
Patrick O'brien
b7a04e849c Added unique constraint to table state 2016-07-16 05:09:32 +10:00