Commit graph

924 commits

Author SHA1 Message Date
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
Patrick O'brien
4fcfcfe24c Finished hook tests
* Fixed hook bug
2016-07-16 01:21:09 +10:00
Patrick O'brien
7e17008f8d Finish insert tests
* Add columnTypes helper
2016-07-15 22:26:45 +10:00
Patrick O'brien
05aa289167 Merge branch 'master' of github.com:nullbio/sqlboiler 2016-07-15 20:17:15 +10:00
Patrick O'brien
81883d5f75 Finish update tests
* Add SetMerge helper
* Add quotes around all column names in statements
* Fix blacklist bug in RandomizeStruct
* Split up update helper
2016-07-15 20:14:47 +10:00
Aaron L
929db1de2a Fix error with to_many null foreign keys. 2016-07-14 23:37:39 -07:00
Aaron L
bbf40bea53 Fix to_many relationship bug.
- IDs were being inserted incorrectly causing an sql key duplicate error
  instead of being inserted into the join table.
2016-07-14 23:28:33 -07:00
Aaron L
e6b8cfff93 Use MustTx 2016-07-14 23:15:35 -07:00
Aaron L
c57b3ea3b7 Delete random comments. 2016-07-14 23:14:51 -07:00
Aaron L
08feff45d7 Deal with null values. 2016-07-14 22:45:43 -07:00
Aaron L
95ef4ce74b Allow debug to be toggled by a flag. 2016-07-14 22:45:43 -07:00
Patrick O'brien
726fae9af1 Add MustTx helper, move deletes to bottom of tests 2016-07-15 15:32:36 +10:00
Aaron L
e78f19f3e9 Add test for relationship to_one 2016-07-14 21:49:22 -07:00
Aaron L
6ddef6095e Rewrite to_one relationships with text helpers.
- Fix a gross if statement.
2016-07-14 21:48:59 -07:00
Aaron L
32b2581ead Add Texthelpers from foreign keys 2016-07-14 21:18:49 -07:00
Aaron L
afb006b563 Fix to_many relationship tests. 2016-07-13 23:09:05 -07:00
Aaron L
f1df86ab9e Finish to_many base test case (no join table) 2016-07-13 22:34:18 -07:00
Aaron L
f764c979e7 Add some things to template functions. 2016-07-13 22:34:18 -07:00
Aaron L
225a74423a Finish text helpers for relationships. 2016-07-13 22:34:18 -07:00
Aaron L
b15889591e Fix naming bug 2016-07-13 22:34:18 -07:00
Aaron L
272660ca75 Relationship to many test work. 2016-07-13 22:34:18 -07:00
Patrick O'brien
c424780458 Refactored and finished insert tests 2016-07-14 15:09:05 +10:00
Patrick O'brien
b7f8c132df Refactored select tests
* Delete unecessary helpers
2016-07-14 14:12:26 +10:00
Patrick O'brien
4036786b6a Got insert testing in a better state
* Split up insert function for testing
* Add DBType to global state
* Move test reflection helpers to testing.go
* Add incremental seed to randomizeField to avoid duplicate constraint
  error messages
* Fixed Viper SSL default bug
* Fixed pgpass SSL inclusion bug
* Add MakeStringMap strmangle helper
* Change test errors from error to skip
2016-07-14 02:51:40 +10:00
Aaron L
f054f2f754 Failed test runs of sqlboiler are left around
- Don't clean up, and print the location of the test run so that we can
  inspect the compilation failures that have occurred.
2016-07-12 20:00:13 -07:00
Aaron L
7cdf44376b Add even more nullable things for FKeys. 2016-07-12 08:09:26 -07:00
Aaron L
fb802ad687 Add to_many relationships as a first class citizen
- to_many relationships are now cached on the table data structure
- to_many relationships now know if any columns involved are nullable
2016-07-11 23:49:42 -07:00
Aaron L
bac9bb30ce Add a GetTable helper. 2016-07-11 23:48:30 -07:00
Aaron L
231b45d57a Add a way to lookup table columns by name 2016-07-11 20:40:24 -07:00
Aaron L
fe93ccffeb Make to_many use the X paradigm. 2016-07-11 15:23:47 -07:00
Aaron L
cdec85f11a Fix formatting. 2016-07-11 15:21:04 -07:00
Aaron L
2b666e74de Add postgres sslmode to configuration. 2016-07-11 15:17:49 -07:00
Patrick O'Brien
8cb8d1348a Update README.md 2016-07-11 15:43:59 +10:00
Patrick O'Brien
a819227722 Update README.md 2016-07-11 15:42:37 +10:00