Commit graph

9 commits

Author SHA1 Message Date
Aaron L
ede97dea5b Add enum const generation
- Make postgres name its enums
- Add way to filter columns by whether or not they're an enum
- Split parsing of enums into name & values
- Add strmangle check functions: IsEnumNormal, ShouldTitleCaseEnum
- Add new strmangle enum functions to template test
- Implement a set type called "once" inside the templates so that we can
  ensure certain things only generate one time via some unique name.
2016-11-11 01:06:30 -08:00
Aaron L
5f86014847 Remove a bunch dead code 2016-08-13 23:54:17 -07:00
Aaron L
81d3e15aa9 Run gofmt -s to remove needless repetition 2016-08-08 00:46:06 -07: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
104d0e57cd Add nullability to foreign keys.
- Remove some debug output.
- Add some parallel
2016-07-09 09:59:37 -07:00
Patrick O'brien
013b3ae0f8 Added more reflect helpers 2016-07-09 02:39:36 +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
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