From 97c316b80a6b442026cb188c7931b69ff17a8904 Mon Sep 17 00:00:00 2001 From: Ariel Mashraki <7413593+a8m@users.noreply.github.com> Date: Sun, 3 Jan 2021 22:10:19 +0200 Subject: [PATCH] entc/gen: move mutation-set naming to go api (#1123) --- entc/gen/internal/bindata.go | 4 ++-- entc/gen/template/builder/mutation.tmpl | 4 ++-- entc/gen/type.go | 12 +++++++++++- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/entc/gen/internal/bindata.go b/entc/gen/internal/bindata.go index c8538e292..0db79fe92 100644 --- a/entc/gen/internal/bindata.go +++ b/entc/gen/internal/bindata.go @@ -210,7 +210,7 @@ func templateBuilderEntqlTmpl() (*asset, error) { return a, nil } -var _templateBuilderMutationTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xd4\x5b\xdd\x73\xdc\x36\x92\x7f\x1e\xfe\x15\x1d\x96\x93\x1b\xea\x26\x9c\x64\xdf\xce\x39\x3d\x78\xad\x24\xab\xaa\xbb\xf8\x6a\xad\xdc\x8b\xca\xb5\x81\x88\x1e\x09\x67\x7e\x4c\x08\xcc\x48\xaa\xc9\xfc\xef\x57\x68\x00\x24\xc0\xaf\xf9\xb0\xec\xcd\xe6\x21\xf6\x90\x20\xd0\xe8\xfe\xf5\xaf\xbb\xd1\xf0\x6e\xb7\xbc\x88\xde\x56\xeb\xe7\x5a\xdc\x3f\x28\xf8\xcb\x77\xdf\xff\xc7\xb7\xeb\x1a\x25\x96\x0a\x7e\x62\x19\xde\x55\xd5\x47\xb8\x2e\xb3\x14\xde\xe4\x39\xd0\x20\x09\xfa\x7d\xbd\x45\x9e\x46\x37\x0f\x42\x82\xac\x36\x75\x86\x90\x55\x1c\x41\x48\xc8\x45\x86\xa5\x44\x0e\x9b\x92\x63\x0d\xea\x01\xe1\xcd\x9a\x65\x0f\x08\x7f\x49\xbf\x73\x6f\x61\x55\x6d\x4a\x1e\x89\x92\xde\xff\xd7\xf5\xdb\x1f\x7f\x79\xff\x23\xac\x44\x8e\x60\x9f\xd5\x55\xa5\x80\x8b\x1a\x33\x55\xd5\xcf\x50\xad\x40\x79\x8b\xa9\x1a\x31\x8d\x2e\x96\xfb\x7d\x14\xed\x76\xc0\x71\x25\x4a\x84\xb8\xd8\x28\xa6\x44\x55\xc6\x60\x5f\xbc\x5a\x7f\xbc\x87\xd7\x97\x70\xc7\x24\xc2\xab\xf4\x6d\x55\xae\xc4\x7d\xfa\x3f\x2c\xfb\xc8\xee\x51\x0f\xda\xed\x40\x61\xb1\xce\x99\x42\x88\x1f\x90\x71\xac\x63\x78\x45\x9f\x8b\x62\x5d\xd5\x0a\xe6\xd1\x2c\xce\xaa\x52\xe1\x93\x8a\xa3\x59\xbc\x2a\xe8\x0f\xf9\x5c\x66\x71\x14\xcd\x76\xbb\x6f\xa1\x66\xe5\x3d\xc2\xab\x52\x2f\xf4\x2a\xfd\xa5\xe2\x28\xf5\x04\xb3\x59\xac\x25\xe8\x2f\xba\xd4\x8f\x4b\xef\x41\x6c\xe6\xc1\x92\xd3\xc2\xb3\xf8\x5e\xa8\x87\xcd\x5d\x9a\x55\xc5\x72\x65\xad\xb0\xc4\x52\xc5\x51\x12\x45\x59\x55\x4a\x92\x6a\xb9\x84\x77\x6b\xac\x69\xc3\xa0\x9e\xd7\x28\xd3\x68\xf6\x6e\xfd\xb6\x46\xbd\x19\x00\xb8\x04\x2c\x55\xea\x9e\xe8\x77\x57\x98\x63\xf8\xce\x3c\x69\xdf\xbd\x2b\xb1\xf3\xee\x5d\x49\xaf\x7f\x5d\xf3\xce\xb4\xe6\x49\xfb\xce\xff\xb4\x79\x12\x91\x9c\x5a\x27\x8d\x88\x93\x2a\xbb\x79\x5e\xa3\x51\xcf\x2f\xac\xd0\xba\x81\x4b\x88\x83\x07\xa1\xb2\x12\x32\xf3\xc8\x74\x84\x00\x87\x09\x7a\x57\xa6\xff\x6d\x7f\xda\xd9\xa2\xe5\x12\x82\x51\xfb\x3d\xd4\x68\x5d\x40\x02\x2b\xa1\x6a\x75\xfc\xc0\x14\xd0\x40\x24\x88\xee\x76\xb0\xce\x37\x35\xcb\x3d\xe9\xf4\x7c\x25\xad\x6f\x71\x7c\x5f\xb3\xf5\x43\x1a\xe9\xcd\xf7\x16\x92\xaa\xde\x64\x0a\x76\xd1\x2c\x23\x8c\x44\xb3\x6a\x0d\xef\xd6\xd1\x4c\x3d\xaf\xf5\x4b\x51\xde\xeb\xcd\xea\xe9\xaf\xaf\xd2\xbf\x6e\x44\xce\xb1\xfe\x49\x60\xae\xb7\x0e\x17\xcd\x1b\xad\x34\x52\x9f\xa7\xda\x95\xdd\x2f\x0d\xb7\xca\xd5\x1f\xac\x86\xe7\x59\xb5\x93\xd0\x2c\x62\x05\xac\xe4\xee\x79\xfa\xcb\xa6\xc0\x5a\x64\xfa\xf7\xdb\xaa\xdc\x62\xad\x90\xdf\x54\x7f\x65\x52\x64\xe6\x9b\x19\xe3\xfc\x84\xe9\xad\xf5\x82\xbf\x67\x39\xb2\x1a\xb9\x15\xb8\x60\xeb\x5b\xa3\x82\x0f\x46\x4d\xbb\x70\x7f\x68\xf7\xf7\x23\xbf\x47\x19\xc8\xfd\x0a\xd3\x5f\x4b\xf1\xfb\xc6\x2e\x47\xbb\xc6\x61\xb1\xd0\xec\xce\x57\xa1\x11\x29\x97\xd3\x5f\x6b\xe9\x06\x27\xf0\x84\x9d\xcd\x6a\x2c\xaa\x2d\xf2\x4f\x98\xc2\xd7\x8f\x53\xd0\xf0\x74\x77\x55\x95\x87\xfa\xe4\x55\x89\xf6\x71\x95\xf3\xff\x65\xf9\x06\x61\xb5\x29\xb3\xb9\x65\x33\x6d\x49\xfd\x67\x02\xf3\x8b\xc0\xc3\x16\x80\x75\x5d\xd5\x49\x34\x5b\xd7\xc8\x45\xc6\x14\x4a\xb8\xfd\xd0\xfc\x48\x83\xd1\xd1\x3e\x8a\xb6\xac\x86\x7f\x90\xeb\x3b\xf7\x82\x4b\x3b\xab\x87\xf7\x64\x5e\x8a\x3c\x09\xbd\xf2\xdd\xda\xf9\xe6\xba\x16\xa5\x82\x79\xc6\x0a\x6c\x1c\x2a\x81\xd8\x0c\x88\x07\x5c\xd5\x7e\xba\xdf\x03\xcb\xf3\xea\x51\x82\xaa\xa0\x60\xa5\xa6\x54\xed\x78\xcd\xc2\xc6\xb7\x36\xd6\x89\x37\x52\x94\xf7\xa4\x07\xfd\x93\xe5\x50\xd1\x34\x72\xc0\x45\xdb\x05\x48\x6d\xbd\xed\x44\xe4\xec\xf8\xd8\x75\xeb\x8c\xf8\x56\xea\x57\xad\x14\xab\xaa\x86\x40\x6f\x69\xa4\x67\x1d\xf8\x7e\x9e\x59\x91\x17\x40\x74\xa0\xff\x50\x12\xd2\x34\x1d\x14\x2e\x81\xae\x60\x9a\x50\x0a\xad\xd2\x6f\x3a\x2f\x76\x1a\x44\x34\xf5\x6b\xb0\xff\x65\x8b\x68\x36\xab\xd6\xcd\x6f\xfd\x5f\xb5\xd6\x0f\xd5\x73\xf0\xb4\x47\xcc\x8b\x16\x91\xc6\x65\x5f\x43\xc1\x3e\xe2\x7c\xc0\x71\x93\x45\x34\xdb\x47\x33\xad\x82\x7f\xd0\x6e\xb4\x70\xc6\x8f\x69\x6b\x3b\x92\x41\xcd\x8b\x84\xc6\xd5\xa8\x36\x75\x09\x45\x64\x19\xdc\x7e\x60\x00\x12\x3f\x0a\xf5\x10\x37\x72\xc4\xd7\x57\x3e\x36\xf4\x50\x4d\xac\xa8\x24\x81\x40\x70\x58\x91\x87\x50\xfe\xd0\x82\xc2\x2a\xbf\xfd\x64\x2e\x38\x74\xf9\x34\x19\x41\xc3\xae\x11\x91\x70\x51\xf4\x0c\x90\xd0\x8e\xb4\x53\xcc\x35\x0d\x60\x5d\x1b\x8f\xd2\x3f\xaa\x32\x43\xd0\xd9\x43\xfa\xae\xcc\x50\x3f\xd9\x92\x67\x86\x2e\x18\xcd\x66\x49\x34\x9b\x15\x69\xe3\xb9\x97\xd6\x77\xd5\x13\x1c\xeb\xbf\x24\x05\x2d\x98\x5e\x55\x73\xfa\xdc\x3e\x9b\x89\x15\x14\x29\x11\x84\xf9\x4d\x32\x5e\xc2\xaa\x50\xe9\x8f\xfa\xdb\xd5\x3c\xfe\x7d\x83\xf5\xb3\xf6\x95\x2a\xe7\x40\x32\x4a\x58\x57\x52\xb5\x90\x16\x12\xca\x4a\x19\xef\x43\x1e\x27\x34\xd3\xde\x90\xa7\x9d\x96\xbe\x23\x79\xe0\x12\x8a\xf4\x6d\x2e\xb0\x54\xf3\x24\x64\x90\xf4\x67\x54\x7a\x63\x0b\x10\xdc\x4e\xa2\xff\xbf\x4f\x0c\x87\x92\xa6\xdb\x89\x22\xf3\xba\x48\x47\x03\xe3\x25\x7c\x23\xb8\x46\x92\x87\x9f\x11\xf8\x8c\x23\x47\xef\x3a\x4c\x44\x0e\x42\x48\xc7\xfd\x8e\x1d\x3f\x11\x42\x03\xf6\x3f\xc9\xf6\x76\x0d\x2d\xd8\x02\x4a\x91\x1f\xa5\x3b\x3d\x3a\xbd\xbe\xb2\x0a\x5c\x2e\xc1\x58\x0d\xcc\x64\x12\x18\x11\xdb\x6f\x9a\xed\xcd\x9b\xdf\x60\x55\x57\x45\xa8\x1c\xb8\x0e\xb5\x05\x8f\x4c\xea\xb9\xf0\x09\xb3\x8d\x42\xae\xd3\x23\x06\xaa\x66\xa5\x64\xc4\xc4\x30\xd7\x13\xde\x3c\x25\x8b\xf0\x39\xcb\x21\x33\xeb\x0b\x69\x45\xd0\x95\x07\xe9\x7e\x5e\x74\x53\xaa\x04\x1c\xc4\xe0\xc2\x8a\xad\xb3\x2b\xf3\x37\xcd\x88\xe6\xe1\xce\xb1\x60\x91\x9a\xbf\xed\xdd\xa0\x54\x94\x42\xcd\x93\xc6\x3c\xe6\xa9\x55\xc4\xcd\x53\xab\x84\xd2\x68\xe0\xe6\xe9\x37\xa2\x76\x27\x83\x34\x59\xe2\x23\xd6\x18\xec\xd5\xdb\x91\xfc\x41\xcf\x25\x94\x3f\x17\x19\x0d\x2a\xf5\x80\xf5\xa3\x90\x38\xb1\xbf\x9b\xa7\xb9\x36\xfa\xcd\x93\x6f\x69\xb1\x82\x99\x66\xd6\x8f\x7a\x8f\x45\xca\x6b\xb1\xc5\x3a\x9d\x5f\xa8\xa7\x2b\xfa\x6b\xf2\x03\x7c\x55\x7d\x24\x4c\x38\x48\x88\x7c\x11\xb8\xbb\x2b\x96\xf6\xfb\xd7\x3d\x0f\xaf\x37\x65\xa9\x99\xa0\x6b\xb3\xd8\xf0\xb5\x7a\x22\xd5\xde\x3c\x0d\xa9\x55\x3d\x75\x55\xaa\x1d\x5d\x63\x91\xbc\xd3\x64\x6c\x04\xc5\x5f\x25\xd6\x57\x54\xc8\x99\xfc\x65\xb9\x84\xf7\xa8\xae\xaf\x5a\x9f\x34\x4c\x69\xfd\xd0\x51\x7b\x0a\xbf\x54\x94\x90\x33\xb5\xa0\x1a\x91\xbe\x6c\xb3\x76\x21\x81\x65\x19\xae\xb5\x21\xaa\x32\x7f\x86\xaa\xec\x38\x36\xc5\x6b\xf2\xe8\x99\x53\x7b\xdf\x1d\x49\x94\x91\x28\x71\x24\x1d\xf9\x35\xde\x72\x09\xd7\x57\x0d\x02\xec\x7e\xcc\xfe\x6c\xe1\xd0\xba\x52\xb0\x3f\x3d\x90\xf0\x23\x81\x6d\x99\xc8\xd9\x5d\x8e\x66\x5f\x62\xa5\x41\xf5\xc8\x24\xac\xeb\x6a\x2b\x38\x72\x9d\x11\xe9\x2f\xee\x8c\x44\x2d\xaa\xfa\xdb\xbb\xbe\xd2\xb0\x1a\xd8\xde\x02\xf0\x49\x48\x25\x29\x93\x74\x60\x9b\xda\xed\xa5\x36\xae\x07\x35\x3f\xa4\x5f\x8c\x7f\xb8\x00\x55\x6f\xd0\x52\xf6\x78\x0d\x43\x30\xa5\xf4\x01\x33\xd4\xd0\x6e\x4a\x94\xf7\x94\x73\xe8\x2c\x67\xa7\x55\x81\xbf\xeb\x81\x71\x11\x13\xdd\xd2\x57\x97\x10\x93\x86\xdd\xa3\xb6\x08\x81\x57\xa4\x99\x36\xc9\x78\x8f\x2a\xd6\x33\xbf\xa7\x0c\xc6\xc9\x68\x86\x9a\x02\xbc\x19\xeb\x55\xf2\x71\x1a\xdb\x0a\x49\x2a\x56\x2a\x87\xe2\x66\x7e\x3f\xbe\x98\xaa\xc8\x41\xd0\x20\x79\x0a\x7f\xde\x24\x73\xb3\x1d\xbb\xaf\xd5\x10\x10\xfb\x65\x98\xcd\x06\xd7\x6d\x91\xb3\xbc\xd0\xd2\x28\xad\xb4\xd2\x96\x77\x94\x02\x57\x5b\xac\x6b\xc1\x11\xd6\x35\x6e\x45\xb5\x91\x90\xb1\x3c\xa7\xf4\xfa\x0d\xe7\x29\xd0\xa9\xcb\x99\x55\x62\x91\x8e\xd6\x89\x97\x36\x40\xf9\x25\xcc\x3e\x6a\x15\xd8\x94\x16\x3f\xa3\x32\x55\x7a\xeb\x3b\xa1\x32\x87\xdd\xe8\xa0\x72\x3b\x0b\x68\x7f\xa8\x43\x0d\xf7\x7d\x61\xb6\x35\x8c\x3b\xb8\xa5\x88\xf2\xac\xad\xef\x12\x8d\x4f\x50\x1c\x76\x5e\xb1\xb5\xe0\x1f\xdd\xef\x3b\xa3\x22\x7f\xcb\x2e\x3f\xe9\x6e\xdb\xb2\x63\xa7\xd4\xd0\xb3\x5e\x0f\xbc\x81\xea\xee\xff\x30\x23\xd6\x28\xff\x4d\x8d\x11\x87\xe1\x1d\x3b\x54\x48\x58\xa1\xca\x1e\x90\xd3\xac\x4d\xe8\xe7\x4c\xb1\x3b\xa6\x63\x97\x7e\xfc\xc6\xc5\x34\x2f\x6a\x6b\xb8\x04\x39\x41\x40\xd2\x3a\xd0\x34\xc7\x46\x0b\xa8\xea\x66\x46\xa0\x54\x14\x56\x4c\xe4\xf2\x34\x33\x1a\xbd\x8d\x24\xcd\x5b\x30\x4c\xa1\x55\x28\x72\x43\xa4\xfb\xfd\x45\x43\x0c\x5d\xd3\xbb\x2c\xde\x18\x5e\xac\xe0\xab\x22\xad\xd6\xe9\xb5\x9c\x7b\xe7\x5d\x61\xe2\xb5\xed\xc7\xd8\x21\xbb\x6a\x2e\x37\x49\x74\x13\xa1\xda\x23\xb5\x46\x49\x92\x32\x6c\x8b\xaa\xc3\x0c\xfc\xc7\x1f\xe0\xa7\x8f\x3d\x0c\x1e\x2b\x5c\x8d\xbf\x6f\x44\x8d\x94\xa6\x5c\x5f\xd9\x72\xaa\xe3\x5c\x8d\x64\x6e\x3d\xa3\x2e\x72\x0d\xf7\x48\x5b\x21\x31\xc2\xeb\x77\x5f\x1d\x14\xa8\x5f\x80\x34\x45\xf4\x80\x9c\xaf\xe1\xeb\xc7\x98\x96\x4d\x42\xef\x72\xeb\x5b\x1f\x0d\x19\xdd\x66\xc5\x7b\x3a\xc9\x3d\x99\xce\x06\x02\xc7\x1b\xce\x07\x03\x47\x37\x0e\x30\xce\x25\x34\x3c\xae\xaa\xd0\x97\xd3\x68\xf6\x02\xa1\xa0\x39\x10\x5b\xa5\x7f\x63\xf2\xe7\xaa\x3d\xe3\xea\x1f\x72\x79\xc7\x4c\x06\x5e\xa3\x3c\xed\x1b\x6e\x76\x31\x31\xf0\xdf\x2f\xc1\x8b\x38\x61\x61\x38\x19\x07\xbe\x09\x3e\x23\x6b\x1a\x05\xbe\xe1\x1c\xf9\x90\x19\x03\x66\x34\x50\x31\x69\x38\x93\x5a\xd3\x2d\xa1\x0d\x44\x5d\x83\x65\x21\xfd\x48\x31\xa1\xfc\x51\x19\x8e\x8b\x17\x2e\x60\x8c\x6d\xdf\xea\x3f\x0c\x1a\x6d\xd4\x98\xed\x3d\x7f\x69\xe3\xc6\xcc\xa4\x26\x4d\x03\xa1\x21\x36\x53\x71\xb2\x7c\x14\xaf\x6f\x73\x64\xf5\x51\x88\xa5\xb3\x9e\x4e\x1e\x7e\x26\x68\xad\x2a\xc6\x53\x15\x93\x09\x9c\x97\x62\x1c\x93\x63\x74\x00\x5f\xa4\xc1\x41\xd6\x6d\x9b\xe5\xed\xf7\x1f\xe0\x12\xdc\x39\xd6\xae\x01\x63\xb3\x9b\x26\x0b\x0c\x15\x68\xf4\x8a\x3c\x1e\x54\xa5\x43\xab\x8d\x87\x06\x86\x21\x34\x35\x72\xad\x50\x27\x02\x34\x54\xb4\x46\x9e\xd1\xb6\x57\x1f\x4e\xec\xd6\x83\x57\xf5\x71\x10\x58\x6e\xdf\x1e\x09\xff\x1d\x25\x0e\x66\xbb\x35\xbd\x60\x79\x0e\xd9\x83\x4e\xe9\xa5\x4b\x4f\xe2\x60\xb7\xf1\x89\xf9\xef\xa1\x4c\xb7\x4d\x24\x3f\x77\x82\xea\x51\x6c\xe8\x6a\x33\x4e\xcd\xb3\x79\x47\xd9\x0b\xf0\xb5\x9d\xf4\xd2\x5d\x4f\xd7\x5e\x1d\xd4\xef\x75\x98\x53\x27\xfd\x38\x66\x9c\x50\xa6\x9f\x08\x2e\x7f\xb2\xee\xfd\x0a\x1b\xeb\xbc\xe1\xbc\xa9\x8a\xfc\xde\x88\x9d\xe3\x12\x62\xa9\xab\x9d\x70\x8a\x60\x86\xf7\x64\x5d\xaf\x62\xb2\x66\x76\x83\x6d\xf8\xa9\x34\x67\xb7\x09\x39\x36\x60\x46\x7e\x8f\x2e\xc6\xd9\x76\x87\x7b\x75\xf7\x0c\x82\x1b\xd9\x74\x02\xe8\xcb\x27\x9b\x05\x0f\x02\xa3\x15\x64\xde\xdf\x27\xcd\x6f\x83\x9d\xe0\xee\x20\xdd\xcc\x0c\x83\x1d\x18\x83\xaf\x91\x76\x92\x81\x5d\xbf\x01\x63\xcb\xfc\x6e\x68\x6d\x72\xb5\x81\x2f\x7c\x8a\x1f\x9f\xb6\x39\x55\x1f\x94\xb5\x3d\x64\x6f\xc2\x83\xce\x92\x44\x7b\xc4\xae\xf7\x3c\xb9\xc6\xad\xe0\xf2\x56\x7c\xe8\x31\xdd\xac\xdb\x81\x0a\x18\x20\x04\x19\xf1\xdd\x10\x05\x78\x61\xe3\x58\x50\x9c\xcc\x03\x93\x8d\xb1\x4b\xaf\xb6\xf2\xe9\xab\x23\x3b\xf2\x61\x02\x0b\x98\x9a\x64\x0e\xb7\xe1\x11\xf5\x09\x72\x37\xb4\xec\x7a\x1d\x93\x7b\xf0\x13\xd4\x0e\x1c\xad\xbc\xd8\x09\xdf\x9d\xb3\xa5\x50\x64\xd1\xcb\xdf\x0f\x47\x94\xfe\x02\xde\x79\x51\x0f\x94\x43\x89\xcf\x84\x23\x7c\xd5\xcf\x75\xdc\x51\x51\x6f\x70\x93\xf2\xf8\xa9\x50\x1b\xa8\x1a\xc7\x6b\x0e\x8a\x74\x5d\x55\xc3\x9c\xc2\xf4\x0a\xe2\xaf\xd3\xef\x65\x1c\x20\x2e\x69\x3f\xf0\x08\xd4\xe6\x47\x7f\xa7\x16\x6e\x0c\x73\x29\xca\xfb\x4d\xce\xea\x46\x91\x7f\xc0\x9a\xc9\x8c\xe5\x09\xc4\xd7\x57\x32\x0c\xf4\x1e\x31\x9a\x1e\xf0\x39\xac\x28\x0f\x5b\xc5\xe3\xbd\x96\xd9\xc6\xf8\xcc\x58\x60\xb2\x27\xdd\x61\xa4\xe9\xb1\xa7\x13\xd3\x08\xa3\x1e\x58\xe9\x56\xf0\x3e\x35\x75\x58\x76\x9c\xf3\x0e\x4f\x3e\xcc\x7d\xb3\x7e\x61\x14\x66\x7e\x5d\x8c\xf0\xb8\xef\x25\xe3\xa9\x1f\x5d\x71\x32\xdf\x91\xb0\x36\x99\xc6\x93\x93\xe9\xeb\x2b\x69\x3c\x51\xc2\xed\x87\x29\xeb\x93\x86\x78\xab\xa2\x03\xe6\xb5\x7d\x42\x2e\xe1\x12\xd8\x7a\x8d\x25\xd7\x6b\x34\x2d\xba\x41\xe7\x73\x59\xe2\x28\x29\xc9\x49\x56\x92\x7d\x5a\x02\x00\x18\x46\x0d\xdd\x2a\xb2\xe7\xe2\xf4\x2d\xcb\x1f\xd9\x73\xbb\x40\x8e\xa5\x16\x38\x81\xff\xbc\x84\xef\xe9\xe0\x60\x63\xbe\xd6\x6e\x27\x17\x94\x16\x3e\x57\x1b\x90\x0f\xd5\x26\xe7\xb0\x91\x38\xc9\xa6\xa2\x94\x0a\x19\x4f\xe1\x5a\x39\x6e\xa3\xa3\x1a\xd2\x6a\xa9\xb0\xd6\x99\xdf\x46\xb2\x7b\xd4\xce\xeb\x9d\x9d\xb9\x1b\x4f\x0e\x45\xa7\xd2\xec\x31\xd6\xd5\x5a\x1a\x73\x2e\xb1\xb2\x56\x1f\xe1\xd3\x1f\xf4\xeb\x80\x80\xfb\x36\xbf\xf0\x8c\xde\x71\xbc\x3e\xaa\xce\x86\x93\xd5\xd2\x7e\x1f\xb4\x0e\x46\xa3\xf6\x99\x45\x07\xb6\x45\x87\x46\xc2\x59\x35\xc7\x10\x19\x9a\xda\xe0\x60\x2e\xb2\x62\x39\x21\xcd\x5a\xab\x9b\xf3\x46\xc7\xf0\xee\xd0\x39\xb9\x5f\x38\xd0\xc5\xc0\xf0\xb0\xb8\x39\x68\x2d\x59\x81\x53\x7d\xa0\x77\xeb\xb9\xfe\x9f\xd7\xa0\x2e\xd2\x6a\xed\xfa\x9f\x1a\x72\xfe\xbc\xa5\xbb\xd7\xd7\xdc\xcf\x6c\x26\x9b\x07\xe7\xcc\xc9\xd4\x9a\x7a\xda\x79\x62\x2f\xbc\x05\x2b\xab\x67\xb7\xb4\x6d\x01\x35\x2d\xd3\x3c\x37\x35\xa3\xdf\x6f\x35\xe6\xe6\xc0\x37\x74\x73\x6e\xb9\xec\x94\xcd\x7e\x23\x4d\x94\x50\xd5\x74\x3f\xb5\x82\x7b\x0b\x17\xdb\x05\xd1\x1f\xf6\xe6\x16\xe5\x92\x63\x56\x63\x81\xa5\x42\xbe\xa0\x96\x88\x39\x0b\x32\x92\xcd\x27\x77\xe8\xc6\xc0\xed\x87\x76\x97\x76\x8d\xd7\x36\x90\xba\x57\x0b\xf8\x8e\xaa\xc4\x1c\xcb\xa0\xf7\x95\x1c\x71\xbd\xef\xdb\x53\xbb\x53\x6d\x56\x36\x7d\xd0\x67\x65\x6d\x7c\x77\x35\x52\xcd\x76\xae\xf4\xb9\x3b\x0e\x34\xda\xb7\xe4\xc0\x81\x5d\xb5\x02\x66\x8f\x42\x1e\x85\x7a\x30\x97\x27\xc5\x16\x1d\x66\x35\xfe\x1e\x10\x24\x66\x55\xc9\x29\xb1\x44\x56\x36\xbd\x1e\x77\x4d\x8d\x2c\x46\x66\xb7\x53\x99\x6b\x07\xda\xcf\x24\x2a\x6a\x2b\xe8\x8c\x5d\xff\xb6\x97\x86\x6d\xcc\x91\xd9\x03\x16\xec\xa0\x11\xe7\x5a\x18\x0b\xd5\xc4\xdc\x59\xb0\x07\xde\x4d\xaa\xab\x15\x40\x3b\xe8\x98\x47\x3e\x0a\x95\x3d\xd0\x6e\x9a\xfa\x72\xc2\x9a\x67\x99\x73\x96\x31\x89\x81\x55\x5e\xfb\x49\x75\x63\xeb\x6e\xab\xab\x7b\xac\x31\x6c\x47\x73\x69\x80\x18\xcc\xf1\x4c\xce\xfb\xf6\x6c\xcf\xeb\x2b\xff\x80\x6b\xa0\x53\xf4\x02\x8d\x22\x3d\x47\x65\xae\x99\x9b\x36\x91\x3d\xe9\x6d\x9a\x47\xda\xdc\x2b\x26\x72\xff\xd6\xc8\x00\xef\xd9\x8d\x0c\xf5\x8a\x16\x30\x6a\xf4\xb6\x21\x74\xae\xd5\xd3\x2f\x6b\xed\xb6\x23\x76\x92\xcd\xbd\xb6\xcc\xa6\xfc\x58\x56\x8f\xdd\x3b\x14\xc6\xc4\x5f\xcb\xd8\x28\x2b\xb1\xce\xfe\x1e\x6d\x2a\xd3\xb9\xc3\xb1\xb2\x26\xf3\x1c\x5c\x67\x56\xed\x8d\x18\xba\x2b\x64\x70\xe1\x63\x48\xf8\xae\xcb\x43\xdf\x25\xe7\x36\xa3\x89\xfb\x75\x58\x2a\x84\x2c\x98\xd6\x7f\x3b\x85\x7e\x3e\x85\x04\x27\xb2\xef\xe9\x0b\x2b\x76\x63\xf9\xc4\x0a\xb7\x8b\xba\x06\xfe\x0c\x1c\x3d\x6c\xe5\xad\x3b\xcf\x25\xd1\xd2\x79\xd8\x00\xb2\xa9\x9f\xbb\xf5\xd3\x60\x22\xb4\x24\x3e\xad\x31\x53\x68\x94\x02\x5f\xdf\x90\x5d\x3c\x53\xda\x5b\x77\xc6\xa2\x2e\xeb\x2f\xd2\xf7\xa8\x06\x3b\x20\x5b\xff\xc6\x1e\x65\x29\x61\x92\x32\x2c\xc4\x09\x70\xf2\x02\x6e\x90\x0a\xb8\xfb\x0b\x03\x61\xbb\x89\xd9\x96\x28\xbc\x28\x6e\x13\x85\xee\xe1\xfa\x81\xde\xcf\x60\x2c\x6f\x2f\x32\xfd\x8d\x49\x77\xca\x4c\xc6\xdb\xb2\xda\x89\xe5\x3e\x38\x92\xfb\x4f\xef\x7c\x9c\xc5\x21\xa7\xb4\xfb\x8e\xce\x03\x86\xca\xe7\xe0\x47\x98\x19\x74\xaa\x8a\x11\x04\x75\x31\x10\xa6\xa2\x56\x3d\x9d\xee\x5f\x98\xb7\x45\xee\xc2\xc2\x54\xa6\xe1\xa7\x19\x9d\xf4\xc2\xe4\x94\xbd\x0c\xe3\x45\xd2\x8b\x76\x5f\x47\xe6\x18\xc3\x78\x3b\x27\xcb\xf8\x52\x48\x1b\x09\x57\x6d\xbe\x3f\xd1\x5c\x9d\x86\xd3\x31\xf9\x8a\xc1\x8e\x99\x91\xda\xef\xff\x12\xe1\xc8\x89\x7c\x6c\x38\x7a\xc9\xec\xf3\x9f\x8d\x8b\xc3\x21\xae\x13\xe4\x5e\x28\xcc\x59\xf6\xd2\xa1\xee\x0d\x1f\xc6\xe3\x36\x09\xa0\x3b\xd4\x56\x3e\x02\xa0\x87\x03\x61\x10\xd9\x3a\x01\xd1\xdc\xcd\xf6\xff\xd1\x54\x18\x13\xed\x9d\xa6\x7e\x9d\x6c\xbe\xd1\x9f\x9f\x1a\x01\x83\xe5\xa6\x62\x60\xd8\x0d\xfd\xa4\x20\xd8\xef\xad\x7e\x4a\xa0\xa3\x15\xec\x36\xe6\x41\xd8\xfa\x13\xc5\x38\x5f\x48\xef\xde\xbd\x2b\x7a\xdb\x72\x57\xac\x06\x8a\xdd\xf1\x7b\x03\x07\x8a\x5b\xa7\x96\x20\xfe\xb8\x56\xd5\xe8\xfd\x01\x3d\xfa\x43\xe4\xdd\x1a\xd8\xb7\xc8\x34\xfe\xd2\xbb\x3a\xf2\x39\xf8\xf6\x20\x6c\x07\x62\x6b\xc0\x9a\x23\xd8\x3d\x93\x38\x5f\x0c\xb5\x63\xe4\x58\xa4\xb4\xab\xf1\x68\xf9\x25\xc8\xc9\xa7\x98\x01\x76\xa2\x33\x5a\x97\xab\x51\x09\xe8\x1f\xcb\x76\x4e\xfb\xa1\xc6\x7b\x56\x73\xc3\x47\x14\x33\x0d\x3c\xcc\xe4\x03\x20\x19\x47\x08\x51\xdb\xa9\x20\x69\x85\x9d\x00\xc9\x9f\xed\x60\xa7\x5b\xe2\xbb\x53\x71\x0b\x81\x00\x01\x2f\x62\xf3\xa9\xca\xcc\xdc\x4f\xf1\x83\x10\xf5\x38\xf5\x38\x3f\xfe\x48\x54\x4b\x73\x2b\xcf\x32\x94\x9e\xe0\xe8\xfa\x8b\x16\xe9\x84\x1e\xea\xe9\x1c\x3a\x49\x75\xb7\x67\x92\x43\xff\x8e\xf8\xc8\x4e\xf5\x31\x66\xc4\xae\x19\x8d\xa4\x4d\x6c\xb1\xcd\xa8\xe3\x8e\x51\x69\xb0\xaf\x6f\xbf\xa1\xa6\xb5\x2d\xb8\x84\xb9\xaa\xcc\xbf\x23\x32\xff\x0c\x3d\xf1\xf4\x6e\x74\xbe\xaa\x6a\x53\xc6\x38\xfa\x6d\x6c\x74\x50\xf5\xd7\x57\x32\x74\x8d\xdb\x0f\x4d\x0a\xda\x75\x10\x4f\x9f\x13\xfe\x31\xa0\xfd\xf3\xf4\x3a\xe2\x1e\x63\x1d\xe7\x33\xda\x62\x8d\x33\x79\x9b\xde\x5d\x08\xbe\xf7\x33\xc6\x6e\x5b\x9a\x3a\x5e\x2d\x2e\xbd\x52\xee\xbb\x05\xb5\x28\x47\x96\x4f\x2c\x83\x9f\xd6\x5e\x9b\x68\xb0\x35\x29\xad\xdd\x84\xd0\x19\xc9\x79\x25\x95\x45\xa0\xed\x7a\x1f\xe9\xf3\x4d\xaf\xfb\x34\x8f\xf7\x17\xf9\xac\x3e\x3f\xd1\x8f\x3b\x7c\x6d\x22\xc0\xc9\x59\xf0\x3d\x92\x17\x7a\x37\xb2\x0e\xb0\x84\x55\xdf\x89\x3c\xe1\x6c\x75\x1e\x53\xb4\x6b\x7e\x21\xae\x18\x31\xdb\x99\x86\x18\x4b\xb7\x0e\x3b\xf2\x14\x44\xc6\xfd\xf9\x88\x4b\x18\xa7\xbb\xf5\xf9\x5e\x6d\x4b\x80\x23\xbd\xba\x53\x69\x1c\xeb\xd5\xfe\x22\x9f\x3f\x92\x4f\x76\xe4\xff\xf9\x91\x5c\x8b\x7b\x4a\xa9\x47\x86\xf8\x84\x4a\xcf\x5b\x6f\xb8\xd0\xfb\xf3\x45\xf1\x23\x2f\x49\x1e\x95\xe0\x7a\xa7\x81\xa4\x05\x2d\xf3\x4b\x14\xa8\x8d\x7f\x7c\x5a\x91\xaa\xc5\x39\xa2\xfc\xf8\x64\xc6\xfc\xcc\x6c\xe9\xf2\x94\xee\xf5\xe0\x2f\x55\x99\x7a\x77\xbd\xfa\xb5\x0a\xd5\x48\x64\xf7\xf3\x8b\xd2\x36\x14\x4e\xd5\xa4\x34\xea\x53\x4b\xd2\x2f\x02\x89\x97\x72\xd5\xae\xe1\x3f\x7b\x3d\xda\x37\xb1\x77\x15\xaa\xfd\xeb\xff\x07\x00\x00\xff\xff\xdd\x07\xc0\xaa\xe9\x4e\x00\x00") +var _templateBuilderMutationTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xd4\x5b\xdd\x73\xdc\x36\x92\x7f\x26\xff\x8a\x0e\xcb\xc9\x0d\x75\x13\x4e\xb2\x6f\xe7\x9c\x1e\xbc\x56\x92\x55\xd5\x9d\x75\xb5\x56\xee\x45\xe5\xda\x40\x04\xa8\xc1\x99\x5f\x26\x30\x23\xa9\x26\xf3\xbf\x5f\xa1\x01\x90\x00\xbf\xe6\xc3\xb2\x37\x9b\x87\xd8\x43\x12\x40\xa3\xfb\xd7\xbf\xee\x46\xc3\xbb\xdd\xea\x22\x7c\x5b\xd5\xcf\x0d\x7f\x58\x4b\xf8\xcb\x0f\x3f\xfe\xc7\xf7\x75\xc3\x04\x2b\x25\xfc\x42\x52\x76\x5f\x55\x1f\xe1\xba\x4c\x13\x78\x93\xe7\x80\x1f\x09\x50\xef\x9b\x2d\xa3\x49\x78\xbb\xe6\x02\x44\xb5\x69\x52\x06\x69\x45\x19\x70\x01\x39\x4f\x59\x29\x18\x85\x4d\x49\x59\x03\x72\xcd\xe0\x4d\x4d\xd2\x35\x83\xbf\x24\x3f\xd8\xb7\x90\x55\x9b\x92\x86\xbc\xc4\xf7\xff\x75\xfd\xf6\xe7\x77\xef\x7f\x86\x8c\xe7\x0c\xcc\xb3\xa6\xaa\x24\x50\xde\xb0\x54\x56\xcd\x33\x54\x19\x48\x67\x31\xd9\x30\x96\x84\x17\xab\xfd\x3e\x0c\x77\x3b\xa0\x2c\xe3\x25\x83\xa8\xd8\x48\x22\x79\x55\x46\x60\x5e\xbc\xaa\x3f\x3e\xc0\xeb\x4b\xb8\x27\x82\xc1\xab\xe4\x6d\x55\x66\xfc\x21\xf9\x1f\x92\x7e\x24\x0f\x4c\x7d\xb4\xdb\x81\x64\x45\x9d\x13\xc9\x20\x5a\x33\x42\x59\x13\xc1\x2b\x1c\xce\x8b\xba\x6a\x24\x2c\xc2\x20\x4a\xab\x52\xb2\x27\x19\x85\x41\x94\x15\xf8\x87\x78\x2e\xd3\x28\x0c\x83\xdd\xee\x7b\x68\x48\xf9\xc0\xe0\x55\xa9\x16\x7a\x95\xbc\xab\x28\x13\x6a\x82\x20\x88\x94\x04\xc3\x45\x57\xea\x71\xe9\x3c\x88\xf4\x3c\xac\xa4\xb8\x70\x10\x3d\x70\xb9\xde\xdc\x27\x69\x55\xac\x32\x63\x85\x15\x2b\x65\x14\xc6\x61\x98\x56\xa5\x40\xa9\x56\x2b\xb8\xa9\x59\x83\x1b\x06\xf9\x5c\x33\x91\x84\xc1\x4d\xfd\xb6\x61\x6a\x33\x00\x70\x09\xac\x94\x89\x7d\xa2\xde\x5d\xb1\x9c\xf9\xef\xf4\x93\xee\xdd\x4d\xc9\x7a\xef\x6e\x4a\x7c\xfd\x5b\x4d\x7b\xd3\xea\x27\xdd\x3b\x77\x68\xfb\x24\x44\x39\x95\x4e\x5a\x11\x67\x55\x76\xfb\x5c\x33\xad\x9e\x77\xa4\x50\xba\x81\x4b\x88\xbc\x07\xbe\xb2\x62\x34\xf3\xc4\x74\x88\x00\x8b\x09\x7c\x57\x26\xff\x6d\x7e\x9a\xd9\xc2\xd5\x0a\xbc\xaf\xf6\x7b\x68\x98\x71\x01\x01\xa4\x84\xaa\xd3\xf1\x9a\x48\xc0\x0f\x19\x42\x74\xb7\x83\x3a\xdf\x34\x24\x77\xa4\x53\xf3\x95\xb8\xbe\xc1\xf1\x43\x43\xea\x75\x12\xaa\xcd\x0f\x16\x12\xb2\xd9\xa4\x12\x76\x61\x90\x22\x46\xc2\xa0\xaa\xe1\xa6\x0e\x03\xf9\x5c\xab\x97\xbc\x7c\x50\x9b\x55\xd3\x5f\x5f\x25\x7f\xdd\xf0\x9c\xb2\xe6\x17\xce\x72\xb5\x75\xb8\x68\xdf\x28\xa5\xa1\xfa\x1c\xd5\x66\x66\xbf\xf8\xb9\x51\xae\x1a\x90\x8d\xcf\x93\x75\x93\xe0\x2c\x3c\x03\x52\x52\xfb\x3c\x79\xb7\x29\x58\xc3\x53\xf5\xfb\x6d\x55\x6e\x59\x23\x19\xbd\xad\xfe\x4a\x04\x4f\xf5\x98\x80\x50\x7a\xc2\xf4\xc6\x7a\xde\xdf\xd3\x9c\x91\x86\x51\x23\x70\x41\xea\x3b\xad\x82\x0f\x5a\x4d\x3b\x7f\x7f\xcc\xec\xef\x67\xfa\xc0\x84\x27\xf7\x2b\x96\xfc\x56\xf2\x4f\x1b\xb3\x1c\xee\x9a\x8d\x8b\xc5\xf4\xee\x5c\x15\x6a\x91\x72\x31\x3f\x5a\x49\x37\x3a\x81\x23\x6c\x10\x34\xac\xa8\xb6\x8c\x7e\xc6\x14\xae\x7e\xac\x82\xc6\xa7\xbb\xaf\xaa\xdc\xd7\x27\xad\x4a\x66\x1e\x57\x39\xfd\x5f\x92\x6f\x18\x64\x9b\x32\x5d\x18\x36\x53\x96\x54\x7f\xc6\xb0\xb8\xf0\x3c\x6c\x09\xac\x69\xaa\x26\x0e\x83\xba\x61\x94\xa7\x44\x32\x01\x77\x1f\xda\x1f\x89\xf7\x75\xb8\x0f\xc3\x2d\x69\xe0\x1f\xe8\xfa\xd6\xbd\xe0\xd2\xcc\xea\xe0\x3d\x5e\x94\x3c\x8f\x7d\xaf\xbc\xa9\xad\x6f\xd6\x0d\x2f\x25\x2c\x52\x52\xb0\xd6\xa1\x62\x88\xf4\x07\xd1\x88\xab\x9a\xa1\xfb\x3d\x90\x3c\xaf\x1e\x05\xc8\x0a\x0a\x52\x2a\x4a\x55\x8e\xd7\x2e\xac\x7d\x6b\x63\x9c\x78\x23\x78\xf9\x80\x7a\x50\x3f\x49\x0e\x15\x4e\x23\x46\x5c\xb4\x5b\x00\xd5\x36\xd8\x4e\x88\xce\xce\x1e\xfb\x6e\x9d\x22\xdf\x0a\xf5\xaa\x93\x22\xab\x1a\xf0\xf4\x96\x84\x6a\xd6\x91\xf1\x8b\xd4\x88\xbc\x04\xa4\x03\xf5\x87\x14\x90\x24\xc9\xa8\x70\x31\xf4\x05\x53\x84\x52\x28\x95\x7e\xd7\x7b\xb1\x53\x20\xc2\xa9\x5f\x83\xf9\x2f\x5d\x86\x41\x50\xd5\xed\x6f\xf5\x5f\x55\xab\x87\xf2\xd9\x7b\x3a\x20\xe6\x65\x87\x48\xed\xb2\xaf\xa1\x20\x1f\xd9\x62\xc4\x71\xe3\x65\x18\xec\xc3\x40\xa9\xe0\x1f\xb8\x1b\x25\x9c\xf6\x63\xdc\xda\x0e\x65\x90\x8b\x22\xc6\xef\x1a\x26\x37\x4d\x09\x45\x68\x18\xdc\x0c\xd0\x00\x89\x1e\xb9\x5c\x47\xad\x1c\xd1\xf5\x95\x8b\x0d\xf5\xa9\x22\x56\x26\x05\x82\x80\x53\xc8\xd0\x43\x30\x7f\xe8\x40\x61\x94\xdf\x0d\x59\x70\x0a\x7d\x3e\x8d\x27\xd0\xb0\x6b\x45\x44\x5c\x14\x03\x03\xc4\xb8\x23\xe5\x14\x0b\x45\x03\xac\x69\xb4\x47\xa9\x1f\x55\x99\x32\x50\xd9\x43\x72\x53\xa6\x4c\x3d\xd9\xa2\x67\xfa\x2e\x18\x06\x41\x1c\x06\x41\x91\xb4\x9e\x7b\x69\x7c\x57\x3e\xc1\xb1\xfe\x8b\x52\xe0\x82\xc9\x55\xb5\xc0\xe1\xe6\x59\xc0\x33\x28\x12\x24\x08\xfd\x1b\x65\xbc\x84\xac\x90\xc9\xcf\x6a\x6c\xb6\x88\x3e\x6d\x58\xf3\xac\x7c\xa5\xca\x29\xa0\x8c\x02\xea\x4a\xc8\x0e\xd2\x5c\x40\x59\x49\xed\x7d\x8c\x46\x31\xce\xb4\xd7\xe4\x69\xa6\xc5\x71\x28\x0f\x5c\x42\x91\xbc\xcd\x39\x2b\xe5\x22\xf6\x19\x24\xf9\x95\x49\xb5\xb1\x25\x70\x6a\x26\x51\xff\xdf\xc7\x9a\x43\x51\xd3\xdd\x44\xa1\x7e\x5d\x24\x93\x81\xf1\x12\xbe\xe3\x54\x21\xc9\xc1\xcf\x04\x7c\xa6\x91\xa3\x76\xed\x27\x22\x07\x21\xa4\xe2\x7e\xcf\x8e\x9f\x09\xa1\x11\xfb\x9f\x64\x7b\xb3\x86\x12\x6c\x09\x25\xcf\x8f\xd2\x9d\xfa\x3a\xb9\xbe\x32\x0a\x5c\xad\x40\x5b\x0d\xf4\x64\x02\x08\x12\xdb\xef\x8a\xed\xf5\x9b\xdf\x21\x6b\xaa\xc2\x57\x0e\x5c\xfb\xda\x82\x47\x22\xd4\x5c\xec\x89\xa5\x1b\xc9\xa8\x4a\x8f\x08\xc8\x86\x94\x82\x20\x13\xc3\x42\x4d\x78\xfb\x14\x2f\xfd\xe7\x24\x87\x54\xaf\xcf\x85\x11\x41\x55\x1e\xa8\xfb\x45\xd1\x4f\xa9\x62\xb0\x10\x83\x0b\x23\xb6\xca\xae\xf4\xdf\x14\x23\xea\x87\x3b\xcb\x82\x45\xa2\xff\xb6\xb7\x1f\x25\xbc\xe4\x72\x11\xb7\xe6\xd1\x4f\x8d\x22\x6e\x9f\x3a\x25\x94\x5a\x03\xb7\x4f\xbf\x23\xb5\x5b\x19\x84\xce\x12\x1f\x59\xc3\xbc\xbd\x3a\x3b\x12\x3f\xa9\xb9\xb8\x74\xe7\x42\xa3\x41\x25\xd7\xac\x79\xe4\x82\xcd\xec\xef\xf6\x69\xa1\x8c\x7e\xfb\xe4\x5a\x9a\x67\x10\x28\x66\xfd\xa8\xf6\x58\x24\xb4\xe1\x5b\xd6\x24\x8b\x0b\xf9\x74\x85\x7f\x8d\x7f\x82\x6f\xaa\x8f\x88\x09\x0b\x09\x9e\x2f\x3d\x77\xb7\xc5\xd2\x7e\xff\x7a\xe0\xe1\xcd\xa6\x2c\x15\x13\xf4\x6d\x16\x69\xbe\x96\x4f\xa8\xda\xdb\xa7\x31\xb5\xca\xa7\xbe\x4a\x95\xa3\x2b\x2c\xa2\x77\xea\x8c\x0d\xa1\xf8\x9b\x60\xcd\x15\x16\x72\x3a\x7f\x59\xad\xe0\x3d\x93\xd7\x57\x9d\x4f\x6a\xa6\x34\x7e\x68\xa9\x3d\x81\x77\x15\x26\xe4\x44\x2e\xb1\x46\xc4\x91\x5d\xd6\xce\x05\x90\x34\x65\xb5\x32\x44\x55\xe6\xcf\x50\x95\x3d\xc7\xc6\x78\x8d\x1e\x1d\x58\xb5\x0f\xdd\x11\x45\x99\x88\x12\x47\xd2\x91\x5b\xe3\xad\x56\x70\x7d\xd5\x22\xc0\xec\x47\xef\xcf\x14\x0e\x9d\x2b\x79\xfb\x53\x1f\x22\x7e\x04\x90\x2d\xe1\x39\xb9\xcf\x99\xde\x17\xcf\x14\xa8\x1e\x89\x80\xba\xa9\xb6\x9c\x32\xaa\x32\x22\x35\xe2\x5e\x4b\xd4\xa1\x6a\xb8\xbd\xeb\x2b\x05\xab\x91\xed\x2d\x81\x3d\x71\x21\x05\x66\x92\x16\x6c\x73\xbb\xbd\x54\xc6\x75\xa0\xe6\x86\xf4\x8b\xe9\x81\x4b\x90\xcd\x86\x19\xca\x9e\xae\x61\xd4\x70\x5d\x01\xb7\x19\x81\x53\x4a\x47\x49\x64\x4a\x14\x21\x49\x29\xdb\x11\x35\x26\x1c\x2c\x65\xca\x19\xda\xa2\xe6\x3d\x66\x29\x2a\x2f\xda\x29\xe5\xb1\x4f\xea\xc3\xa8\x88\x90\xa0\x71\xd4\x25\x44\x68\x13\xfb\xa8\x2b\x5b\xe0\x15\xea\x52\xc9\x97\xb5\x49\xef\x7b\x26\x2d\x72\xdb\x2f\xdc\x98\xa2\x2b\x21\x0b\x3b\x8d\xde\x39\xcc\x39\x93\x2c\xb4\x40\x46\xb2\x6c\x0c\x7c\xc3\xd2\xcb\x64\x80\x75\x57\xd8\xac\x2e\x94\x34\x52\x6d\xbb\x34\x25\x1d\xa6\xbd\xd5\x96\x35\x0d\xa7\x0c\xea\x86\x6d\x79\xb5\x11\x90\x92\x3c\xc7\x94\xfa\x0d\xa5\x09\xe0\x49\xcb\x99\x95\x61\x91\x4c\xd6\x86\x97\x26\x28\xb9\x65\xcb\x3e\xec\x14\xd8\x6a\xf6\x57\xd4\xac\xe7\x2f\xbe\x32\xc7\x5d\xe7\xa0\x72\x7b\x0b\x28\x1f\x68\x7c\x0d\x0f\xf1\x1f\x6c\x35\xcb\x8e\x6e\x29\xc4\xdc\x6a\xeb\xba\x41\xeb\x07\x18\x7b\xad\x27\x6c\x0d\xe0\x27\xf7\x7b\xa3\x55\xe4\x6e\xd9\xe6\x24\xfd\x6d\x1b\x46\xec\x95\x17\x6a\xd6\xeb\x91\x37\x50\xdd\xff\x1f\x4b\x91\x29\xca\x7f\x93\x53\x64\xa1\xb9\xc6\x7c\xca\x05\x64\x4c\xa6\x6b\x46\x71\xd6\x36\xdc\x53\x22\xc9\x3d\x51\xf1\x4a\x3d\x7e\x63\xe3\x98\x13\xa9\x15\x5c\xbc\x3c\xc0\x23\x66\x15\x5c\xda\xa3\xa2\x25\x54\x4d\x3b\x23\x60\xfa\x09\x19\xe1\xb9\x38\xcd\x8c\x5a\x6f\x13\x89\xf2\x16\xb4\xaf\x2b\x15\xf2\x5c\x93\xe7\x7e\x7f\xd1\xba\x76\xdf\xf4\x36\x73\xd7\x86\xe7\x19\x7c\x53\x24\x55\x9d\x5c\x8b\x85\x73\xc6\xe5\x27\x5b\xdb\x61\x5c\x1d\xb3\xab\xe2\x6f\x9d\x38\xb7\x51\xa9\x3b\x46\x6b\x95\x24\x30\xab\x36\xa8\x3a\xcc\xba\x7f\xfc\x01\x6e\xca\x38\xc0\xe0\xb1\xc2\x35\xec\xd3\x86\x37\x0c\x53\x93\xeb\x2b\x53\x42\xf5\x9c\xab\x95\xcc\xae\xa7\xd5\x85\xae\x61\x1f\x29\x2b\xc4\x5a\x78\xf5\xee\x9b\x83\x02\x0d\x8b\x8e\xb6\x70\x1e\x91\xf3\x35\x7c\xfb\x18\xe1\xb2\xb1\xef\x5d\x76\x7d\xe3\xa3\xef\xb1\x0e\xed\x22\x0d\x92\xce\x1e\x4f\x6f\x4f\xa6\x33\x97\xfa\x4d\x49\xf1\x86\xd2\x68\xb8\x4c\x18\xf4\xe3\x00\xa1\x54\x40\xcb\xe3\xb2\xf2\x7d\x39\x09\x83\x17\x08\x05\xed\x21\x58\x96\xfc\x8d\x88\x5f\xab\xee\x5c\x6b\x78\xb0\xe5\x1c\x2d\x69\x78\x4d\xf2\xb4\x6b\xb8\xe0\x62\xe6\xc3\x7f\xbf\x04\x27\xe2\xf8\xc5\xe0\x6c\x1c\xf8\xce\x1b\x86\xd6\xd4\x0a\x7c\x43\x29\xa3\x63\x66\xf4\x98\x51\x43\x45\xa7\xde\x44\x28\x4d\x77\x84\x36\x12\x75\x35\x96\xb9\x70\x23\xc5\x8c\xf2\x27\x65\x38\x2e\x5e\xd8\x80\x31\xb5\x7d\xa3\x7f\x3f\x68\x74\x51\x23\xd8\x3b\xfe\xd2\xc5\x8d\x40\xe7\x21\x6d\xd3\xa0\x25\x36\x5d\x65\x92\x7c\x12\xaf\x6f\x73\x46\x9a\xa3\x10\x8b\xe7\x3b\xbd\xdc\xfb\x4c\xd0\x1a\x55\x4c\xa7\x2a\x3a\x13\x38\x2f\xc5\x38\x26\xc7\xe8\x01\xbe\x48\xbc\xc3\xab\xbb\x2e\xb1\xdc\xef\x3f\xc0\x25\xd8\xb3\xab\x5d\x0b\xc6\x76\x37\x6d\xe2\xe9\x2b\x50\xeb\x95\xd1\x68\x54\x95\x16\xad\x26\x1e\x6a\x18\xfa\xd0\x54\xc8\x35\x42\x9d\x08\x50\x5f\xd1\x0a\x79\x5a\xdb\x4e\x4d\x38\xb3\x5b\x07\x5e\xd5\xc7\x51\x60\xd9\x7d\x3b\x24\xfc\x77\x26\xc6\xb3\xdd\x06\x5f\x90\x3c\x87\x74\xad\xd2\x78\x61\xd3\x93\xc8\xdb\x6d\x74\x62\xfe\x7b\x28\xd3\xed\x12\xc9\x2f\x9d\xa0\x3a\x14\xeb\xbb\x5a\x40\xb1\x61\xb6\xe8\x29\x7b\x09\xae\xb6\xe3\x41\xba\xeb\xe8\xda\xa9\x7d\x86\xfd\x0d\x7d\xd2\xa4\x1e\x47\x84\x22\xca\xd4\x13\x4e\xc5\x2f\xb6\x12\x61\xad\x75\xde\x50\xda\xd6\x35\x6e\x3f\xc4\xcc\x71\x09\x91\x60\xb2\x3f\x85\x37\x83\xae\x65\x9c\x9a\xc7\x98\xd9\x7e\x6c\xc2\x4f\xa5\x38\xbb\x4b\xc8\x59\x0b\x66\x46\x1f\x98\x8d\x71\xa6\xc5\x61\x5f\xdd\x3f\x03\xa7\x5a\x36\x95\x00\xba\xf2\x89\x76\xc1\x83\xc0\xe8\x04\x59\x0c\xf7\x89\xf3\x9b\x60\xc7\xa9\x3d\x3c\xd7\x33\xc3\x68\xd7\x45\xe3\x6b\xa2\x85\xa4\x61\x37\x6c\xba\x98\xd2\xbe\x1f\x5a\xdb\x5c\x6d\x64\x84\x4b\xf1\xd3\xd3\xb6\x27\xe9\xa3\xb2\x76\x07\xeb\x6d\x78\x50\x59\x12\xef\x8e\xd5\xd5\x9e\x67\xd7\xb8\xe3\x54\xdc\xf1\x0f\x03\xa6\x0b\xfa\x5d\x27\x8f\x01\x7c\x90\x21\xdf\x8d\x51\x80\x13\x36\x8e\x05\xc5\xc9\x3c\x30\xdb\x0c\xbb\x74\x6a\x2b\x97\xbe\x7a\xb2\x33\x3a\x4e\x60\x1e\x53\xa3\xcc\xfe\x36\x1c\xa2\x3e\x41\xee\x96\x96\x6d\x7f\x63\x76\x0f\x6e\x82\xda\x83\xa3\x91\x97\xf5\xc2\x77\xef\x3c\xc9\x17\x99\x0f\xf2\xf7\xc3\x11\x65\xb8\x80\x73\x46\x34\x00\xe5\x58\xe2\x33\xe3\x08\xdf\x0c\x73\x1d\x7b\x3c\x34\xf8\xb8\x4d\x79\xdc\x54\xa8\x0b\x54\xad\xe3\xb5\x47\x3d\xaa\xae\x6a\x60\x81\x61\x3a\x83\xe8\xdb\xe4\x47\x11\x79\x88\x8b\xbb\x01\x0e\x81\x9a\xfc\xe8\xef\xd8\xb6\x8d\x60\x21\x78\xf9\xb0\xc9\x49\xd3\x2a\xf2\x0f\xa8\x89\x48\x49\x1e\x43\x74\x7d\x25\xfc\x40\xef\x10\xa3\xee\xfb\x9e\xc3\x8a\xe2\xb0\x55\x1c\xde\xeb\x98\x6d\x8a\xcf\xb4\x05\x66\xfb\xd0\x3d\x46\x9a\xff\xf6\x74\x62\x9a\x60\xd4\x03\x2b\xdd\x71\x3a\xa4\xa6\x1e\xcb\x4e\x73\xde\xe1\xc9\xc7\xb9\x2f\x18\x16\x46\x7e\xe6\xd7\xc7\x08\x8d\x86\x5e\x32\x9d\xfa\xe1\xb5\x26\x3d\x0e\x85\x35\xc9\x34\x3b\x39\x99\xbe\xbe\x12\xda\x13\x05\xdc\x7d\x98\xb3\x3e\x6a\x88\x76\x2a\x3a\x60\x5e\xd3\x1b\xa4\x02\x2e\x81\xd4\x35\x2b\xa9\x5a\xa3\x6d\xcb\x8d\x3a\x9f\xcd\x12\x27\x49\x49\xcc\xb2\x92\x18\xd2\x12\x00\xc0\x38\x6a\xf0\x26\x91\x39\x0b\xc7\xb1\x24\x7f\x24\xcf\xdd\x02\x39\x2b\x95\xc0\x31\xfc\xe7\x25\xfc\x88\x07\x07\x1b\x3d\x5a\xb9\x9d\x58\x62\x5a\xf8\x5c\x6d\x40\xac\xab\x4d\x4e\x61\x23\xd8\x2c\x9b\xf2\x52\x48\x46\x68\x02\xd7\xd2\x72\x1b\x1e\xd5\xa0\x56\x4b\xc9\x1a\x95\xf9\x6d\x04\x79\x60\xca\x79\x9d\xb3\x33\x7b\xcb\xc9\xa2\xe8\x54\x9a\x3d\xc6\xba\x4a\x4b\x53\xce\xc5\x33\x63\xf5\x09\x3e\xfd\x49\xbd\xf6\x08\x78\x68\xf3\x0b\xc7\xe8\x3d\xc7\x1b\xa2\xea\x6c\x38\x19\x2d\xed\xf7\x5e\xbb\x60\x32\x6a\x9f\x59\x74\xb0\xae\xe8\x50\x48\x38\xab\xe6\x18\x23\x43\x5d\x1b\x1c\xcc\x45\x32\x92\x23\xd2\x8c\xb5\xfa\x39\x6f\x78\x0c\xef\x8e\x9d\x93\xbb\x85\x03\x5e\x06\xf4\x0f\x8b\xdb\x83\xd6\x92\x14\x6c\xae\xf7\x73\x53\x2f\xd4\xff\x9c\xa6\x74\x91\x54\xb5\xed\x79\x2a\xc8\xb9\xf3\x96\xf6\x2e\x5f\x7b\x27\xb3\x9d\x6c\xe1\x9d\x33\xc7\x73\x6b\xaa\x69\x17\xb1\xb9\xe4\xe6\xad\x2c\x9f\xed\xd2\xa6\xed\xd3\xb6\x49\xf3\x5c\xd7\x8c\x6e\x8f\x55\x9b\x9b\x02\xdd\xe0\x6d\xb9\xd5\xaa\x57\x36\xbb\xcd\x33\x5e\x42\xd5\xe0\x9d\xd4\x0a\x1e\x0c\x5c\x4c\x17\x44\x0d\x1c\xcc\xcd\xcb\x15\x65\x69\xc3\x0a\x56\x4a\x46\x97\xd8\x12\xd1\x67\x41\x5a\xb2\xc5\xec\x0e\xed\x37\x70\xf7\xa1\xdb\xa5\x59\xe3\xb5\x09\xa4\xf6\xd5\x12\x7e\xc0\x2a\x31\x67\xa5\xd7\xef\x8a\x8f\xb8\xd2\xf7\xfd\xa9\x0d\xb1\x2e\x2b\x9b\x3f\xe8\x33\xb2\xb6\xbe\x9b\x4d\x54\xb3\xbd\x6b\x7c\xf6\x5e\x03\x7e\xed\x5a\x72\xe4\xc0\xae\xca\x80\x98\xa3\x90\x47\x2e\xd7\xfa\xc2\x24\xdf\x32\x8b\x59\x85\xbf\x35\x03\xc1\xd2\xaa\xa4\x98\x58\x32\x52\xb6\xbd\x1e\x7b\x35\x0d\x2d\x86\x66\x37\x53\xe9\xab\x06\xca\xcf\x04\x93\xd8\x56\x50\x19\xbb\xfa\x6d\x2e\x0a\x9b\x98\x23\xd2\x35\x2b\xc8\x41\x23\x2e\x94\x30\x06\xaa\xb1\xbe\xa7\x60\x0e\xbc\xdb\x54\x57\x29\x00\x77\xd0\x33\x8f\x78\xe4\x32\x5d\xe3\x6e\xda\xfa\x72\xc6\x9a\x67\x99\x33\x48\x89\x60\x9e\x55\x5e\xbb\x49\x75\x6b\xeb\x7e\xab\xab\x7f\xac\x31\x6e\x47\x7d\x51\x00\x19\xcc\xf2\x4c\x4e\x87\xf6\xec\xce\xeb\x2b\xf7\x80\x6b\xa4\x53\xf4\x02\x8d\x22\x35\x47\xa5\xaf\x96\xeb\x36\x91\x39\xe9\x6d\x9b\x47\xca\xdc\x19\xe1\xb9\x7b\x53\x64\x84\xf7\xcc\x46\xc6\x7a\x45\x4b\x98\x34\x7a\xd7\x10\x3a\xd7\xea\xc9\xd7\xb5\x76\xd7\x11\x3b\xc9\xe6\x4e\x5b\x66\x53\x7e\x2c\xab\xc7\xfe\xbd\x09\x6d\xe2\x6f\x45\xa4\x95\x15\x1b\x67\x7f\xcf\x4c\x2a\xd3\xbb\xb7\x91\x19\x93\x39\x0e\xae\x32\xab\xee\x16\x0c\xde\x0f\xd2\xb8\x70\x31\xc4\x5d\xd7\xa5\xbe\xef\xa2\x73\xeb\xaf\x91\xfb\x55\x58\x2a\xb8\x28\x88\xd2\x7f\x37\x85\x7a\x3e\x87\x04\x2b\xb2\xeb\xe9\x4b\x23\x76\x6b\xf9\xd8\x08\xb7\x0b\xfb\x06\xfe\x02\x1c\x3d\x6e\xe5\xad\x3d\xcf\x45\xd1\x92\x85\xdf\x00\x32\xa9\x9f\xbd\xe9\xd3\x62\xc2\xb7\x24\x7b\xaa\x59\x2a\x99\x56\x0a\x7c\x7b\x8b\x76\x71\x4c\x69\x6e\xda\x69\x8b\xda\xac\xbf\x48\xde\x33\x39\xda\x01\xd9\xba\xb7\xf4\x30\x4b\xf1\x93\x94\x71\x21\x4e\x80\x93\x13\x70\xbd\x54\xc0\xde\x5f\x18\x09\xdb\x6d\xcc\x36\x44\xe1\x44\x71\x93\x28\xf4\x0f\xd7\x0f\xf4\x7e\x46\x63\x79\x77\x79\xe9\x6f\x44\xd8\x53\x66\x34\xde\x96\x34\x56\x2c\x3b\xe0\x48\xee\x3f\xbd\xf3\x71\x16\x87\x9c\xd2\xee\x3b\x3a\x0f\x18\x2b\x9f\xbd\x1f\x7e\x66\xd0\xab\x2a\x26\x10\xd4\xc7\x80\x9f\x8a\x1a\xf5\xf4\xba\x7f\x7e\xde\x16\xda\x0b\x0b\x73\x99\x86\x9b\x66\xf4\xd2\x0b\x9d\x53\x0e\x32\x8c\x17\x49\x2f\xba\x7d\x1d\x99\x63\x8c\xe3\xed\x9c\x2c\xe3\x6b\x21\x6d\x22\x5c\x75\xf9\xfe\x4c\x73\x75\x1e\x4e\xc7\xe4\x2b\x1a\x3b\x7a\x46\x6c\xbf\xff\x4b\x84\x23\x2b\xf2\xb1\xe1\xe8\x25\xb3\xcf\x7f\x36\x2e\x0e\x87\xb8\x5e\x90\x7b\xa1\x30\x67\xd8\x4b\x85\xba\x37\x74\x1c\x8f\xdb\xd8\x83\xee\x58\x5b\xf9\x08\x80\x1e\x0e\x84\x5e\x64\xeb\x05\x44\x7d\x1f\xdb\xfd\x87\x52\x7e\x4c\x34\x77\x9a\x86\x75\xb2\x1e\xa3\x86\x9f\x1a\x01\xbd\xe5\xe6\x62\xa0\xdf\x0d\xfd\xac\x20\x38\xec\xad\x7e\x4e\xa0\xc3\x15\xcc\x36\x16\x5e\xd8\xfa\x13\xc5\x38\x57\x48\xe7\xae\xbd\x2d\x7a\xbb\x72\x97\x67\x23\xc5\xee\xf4\xbd\x81\x03\xc5\xad\x55\x8b\x17\x7f\x6c\xab\x6a\xf2\xfe\x80\xfa\xfa\x43\xe8\xdc\x1a\xd8\x77\xc8\xd4\xfe\x32\xb8\x3a\xf2\x25\xf8\xf6\x20\x6c\x47\x62\xab\xc7\x9a\x13\xd8\x3d\x93\x38\x5f\x0c\xb5\x53\xe4\x58\x24\xb8\xab\xe9\x68\xf9\x35\xc8\xc9\xa5\x98\x11\x76\xc2\x33\x5a\x9b\xab\x61\x09\xe8\x1e\xcb\xf6\x4e\xfb\xa1\x61\x0f\xa4\xa1\x9a\x8f\x30\x66\x6a\x78\xe8\xc9\x47\x40\x32\x8d\x10\xa4\xb6\x53\x41\xd2\x09\x3b\x03\x92\x3f\xdb\xc1\x4e\xbf\xc4\xb7\xa7\xe2\x06\x02\x1e\x02\x5e\xc4\xe6\x73\x95\x99\xbe\x9f\xe2\x06\x21\xec\x71\xaa\xef\xdc\xf8\x23\x98\x5c\xe9\x5b\x79\x86\xa1\xd4\x04\x47\xd7\x5f\xb8\x48\x2f\xf4\x60\x4f\xe7\xd0\x49\xaa\xbd\x3d\x13\x1f\xfa\xb7\xc3\x47\x76\xaa\x8f\x31\x23\xeb\x9b\x51\x4b\xda\xc6\x16\xd3\x8c\x3a\xee\x18\x15\x3f\x76\xf5\xed\x36\xd4\x94\xb6\x39\x15\xb0\x90\x95\xfe\xb7\x43\xfa\x9f\x9e\xc7\x8e\xde\xb5\xce\xb3\xaa\xd1\x65\x8c\xa5\xdf\xd6\x46\x07\x55\x7f\x7d\x25\x7c\xd7\xb8\xfb\xd0\xa6\xa0\x7d\x07\x71\xf4\x39\xe3\x1f\x23\xda\x3f\x4f\xaf\x13\xee\x31\xd5\x71\x3e\xa3\x2d\xd6\x3a\x93\xb3\xe9\xdd\x05\xa7\x7b\x37\x63\xec\xb7\xa5\xb1\xe3\xd5\xe1\xd2\x29\xe5\x7e\x58\x62\x8b\x72\x62\xf9\xd8\x30\xf8\x69\xed\xb5\x99\x06\x5b\x9b\xd2\x9a\x4d\x70\x95\x91\x9c\x57\x52\x19\x04\x9a\xae\xf7\x91\x3e\xdf\xf6\xba\x4f\xf3\x78\x77\x91\x2f\xea\xf3\x33\xfd\xb8\xc3\xd7\x26\x3c\x9c\x9c\x05\xdf\x23\x79\x61\x70\x23\xeb\x00\x4b\x18\xf5\x9d\xc8\x13\xd6\x56\xe7\x31\x45\xb7\xe6\x57\xe2\x8a\x09\xb3\x9d\x69\x88\xa9\x74\xeb\xb0\x23\xcf\x41\x64\xda\x9f\x8f\xb8\x84\x71\xba\x5b\x9f\xef\xd5\xa6\x04\x38\xd2\xab\x7b\x95\xc6\xb1\x5e\xed\x2e\xf2\xe5\x23\xf9\x6c\x47\xfe\x9f\x1f\xc9\x95\xb8\xa7\x94\x7a\x68\x88\xcf\xa8\xf4\x9c\xf5\xc6\x0b\xbd\x3f\x5f\x14\x3f\xf2\x92\xe4\x51\x09\xae\x73\x1a\x88\x5a\x50\x32\xbf\x44\x81\xda\xfa\xc7\xe7\x15\xa9\x4a\x9c\x23\xca\x8f\xcf\x66\xcc\x2f\xcc\x96\x36\x4f\xe9\x5f\x0f\xfe\x5a\x95\xa9\x73\xd7\x6b\x58\xab\x60\x8d\x84\x76\x3f\xbf\x28\xed\x42\xe1\x5c\x4d\x8a\x5f\x7d\x6e\x49\xfa\x55\x20\xf1\x52\xae\xda\x37\xfc\x17\xaf\x47\x87\x26\x76\xae\x42\x75\x7f\xfd\xff\x00\x00\x00\xff\xff\x24\x4c\x62\x9e\xdd\x4e\x00\x00") func templateBuilderMutationTmplBytes() ([]byte, error) { return bindataRead( @@ -225,7 +225,7 @@ func templateBuilderMutationTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/builder/mutation.tmpl", size: 20201, mode: os.FileMode(420), modTime: time.Unix(1, 0)} + info := bindataFileInfo{name: "template/builder/mutation.tmpl", size: 20189, mode: os.FileMode(420), modTime: time.Unix(1, 0)} a := &asset{bytes: bytes, info: info} return a, nil } diff --git a/entc/gen/template/builder/mutation.tmpl b/entc/gen/template/builder/mutation.tmpl index 311864c4a..e9d035c61 100644 --- a/entc/gen/template/builder/mutation.tmpl +++ b/entc/gen/template/builder/mutation.tmpl @@ -157,9 +157,9 @@ func (m *{{ $mutation }}) ID() (id {{ $n.ID.Type }}, exists bool) { } {{ range $f := $n.Fields }} - {{ $p := receiver $f.Type.String }}{{ if eq $p "m" }} {{ $p = "value" }} {{ end }} - {{ $func := print "Set" $f.StructField }} {{ $const := print $n.Package "." $f.Constant }} + {{ $p := receiver $f.Type.String }}{{ if eq $p "m" }} {{ $p = "value" }} {{ end }} + {{ $func := $f.MutationSet }} // {{ $func }} sets the {{ $f.Name }} field. func (m *{{ $mutation }}) {{ $func }}({{ $p }} {{ $f.Type }}) { m.{{ $f.BuilderField }} = &{{ $p }} diff --git a/entc/gen/type.go b/entc/gen/type.go index f8bf00812..77aae6338 100644 --- a/entc/gen/type.go +++ b/entc/gen/type.go @@ -685,7 +685,6 @@ func (t Type) RelatedTypes() []*Type { func ValidSchemaName(name string) error { // schema package is lower-cased (see Type.Package) pkg := strings.ToLower(name) - if token.Lookup(pkg).IsKeyword() { return fmt.Errorf("schema lowercase name conflicts with Go keyword %q", pkg) } @@ -828,6 +827,17 @@ func (f Field) MutationReset() string { return name } +// MutationSet returns the method name for setting the field value. +// The default name is "Set". If the the method conflicts +// with the mutation methods, suffix the method with "Field". +func (f Field) MutationSet() string { + name := "Set" + f.StructField() + if _, ok := mutMethods[name]; ok { + name += "Field" + } + return name +} + // IsBool returns true if the field is a bool field. func (f Field) IsBool() bool { return f.Type != nil && f.Type.Type == field.TypeBool }