Aaron L
944303f2f5
Properly abstract LastInsertID
2016-08-13 16:34:02 -07:00
Aaron L
5360d3094e
Use errors package all over the project
...
In general:
errors.New("thing") -> errors.New
fmt.Errorf("thing %s", arg) -> errors.Errorf
fmt.Errorf("thing %v", err) -> errors.Wrap
fmt.Errorf("thing %s %v", arg, err) -> errors.Wrapf
2016-08-13 11:37:16 -07:00
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
33286e648a
Update repo to add vattle org paths
2016-08-09 17:59:30 +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
Aaron L
1cb57741cf
Change default ints to int not int32
...
- THANKS PATRICK
2016-07-31 22:50:33 -07:00
Aaron L
1eade96bcd
Fix query string building a little bit
2016-07-31 20:29:39 -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
Patrick O'brien
b7a04e849c
Added unique constraint to table state
2016-07-16 05:09:32 +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
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
Aaron L
d7adb7006e
Rename IsNullable -> Nullable
...
- Skip insert test
- Fix whitespacing issue
2016-07-09 10:13:35 -07:00
Patrick O'brien
0275677216
Merge branch 'master' of github.com:nullbio/sqlboiler
2016-07-06 16:04:54 +10:00
Patrick O'brien
7a0b84848f
Add more tests to insert template tests
...
* Add helpers to assist with template tests
* Change null []byte from string to []byte
2016-07-06 16:02:35 +10:00
Aaron L
9a80de4103
Fix a foreign key lookup bug.
2016-07-01 15:52:19 -07:00
Aaron L
f7a4d3d34b
Remove system tables from postgres driver lookups
2016-06-26 23:59:27 -07:00
Aaron L
fee1231813
Push strmangle refactoring through everything.
2016-06-22 23:48:49 -07:00
Aaron L
60f6080e73
Refactor dbdrivers into two packages
...
- Break dbdrivers into bdb and drivers
- Break each type in dbdrivers into it's own file set.
2016-06-22 23:11:32 -07:00