Andy Day
237799dd2e
schema/field: allow non-string ValueScanner types for enum fields ( #1577 )
...
* Make non-string ValueScanner types work with enum fields
This change fixes #1575 which now makes it possible to specify a GoType
for an enum that is not a string alias. It requires that if the specified
type is not a string alias, the type must satisfy the Stringer interface.
* remove default, rename field
* wip
* remove comment
* go generate
* make optional
* generate 🤦
* handle NULL case
* turns out mysql stores strings as []uint8
2021-05-20 23:29:47 +03:00
..
2021-03-07 22:51:17 +02:00
2021-03-07 22:51:17 +02:00
2021-02-02 23:03:04 +02:00
2021-05-20 23:29:47 +03:00
2021-03-07 22:51:17 +02:00
2021-03-07 22:51:17 +02:00
2021-03-07 22:51:17 +02:00
2021-03-07 22:51:17 +02:00
2021-03-07 22:51:17 +02:00
2021-02-02 23:03:04 +02:00
2021-03-07 22:51:17 +02:00
2021-05-20 23:29:47 +03:00
2021-03-07 22:51:17 +02:00
2021-04-19 14:28:40 +03:00
2021-02-02 23:03:04 +02:00
2021-05-20 23:29:47 +03:00
2021-02-02 23:03:04 +02:00
2021-05-20 23:29:47 +03:00
2021-03-07 22:51:17 +02:00
2021-03-07 22:51:17 +02:00
2021-02-02 23:03:04 +02:00
2021-03-18 22:29:39 +02:00
2021-03-07 22:51:17 +02:00
2021-02-02 23:03:04 +02:00
2021-04-19 17:20:44 +03:00
2021-03-14 23:17:30 +02:00
2021-04-07 09:53:44 +03:00
2021-04-14 14:04:29 +03:00
2021-02-02 23:03:04 +02:00
2021-02-02 23:03:04 +02:00
2021-04-19 17:20:44 +03:00
2021-03-14 23:17:30 +02:00
2021-04-07 09:53:44 +03:00
2021-02-02 23:03:04 +02:00
2021-01-04 14:34:40 +02:00
2021-05-03 17:44:07 +03:00
2021-05-20 23:29:47 +03:00
2020-08-01 15:38:47 +03:00
2021-05-20 23:29:47 +03:00
2021-02-02 23:03:04 +02:00
2021-04-19 17:20:44 +03:00
2021-05-20 23:29:47 +03:00
2021-05-20 23:29:47 +03:00
2021-03-07 22:51:17 +02:00
2021-02-02 23:03:04 +02:00
2021-04-19 17:20:44 +03:00
2021-03-14 23:17:30 +02:00
2021-04-07 09:53:44 +03:00
2021-02-02 23:03:04 +02:00
2021-02-02 23:03:04 +02:00
2021-04-19 17:20:44 +03:00
2021-03-14 23:17:30 +02:00
2021-04-07 09:53:44 +03:00
2021-03-09 22:00:33 +02:00
2021-02-02 23:03:04 +02:00
2021-02-02 23:03:04 +02:00
2021-04-19 17:20:44 +03:00
2021-03-14 23:17:30 +02:00
2021-04-07 09:53:44 +03:00
2021-03-07 22:51:17 +02:00
2021-02-02 23:03:04 +02:00
2021-04-19 17:20:44 +03:00
2021-03-14 23:17:30 +02:00
2021-04-07 09:53:44 +03:00
2021-02-02 23:03:04 +02:00
2021-02-02 23:03:04 +02:00
2021-04-19 17:20:44 +03:00
2021-03-14 23:17:30 +02:00
2021-04-07 09:53:44 +03:00
2021-02-02 23:03:04 +02:00
2021-02-02 23:03:04 +02:00
2021-04-19 17:20:44 +03:00
2021-03-14 23:17:30 +02:00
2021-04-07 09:53:44 +03:00
2021-05-20 23:29:47 +03:00
2021-03-07 22:51:17 +02:00
2021-02-02 23:03:04 +02:00
2021-04-19 17:20:44 +03:00
2021-03-14 23:17:30 +02:00
2021-04-07 09:53:44 +03:00
2021-04-19 14:28:40 +03:00
2021-02-02 23:03:04 +02:00
2021-04-19 17:20:44 +03:00
2021-04-19 14:28:40 +03:00
2021-04-19 14:28:40 +03:00
2021-05-20 23:29:47 +03:00
2021-02-02 23:03:04 +02:00
2021-02-02 23:03:04 +02:00
2021-04-19 17:20:44 +03:00
2021-03-14 23:17:30 +02:00
2021-04-07 09:53:44 +03:00
2021-02-02 23:03:04 +02:00
2021-02-02 23:03:04 +02:00
2021-04-19 17:20:44 +03:00
2021-03-14 23:17:30 +02:00
2021-04-07 09:53:44 +03:00
2021-02-02 23:03:04 +02:00
2021-03-07 22:51:17 +02:00
2021-02-02 23:03:04 +02:00
2021-04-19 17:20:44 +03:00
2021-03-14 23:17:30 +02:00
2021-04-07 09:53:44 +03:00