diff --git a/entc/gen/internal/bindata.go b/entc/gen/internal/bindata.go index f11e812f6..c454e84fc 100644 --- a/entc/gen/internal/bindata.go +++ b/entc/gen/internal/bindata.go @@ -166,7 +166,7 @@ func templateBuilderCreateTmpl() (*asset, error) { return a, nil } -var _templateBuilderDeleteTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xac\x56\x71\x6f\xdb\xb6\x13\xfd\x5b\xfc\x14\xaf\x82\xfb\x83\x54\x38\x74\xda\xff\x7e\x29\x3c\xa0\xeb\x52\xac\x40\xd7\x0d\x6b\xb1\x15\x28\x8a\x81\xa1\x4e\x31\x61\x89\xd4\x28\x2a\xb1\x61\xe8\xbb\x0f\x24\x2d\x59\x76\xdd\x34\x18\x16\x04\x89\xc4\xbb\x7b\xbc\xf7\x78\xc7\xd3\x6e\xb7\x78\xc6\x5e\x9b\x66\x6b\xd5\xed\xca\xe1\xc5\xe5\xf3\xff\x5f\x34\x96\x5a\xd2\x0e\x6f\x84\xa4\x1b\x63\xd6\x78\xab\x25\xc7\xab\xaa\x42\x70\x6a\xe1\xed\xf6\x8e\x0a\xce\x3e\xae\x54\x8b\xd6\x74\x56\x12\xa4\x29\x08\xaa\x45\xa5\x24\xe9\x96\x0a\x74\xba\x20\x0b\xb7\x22\xbc\x6a\x84\x5c\x11\x5e\xf0\xcb\xc1\x8a\xd2\x74\xba\x60\x4a\x07\xfb\xbb\xb7\xaf\xaf\xdf\x7f\xb8\x46\xa9\x2a\xc2\x7e\xcd\x1a\xe3\x50\x28\x4b\xd2\x19\xbb\x85\x29\xe1\x26\x9b\x39\x4b\xc4\xd9\xb3\x45\xdf\x33\xb6\xdb\xa1\xa0\x52\x69\x42\x5a\x50\x45\x8e\x52\xf4\xbd\x5f\x9d\x35\xeb\x5b\x5c\x2d\x71\x23\x5a\xc2\x8c\xbf\x36\xba\x54\xb7\xfc\x37\x21\xd7\xe2\x96\xb0\x0f\x75\x54\x37\x95\x70\x84\x74\x45\xa2\x20\x9b\x62\xf6\xb5\x49\xd5\x8d\xb1\x6e\x30\xc5\x37\x64\x2c\x49\xfd\x2e\x5f\x03\x2f\xc2\xf2\xe1\x3d\x65\x39\x0b\x88\xb3\x9b\x4e\x55\x5e\x95\xab\x25\x66\xfc\xa7\x90\xed\x7b\x51\xd3\x90\xb0\x25\x49\xea\x2e\xda\xc7\xe7\x31\x68\xef\x54\x77\x4e\x38\x65\xb4\x77\x6a\xac\xd2\x6e\x12\x97\xf2\xc1\x1a\x44\x60\x8b\x05\xa6\xdb\xf6\xbd\x3f\x21\x2f\xef\xb0\x52\x1a\x8b\xa0\x9a\xd2\xb7\x10\xde\xb9\x11\xad\x14\x15\x66\x7c\x9f\x18\x48\x3b\xe5\xb6\x9c\xb9\x6d\x43\xa7\x68\xad\xb3\x9d\x74\xd8\xb1\x44\x06\x11\x58\xb2\x32\x66\xdd\x22\xfc\x7c\xfe\xf2\xb3\x31\x6b\x96\x8c\x09\x03\xcf\x82\x32\xbf\xec\x17\x06\xea\x49\x63\xa9\x50\x52\x38\x6a\xf1\xf9\xcb\xf8\xc2\x83\xf3\xe0\xd4\xb3\x40\xe7\xcf\x15\x59\x82\x28\x8a\x16\x02\x9a\xee\x31\xba\xc3\x99\x40\x2d\x16\xc1\xc0\x90\xb3\xb2\xd3\x12\xd9\x91\xbc\x7d\x1f\x33\x39\x30\xc9\x23\x70\xd6\xb4\xe0\x9c\x9f\x4f\x21\x3f\x0d\xf2\xbc\xa7\xb8\x7d\xcf\x27\x4c\x96\x10\x4d\x43\xba\xc8\xbe\xe9\x32\x47\xd3\x72\xce\x73\x96\x58\x72\x9d\xd5\x38\x49\x92\xc5\x13\xbc\xde\x90\x04\x6d\x48\x76\x1e\x76\xa4\xe8\x15\xfd\xbb\x23\xbb\x85\xd0\x05\x22\x42\x8b\x95\xb9\x47\x2d\xf4\x16\x77\x64\x9d\x92\xd4\xe2\xde\x0b\x16\x45\x29\xce\xa9\x71\x4e\x0c\xbf\x65\x26\xdd\x06\xd2\x68\x47\x1b\xe7\x6b\xdc\xff\xcf\x91\x29\xed\xe6\x20\x6b\x8d\xcd\x3d\xff\x3b\x61\x7d\x27\x24\x64\x6d\x5c\x65\x49\x22\xca\x92\xa4\xa3\x02\x4a\x3b\x96\xe4\x2c\x51\x25\x2a\xd2\xa7\x67\xc0\x43\xad\xe4\x58\x2e\x71\xe9\xa1\xc6\xb8\x80\x8f\xe5\xa9\x1c\xf1\x30\x3e\x38\x63\x63\x5b\x0d\x49\xe6\x2c\xe9\x41\x55\x4b\x01\xc4\x27\x54\x77\x0e\xa1\xc8\x8c\x87\x09\x4f\xf4\xa6\xd3\x32\xf3\xec\xcf\xf1\x9a\xa3\xc6\x50\x95\x39\xb2\x3f\x44\xd5\xd1\x94\x65\x32\x16\xf1\x1c\x66\xed\x3b\xaf\xe6\xd9\xd9\x62\xce\xbd\xb3\x2a\xf1\xc4\xac\x63\xe0\x70\xb6\x5a\x55\x73\x94\xb5\xe3\xd7\x1e\xb5\xcc\xd2\x4e\xd3\xa6\x89\x3a\x8d\x1d\x12\x7a\xec\xe9\xc7\x74\x8e\x3a\x00\xf5\xfe\xcf\x51\xd3\xf7\x3d\x96\xa3\xbf\xb7\xfe\x7b\xd1\x0e\xa4\x78\x61\x34\x61\x09\x67\x3b\x62\x87\x94\x8f\xa0\x59\x92\x04\x72\xfe\xc6\x50\x5e\x81\x07\x4e\xf4\x02\xcf\x5f\x42\xe1\x87\x25\x2e\x5f\x42\x5d\x5c\x8c\x12\x9e\xc9\x2f\x84\x7c\x56\x5f\xb2\xba\x73\x1e\xdf\x53\x56\x25\xfe\x8a\x7c\xae\x02\xd9\x28\x32\xf9\xbc\xe7\x38\x91\x23\x7f\x19\x1c\x9f\x2c\xbd\xc2\x71\xa3\x7d\xfa\x97\x63\xde\xcc\xff\x9e\x25\x75\xe8\xb0\x4f\x71\x78\xad\x29\xbc\xcd\x71\xd3\x39\x34\x42\x2b\xd9\x42\x95\x10\x3a\x56\x03\x8c\x94\x9d\x6d\x1f\x7d\xab\x04\xe4\xf3\x9d\xe4\x6f\xee\x1d\x4b\xf4\x48\xf4\x54\x99\xc9\x51\xa9\xf2\x94\x64\x48\x2d\x23\x6b\xf3\x29\x39\xcd\xe2\xe8\xba\x57\x6e\x05\xda\x38\xd2\x05\x66\x48\x7f\x8c\x19\xa5\x47\xb3\x24\xd4\x95\xab\x9b\x6a\x1c\x24\x25\xd2\x42\x89\x8a\xa4\x5b\x3c\x6d\x17\xc3\x30\x9d\x56\x4f\x08\xda\x8c\x83\x31\x86\xf3\xfd\x64\xf2\x9b\xed\x47\xe7\xcc\x68\x3a\x33\xeb\x7e\xd5\x47\xe3\xce\x68\xfa\xfd\xec\xc4\x9b\x44\x4f\xa6\xd8\xd1\xea\x77\x06\x59\xab\xf4\x6d\x15\xc7\xd5\xb7\x07\xd9\x31\xe0\x61\x96\x7d\xe7\x54\x1f\x79\x2d\x4f\x6b\x64\xca\x74\x00\x3c\xda\xfd\xa1\x2b\x37\x16\xde\x57\xa5\x72\x8c\xc9\x1f\xa8\x9e\xf6\x5e\x39\xb9\x0a\x53\xda\x7f\x0a\x1d\x2a\xe9\x8a\x8d\xcd\x12\x3a\x25\x98\x75\xb8\x90\x27\xa6\xff\xbd\x37\xee\x8d\xff\x5e\x0b\x37\xd7\x0e\x27\x5f\x37\xfc\x9d\xb8\xa1\xaa\x67\x49\x41\xa5\xe8\x2a\x37\x89\xd4\xaa\xf2\xd5\xf9\x1f\x34\xd9\x23\x05\xfc\x46\xab\xed\xcf\xf4\x11\x8a\x7d\x8a\x92\xc5\x2a\xde\x17\xf4\x3f\x01\x00\x00\xff\xff\xb0\x79\x37\xb1\x25\x0b\x00\x00") +var _templateBuilderDeleteTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xac\x56\xe1\x6e\xdb\x36\x17\xfd\x2d\x3e\xc5\xa9\xe0\x7e\x90\x0a\x87\x4e\xfb\xef\x4b\xe1\x01\x5d\x97\x62\x05\xba\x6e\x58\x8b\xad\x40\x51\x0c\x0c\x75\x15\x13\x96\x48\x8d\xa2\x12\x1b\x86\xde\x7d\x20\x69\xc9\xb2\xeb\xa6\xc1\xb0\x20\x48\x24\x92\xf7\xf0\xdc\x73\x0f\x79\xb5\xdb\x2d\x9e\xb1\xd7\xa6\xd9\x5a\x75\xbb\x72\x78\x71\xf9\xfc\xff\x17\x8d\xa5\x96\xb4\xc3\x1b\x21\xe9\xc6\x98\x35\xde\x6a\xc9\xf1\xaa\xaa\x10\x16\xb5\xf0\xf3\xf6\x8e\x0a\xce\x3e\xae\x54\x8b\xd6\x74\x56\x12\xa4\x29\x08\xaa\x45\xa5\x24\xe9\x96\x0a\x74\xba\x20\x0b\xb7\x22\xbc\x6a\x84\x5c\x11\x5e\xf0\xcb\x61\x16\xa5\xe9\x74\xc1\x94\x0e\xf3\xef\xde\xbe\xbe\x7e\xff\xe1\x1a\xa5\xaa\x08\xfb\x31\x6b\x8c\x43\xa1\x2c\x49\x67\xec\x16\xa6\x84\x9b\x6c\xe6\x2c\x11\x67\xcf\x16\x7d\xcf\xd8\x6e\x87\x82\x4a\xa5\x09\x69\x41\x15\x39\x4a\xd1\xf7\x7e\x74\xd6\xac\x6f\x71\xb5\xc4\x8d\x68\x09\x33\xfe\xda\xe8\x52\xdd\xf2\xdf\x84\x5c\x8b\x5b\xc2\x3e\xd4\x51\xdd\x54\xc2\x11\xd2\x15\x89\x82\x6c\x8a\xd9\xd7\x53\xaa\x6e\x8c\x75\xc3\x54\x7c\x43\xc6\x92\xd4\xef\xf2\x35\xf0\x22\x0c\x1f\xde\x53\x96\xb3\x80\x38\xbb\xe9\x54\xe5\x55\xb9\x5a\x62\xc6\x7f\x0a\x6c\xdf\x8b\x9a\x06\xc2\x96\x24\xa9\xbb\x38\x3f\x3e\x8f\x41\xfb\x45\x75\xe7\x84\x53\x46\xfb\x45\x8d\x55\xda\x4d\xe2\x52\x3e\xcc\x06\x11\xd8\x62\x81\xe9\xb6\x7d\xef\x2b\xe4\xe5\x1d\x46\x4a\x63\x11\x54\x53\xfa\x16\xc2\x2f\x6e\x44\x2b\x45\x85\x19\xdf\x13\x03\x69\xa7\xdc\x96\x33\xb7\x6d\xe8\x14\xad\x75\xb6\x93\x0e\x3b\x96\xc8\x20\x02\x4b\x56\xc6\xac\x5b\x84\x9f\xcf\x5f\x7e\x36\x66\xcd\x92\x91\x30\xf0\x2c\x28\xf3\xcb\x7e\x60\x48\xbd\x67\x81\xe9\x9f\x2b\xb2\x04\x51\x14\x2d\x04\x34\xdd\xa3\xb1\x54\x28\xe9\x2b\xe0\x4c\x60\x1d\xeb\x3b\x90\xe7\xac\xec\xb4\x44\x76\xa4\x5c\xdf\xc7\x4d\x0e\x24\xf3\x08\x9c\x35\x2d\x38\xe7\x23\x26\x0f\x54\xf6\x14\xf2\xd3\x20\x9f\xd2\x91\xd8\x7d\x7f\x08\x6d\xb1\x84\x68\x1a\xd2\x45\xf6\xed\x35\x73\x34\x2d\xe7\x3c\x67\x89\x25\xd7\x59\x8d\x13\x9a\x2c\x96\xe7\x7a\x43\x12\xb4\x21\xd9\x79\xdc\x31\x49\x0f\xf7\x77\x47\x76\x0b\xa1\x0b\x44\x84\x16\x2b\x73\x8f\x5a\xe8\x2d\xee\xc8\x3a\x25\xa9\xc5\xbd\x97\x2c\xca\x52\x9c\xd3\xe3\x9c\x1c\x7e\xcb\x4c\xba\x0d\xa4\xd1\x8e\x36\xce\x1b\xd8\xff\xcf\x91\x29\xed\xe6\x20\x6b\x8d\xcd\xbd\x02\x77\xc2\x7a\x9b\x27\x64\x6d\x1c\x65\x49\x22\xca\x92\xa4\xa3\x02\x4a\x3b\x96\xe4\x2c\x51\x25\x2a\xd2\xa7\x55\xe0\xc1\x08\x39\x96\x4b\x5c\x7a\xa8\x31\x2e\xe0\x63\x79\x2a\x47\x2c\xc7\x07\x67\x6c\x3c\x33\x03\xc9\x9c\x25\x3d\xa8\x6a\x29\x80\x78\x42\x75\xe7\x10\x1c\x64\x3c\x4c\x78\xa2\x37\x9d\x96\x99\xcf\xfe\x5c\x5e\x73\xd4\x18\x2c\x97\x23\xfb\x43\x54\x1d\x4d\xb3\x4c\x46\x87\xce\x61\xd6\xfe\x58\xd5\x3c\x3b\xeb\xd4\xdc\x2f\x56\x25\x9e\x98\x75\x0c\x1c\x6a\xab\x55\x35\x47\x59\x3b\x7e\xed\x51\xcb\x2c\xed\x34\x6d\x9a\xa8\xd3\x68\x8f\x70\x80\x9e\x7e\x4c\xe7\xa8\x03\x50\xef\xff\x9c\x18\x08\xcb\x71\xbd\x9f\xfd\xf7\xa2\x1d\x92\xe2\x85\xd1\x84\x25\x9c\xed\x88\x1d\x28\x1f\x41\xb3\x24\x09\xc9\xf9\xeb\x40\x79\x05\x1e\xa8\xe8\x05\x9e\xbf\x84\xc2\x0f\x4b\x5c\xbe\x84\xba\xb8\x18\x25\x3c\xc3\x2f\x84\x7c\x56\x5f\xb2\xba\x73\x1e\xdf\xa7\xac\x4a\xfc\x15\xf3\xb9\x0a\xc9\x46\x91\xc9\xf3\x9e\xe3\x44\x8e\xfc\x65\x58\xf8\x64\xe9\x15\x8e\x1b\xed\xe9\x5f\x8e\xbc\x99\xff\x3d\x9b\xd4\xe1\x84\x7d\x8a\x9d\x69\x4d\xe1\x6d\x8e\x9b\xce\xa1\x11\x5a\xc9\x16\xaa\x84\xd0\xd1\x0d\x30\x52\x76\xb6\x7d\xf4\xbd\x12\x90\xcf\x9f\x24\x7f\x2d\xef\x58\xa2\xc7\x44\x4f\x95\x99\x94\x4a\x95\xa7\x49\x06\x6a\x19\x59\x9b\x4f\x93\xd3\x2c\xf6\xa5\x7b\xe5\x56\xa0\x8d\x23\x5d\x60\x86\xf4\xc7\xc8\x28\x3d\x6a\x14\xc1\x57\xae\x6e\xaa\xb1\x4b\x94\x48\x0b\x25\x2a\x92\x6e\xf1\xb4\x5d\x0c\x9d\x72\xea\x9e\x10\xb4\x19\xbb\x5e\x0c\xe7\xfb\xb6\xe3\x37\xdb\xf7\xc5\x99\xd1\x74\xa6\x91\xfd\xaa\x8f\x7a\x99\xd1\xf4\xfb\xd9\x76\x36\x89\x9e\xb4\xa8\xa3\xd1\xef\x74\xa9\x56\xe9\xdb\x2a\xf6\xa2\x6f\x77\xa9\x63\xc0\x43\xa3\xfa\x4e\x55\x1f\x79\x2d\x4f\x3d\x32\xcd\x74\x00\x3c\xda\xfd\xa1\x2b\x37\x1a\xef\x2b\xab\x1c\x63\xf2\x07\xdc\xd3\xde\x2b\x27\x57\xa1\x05\xfb\xef\x9c\x83\x93\xae\xd8\x78\x58\xc2\x49\x09\xd3\x3a\x5c\xc8\x93\xa9\xff\xbd\x37\xee\x8d\xff\x18\x0b\x37\xd7\x0e\x27\x9f\x2e\xfc\x9d\xb8\xa1\xaa\x67\x49\x41\xa5\xe8\x2a\x37\x89\xd4\xaa\xf2\xee\xfc\x0f\x0e\xd9\x23\x05\xfc\xc6\x51\xdb\xd7\xf4\x11\x8a\x7d\x8a\x92\x45\x17\xef\x0d\xfd\x4f\x00\x00\x00\xff\xff\xa6\x0f\xe0\xc9\x02\x0b\x00\x00") func templateBuilderDeleteTmplBytes() ([]byte, error) { return bindataRead( @@ -181,12 +181,12 @@ func templateBuilderDeleteTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/builder/delete.tmpl", size: 2853, mode: os.FileMode(420), modTime: time.Unix(1, 0)} + info := bindataFileInfo{name: "template/builder/delete.tmpl", size: 2818, mode: os.FileMode(420), modTime: time.Unix(1, 0)} a := &asset{bytes: bytes, info: info} 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\xe8\x6a\xad\xdc\x8b\xcb\xb5\x81\x08\x8c\x84\x33\x3f\x26\x04\x66\x24\xd5\x64\xfe\xf7\xab\x6e\x00\x24\xc0\xaf\xf9\xb0\xec\xcd\xe6\x21\xf6\x90\x20\xd0\xe8\xfe\x75\xf7\xaf\xd1\xf0\x6e\xb7\xbc\x88\xde\x56\xeb\xe7\x5a\xde\x3f\x68\xf8\xcb\x77\xdf\xff\xc7\xb7\xeb\x5a\x28\x51\x6a\xf8\x89\x65\xe2\xae\xaa\x3e\xc2\x75\x99\xa5\xf0\x26\xcf\x81\x06\x29\xc0\xf7\xf5\x56\xf0\x34\xba\x7d\x90\x0a\x54\xb5\xa9\x33\x01\x59\xc5\x05\x48\x05\xb9\xcc\x44\xa9\x04\x87\x4d\xc9\x45\x0d\xfa\x41\xc0\x9b\x35\xcb\x1e\x04\xfc\x25\xfd\xce\xbd\x85\x55\xb5\x29\x79\x24\x4b\x7a\xff\x5f\xd7\x6f\x7f\xfc\xe5\xdd\x8f\xb0\x92\xb9\x00\xfb\xac\xae\x2a\x0d\x5c\xd6\x22\xd3\x55\xfd\x0c\xd5\x0a\xb4\xb7\x98\xae\x85\x48\xa3\x8b\xe5\x7e\x1f\x45\xbb\x1d\x70\xb1\x92\xa5\x80\xb8\xd8\x68\xa6\x65\x55\xc6\x60\x5f\xbc\x5a\x7f\xbc\x87\xd7\x97\x70\xc7\x94\x80\x57\xe9\xdb\xaa\x5c\xc9\xfb\xf4\x7f\x58\xf6\x91\xdd\x0b\x1c\xb4\xdb\x81\x16\xc5\x3a\x67\x5a\x40\xfc\x20\x18\x17\x75\x0c\xaf\xe8\x73\x59\xac\xab\x5a\xc3\x3c\x9a\xc5\x59\x55\x6a\xf1\xa4\xe3\x68\x16\xaf\x0a\xfa\x43\x3d\x97\x59\x1c\x45\xb3\xdd\xee\x5b\xa8\x59\x79\x2f\xe0\x55\x89\x0b\xbd\x4a\x7f\xa9\xb8\x50\x38\xc1\x6c\x16\xa3\x04\xfd\x45\x97\xf8\xb8\xf4\x1e\xc4\x66\x1e\x51\x72\x5a\x78\x16\xdf\x4b\xfd\xb0\xb9\x4b\xb3\xaa\x58\xae\xac\x15\x96\xa2\xd4\x71\x94\x44\x51\x56\x95\x8a\xa4\x5a\x2e\xe1\x66\x2d\x6a\xda\x30\xe8\xe7\xb5\x50\x69\x34\xbb\x59\xbf\xad\x05\x6e\x06\x00\x2e\x41\x94\x3a\x75\x4f\xf0\xdd\x95\xc8\x45\xf8\xce\x3c\x69\xdf\xdd\x94\xa2\xf3\xee\xa6\xa4\xd7\xbf\xae\x79\x67\x5a\xf3\xa4\x7d\xe7\x7f\xda\x3c\x89\x48\x4e\xd4\x49\x23\xe2\xa4\xca\x6e\x9f\xd7\xc2\xa8\xe7\x17\x56\xa0\x6e\xe0\x12\xe2\xe0\x41\xa8\xac\x84\xcc\x3c\x32\x1d\x21\xc0\x61\x82\xde\x95\xe9\x7f\xdb\x9f\x76\xb6\x68\xb9\x84\x60\xd4\x7e\x0f\xb5\xb0\x2e\xa0\x80\x95\x50\xb5\x3a\x7e\x60\x1a\x68\xa0\x20\x88\xee\x76\xb0\xce\x37\x35\xcb\x3d\xe9\x70\xbe\x92\xd6\xb7\x38\xbe\xaf\xd9\xfa\x21\x8d\x70\xf3\xbd\x85\x94\xae\x37\x99\x86\x5d\x34\xcb\x08\x23\xd1\xac\x5a\xc3\xcd\x3a\x9a\xe9\xe7\x35\xbe\x94\xe5\x3d\x6e\x16\xa7\xbf\xbe\x4a\xff\xba\x91\x39\x17\xf5\x4f\x52\xe4\xb8\x75\xb8\x68\xde\xa0\xd2\x48\x7d\x9e\x6a\x57\x76\xbf\x34\xdc\x2a\x17\x3f\x58\x0d\xcf\xb3\x6a\x27\xa1\x59\xe4\x0a\x58\xc9\xdd\xf3\xf4\x97\x4d\x21\x6a\x99\xe1\xef\xb7\x55\xb9\x15\xb5\x16\xfc\xb6\xfa\x2b\x53\x32\x33\xdf\xcc\x18\xe7\x27\x4c\x6f\xad\x17\xfc\x3d\xcb\x05\xab\x05\xb7\x02\x17\x6c\xfd\xde\xa8\xe0\x83\x51\xd3\x2e\xdc\x9f\xb0\xfb\xfb\x91\xdf\x0b\x15\xc8\xfd\x4a\xa4\xbf\x96\xf2\xf7\x8d\x5d\x8e\x76\x2d\x86\xc5\x12\x66\x77\xbe\x0a\x8d\x48\xb9\xa2\x5f\xe0\xfd\x37\x3c\x0d\x8a\x39\x38\x93\x27\xf5\x6c\x56\x8b\xa2\xda\x0a\xfe\x09\x53\xf8\x8a\x72\x9a\x1a\x9e\xee\xae\xaa\xf2\x50\xb1\xbc\x2a\x85\x7d\x5c\xe5\xfc\x7f\x59\xbe\x11\xb0\xda\x94\xd9\xdc\x86\x35\x34\x29\xfe\x99\xc0\xfc\x22\x70\xb5\x05\x88\xba\xae\xea\x24\xda\x47\xd1\x96\xd5\xf0\x0f\xf2\x6e\xe7\x41\x70\x69\xc7\x7b\x90\x4e\xe6\xa5\xcc\x93\xd0\xf1\x6e\xd6\xce\xfd\xd6\xb5\x2c\x35\xcc\x33\x56\x88\xc6\x67\x12\x88\xcd\x80\x78\xc0\x1b\xed\xa7\xfb\x3d\xb0\x3c\xaf\x1e\x15\xe8\x0a\x0a\x56\x62\xd4\x44\xdf\x6a\x16\x36\xee\xb3\xb1\x7e\xba\x51\xb2\xbc\xa7\x1d\xe2\x4f\x96\x43\x45\xd3\xa8\x01\x2f\x6c\x17\x20\x85\xf4\xb6\x13\x91\x3f\x8b\xc7\xae\xe7\x66\x14\x52\x15\xbe\x6a\xa5\x58\x55\xb5\xdb\x55\x1a\xe1\x7c\x03\x5f\xce\x33\x2b\xec\x02\xc8\xd7\xf1\x0f\xad\x20\x4d\xd3\x41\xb1\x12\xe8\x8a\x84\xd1\xa2\x40\x65\x7e\xd3\x79\xb1\x43\x60\xd0\xd4\xaf\x1d\x64\xb3\x45\x34\x9b\x55\xeb\xd7\x3e\x8c\xab\x35\x3e\xd4\xcf\xc1\xd3\x5e\xd4\x5d\xb4\x28\x33\xfe\xf8\x1a\x0a\xf6\x51\xcc\x07\xbc\x32\x59\x44\xb3\x7d\x34\xc3\xcd\xff\x83\x76\x83\xc2\x19\x27\xa5\xad\xed\x48\x06\x3d\x2f\x12\x1a\x57\x0b\xbd\xa9\x4b\x28\x22\x1b\x9e\xed\x07\x06\x1a\xf1\xa3\xd4\x0f\x71\x23\x47\x7c\x7d\xe5\xa3\x02\x87\x62\xd4\x14\x5a\x91\xf9\x25\x87\x15\xa1\x9e\xc8\x41\x0b\x07\xab\xfc\xf6\x93\xb9\xe4\xd0\x0d\x96\xc9\x08\x0e\x76\x8d\x88\x84\x88\xa2\x67\x80\x84\x76\x84\xee\x30\x47\xd7\x16\x75\x6d\xbc\x04\x7f\x54\x65\x26\x00\xa9\x41\x7a\x53\x66\x02\x9f\x6c\xc9\xdb\x42\xb7\x8a\x66\xb3\x24\x9a\xcd\x8a\xb4\xf1\xc6\x4b\xeb\x8f\xfa\x09\x8e\xf5\x49\x92\x82\x16\x4c\xaf\xaa\x39\x7d\x6e\x9f\xcd\xe4\x0a\x8a\x94\x9c\xde\xfc\x26\x19\x2f\x61\x55\xe8\xf4\x47\xfc\x76\x35\x8f\x7f\xdf\x88\xfa\x19\xbd\xa4\xca\x39\x90\x8c\x0a\xd6\x95\xd2\x2d\x98\xa5\x82\xb2\xd2\xc6\xef\x04\x8f\x13\x9a\x69\x6f\x22\xa3\x9d\x96\xbe\x23\x79\xe0\x12\x8a\xf4\x6d\x2e\x45\xa9\xe7\x49\x1a\xc8\x9b\xfe\x2c\x34\x6e\x6c\x01\x92\xdb\x49\xf0\xff\xfb\xc4\xc4\x45\xd2\x74\x3b\x51\x64\x5e\x17\xe9\x68\xd6\xbb\x84\x6f\x24\x47\x24\x79\xf8\x19\x81\xcf\x38\x72\x70\xd7\x21\xcb\x38\x08\x21\x4c\xea\x1d\x3b\x7e\x22\x84\x06\xec\x7f\x92\xed\xed\x1a\x28\xd8\x02\x4a\x99\x1f\xa5\x3b\x1c\x9d\x5e\x5f\x59\x05\x2e\x97\x60\xac\x06\x66\x32\x05\x8c\x42\xda\x6f\x18\xe7\xcd\x9b\xdf\x60\x55\x57\x45\xa8\x1c\xb8\x0e\xb5\x05\x8f\x4c\xe1\x5c\xe2\x49\x64\x1b\x2d\x38\x72\x1f\x06\xba\x66\xa5\x62\x14\x83\x61\x8e\x13\xde\x3e\x25\x8b\xf0\x39\xcb\x21\x33\xeb\x4b\x65\x45\xc0\xb2\x82\x74\x3f\x2f\xba\x7c\x29\x01\x07\x31\xb8\xb0\x62\x23\x75\x32\x7f\xc3\x88\x68\x1e\xee\x5c\x14\x2c\x52\xf3\xb7\xbd\x1b\x94\xca\x52\xea\x79\xd2\x98\xc7\x3c\xb5\x8a\xb8\x7d\x6a\x95\x50\x1a\x0d\xdc\x3e\xfd\x46\x41\xdd\xc9\xa0\x0c\x05\x7c\x14\xb5\x08\xf6\xea\xed\x48\xfd\x80\x73\x49\xed\xcf\x45\x46\x83\x4a\x3f\x88\xfa\x51\x2a\x31\xb1\xbf\xdb\xa7\x39\x1a\xfd\xf6\xc9\xb7\xb4\x5c\xc1\x0c\x23\xeb\x47\xdc\x63\x91\xf2\x5a\x6e\x45\x9d\xce\x2f\xf4\xd3\x15\xfd\x35\xf9\x01\xbe\xaa\x3e\x12\x26\x1c\x24\x64\xbe\x08\xdc\xdd\x55\x42\xfb\xfd\xeb\x9e\x87\xd7\x9b\xb2\xc4\x48\xd0\xb5\x59\x6c\xe2\xb5\x7e\x22\xd5\xde\x3e\x0d\xa9\x55\x3f\x75\x55\x8a\x8e\x8e\x58\x24\xef\x34\x74\x8c\xa0\xf8\xab\x12\xf5\x15\x55\x69\x86\x93\x2c\x97\xf0\x4e\xe8\xeb\xab\xd6\x27\x4d\xa4\xb4\x7e\xe8\x42\x7b\x0a\xbf\x54\xc4\xb6\x99\x5e\x50\x01\x48\x5f\xb6\x94\x5c\x2a\x60\x59\x26\xd6\x68\x88\xaa\xcc\x9f\xa1\x2a\x3b\x8e\x4d\x99\x9a\x3c\x7a\xe6\xd4\xde\x77\x47\x12\x65\x24\x4b\x1c\x19\x8e\xfc\x02\x6e\xb9\x84\xeb\xab\x06\x01\x76\x3f\x66\x7f\xb6\x2a\x68\x5d\x29\xd8\x1f\x0e\x24\xfc\x28\x60\x5b\x26\x73\x76\x97\x0b\xb3\x2f\xb9\x42\x50\x3d\x32\x05\xeb\xba\xda\x4a\x2e\x38\x72\x21\xfc\xe2\xce\x48\xd4\xa2\xaa\xbf\xbd\xeb\x2b\x84\xd5\xc0\xf6\x16\x20\x9e\xa4\xd2\x8a\xd8\xa1\x03\xdb\xd4\x6e\x2f\xd1\xb8\x1e\xd4\xfc\x94\x7e\x31\xfe\xe1\x02\x74\xbd\x11\x36\x64\x8f\x17\x28\x04\x53\xa2\x0f\x22\x13\x08\xed\xa6\xfe\x78\x47\x9c\x03\x59\xce\x0e\x55\x21\x7e\xc7\x81\x71\x11\x53\xb8\xa5\xaf\x2e\x21\x26\x0d\xbb\x47\x6d\x85\x01\xaf\x48\x33\x2d\xc9\x78\x27\x74\x8c\x33\xbf\x23\x06\xe3\x64\x34\x43\x4d\x75\xdd\x8c\xf5\xca\xf4\x38\x8d\x6d\xf9\xa3\x34\x2b\xb5\x43\x71\x33\xbf\x9f\x5f\x4c\xc9\xe3\x20\x68\x90\x3c\x85\x3f\x6f\x92\xb9\xd9\x8e\xdd\xd7\x6a\x08\x88\xfd\x1a\xcb\xb2\xc1\x75\x5b\xc1\x2c\x2f\x50\x1a\x8d\x4a\x2b\x6d\xed\x46\xe4\xb7\xda\x8a\xba\x96\x5c\xc0\xba\x16\x5b\x59\x6d\x14\x64\x2c\xcf\x89\x58\xbf\xe1\x3c\x05\x3a\x52\x39\xb3\x04\x2c\xd2\xd1\x22\xf0\xd2\x26\x28\xbf\x2c\xd9\x47\xad\x02\x9b\xa2\xe2\x67\xa1\x4d\x09\xde\xfa\x4e\xa8\xcc\x61\x37\x3a\xa8\xdc\xce\x02\xe8\x0f\x75\xa8\xe1\xbe\x2f\xcc\xb6\x26\xe2\x0e\x6e\x29\x22\x9e\xb5\xf5\x5d\xa2\xf1\x09\xca\xc3\xce\x2b\xb6\x16\xfc\xa3\xfb\xbd\x31\x2a\xf2\xb7\xec\xf8\x49\x77\xdb\x36\x3a\x86\x04\x8b\x66\xbd\x1e\x78\x03\xd5\xdd\xff\x89\x8c\xa2\x46\xf9\x6f\x7a\x2c\x70\x98\xb8\x63\x87\x4a\x05\x2b\xa1\xb3\x07\xc1\x69\xd6\x26\xf5\x73\xa6\xd9\x1d\xc3\xdc\x85\x8f\xdf\xb8\x9c\xe6\x65\x6d\x84\x4b\xc0\x09\x82\x20\x8d\x89\xa6\x39\x13\x5a\x40\x55\x37\x33\x02\x51\x51\x58\x31\x99\xab\xd3\xcc\x68\xf4\x36\x42\x9a\xb7\x60\x22\x05\xaa\x50\xe6\x26\x90\xee\xf7\x17\x4d\x60\xe8\x9a\xde\xb1\x78\x63\x78\xb9\x82\xaf\x8a\xb4\x5a\xa7\xd7\x6a\xee\x1d\x66\x85\xc4\x6b\xdb\xcf\xb1\x43\x76\xc5\x58\x6e\x48\x74\x93\xa1\xda\xf3\xb2\x46\x49\x8a\x18\xb6\x45\xd5\xe1\x08\xfc\xc7\x1f\xe0\xd3\xc7\x1e\x06\x8f\x15\xae\x16\xbf\x6f\x64\x2d\x88\xa6\x5c\x5f\xd9\x72\xaa\xe3\x5c\x8d\x64\x6e\x3d\xa3\x2e\x72\x0d\xf7\x08\xad\x90\x18\xe1\xf1\xdd\x57\x07\x05\xea\x17\x20\xc4\xb4\x46\xe4\x7c\x0d\x5f\x3f\xc6\xb4\x6c\x12\x7a\x97\x5b\xdf\xfa\x68\x18\xd1\x2d\x2b\xde\xd3\x31\xed\xc9\xe1\x6c\x20\x71\xbc\xe1\x7c\x30\x71\x74\xf3\x00\xe3\x5c\x41\x13\xc7\x75\x15\xfa\x72\x1a\xcd\x5e\x20\x15\x34\xa7\x5d\xab\xf4\x6f\x4c\xfd\x5c\xb5\x07\x58\xc1\x09\xd6\xac\x73\x74\x64\xe0\x35\x1a\xa7\x7d\xc3\xcd\x2e\x26\x06\xfe\xfb\x25\x78\x19\x27\x2c\x0c\x27\xf3\xc0\x37\xc1\x67\x64\x4d\xa3\xc0\x37\x9c\x0b\x3e\x64\xc6\x20\x32\x1a\xa8\x18\x1a\xce\x14\x6a\xba\x0d\x68\x03\x59\xd7\x60\x59\x2a\x3f\x53\x4c\x28\x7f\x54\x86\xe3\xf2\x85\x4b\x18\x63\xdb\xb7\xfa\x0f\x93\x46\x9b\x35\x66\x7b\xcf\x5f\xda\xbc\x31\x33\xd4\xa4\xe9\x0e\x34\x81\xcd\x54\x9c\x2c\x1f\xc5\xeb\xdb\x5c\xb0\xfa\x28\xc4\xd2\x59\x4f\x87\x87\x9f\x09\x5a\xab\x8a\x71\xaa\x62\x98\xc0\x79\x14\xe3\x18\x8e\xd1\x01\x7c\x91\x06\x07\x59\xef\x5b\x96\xb7\xdf\x7f\x80\x4b\x70\xe7\x58\xbb\x06\x8c\xcd\x6e\x1a\x16\x18\x2a\xd0\xe8\x55\xf0\x78\x50\x95\x0e\xad\x36\x1f\x1a\x18\x86\xd0\x44\xe4\x5a\xa1\x4e\x04\x68\xa8\x68\x44\x9e\xd1\xb6\x57\x1f\x4e\xec\xd6\x83\x57\xf5\x71\x10\x58\x6e\xdf\x5e\x10\xfe\xbb\x50\x62\x90\xed\xd6\xf4\x82\xe5\x39\x64\x0f\x48\xe9\x95\xa3\x27\x71\xb0\xdb\xf8\x44\xfe\x7b\x88\xe9\xb6\x44\xf2\x73\x13\x54\x2f\xc4\x86\xae\x36\xe3\xd4\x19\x9b\x77\x94\xbd\x00\x5f\xdb\x49\x8f\xee\x7a\xba\xf6\xea\xa0\x7e\x23\xc3\x9c\x3a\xe1\xe3\x98\x71\x42\x99\x75\x79\xaf\xb1\x61\xc7\x5c\x42\xac\xb0\x9a\xa1\x07\x7e\xc9\x23\xb9\xfa\x29\x08\x06\xf3\x35\x53\x19\xcb\xf1\xab\x04\xe6\x4a\x96\xf7\x9b\x9c\xd5\x38\x27\xd9\xe9\x0f\x30\xef\x13\x88\xaf\xaf\xd4\xf8\x9a\x6e\xde\xe1\x69\xdd\x0f\xe1\x8e\xf6\xcd\x01\xae\x27\x9b\xc5\x90\x9b\xc6\xe6\xb6\x0a\x13\x42\xcb\xf6\x45\xe3\x29\x82\xdf\x0b\x97\x40\x6d\x7f\xc4\xbd\xba\x7b\x06\xc9\x8d\x90\xc8\x2e\x7d\x41\x55\xb3\xe0\x41\xd4\xb5\x82\xcc\xfb\x1b\xa6\xf9\x6d\x26\x95\xdc\x9d\xd2\x9b\x99\x61\xb0\x65\x63\xc0\x3b\xd2\x88\x32\x98\xee\x77\x6c\xec\x19\x42\x37\x6f\x37\x44\x70\xe0\x0b\x3f\x7f\x8c\x4f\xdb\x1c\xd9\x0f\xca\xda\x9e\xe0\x37\xb9\x07\x29\x98\x6c\xcf\xef\x71\xcf\x93\x6b\xbc\x97\x5c\xbd\x97\x1f\x7a\x61\x74\xd6\x6d\x59\x05\xe1\x05\xf1\x2e\x9a\xf8\x42\xc1\x74\x28\xbe\x78\x39\xe9\x58\x50\x9c\x1c\x64\x26\x3b\x69\x97\x5e\xe1\xe6\xc7\xc6\x8e\xec\x82\x0f\x47\xc7\x20\x0d\x90\xcc\xe1\x36\xbc\x2c\x70\x82\xdc\x4d\xcc\x77\x8d\x94\xc9\x3d\xf8\xec\xb7\x03\x47\x2b\xaf\xe8\x70\x83\xce\xc1\x55\x28\xb2\xec\x15\x07\x87\xd3\x55\x7f\x01\xef\x30\xaa\x07\xca\x21\x56\x35\xe1\x08\x5f\xf5\x89\x94\x3b\x87\xea\x0d\x6e\xf8\x94\xcf\xb3\xda\x2c\xd8\x38\x5e\x73\x0a\x85\x45\x5b\x0d\x73\x0a\x74\x2b\x88\xbf\x4e\xbf\x57\x71\x80\xb8\xa4\xfd\xa0\x17\x6f\xe3\xbf\x53\xcf\x37\x3e\x2a\xd6\xb6\xe6\xf0\x02\xa3\x69\x1a\x9f\x13\x15\xd5\x61\xab\x78\x71\xaf\x8d\x6c\x63\xf1\xcc\x58\x60\xb2\x89\xdd\x89\x48\xd3\x63\x4f\x0f\x4c\x23\x11\xf5\xc0\x4a\xef\x25\xef\x87\xa6\x4e\x94\x1d\x8f\x79\x87\x27\x1f\x8e\x7d\xb3\x7e\xd5\x15\xd2\xca\x2e\x46\x78\xdc\xf7\x92\x71\x5e\x49\x97\xa3\xcc\x77\x24\xac\x65\xea\xe2\x64\xa6\x7e\x7d\xa5\x8c\x27\x2a\x78\xff\x61\xca\xfa\xa4\x21\xde\xaa\xe8\x80\x79\x6d\x13\x92\x2b\xb8\x04\xb6\x5e\x8b\x92\xe3\x1a\x4d\xff\x6f\xd0\xf9\x1c\x05\x1d\x0d\x4a\x6a\x32\x2a\xa9\x7e\x58\x32\x57\x36\x86\x50\x43\xf7\x91\xec\xa1\x3b\x7d\xcb\xf2\x47\xf6\xdc\x2e\x90\x8b\x12\x05\x4e\xe0\x3f\x2f\xe1\x7b\x3a\x95\xd8\x98\xaf\xd1\xed\xd4\x82\x38\xe7\x73\xb5\x01\xf5\x50\x6d\x72\x0e\x1b\x25\x26\xa3\xa9\x2c\x95\x16\x8c\xa7\x70\xad\x5d\x6c\xa3\x73\x20\xd2\x6a\xa9\x45\x8d\xb4\x72\xa3\xd8\xbd\x40\xe7\xf5\x0e\xe6\xdc\x5d\x29\x87\xa2\x53\xc3\xec\x31\xd6\x45\x2d\x8d\x39\x97\x5c\x59\xab\x8f\xc4\xd3\x1f\xf0\x75\x10\x80\xfb\x36\xbf\xf0\x8c\xde\x71\xbc\x3e\xaa\xce\x86\x93\xd5\xd2\x7e\x1f\xf4\x25\x46\xb3\xf6\x99\x15\x8d\x68\x2b\x1a\x44\xc2\x59\x05\xcd\x50\x30\x34\x85\xc7\x41\x2e\xb2\x62\x39\x21\xcd\x5a\xab\xcb\x79\xa3\x63\xe2\xee\xd0\x21\xbc\x5f\x95\xd0\x95\xc2\xf0\x24\xba\x39\xc5\x2d\xdb\x6b\x2d\x83\x5b\xbe\x59\xcf\xf1\x7f\x5e\xf7\xbb\x48\xab\xb5\x6b\xae\x22\xe4\xfc\x79\x4b\x77\x23\xb0\xb9\xd9\xd9\x4c\x36\x0f\x0e\xb1\x93\xa9\x35\x71\xda\x79\x62\xaf\xca\x05\x2b\xeb\x67\xb7\xb4\xed\x2f\x35\xfd\xd8\x3c\x37\x05\xa9\xdf\xcc\x35\xe6\xe6\xc0\x37\x74\xe7\x6e\xb9\xec\xd4\xe4\x7e\x97\x4e\x96\x50\xd5\x74\xb3\xb5\x82\x7b\x0b\x17\xdb\x62\xc1\x0f\x7b\x73\xcb\x72\xc9\x45\x56\x8b\x42\x94\x5a\xf0\x05\xf5\x5b\xcc\x41\x93\x91\x6c\x3e\xb9\x43\x37\x06\xde\x7f\x68\x77\x69\xd7\x78\x6d\x13\xa9\x7b\xb5\x80\xef\xa8\x04\xcd\x45\x19\x34\xd6\x92\x23\x2e\x06\x7e\x7b\x6a\xeb\xab\x65\x65\xd3\xa7\x88\x56\xd6\xc6\x77\x57\x23\xa5\x72\xe7\x32\xa0\xbb\x40\x41\xa3\x7d\x4b\x0e\x9c\x06\x56\x2b\x60\xf6\x9c\xe5\x51\xea\x07\x73\xed\x52\x6e\x85\xc3\x2c\xe2\xef\x41\x80\x12\x59\x55\x72\x22\x96\x82\x95\x4d\x23\x89\xcb\x8c\xae\x72\x91\xc5\xc8\xec\x76\x2a\x73\xa7\x01\xfd\x4c\x09\x4d\x3d\x0b\x64\xec\xf8\xdb\x5e\x37\xb6\x39\x47\x65\x0f\xa2\x60\x07\x8d\x38\x47\x61\x2c\x54\x13\x73\x21\xc2\x9e\xa6\x37\x54\x17\x15\x40\x3b\xe8\x98\x47\x3d\x4a\x9d\x3d\xd0\x6e\x9a\xfa\x72\xc2\x9a\x67\x99\x73\x96\x31\x25\x02\xab\xbc\xf6\x49\x75\x63\xeb\x6e\x1f\xad\x7b\x66\x32\x6c\x47\x73\x23\x81\x22\x98\x8b\x33\x39\xef\xdb\xb3\x6d\x06\x54\xfe\xe9\xd9\x40\x1b\xea\x05\xba\x50\x38\x47\x65\x2e\xa8\x9b\x1e\x94\x3d\x46\x6e\x3a\x53\x68\xee\x15\x93\xb9\x7f\x25\x65\x20\xee\xd9\x8d\x0c\x35\xa2\x16\x30\x6a\xf4\xb6\xdb\x74\xae\xd5\xd3\x2f\x6b\xed\xb6\xdd\x76\x92\xcd\xbd\x9e\xcf\xa6\xfc\x58\x56\x8f\xdd\x0b\x1a\xc6\xc4\x5f\xab\xd8\x28\x2b\xb1\xce\xfe\x4e\x58\x2a\xd3\xb9\x20\xb2\xb2\x26\xf3\x1c\x1c\x99\x55\x7b\xdd\x86\x2e\x22\x19\x5c\xf8\x18\x92\xbe\xeb\xf2\xd0\x77\xc9\xb9\xcd\x68\x8a\xfd\x98\x96\x0a\xa9\x0a\x86\xfa\x6f\xa7\xc0\xe7\x53\x48\x70\x22\xfb\x9e\xbe\xb0\x62\x37\x96\x4f\xac\x70\xbb\xa8\x6b\xe0\xcf\x10\xa3\x87\xad\xbc\x75\x87\xc5\x24\x5a\x3a\x0f\xbb\x4b\x96\xfa\xb9\x2b\x45\x0d\x26\x42\x4b\x8a\xa7\xb5\xc8\xb4\x30\x4a\x81\xaf\x6f\xc9\x2e\x9e\x29\xed\x95\x3e\x63\x51\xc7\xfa\x8b\xf4\x9d\xd0\x83\xed\x95\xad\x7f\x1d\x90\x58\x4a\x48\x52\x86\x85\x38\x01\x4e\x5e\xc2\x0d\xa8\x80\xbb\x1c\x31\x90\xb6\x9b\x9c\x6d\x03\x85\x97\xc5\x2d\x51\xe8\x9e\xdc\x1f\x68\x2c\x0d\xe6\xf2\xf6\x96\xd4\xdf\x98\x72\x47\xd8\x64\xbc\x2d\xab\x9d\x58\xee\x83\x23\x63\xff\xe9\x6d\x95\xb3\x62\xc8\x29\xbd\xc4\xa3\x79\xc0\x50\xf9\x1c\xfc\x08\x99\x41\xa7\xaa\x18\x41\x50\x17\x03\x21\x15\xb5\xea\xe9\xb4\x16\x43\xde\x16\xb9\xdb\x10\x53\x4c\xc3\xa7\x19\x1d\x7a\x61\x38\x65\x8f\x61\xbc\x08\xbd\x68\xf7\x75\x24\xc7\x18\xc6\xdb\x39\x2c\xe3\x4b\x21\x6d\x24\x5d\xb5\x7c\x7f\xa2\x73\x3b\x0d\xa7\x63\xf8\x8a\xc1\x8e\x99\x91\x7a\xfb\xff\x12\xe9\xc8\x89\x7c\x6c\x3a\x7a\x49\xf6\xf9\xcf\xc6\xc5\xe1\x14\xd7\x49\x72\x2f\x94\xe6\x6c\xf4\xc2\x54\xf7\x86\x0f\xe3\x71\x9b\x04\xd0\x1d\xea\x59\x1f\x01\xd0\xc3\x89\x30\xc8\x6c\x9d\x84\x68\x2e\x7e\xfb\xff\xdc\x2a\xcc\x89\xf6\xc2\x54\xbf\x4e\x36\xdf\xe0\xe7\xa7\x66\xc0\x60\xb9\xa9\x1c\x18\xb6\x5a\x3f\x29\x09\xf6\x1b\xb7\x9f\x92\xe8\x68\x05\xbb\x8d\x79\x90\xb6\xfe\x44\x39\xce\x17\xd2\xbb\xd4\xef\x8a\xde\xb6\xdc\x95\xab\x81\x62\x77\xfc\x52\xc2\x81\xe2\xd6\xa9\x25\xc8\x3f\xae\x55\x35\x7a\x39\x01\x47\x7f\x88\xbc\x2b\x09\xfb\x16\x99\xc6\x5f\x7a\xf7\x52\x3e\x47\xbc\x3d\x08\xdb\x81\xdc\x1a\x44\xcd\x11\xec\x9e\x19\x38\x5f\x0c\xb5\x63\xc1\xb1\x48\x69\x57\xe3\xd9\xf2\x4b\x04\x27\x3f\xc4\x0c\x44\x27\x3a\xa3\x75\x5c\x8d\x4a\x40\xff\x58\xb6\x73\xda\x0f\xb5\xb8\x67\x35\x37\xf1\x88\x72\xa6\x81\x87\x99\x7c\x00\x24\xe3\x08\xa1\xd0\x76\x2a\x48\x5a\x61\x27\x40\xf2\x67\x3b\xd8\xe9\x96\xf8\xee\x54\xdc\x42\x20\x40\xc0\x8b\xd8\x7c\xaa\x32\x33\x97\x5f\xfc\x24\x44\x3d\x4e\x1c\xe7\xe7\x1f\x25\xf4\xd2\x5c\xf9\xb3\x11\x0a\x27\x38\xba\xfe\xa2\x45\x3a\xa9\x87\x7a\x3a\x87\x4e\x52\xdd\xd5\x9c\xe4\xd0\xbf\x40\x3e\xb2\x53\x7d\x8c\x19\x45\xd7\x8c\x46\xd2\x26\xb7\xd8\x66\xd4\x71\xc7\xa8\x34\xd8\xd7\xb7\xdf\x50\x43\x6d\x4b\xae\x60\xae\x2b\xf3\x8f\x94\xcc\x3f\x60\x4f\x3c\xbd\x1b\x9d\xaf\xaa\xda\x94\x31\x2e\xfc\x36\x36\x3a\xa8\xfa\xeb\x2b\x15\xba\xc6\xfb\x0f\x0d\x05\xed\x3a\x88\xa7\xcf\x09\xff\x18\xd0\xfe\x79\x7a\x1d\x71\x8f\xb1\x8e\xf3\x19\x6d\xb1\xc6\x99\xbc\x4d\xef\x2e\x24\xdf\xfb\x8c\xb1\xdb\x96\xa6\x8e\x57\x8b\x4b\xaf\x94\xfb\x6e\x41\x2d\xca\x91\xe5\x13\x1b\xc1\x4f\x6b\xaf\x4d\x34\xd8\x1a\x4a\x6b\x37\x21\x91\x91\x9c\x57\x52\x59\x04\xda\xae\xf7\x91\x3e\xdf\xf4\xba\x4f\xf3\x78\x7f\x91\xcf\xea\xf3\x13\xfd\xb8\xc3\xd7\x26\x02\x9c\x9c\x05\xdf\x23\xe3\x42\xef\x46\xd6\x81\x28\x61\xd5\x77\x62\x9c\x70\xb6\x3a\x2f\x52\xb4\x6b\x7e\xa1\x58\x31\x62\xb6\x33\x0d\x31\x46\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\x93\x4f\x76\xe4\xff\xf9\x99\x1c\xc5\x3d\xa5\xd4\x23\x43\x7c\x42\xa5\xe7\xad\x37\x5c\xe8\xfd\xf9\xb2\xf8\x91\x97\x24\x8f\x22\xb8\xde\x69\x20\x69\x01\x65\x7e\x89\x02\xb5\xf1\x8f\x4f\x2b\x52\x51\x9c\x23\xca\x8f\x4f\x8e\x98\x9f\x39\x5a\x3a\x9e\xd2\xbd\x1e\xfc\xa5\x2a\x53\xef\xae\x57\xbf\x56\xa1\x1a\x89\xec\x7e\x7e\x51\xda\xa6\xc2\xa9\x9a\x94\x46\x7d\x6a\x49\xfa\x45\x20\xf1\x52\xae\xda\x35\xfc\x67\xaf\x47\xfb\x26\xf6\xae\x42\xb5\x7f\xfd\xff\x00\x00\x00\xff\xff\xda\x84\x16\x62\x23\x4f\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\x5d\x7c\xb5\x56\xee\x45\xe5\xda\x40\x44\x8f\x84\x33\x3f\x26\x04\x66\x24\xd5\x64\xfe\xf7\x2b\x34\x00\x12\xe0\xc7\x7c\x59\xf6\x66\xf3\x10\x7b\x48\x10\x68\x74\xff\xfa\xd7\xdd\x68\x78\xbb\x5d\x5c\xc4\x6f\xeb\xd5\x73\x23\xee\x1f\x14\xfc\xe5\xbb\xef\xff\xe3\xdb\x55\x83\x12\x2b\x05\x3f\xb1\x1c\xef\xea\xfa\x23\x5c\x57\x79\x06\x6f\x8a\x02\x68\x90\x04\xfd\xbe\xd9\x20\xcf\xe2\x9b\x07\x21\x41\xd6\xeb\x26\x47\xc8\x6b\x8e\x20\x24\x14\x22\xc7\x4a\x22\x87\x75\xc5\xb1\x01\xf5\x80\xf0\x66\xc5\xf2\x07\x84\xbf\x64\xdf\xb9\xb7\xb0\xac\xd7\x15\x8f\x45\x45\xef\xff\xeb\xfa\xed\x8f\xbf\xbc\xff\x11\x96\xa2\x40\xb0\xcf\x9a\xba\x56\xc0\x45\x83\xb9\xaa\x9b\x67\xa8\x97\xa0\xbc\xc5\x54\x83\x98\xc5\x17\x8b\xdd\x2e\x8e\xb7\x5b\xe0\xb8\x14\x15\x42\x52\xae\x15\x53\xa2\xae\x12\xb0\x2f\x5e\xad\x3e\xde\xc3\xeb\x4b\xb8\x63\x12\xe1\x55\xf6\xb6\xae\x96\xe2\x3e\xfb\x1f\x96\x7f\x64\xf7\xa8\x07\x6d\xb7\xa0\xb0\x5c\x15\x4c\x21\x24\x0f\xc8\x38\x36\x09\xbc\xa2\xcf\x45\xb9\xaa\x1b\x05\xb3\x38\x4a\xf2\xba\x52\xf8\xa4\x92\x38\x4a\x96\x25\xfd\x21\x9f\xab\x3c\x89\xe3\x68\xbb\xfd\x16\x1a\x56\xdd\x23\xbc\xaa\xf4\x42\xaf\xb2\x5f\x6a\x8e\x52\x4f\x10\x45\x89\x96\x60\xb8\xe8\x42\x3f\xae\xbc\x07\x89\x99\x07\x2b\x4e\x0b\x47\xc9\xbd\x50\x0f\xeb\xbb\x2c\xaf\xcb\xc5\xd2\x5a\x61\x81\x95\x4a\xe2\x34\x8e\xf3\xba\x92\x24\xd5\x62\x01\xef\x56\xd8\xd0\x86\x41\x3d\xaf\x50\x66\x71\xf4\x6e\xf5\xb6\x41\xbd\x19\x00\xb8\x04\xac\x54\xe6\x9e\xe8\x77\x57\x58\x60\xf8\xce\x3c\xe9\xde\xbd\xab\xb0\xf7\xee\x5d\x45\xaf\x7f\x5d\xf1\xde\xb4\xe6\x49\xf7\xce\xff\xb4\x7d\x12\x93\x9c\x5a\x27\xad\x88\x7b\x55\x76\xf3\xbc\x42\xa3\x9e\x5f\x58\xa9\x75\x03\x97\x90\x04\x0f\x42\x65\xa5\x64\xe6\x89\xe9\x08\x01\x0e\x13\xf4\xae\xca\xfe\xdb\xfe\xb4\xb3\xc5\x8b\x05\x04\xa3\x76\x3b\x68\xd0\xba\x80\x04\x56\x41\xdd\xe9\xf8\x81\x29\xa0\x81\x48\x10\xdd\x6e\x61\x55\xac\x1b\x56\x78\xd2\xe9\xf9\x2a\x5a\xdf\xe2\xf8\xbe\x61\xab\x87\x2c\xd6\x9b\x1f\x2c\x24\x55\xb3\xce\x15\x6c\xe3\x28\x27\x8c\xc4\x51\xbd\x82\x77\xab\x38\x52\xcf\x2b\xfd\x52\x54\xf7\x7a\xb3\x7a\xfa\xeb\xab\xec\xaf\x6b\x51\x70\x6c\x7e\x12\x58\xe8\xad\xc3\x45\xfb\x46\x2b\x8d\xd4\xe7\xa9\x76\x69\xf7\x4b\xc3\xad\x72\xf5\x07\xcb\xf1\x79\x96\xdd\x24\x34\x8b\x58\x02\xab\xb8\x7b\x9e\xfd\xb2\x2e\xb1\x11\xb9\xfe\xfd\xb6\xae\x36\xd8\x28\xe4\x37\xf5\x5f\x99\x14\xb9\xf9\x26\x62\x9c\x9f\x30\xbd\xb5\x5e\xf0\xf7\xbc\x40\xd6\x20\xb7\x02\x97\x6c\x75\x6b\x54\xf0\xc1\xa8\x69\x1b\xee\x0f\xed\xfe\x7e\xe4\xf7\x28\x03\xb9\x5f\x61\xf6\x6b\x25\x7e\x5f\xdb\xe5\x68\xd7\x38\x2e\x16\x9a\xdd\xf9\x2a\x34\x22\x15\x92\x7e\x81\xf7\xdf\xf8\x34\x5a\xcc\xd1\x99\x3c\xa9\xa3\xa8\xc1\xb2\xde\x20\xff\x84\x29\x7c\x45\x39\x4d\x8d\x4f\x77\x57\xd7\x45\xa8\x58\x5e\x57\x68\x1f\xd7\x05\xff\x5f\x56\xac\x11\x96\xeb\x2a\x9f\x59\x5a\xd3\x26\xd5\x7f\xa6\x30\xbb\x08\x5c\x6d\x0e\xd8\x34\x75\x93\xc6\xd1\xaa\x41\x2e\x72\xa6\x50\xc2\xed\x87\xf6\x47\x16\x8c\x8e\x77\x71\xbc\x61\x0d\xfc\x83\x38\xc0\xf9\x19\x5c\xda\x59\x3d\xe0\xa7\xb3\x4a\x14\x69\xe8\x9e\xef\x56\xce\x49\x57\x8d\xa8\x14\xcc\x72\x56\x62\xeb\x59\x29\x24\x66\x40\x32\xe2\xb3\xf6\xd3\xdd\x0e\x58\x51\xd4\x8f\x12\x54\x0d\x25\xab\x34\xb7\x6a\x0f\x6c\x17\x36\x4e\xb6\xb6\xde\xbc\x96\xa2\xba\x27\x3d\xe8\x9f\xac\x80\x9a\xa6\x91\x23\xbe\xda\x2d\x40\x6a\x1b\x6c\x27\x26\xaf\xc7\xc7\xbe\x7f\xe7\x44\xbc\x52\xbf\xea\xa4\x58\xd6\x8d\xdb\x55\x16\xeb\xf9\x46\xbe\x9c\xe5\x56\xd8\x39\x10\x23\xe8\x3f\x94\x84\x2c\xcb\x46\xc5\x4a\xa1\x2f\x92\xe6\x94\x52\x2b\xf3\x9b\xde\x8b\xad\x86\x0f\x4d\xfd\xda\x01\x3b\x9f\xc7\x51\x54\xaf\x5e\xfb\x60\xaf\x57\xfa\xa1\x7a\x0e\x9e\x0e\xb8\x79\xde\x61\xd1\x78\xed\x6b\x28\xd9\x47\x9c\x8d\xf8\x6e\x3a\x8f\xa3\x5d\x1c\xe9\xcd\xff\x83\x76\xa3\x85\x33\xae\x4c\x5b\xdb\x92\x0c\x6a\x56\xa6\x34\xae\x41\xb5\x6e\x2a\x28\x63\x4b\xe2\xf6\x03\x03\x8d\xe4\x51\xa8\x87\xa4\x95\x23\xb9\xbe\xf2\x51\xa1\x87\x6a\x6e\x45\x25\xc9\xfc\x82\xc3\x92\x7c\x83\x52\x88\x0e\x0e\x56\xf9\xdd\x27\x33\xc1\xa1\x4f\xa9\xe9\x04\x0e\xb6\xad\x88\x84\x88\x72\x60\x80\x94\x76\xa4\xdd\x61\xa6\x09\x00\x9b\xc6\xf8\x92\xfe\x51\x57\x39\x82\x4e\x20\xb2\x77\x55\x8e\xfa\xc9\x86\x7c\x32\x74\xbe\x38\x8a\xd2\x38\x8a\xca\xac\xf5\xd9\x4b\xeb\xb5\xea\x09\x8e\xf5\x5c\x92\x82\x16\xcc\xae\xea\x19\x7d\x6e\x9f\x45\x62\x09\x65\x46\xd4\x60\x7e\x93\x8c\x97\xb0\x2c\x55\xf6\xa3\xfe\x76\x39\x4b\x7e\x5f\x63\xf3\xac\xbd\xa4\x2e\x38\x90\x8c\x12\x56\xb5\x54\x1d\x98\x85\x84\xaa\x56\xc6\xef\x90\x27\x29\xcd\xb4\x33\xfc\x69\xa7\xa5\xef\x48\x1e\xb8\x84\x32\x7b\x5b\x08\xac\xd4\x2c\x0d\xb9\x23\xfb\x19\x95\xde\xd8\x1c\x04\xb7\x93\xe8\xff\xef\x52\xc3\x9e\xa4\xe9\x6e\xa2\xd8\xbc\x2e\xb3\xc9\xd8\x78\x09\xdf\x08\xae\x91\xe4\xe1\x67\x02\x3e\xd3\xc8\xd1\xbb\x0e\x73\x91\x83\x10\xd2\xa1\xbf\x67\xc7\x4f\x84\xd0\x88\xfd\x4f\xb2\xbd\x5d\x43\x0b\x36\x87\x4a\x14\x47\xe9\x4e\x8f\xce\xae\xaf\xac\x02\x17\x0b\x30\x56\x03\x33\x99\x04\x46\x94\xf6\x9b\xe6\x79\xf3\xe6\x37\x58\x36\x75\x19\x2a\x07\xae\x43\x6d\xc1\x23\x93\x7a\x2e\x7c\xc2\x7c\xad\x90\xeb\x0c\x89\x81\x6a\x58\x25\x19\x71\x30\xcc\xf4\x84\x37\x4f\xe9\x3c\x7c\xce\x0a\xc8\xcd\xfa\x42\x5a\x11\x74\xf1\x41\xba\x9f\x95\xfd\xac\x2a\x05\x07\x31\xb8\xb0\x62\xeb\x04\xcb\xfc\x4d\x33\xa2\x79\xb8\x75\x2c\x58\x66\xe6\x6f\x3b\x37\x28\x13\x95\x50\xb3\xb4\x35\x8f\x79\x6a\x15\x71\xf3\xd4\x29\xa1\x32\x1a\xb8\x79\xfa\x8d\x48\xdd\xc9\x20\x4d\xa2\xf8\x88\x0d\x06\x7b\xf5\x76\x24\x7f\xd0\x73\x09\xe5\xcf\x45\x46\x83\x5a\x3d\x60\xf3\x28\x24\xee\xd9\xdf\xcd\xd3\x4c\x1b\xfd\xe6\xc9\xb7\xb4\x58\x42\xa4\x99\xf5\xa3\xde\x63\x99\xf1\x46\x6c\xb0\xc9\x66\x17\xea\xe9\x8a\xfe\x9a\xfe\x00\x5f\xd5\x1f\x09\x13\x0e\x12\xa2\x98\x07\xee\xee\xea\xa5\xdd\xee\xf5\xc0\xc3\x9b\x75\x55\x69\x26\xe8\xdb\x2c\x31\x7c\xad\x9e\x48\xb5\x37\x4f\x63\x6a\x55\x4f\x7d\x95\x6a\x47\xd7\x58\x24\xef\x34\x49\x1b\x41\xf1\x57\x89\xcd\x15\xd5\x72\x26\x73\x59\x2c\xe0\x3d\xaa\xeb\xab\xce\x27\x0d\x53\x5a\x3f\x74\xd4\x9e\xc1\x2f\x35\xe5\xe4\x4c\xcd\xa9\x4c\xa4\x2f\xbb\xc4\x5d\x48\x60\x79\x8e\x2b\x6d\x88\xba\x2a\x9e\xa1\xae\x7a\x8e\x4d\x91\x9a\x3c\x3a\x72\x6a\x1f\xba\x23\x89\x32\x11\x25\x8e\xa4\x23\xbf\xcc\x5b\x2c\xe0\xfa\xaa\x45\x80\xdd\x8f\xd9\x9f\xad\x1d\x3a\x57\x0a\xf6\xa7\x07\x12\x7e\x24\xb0\x0d\x13\x05\xbb\x2b\xd0\xec\x4b\x2c\x35\xa8\x1e\x99\x84\x55\x53\x6f\x04\x47\xae\x73\x21\xfd\xc5\x9d\x91\xa8\x43\xd5\x70\x7b\xd7\x57\x1a\x56\x23\xdb\x9b\x03\x3e\x09\xa9\x24\xe5\x90\x0e\x6c\xfb\x76\x7b\xa9\x8d\xeb\x41\xcd\x0f\xe9\x17\xd3\x1f\xce\x41\x35\x6b\xb4\x94\x3d\x5d\xc6\x10\x4c\x29\x7d\xc0\x1c\x35\xb4\xdb\x2a\xe5\x3d\xe5\x1c\x3a\xcb\xd9\x6a\x55\xe0\xef\x7a\x60\x52\x26\x44\xb7\xf4\xd5\x25\x24\xa4\x61\xf7\xa8\xab\x43\xe0\x15\x69\xa6\x4b\x32\xde\xa3\x4a\xf4\xcc\xef\x29\x83\x71\x32\x9a\xa1\xa6\x06\x6f\xc7\x7a\xc5\x7c\x92\x25\xb6\x48\x92\x8a\x55\xca\xa1\xb8\x9d\xdf\x8f\x2f\xa6\x30\x72\x10\x34\x48\xde\x87\x3f\x6f\x92\x99\xd9\x8e\xdd\xd7\x72\x0c\x88\xc3\x4a\xcc\x66\x83\xab\xae\xce\x59\x5c\x68\x69\x94\x56\x5a\x65\x2b\x3c\x4a\x7e\xeb\x0d\x36\x8d\xe0\x08\xab\x06\x37\xa2\x5e\x4b\xc8\x59\x51\x50\x62\xfd\x86\xf3\x0c\xe8\xe0\xe5\xcc\x42\xb1\xcc\x26\x4b\xc5\x4b\x1b\xa0\xfc\xe2\x65\x17\x77\x0a\x6c\x8b\x8a\x9f\x51\x99\x42\xbd\xf3\x9d\x50\x99\xe3\x6e\x74\x50\xb9\xbd\x05\xb4\x3f\x34\xa1\x86\x87\xbe\x10\x6d\x0c\xe3\x8e\x6e\x29\xa6\x3c\x6b\xe3\xbb\x44\xeb\x13\x14\x87\x9d\x57\x6c\x2c\xf8\x27\xf7\xfb\xce\xa8\xc8\xdf\xb2\xcb\x4f\xfa\xdb\xb6\xec\x18\x26\x58\x34\xeb\xf5\xc8\x1b\xa8\xef\xfe\x0f\x73\x62\x8d\xea\xdf\xd4\x14\x71\x18\xde\xb1\x43\x85\x84\x25\xaa\xfc\x01\x39\xcd\xda\x86\x7e\xce\x14\xbb\x63\x3a\x76\xe9\xc7\x6f\x5c\x4c\xf3\xa2\xb6\x86\x4b\x90\x13\x04\x24\xad\x03\x4d\x7b\x72\x34\x87\xba\x69\x67\x04\x4a\x45\x61\xc9\x44\x21\x4f\x33\xa3\xd1\xdb\x44\xd2\xbc\x01\xc3\x14\x5a\x85\xa2\x30\x44\xba\xdb\x5d\xb4\xc4\xd0\x37\xbd\xcb\xe2\x8d\xe1\xc5\x12\xbe\x2a\xb3\x7a\x95\x5d\xcb\x99\x77\xe4\x15\x26\x5e\x9b\x61\x8c\x1d\xb3\xab\xe6\x72\x93\x44\xb7\x11\xaa\x3b\x55\x6b\x95\x24\x29\xc3\xb6\xa8\x3a\xcc\xc0\x7f\xfc\x01\x7e\xfa\x38\xc0\xe0\xb1\xc2\x35\xf8\xfb\x5a\x34\x48\x69\xca\xf5\x95\x2d\xa7\x7a\xce\xd5\x4a\xe6\xd6\x33\xea\x22\xd7\x70\x8f\xb4\x15\x52\x23\xbc\x7e\xf7\xd5\x41\x81\x86\x05\x08\x65\x5a\x13\x72\xbe\x86\xaf\x1f\x13\x5a\x36\x0d\xbd\xcb\xad\x6f\x7d\x34\x64\x74\x9b\x15\xef\xe8\x30\xf7\x64\x3a\x1b\x09\x1c\x6f\x38\x1f\x0d\x1c\xfd\x38\xc0\x38\x97\xd0\xf2\xb8\xaa\x43\x5f\xce\xe2\xe8\x05\x42\x41\x7b\x26\xb6\xcc\xfe\xc6\xe4\xcf\x75\x77\xcc\x15\x9c\x73\x45\xbd\x03\x26\x03\xaf\x49\x9e\xf6\x0d\x17\x5d\xec\x19\xf8\xef\x97\xe0\x45\x9c\xb0\x30\xdc\x1b\x07\xbe\x09\x3e\x23\x6b\x1a\x05\xbe\xe1\x1c\xf9\x98\x19\x03\x66\x34\x50\x31\x69\x38\x93\x5a\xd3\x1d\xa1\x8d\x44\x5d\x83\x65\x21\xfd\x48\xb1\x47\xf9\x93\x32\x1c\x17\x2f\x5c\xc0\x98\xda\xbe\xd5\x7f\x18\x34\xba\xa8\x11\xed\x3c\x7f\xe9\xe2\x46\x64\x52\x93\xb6\x87\xd0\x12\x9b\xa9\x38\x59\x31\x89\xd7\xb7\x05\xb2\xe6\x28\xc4\xd2\x59\x4f\x2f\x0f\x3f\x13\xb4\x56\x15\xd3\xa9\x8a\xc9\x04\xce\x4b\x31\x8e\xc9\x31\x7a\x80\x2f\xb3\xe0\x20\xeb\xb6\xcb\xf2\x76\xbb\x0f\x70\x09\xee\x1c\x6b\xdb\x82\xb1\xdd\x4d\x9b\x05\x86\x0a\x34\x7a\x45\x9e\x8c\xaa\xd2\xa1\xd5\xc6\x43\x03\xc3\x10\x9a\x1a\xb9\x56\xa8\x13\x01\x1a\x2a\x5a\x23\xcf\x68\xdb\xab\x0f\xf7\xec\xd6\x83\x57\xfd\x71\x14\x58\x6e\xdf\x1e\x09\xff\x1d\x25\x8e\x66\xbb\x0d\xbd\x60\x45\x01\xf9\x83\x4e\xe9\xa5\x4b\x4f\x92\x60\xb7\xc9\x89\xf9\xef\xa1\x4c\xb7\x4b\x24\x3f\x77\x82\xea\x51\x6c\xe8\x6a\x11\xa7\xfe\xd9\xac\xa7\xec\x39\xf8\xda\x4e\x07\xe9\xae\xa7\x6b\xaf\x0e\x1a\xb6\x3b\xcc\xa9\x93\x7e\x9c\x30\x4e\x28\xb3\x2e\xef\xb5\x3f\xec\x98\x4b\x48\xa4\xae\x66\xe8\x81\x5f\xf2\x08\x2e\x7f\x0a\xc8\x60\xb6\x62\x32\x67\x85\xfe\x2a\x85\x99\x14\xd5\xfd\xba\x60\x8d\x9e\x93\xec\xf4\x07\x98\xf7\x29\x24\xd7\x57\x72\x7a\x4d\x37\xef\xf8\xb4\xee\x07\xba\xa3\x7d\x73\x80\xeb\xc9\x66\x31\xe4\xa6\xb1\xb1\xad\xd6\x01\xa1\xcb\xf6\xb1\xf5\x14\xe4\xf7\xe8\x02\xa8\xed\xa2\xb8\x57\x77\xcf\x20\xb8\x11\x52\x67\x97\xbe\xa0\xb2\x5d\xf0\x20\xea\x3a\x41\x66\xc3\x0d\xd3\xfc\x36\x92\x0a\xee\x4e\xe9\xcd\xcc\x30\xda\xd8\x31\xe0\x9d\x68\x57\x19\x4c\x0f\xfb\x3a\xf6\x0c\xa1\x1f\xb7\xdb\x44\x70\xe4\x0b\x3f\x7e\x4c\x4f\xdb\x1e\xd9\x8f\xca\xda\x9d\xe0\xb7\xb1\x47\xa7\x60\xa2\x3b\xbf\xd7\x7b\xde\xbb\xc6\xad\xe0\xf2\x56\x7c\x18\xd0\x68\xd4\x6f\x6c\x05\xf4\xa2\xf1\x8e\x2d\xbf\x10\x99\x8e\xf1\x8b\x17\x93\x8e\x05\xc5\xc9\x24\xb3\xb7\xdf\x76\xe9\x15\x6e\x3e\x37\xf6\x64\x47\x3e\xce\x8e\x41\x18\x20\x99\xc3\x6d\x78\x51\xe0\x04\xb9\x5b\xce\x77\x8d\x94\xbd\x7b\xf0\xb3\xdf\x1e\x1c\xad\xbc\xd8\xcb\x0d\x7a\x07\x57\xa1\xc8\x62\x50\x1c\x1c\x0e\x57\xc3\x05\xbc\xc3\xa8\x01\x28\xc7\xb2\xaa\x3d\x8e\xf0\xd5\x30\x91\x72\xe7\x50\x83\xc1\x6d\x3e\xe5\xe7\x59\x5d\x14\x6c\x1d\xaf\x3d\x85\xd2\x45\x5b\x03\x33\x22\xba\x25\x24\x5f\x67\xdf\xcb\x24\x40\x5c\xda\x7d\x30\xe0\xdb\xe4\xef\xd4\x19\x4e\x8e\xe2\xda\xce\x1c\x1e\x31\x9a\xd6\xf2\x39\xac\x28\x0f\x5b\xc5\xe3\xbd\x8e\xd9\xa6\xf8\xcc\x58\x60\x6f\xab\xbb\xc7\x48\xfb\xc7\x9e\x4e\x4c\x13\x8c\x7a\x60\xa5\x5b\xc1\x87\xd4\xd4\x63\xd9\x69\xce\x3b\x3c\xf9\x38\xf7\x45\xc3\xaa\x2b\x4c\x2b\xfb\x18\xe1\xc9\xd0\x4b\xa6\xf3\x4a\xba\x42\x65\xbe\x23\x61\x6d\xa6\x8e\x27\x67\xea\xd7\x57\xd2\x78\xa2\x84\xdb\x0f\xfb\xac\x4f\x1a\xe2\x9d\x8a\x0e\x98\xd7\x36\x21\xb9\x84\x4b\x60\xab\x15\x56\x5c\xaf\xd1\xf6\xff\x46\x9d\xcf\xa5\xa0\x93\xa4\x24\xf7\xb2\x92\x1c\xd2\x92\xb9\xd8\x31\x86\x1a\xba\xb5\x64\x0f\xdd\xe9\x5b\x56\x3c\xb2\xe7\x6e\x81\x02\x2b\x2d\x70\x0a\xff\x79\x09\xdf\xd3\xa9\xc4\xda\x7c\xad\xdd\x4e\xce\x29\xe7\x7c\xae\xd7\x20\x1f\xea\x75\xc1\x61\x2d\x71\x2f\x9b\x8a\x4a\x2a\x64\x3c\x83\x6b\xe5\xb8\x8d\xce\x81\x48\xab\x95\xc2\x46\xa7\x95\x6b\xc9\xee\x51\x3b\xaf\x77\x30\xe7\x6e\x54\x39\x14\x9d\x4a\xb3\xc7\x58\x57\x6b\x69\xca\xb9\xc4\xd2\x5a\x7d\x82\x4f\x7f\xd0\xaf\x03\x02\x1e\xda\xfc\xc2\x33\x7a\xcf\xf1\x86\xa8\x3a\x1b\x4e\x56\x4b\xbb\x5d\xd0\x97\x98\x8c\xda\x67\x56\x34\xd8\x55\x34\x1a\x09\x67\x15\x34\x63\x64\x68\x0a\x8f\x83\xb9\xc8\x92\x15\x84\x34\x6b\xad\x7e\xce\x1b\x1f\xc3\xbb\x63\x87\xf0\x7e\x55\x42\x17\x0f\xc3\x93\xe8\xf6\x14\xb7\xea\xae\xb5\x8c\x6e\xf9\xdd\x6a\xa6\xff\xe7\x75\xbf\xcb\xac\x5e\xb9\xe6\xaa\x86\x9c\x3f\x6f\xe5\xee\x0d\xb6\xf7\x3f\xdb\xc9\x66\xc1\x21\x76\xba\x6f\x4d\x3d\xed\x2c\xb5\x17\xea\x82\x95\xd5\xb3\x5b\xda\xf6\x97\xda\x7e\x6c\x51\x98\x82\xd4\x6f\xe6\x1a\x73\x73\xe0\x6b\xba\x99\xb7\x58\xf4\x6a\x72\xbf\x4b\x27\x2a\xa8\x1b\xba\xff\x5a\xc3\xbd\x85\x8b\x6d\xb1\xe8\x0f\x07\x73\x8b\x6a\xc1\x31\x6f\xb0\xc4\x4a\x21\x9f\x53\xbf\xc5\x1c\x34\x19\xc9\x66\x7b\x77\xe8\xc6\xc0\xed\x87\x6e\x97\x76\x8d\xd7\x36\x90\xba\x57\x73\xf8\x8e\x4a\xd0\x02\xab\xa0\xb1\x96\x1e\x71\x7d\xf0\xdb\x53\x5b\x5f\x5d\x56\xb6\xff\x14\xd1\xca\xda\xfa\xee\x72\xa2\x54\xee\x5d\x19\x74\x17\x28\x68\xb4\x6f\xc9\x91\xd3\xc0\x7a\x09\xcc\x9e\xb3\x3c\x0a\xf5\x60\x2e\x67\x8a\x0d\x3a\xcc\x6a\xfc\x3d\x20\x48\xcc\xeb\x8a\x53\x62\x89\xac\x6a\x1b\x49\xee\xf6\x1b\x59\x8c\xcc\x6e\xa7\x32\x77\x1a\xb4\x9f\x49\x54\xd4\xb3\xd0\x19\xbb\xfe\x6d\x2f\x25\xdb\x98\x23\xf3\x07\x2c\xd9\x41\x23\xce\xb4\x30\x16\xaa\xa9\xb9\x10\x61\x4f\xd3\xdb\x54\x57\x2b\x80\x76\xd0\x33\x8f\x7c\x14\x2a\x7f\xa0\xdd\xb4\xf5\xe5\x1e\x6b\x9e\x65\xce\x28\x67\x12\x03\xab\xbc\xf6\x93\xea\xd6\xd6\xfd\x3e\x5a\xff\xcc\x64\xdc\x8e\xe6\x46\x02\x31\x98\xe3\x99\x82\x0f\xed\xd9\x35\x03\x6a\xff\xf4\x6c\xa4\x0d\xf5\x02\x5d\x28\x3d\x47\x6d\xae\xb1\x9b\x1e\x94\x3d\x46\x6e\x3b\x53\xda\xdc\x4b\x26\x0a\xff\x4a\xca\x08\xef\xd9\x8d\x8c\x35\xa2\xe6\x30\x69\xf4\xae\xdb\x74\xae\xd5\xb3\x2f\x6b\xed\xae\xdd\x76\x92\xcd\xbd\x9e\xcf\xba\xfa\x58\xd5\x8f\xfd\x0b\x1a\xc6\xc4\x5f\xcb\xc4\x28\x2b\xb5\xce\xfe\x1e\x6d\x2a\xd3\xbb\x20\xb2\xb4\x26\xf3\x1c\x5c\x67\x56\xdd\x75\x1b\xba\x88\x64\x70\xe1\x63\x48\xf8\xae\xcb\x43\xdf\x25\xe7\x36\xa3\x89\xfb\x75\x58\x2a\x85\x2c\x99\xd6\x7f\x37\x85\x7e\xbe\x0f\x09\x4e\x64\xdf\xd3\xe7\x56\xec\xd6\xf2\xa9\x15\x6e\x1b\xf7\x0d\xfc\x19\x38\x7a\xdc\xca\x1b\x77\x58\x4c\xa2\x65\xb3\xb0\xbb\x64\x53\x3f\x77\xa5\xa8\xc5\x44\x68\x49\x7c\x5a\x61\xae\xd0\x28\x05\xbe\xbe\x21\xbb\x78\xa6\xb4\x57\xfa\x8c\x45\x5d\xd6\x5f\x66\xef\x51\x8d\xb6\x57\x36\xfe\x75\x40\xca\x52\xc2\x24\x65\x5c\x88\x13\xe0\xe4\x05\xdc\x20\x15\x70\x97\x23\x46\xc2\x76\x1b\xb3\x2d\x51\x78\x51\xdc\x26\x0a\xfd\x93\xfb\x03\x8d\xa5\xd1\x58\xde\xdd\x92\xfa\x1b\x93\xee\x08\x9b\x8c\xb7\x61\x8d\x13\xcb\x7d\x70\x24\xf7\x9f\xde\x56\x39\x8b\x43\x4e\xe9\x25\x1e\x9d\x07\x8c\x95\xcf\xc1\x8f\x30\x33\xe8\x55\x15\x13\x08\xea\x63\x20\x4c\x45\xad\x7a\x7a\xad\xc5\x30\x6f\x8b\xdd\x6d\x88\x7d\x99\x86\x9f\x66\xf4\xd2\x0b\x93\x53\x0e\x32\x8c\x17\x49\x2f\xba\x7d\x1d\x99\x63\x8c\xe3\xed\x9c\x2c\xe3\x4b\x21\x6d\x22\x5c\x75\xf9\xfe\x9e\xce\xed\x7e\x38\x1d\x93\xaf\x18\xec\x98\x19\xa9\xb7\xff\x2f\x11\x8e\x9c\xc8\xc7\x86\xa3\x97\xcc\x3e\xff\xd9\xb8\x38\x1c\xe2\x7a\x41\xee\x85\xc2\x9c\x65\x2f\x1d\xea\xde\xf0\x71\x3c\x6e\xd2\x00\xba\x63\x3d\xeb\x23\x00\x7a\x38\x10\x06\x91\xad\x17\x10\xcd\xc5\x6f\xff\x1f\x65\x85\x31\xd1\x5e\x98\x1a\xd6\xc9\xe6\x1b\xfd\xf9\xa9\x11\x30\x58\x6e\x5f\x0c\x0c\x5b\xad\x9f\x14\x04\x87\x8d\xdb\x4f\x09\x74\xb4\x82\xdd\xc6\x2c\x08\x5b\x7f\xa2\x18\xe7\x0b\xe9\x5d\xea\x77\x45\x6f\x57\xee\x8a\xe5\x48\xb1\x3b\x7d\x29\xe1\x40\x71\xeb\xd4\x12\xc4\x1f\xd7\xaa\x9a\xbc\x9c\xa0\x47\x7f\x88\xbd\x2b\x09\xbb\x0e\x99\xc6\x5f\x06\xf7\x52\x3e\x07\xdf\x1e\x84\xed\x48\x6c\x0d\x58\x73\x02\xbb\x67\x12\xe7\x8b\xa1\x76\x8a\x1c\xcb\x8c\x76\x35\x1d\x2d\xbf\x04\x39\xf9\x14\x33\xc2\x4e\x74\x46\xeb\x72\x35\x2a\x01\xfd\x63\xd9\xde\x69\x3f\x34\x78\xcf\x1a\x6e\xf8\x88\x62\xa6\x81\x87\x99\x7c\x04\x24\xd3\x08\x21\x6a\x3b\x15\x24\x9d\xb0\x7b\x40\xf2\x67\x3b\xd8\xe9\x97\xf8\xee\x54\xdc\x42\x20\x40\xc0\x8b\xd8\x7c\x5f\x65\x66\x2e\xbf\xf8\x41\x88\x7a\x9c\x7a\x9c\x1f\x7f\x24\xaa\x85\xb9\xf2\x67\x19\x4a\x4f\x70\x74\xfd\x45\x8b\xf4\x42\x0f\xf5\x74\x0e\x9d\xa4\xba\xab\x39\xe9\xa1\x7f\xa7\x7c\x64\xa7\xfa\x18\x33\x62\xdf\x8c\x46\xd2\x36\xb6\xd8\x66\xd4\x71\xc7\xa8\x34\xd8\xd7\xb7\xdf\x50\xd3\xda\x16\x5c\xc2\x4c\xd5\xe6\x1f\x29\x99\x7f\xe6\x9e\x7a\x7a\x37\x3a\x5f\xd6\x8d\x29\x63\x1c\xfd\xb6\x36\x3a\xa8\xfa\xeb\x2b\x19\xba\xc6\xed\x87\x36\x05\xed\x3b\x88\xa7\xcf\x3d\xfe\x31\xa2\xfd\xf3\xf4\x3a\xe1\x1e\x53\x1d\xe7\x33\xda\x62\xad\x33\x79\x9b\xde\x5e\x08\xbe\xf3\x33\xc6\x7e\x5b\x9a\x3a\x5e\x1d\x2e\xbd\x52\xee\xbb\x39\xb5\x28\x27\x96\x4f\x2d\x83\x9f\xd6\x5e\xdb\xd3\x60\x6b\x53\x5a\xbb\x09\xa1\x33\x92\xf3\x4a\x2a\x8b\x40\xdb\xf5\x3e\xd2\xe7\xdb\x5e\xf7\x69\x1e\xef\x2f\xf2\x59\x7d\x7e\x4f\x3f\xee\xf0\xb5\x89\x00\x27\x67\xc1\xf7\x48\x5e\x18\xdc\xc8\x3a\xc0\x12\x56\x7d\x27\xf2\x84\xb3\xd5\x79\x4c\xd1\xad\xf9\x85\xb8\x62\xc2\x6c\x67\x1a\x62\x2a\xdd\x3a\xec\xc8\xfb\x20\x32\xed\xcf\x47\x5c\xc2\x38\xdd\xad\xcf\xf7\x6a\x5b\x02\x1c\xe9\xd5\xbd\x4a\xe3\x58\xaf\xf6\x17\xf9\xfc\x91\x7c\x6f\x47\xfe\x9f\x1f\xc9\xb5\xb8\xa7\x94\x7a\x64\x88\x4f\xa8\xf4\xbc\xf5\xc6\x0b\xbd\x3f\x5f\x14\x3f\xf2\x92\xe4\x51\x09\xae\x77\x1a\x48\x5a\xd0\x32\xbf\x44\x81\xda\xfa\xc7\xa7\x15\xa9\x5a\x9c\x23\xca\x8f\x4f\x66\xcc\xcf\xcc\x96\x2e\x4f\xe9\x5f\x0f\xfe\x52\x95\xa9\x77\xd7\x6b\x58\xab\x50\x8d\x44\x76\x3f\xbf\x28\xed\x42\xe1\xbe\x9a\x94\x46\x7d\x6a\x49\xfa\x45\x20\xf1\x52\xae\xda\x37\xfc\x67\xaf\x47\x87\x26\xf6\xae\x42\x75\x7f\xfd\xff\x00\x00\x00\xff\xff\x14\xc1\xe1\x50\x49\x4f\x00\x00") func templateBuilderMutationTmplBytes() ([]byte, error) { return bindataRead( @@ -201,7 +201,7 @@ func templateBuilderMutationTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/builder/mutation.tmpl", size: 20259, mode: os.FileMode(420), modTime: time.Unix(1, 0)} + info := bindataFileInfo{name: "template/builder/mutation.tmpl", size: 20297, mode: os.FileMode(420), modTime: time.Unix(1, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -246,7 +246,7 @@ func templateBuilderSetterTmpl() (*asset, error) { return a, nil } -var _templateBuilderUpdateTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x5a\x6d\x6f\xdc\xb8\x11\xfe\x2c\xfd\x8a\x89\xb0\x09\x24\xc3\xd6\x26\xf9\x56\x07\x2e\x70\x49\x9c\x9e\x81\x36\x57\xc4\xb9\xeb\x01\x49\x70\xd0\x4a\x23\x2f\x6b\x2d\xa9\x90\xd4\xda\xc6\x56\xff\xbd\x18\xbe\xe8\x65\x57\xeb\xac\x8d\xf4\xd0\x2b\x7a\x38\xc0\x92\x48\x0e\x67\x9e\x19\xce\x3c\xc3\xcd\x66\x33\x3f\x0a\xdf\x88\xfa\x4e\xb2\xab\xa5\x86\x97\xcf\x5f\xfc\xe9\xa4\x96\xa8\x90\x6b\x78\x97\xe5\xb8\x10\xe2\x1a\x2e\x78\x9e\xc2\x0f\x55\x05\x66\x92\x02\x1a\x97\x6b\x2c\xd2\xf0\xe3\x92\x29\x50\xa2\x91\x39\x42\x2e\x0a\x04\xa6\xa0\x62\x39\x72\x85\x05\x34\xbc\x40\x09\x7a\x89\xf0\x43\x9d\xe5\x4b\x84\x97\xe9\x73\x3f\x0a\xa5\x68\x78\x11\x32\x6e\xc6\xff\x7a\xf1\xe6\xfc\xfd\xe5\x39\x94\xac\x42\x70\xdf\xa4\x10\x1a\x0a\x26\x31\xd7\x42\xde\x81\x28\x41\x0f\x36\xd3\x12\x31\x0d\x8f\xe6\x6d\x1b\x86\x9b\x0d\x14\x58\x32\x8e\x10\x35\x75\x91\x69\x8c\xa0\x6d\xe9\xeb\xac\xbe\xbe\x82\xd3\x33\x58\x64\x0a\x61\x96\xbe\x11\xbc\x64\x57\xe9\xdf\xb3\xfc\x3a\xbb\x42\x70\x4b\x35\xae\xea\x2a\xd3\x08\xd1\x12\xb3\x02\x65\x04\xb3\xdd\x21\xb6\xaa\x85\xd4\x7e\xc8\xbe\x41\x1c\x06\x9b\xcd\x09\xc8\x8c\x5f\x21\xcc\xea\x4c\x2f\x69\xb3\x59\x7a\xc9\x16\x15\xe3\x57\x17\x66\x96\xa2\x15\x41\x10\x19\x75\x68\x4a\xdb\x46\x76\x1d\xf2\x82\xc6\x92\xd0\xec\x35\x5b\x34\xac\x22\xbc\x8c\x88\x9f\x8d\x1d\xef\xb3\x15\x7a\x53\x24\xe6\xc8\xd6\x76\xbc\x7b\xee\x16\xb9\x49\xab\x46\x67\x9a\x09\x4e\x93\x6a\xc9\xb8\x1e\xac\x8b\x52\x3f\x6a\xe0\x09\xe7\x73\x18\x6e\xdb\xb6\xe4\x3b\x02\xde\x7f\x29\x85\x04\x83\x27\xe3\x57\x66\x6a\xea\xf4\x01\xe4\x9a\x69\x86\x2a\x0d\xf5\x5d\x8d\xdb\x62\x94\x96\x4d\xae\x61\x13\x06\xb9\x01\xdc\x5a\xdb\x63\x69\x7d\x34\x2f\x19\x56\x85\x22\x48\x4f\x08\xa1\x5a\x62\xc1\xf2\x4c\xa3\x82\x4f\x5f\xba\x97\x74\xb8\x6f\x68\xb5\xfe\xc7\x12\x25\x42\x56\x14\x0a\x32\xe0\x78\x03\xdd\x6c\xa3\xf2\xc0\x84\x34\x2c\x1b\x9e\x43\x3c\xc4\xaf\x6d\xe1\x68\xac\x70\x62\x25\xc6\xb5\x82\x34\x4d\xa7\xb7\x4e\xb6\x17\x91\x79\x63\xb1\xe9\xc0\x82\x33\xc8\xea\x1a\x79\x11\xef\x9d\x72\x0c\xb5\x4a\xd3\x34\x09\x03\x89\xba\x91\x1c\x46\x3e\xb6\xb6\x6e\x36\x70\xc3\xf4\x12\xf0\x56\x53\xac\xcc\x20\x7a\x6d\xf7\x8f\x46\x8e\x0f\x46\x91\xaa\x50\x6b\x9a\x91\xba\x98\x70\x51\xf6\x38\x61\xce\x55\x58\x5c\xa1\xda\x15\x39\x9f\xc3\x65\xb6\x46\xc0\x5b\xcc\x1b\x32\x9b\xa0\xff\xda\xa0\xbc\x83\x8c\x17\x60\x0d\xb3\x5f\x79\xb3\x5a\xa0\xa4\x43\x2c\xc5\x8d\x9a\xaf\x51\x6a\x96\xa3\x82\x55\xa6\xf3\x25\x16\xb0\xb8\xb3\xa7\x5b\xd4\x28\x4d\x8c\x4e\xb9\x0e\xa6\x7c\x47\x1a\xc4\xb9\xbe\x85\x5c\x70\x8d\xb7\x9a\x4e\x39\xfd\x4d\x20\x66\x5c\x1f\x03\x4a\x29\x64\x42\xee\x5a\x67\x92\x8e\x6c\x80\x52\xda\xaf\x61\x10\x64\x65\x89\xb9\xc6\x02\x18\xd7\x61\x90\xd8\x50\x65\x25\xcc\xd2\x1f\x33\x65\x0f\xe1\x5b\x2c\xb3\xa6\xd2\xf6\x18\x6f\xa9\x93\x16\x76\x50\xc5\xc9\xe8\x4c\x07\xac\x84\x0a\xf9\xb6\xf6\xe9\x52\x88\x6b\x95\xc0\xd9\x19\x3c\x27\x8d\x26\x76\x7b\xb3\xc4\xfc\x1a\xa5\xcb\x1a\x24\x87\xd4\x3d\xdb\x0e\x8f\x34\xa7\x79\x71\xf2\xca\x0c\x3f\x39\x03\xce\x2a\x23\x31\xf0\xf1\xf4\xdc\x98\x4e\x5f\x5a\xb7\x91\xd7\xad\x33\xfa\x78\x8f\x6c\x13\xf8\x97\x5a\x48\x9b\x25\x3d\xc2\x49\x18\xb4\x80\x95\x42\xb3\x11\xa1\xb9\x6a\x34\xfc\x8d\x92\x8a\x20\x31\xe6\x09\xdf\x35\x3c\x8f\xc9\x77\x53\x4e\x39\x86\x95\x9d\xc6\x04\x4f\x20\xfe\x25\xab\x1a\x1c\xba\x28\x08\x7c\x8e\x3a\x06\x71\x4d\x59\x6c\x95\xc6\xc6\xe5\xa9\x5f\xe6\x0f\xa4\x43\xe7\x89\xb8\x1e\xdb\xcd\x59\x75\x0c\xe5\x4a\xa7\xe7\x24\xb5\x8c\xa3\x86\xe3\x6d\x6d\x9d\xdc\xa5\x47\x93\xb6\x9e\x7e\x8c\x8e\x61\x95\x78\x88\xbe\xed\x8c\xc7\x78\x63\xd7\x1d\xfd\x66\x9d\x43\x82\x51\xee\x6e\x5b\x38\xeb\x54\xa5\xd1\xc7\xfb\xab\xc7\x33\x2d\x04\x47\x38\x03\x2d\x1b\x0c\x7b\xb5\x46\xa2\xc3\x20\x30\xb8\x52\x16\x65\x04\xfe\x3d\x21\x7c\x02\x2f\x5e\x01\x83\x3f\x9f\xc1\xf3\x57\xc0\x4e\x4e\x3a\xef\x4d\xe8\x67\x96\x7c\x62\x5f\xe2\x55\xa3\x49\x3e\x99\xcc\x4a\xf8\xcd\xda\x73\x6a\x8c\xb5\xfe\x35\x7a\x1f\xc3\x16\x1c\x13\xb8\x6e\xa3\xda\x86\xf4\xff\xa4\x51\x7d\xa2\xfa\xd5\xb2\x93\x6b\x34\x6f\xc7\xb0\x68\x34\xd4\x19\x67\xb9\x22\xbf\x67\xdc\x06\x22\x88\x3c\x6f\xa4\x7a\x50\x02\xfa\x75\x3a\x03\x51\x01\xde\x84\x5b\xfe\x3b\xdd\x05\x68\xe0\x31\x17\x62\x03\x5b\x8d\x86\x31\x4a\x99\x4c\xd9\xe8\xcc\x3b\xbf\xc5\x7c\x22\x0f\x1f\x6c\x04\xad\x9f\xb6\xc1\x62\xb2\x09\x83\xdf\x0e\x51\xdf\x69\xd7\xe3\x4e\x82\x7b\xdc\xe9\xed\x7b\xe1\x6e\x24\x4f\xeb\xbc\xe9\x70\x9c\xd0\xd6\x9b\xba\x1b\x55\x63\xa4\x27\x6b\xe6\x07\x27\x28\x1a\x12\x2b\x47\x28\x23\xcb\x37\x1f\x50\x57\x4d\xda\x98\x28\xac\x87\xd4\xea\xad\x5d\xdd\x16\x33\xbd\xaa\xab\x8e\xfd\x95\x10\x15\x2c\xab\x30\xd7\xf3\xa7\x6a\xee\xb9\xf1\x30\x57\x98\x45\xb7\x9d\x62\x76\xf9\x84\x3a\x33\xc1\x71\x82\xa0\xfe\xc4\xa7\x39\xea\x90\xa2\x0e\x56\x6e\xb3\xd4\x83\x49\xea\x48\xc6\xbd\x3c\x35\x03\xc5\xf8\x55\x85\x13\x84\xf5\x6e\x40\x57\xc7\x02\x1f\xcc\x58\xbf\xcd\xcf\xc6\x56\x1f\x46\xd1\x1e\x2d\xf0\xbb\xd1\x34\x2b\xa8\xe8\xf0\xba\xe7\x28\x8e\x11\xbc\x97\x87\x1d\x0d\x7d\xf1\x2d\x46\xc6\xa9\x8b\x1c\xad\xf8\xdf\xe2\x65\x86\x9f\xec\x63\x66\x64\xfc\xff\x59\xd9\xef\xc7\xca\x86\xce\x78\x38\x2f\x7b\x9c\xb7\xbe\xc9\xc9\x3a\xb1\x7f\x3c\x3e\x36\xc0\x73\xc4\xc8\x7a\x93\xfe\x13\x6c\x6c\x94\x8a\xee\x25\x64\xa3\xbc\x42\x9a\xf7\x2e\xfc\x3e\xb4\x8c\xe4\xdd\x4f\xc9\x40\xd8\xeb\xad\x87\xa6\xd8\x3f\x0c\x47\x9b\xd0\xfa\xbf\x9c\xa6\x1d\x50\x5a\x1f\xc3\xd4\x06\x62\x7f\x5f\xb2\xd6\x3f\xce\x8f\x40\x2d\x33\x89\x85\xa7\x38\x96\xc2\xc0\x02\xf5\x0d\xa2\x0d\x44\x7d\x23\x5c\xdd\x97\x0a\xcc\x85\xea\xce\x7d\xaa\x67\x3e\xa4\x82\x49\x1e\xf0\xe9\xcb\x8f\x42\x5c\x87\x5d\x2a\x83\xc9\x72\xb0\x4f\x19\x43\x54\x40\xe2\x4a\xac\xb3\xea\xc1\xca\x38\x9a\xe3\xc8\xe4\x80\x95\xd6\x99\xca\xb3\x0a\xd2\xcb\x5c\xd4\x98\xbe\x1e\x93\xce\xef\x7e\x7f\xba\xd9\xf8\x9b\x5f\xb4\x94\xf8\xdc\x58\xe5\x7d\x6b\x4e\x08\x7d\xc7\x0e\x95\x37\x15\x66\x36\xc4\x1c\xad\x35\x73\xda\x16\x72\x1a\x50\xf4\x89\x2a\x1d\xa6\x3f\x73\xf6\xb5\x21\x00\x09\x12\x73\x73\x8c\x3e\x69\x45\x06\x3c\xc2\x95\x4a\x7e\xdb\x66\x55\x35\x39\x43\x75\xd0\x83\x16\xd0\xf1\x5e\x4c\x3f\xde\xd5\xdd\xd4\x34\x0c\x0e\x6c\xb6\x06\xda\xc6\x93\x77\xa1\xdb\xa5\x32\x1d\xad\x08\x83\x7d\xd7\x9c\x81\x85\x8b\x95\xc0\x85\x1e\xd9\xee\x64\xd6\xa6\xf0\x89\x1b\x94\x10\xfb\x73\xf2\x34\x7d\x41\x34\x7c\x60\x4c\xe2\x17\xcc\x8f\x48\x96\xb9\x72\x24\x1b\x85\x7d\xae\x33\x99\xad\x50\xa3\xa4\x24\x54\x56\x2c\xd7\xca\x9e\x5b\xf3\x43\x83\x57\xc7\xac\x30\x41\x17\x38\x9d\xf0\x2b\x29\x30\x82\xc6\xea\x74\x06\xd1\x3a\x72\xaf\x1d\x5d\xa0\x21\x56\xa8\x77\xce\xf3\x36\x80\xa2\x0f\x14\xe6\x18\x41\x4c\x8d\x49\x53\x65\xb2\xf3\xd5\xbf\x5c\xc4\x26\x10\x5d\xbc\xb5\x11\x1d\xf8\xd0\xf0\x72\xda\xd6\x9e\x13\x57\x42\x46\x9e\x36\x8e\x26\xf7\xee\x7a\x16\x16\x77\xc0\x0a\x95\x12\x7b\x38\xdc\xc3\xfd\xa6\x31\x2b\xcc\x6d\xf8\x40\xf2\xc5\x5b\xf3\x77\xdf\x65\xf8\x74\x04\x8c\x25\xda\x0b\xef\xfd\xb1\x10\x78\x14\xcb\x69\x08\x67\x98\x5e\x9a\x3c\xf6\x8e\xf2\xd1\x08\xaf\x72\x0b\xac\x5d\xa0\xd4\x34\x52\x0f\x84\xc8\x87\xb4\x0d\x83\xb6\x25\x90\x8e\x76\xa5\xee\x81\x88\x50\x25\x7e\x95\x5d\x63\xfc\xe9\xcb\x24\xb8\xc7\x1d\xcb\x23\xf1\x49\xe2\x91\x35\x04\x30\x62\x14\x25\x7d\x6c\x32\x3b\xcb\x8e\x9f\x41\xf4\x4f\x37\x4c\x21\x79\x62\x29\x2c\x91\x47\x3b\xde\xb6\x26\xf7\x99\x9c\xd5\xa9\x6f\xf9\x30\x2b\xd4\x27\x3f\xe9\x8b\x63\x8c\x34\xdc\x7f\x4c\x2f\xde\x76\x94\x7c\xda\x7d\xfb\xfd\x6d\x8f\xb8\x3b\x26\x53\x4f\xa3\xe2\xd0\xd5\x37\xff\x63\xce\x4b\x57\x11\x7c\xc3\xbf\xb7\x30\xf8\x22\x3d\xfe\xf1\xcf\x95\x83\xc1\xaf\x7e\xdb\xe5\xc0\xcd\xf8\x30\x08\xc5\x87\x54\x96\x07\x16\x8d\xfd\x5d\xec\x7c\x0e\xbe\x6f\x05\x85\xda\x9e\x78\xf7\x05\xd6\xd4\x95\x29\x9f\xd0\xbc\x6e\x0b\x2c\x85\x44\x50\xd9\x1a\x0f\x4f\xe6\x7d\x73\xdc\x35\xbb\xae\x92\x95\xb6\x92\xbd\xb3\x2c\xa1\x1d\x35\x60\x65\x3a\xd1\x77\xfb\xc6\xc1\xb6\x85\x93\x35\xa0\x2b\x7f\x7f\x41\x6d\x8a\xc1\x2b\xdb\x1e\x6e\x9c\xd4\x9f\x6a\x1a\xcc\x2a\x52\xf5\xd9\x33\x78\x32\x2d\x64\x7c\xee\x4d\x25\xc5\x22\x4e\xfa\xfc\xeb\x3b\xbb\xb5\x57\x64\xe0\x71\x27\x63\xa4\xbf\x3b\xa8\x9d\x1a\x17\xea\x23\x33\x5f\xe2\x64\x98\xd3\x27\xf2\xda\x25\xea\x29\x9d\xe2\x75\xb2\xa7\x8d\x1c\xbe\x6c\x73\xb5\x7b\x5a\xdb\xf9\x1c\x4c\x44\x83\x6c\xb8\x02\x2a\xf4\x36\xc0\xcd\xad\x4d\xa3\x50\x9e\xd8\xf8\x2f\x28\x36\x58\x41\xfd\xbe\xf2\xdd\x45\xf7\x03\xe8\xa1\x31\xe1\x7a\xe5\xbe\x95\xb8\x3f\x2c\xc0\xfd\x47\x93\x4c\x21\x25\x9d\x62\x21\x09\x96\x5f\x7a\x6d\x0c\xae\xe7\xbc\x59\x25\x10\x9b\xfa\x5e\xa6\x17\x2b\xc2\x72\x51\xf9\x92\x6d\x22\x68\xfd\xd0\x08\xea\xee\x17\x8c\x9a\xb3\x45\xa6\x98\x65\x5b\x65\xfa\x9a\x9e\x4d\x32\xb5\x25\xda\x4e\x1b\x37\x1a\xbb\xb1\xd1\x29\xed\x93\xbb\x15\x39\xd9\xec\xf6\x29\xf0\x99\x5b\xc6\x04\x37\x17\x1b\x1b\x8a\xaa\x53\x4b\xc8\xca\x8e\x90\x99\xa6\xec\x74\x74\xfd\xe1\xf3\x53\xdb\x9e\xf6\xde\x83\x32\x63\x15\x16\x26\xf1\x19\xc6\x0d\x9f\xc7\x92\x3e\x47\xa7\xf0\xf4\xc6\xca\x4b\x9c\x61\xed\x01\x41\x37\xf4\xe5\x0e\x59\xed\x4e\x38\xb9\xb0\x27\x60\xb1\xe3\x63\xfe\x78\x26\x87\x1e\xf8\xed\x1a\x7d\xf1\x96\x1c\x76\xc8\xcc\xfe\x54\x53\x1e\xe8\x5d\xdc\x37\xac\x42\xaa\xf4\x3d\xde\x8c\xf1\x33\xec\xd9\xde\xfd\x4a\xfc\xda\x30\x69\xfe\xe9\x89\x31\xc2\x10\xa4\xcf\x63\x7e\xfc\x39\x8a\x0e\x39\xa8\x83\x2b\x8d\xdd\x53\x6b\x1f\xff\x1d\x00\x00\xff\xff\xa1\xa5\x1b\x07\x3c\x23\x00\x00") +var _templateBuilderUpdateTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x5a\x6d\x6f\xdb\xc8\x11\xfe\x4c\xfe\x8a\x09\xa1\x04\xa4\x61\x53\x49\xbe\xd5\x81\x0b\x5c\x12\xa7\x67\xa0\xcd\x15\x71\xee\x7a\x40\x12\x1c\x28\x72\x68\x6d\x4d\xed\x32\xbb\x4b\xd9\x86\xca\xff\x5e\xcc\xbe\xf0\x45\xa2\x1c\xd9\x48\x0f\xbd\xa2\x87\x03\x2c\x71\x77\x87\x33\xcf\xbc\x3d\xb3\xca\x66\x33\x3f\x0a\xdf\x88\xfa\x4e\xb2\xab\xa5\x86\x97\xcf\x5f\xfc\xe9\xa4\x96\xa8\x90\x6b\x78\x97\xe5\xb8\x10\xe2\x1a\x2e\x78\x9e\xc2\x0f\x55\x05\x66\x93\x02\x5a\x97\x6b\x2c\xd2\xf0\xe3\x92\x29\x50\xa2\x91\x39\x42\x2e\x0a\x04\xa6\xa0\x62\x39\x72\x85\x05\x34\xbc\x40\x09\x7a\x89\xf0\x43\x9d\xe5\x4b\x84\x97\xe9\x73\xbf\x0a\xa5\x68\x78\x11\x32\x6e\xd6\xff\x7a\xf1\xe6\xfc\xfd\xe5\x39\x94\xac\x42\x70\xcf\xa4\x10\x1a\x0a\x26\x31\xd7\x42\xde\x81\x28\x41\x0f\x5e\xa6\x25\x62\x1a\x1e\xcd\xdb\x36\x0c\x37\x1b\x28\xb0\x64\x1c\x21\x6a\xea\x22\xd3\x18\x41\xdb\xd2\xd3\x59\x7d\x7d\x05\xa7\x67\xb0\xc8\x14\xc2\x2c\x7d\x23\x78\xc9\xae\xd2\xbf\x67\xf9\x75\x76\x85\xe0\x8e\x6a\x5c\xd5\x55\xa6\x11\xa2\x25\x66\x05\xca\x08\x66\xbb\x4b\x6c\x55\x0b\xa9\xfd\x92\xfd\x06\x71\x18\x6c\x36\x27\x20\x33\x7e\x85\x30\xab\x33\xbd\xa4\x97\xcd\xd2\x4b\xb6\xa8\x18\xbf\xba\x30\xbb\x14\x9d\x08\x82\xc8\xa8\x43\x5b\xda\x36\xb2\xe7\x90\x17\xb4\x96\x84\xe6\x5d\xb3\x45\xc3\x2a\xc2\xcb\x88\xf8\xd9\xd8\xf1\x3e\x5b\xa1\x37\x45\x62\x8e\x6c\x6d\xd7\xbb\xcf\xdd\x21\xb7\x69\xd5\xe8\x4c\x33\xc1\x69\x53\x2d\x19\xd7\x83\x73\x51\xea\x57\x0d\x3c\xe1\x7c\x0e\xc3\xd7\xb6\x2d\xf9\x8e\x80\xf7\x4f\x4a\x21\xc1\xe0\xc9\xf8\x95\xd9\x9a\x3a\x7d\x00\xb9\x66\x9a\xa1\x4a\x43\x7d\x57\xe3\xb6\x18\xa5\x65\x93\x6b\xd8\x84\x41\x6e\x00\xb7\xd6\xf6\x58\x5a\x1f\xcd\x4b\x86\x55\xa1\x08\xd2\x93\xb6\x0d\xad\x42\xff\x58\xa2\x44\xc8\x8a\x42\x41\x06\x1c\x6f\xa0\x96\x58\xb0\x9c\x8e\x91\x36\x03\xed\xd2\xb0\x6c\x78\x0e\xf1\x10\x9a\xb6\x85\xa3\xb1\x2e\x89\x95\x18\xd7\x0a\xd2\x34\xed\x84\xa5\x43\x6b\x92\xed\x43\xa4\xf9\x08\xcc\xb6\xed\x8f\x2a\x38\x83\xac\xae\x91\x17\xf1\xfe\x3d\xc7\x50\xab\x34\x4d\x93\x30\x90\xa8\x1b\xc9\x61\xe4\x40\x6b\xed\x66\x03\x37\x4c\x2f\x01\x6f\x35\x05\xc2\x0c\xa2\xd7\x56\x83\x68\xe4\xd5\x60\x14\x86\x0a\xb5\xa6\x1d\xa9\x73\xb8\x0b\xa1\xc7\x09\x73\x7e\xc0\xe2\x0a\xd5\xae\xc8\xf9\x1c\x2e\xb3\x35\x02\xde\x62\xde\x90\xdd\x04\xfe\xd7\x06\xe5\x1d\x64\xbc\x00\x6b\x98\x7d\xca\x9b\xd5\x02\x25\x65\xa8\x14\x37\x6a\xbe\x46\xa9\x59\x8e\x0a\x56\x99\xce\x97\x58\xc0\xe2\xce\xa6\xae\xa8\x51\x1a\xb4\xa6\x9c\x07\x53\xde\x23\x0d\xe2\x5c\xdf\x42\x2e\xb8\xc6\x5b\x4d\x29\x4c\x7f\x13\x88\x19\xd7\xc7\x80\x52\x0a\x99\x90\xc3\xd6\x99\xa4\x7c\x0c\x50\x4a\xfb\x34\x0c\x82\xac\x2c\x31\xd7\x58\x00\xe3\x3a\x0c\x12\x1b\x87\xac\x84\x59\xfa\x63\xa6\x6c\x86\xbd\xc5\x32\x6b\x2a\x6d\x73\x74\x4b\x9d\xb4\xb0\x8b\x2a\x4e\x46\x09\x1b\xb0\x12\x2a\xe4\xdb\xda\xa7\x4b\x21\xae\x55\x02\x67\x67\xf0\x9c\x34\x9a\x78\xdb\x9b\x25\xe6\xd7\x28\x5d\x49\x20\x39\xa4\xee\xd9\x76\x78\xa4\x39\xed\x8b\x93\x57\x66\xf9\xc9\x19\x70\x56\x19\x89\x81\x8f\xa7\xe7\xc6\x74\x7a\xd2\xba\x17\x79\xdd\x3a\xa3\x8f\xf7\xc8\x36\xa1\x7f\xa9\x85\xb4\x25\xd0\x23\x9c\x84\x41\x0b\x58\x29\x34\x2f\x22\x34\x57\x8d\x86\xbf\x51\x78\x0b\x12\x63\x3e\xe1\xbb\x86\xe7\x31\xf9\x6e\xca\x29\xc7\xb0\xb2\xdb\x98\xe0\x09\xc4\xbf\x64\x55\x83\x43\x17\x05\x81\xcf\x96\x63\x10\xd7\x54\xa2\x56\x69\x6c\x5c\x9e\xfa\x63\x3e\x25\x1d\x3a\x4f\xc4\xf5\xd8\x6e\xce\xaa\x63\x28\x57\x3a\x3d\x27\xa9\x65\x1c\x35\x1c\x6f\x6b\xeb\xe4\x2e\x15\x4d\x4d\x7a\xfa\x31\x3a\x86\x55\xe2\x21\xfa\xb6\x33\x1e\xe3\x8d\x5d\x77\xf4\x2f\xeb\x1c\xb2\x5d\x4b\xe0\xac\x53\x95\x56\x1f\xef\xaf\x1e\xcf\xb4\x10\x1c\xe1\x0c\xb4\x6c\x30\xec\xd5\x1a\x89\x0e\x83\xc0\xe0\x4a\x75\x94\x11\xf8\xf7\x84\xf0\x09\xbc\x78\x05\x0c\xfe\x7c\x06\xcf\x5f\x01\x3b\x39\xe9\xbc\x37\xa1\x9f\x39\xf2\x89\x7d\x89\x57\x8d\x26\xf9\x64\x32\x2b\xe1\x37\x6b\xcf\xa9\x31\xd6\xfa\xd7\xe8\x7d\x0c\x5b\x70\x4c\xe0\xba\x8d\x6a\x1b\xd2\xff\x93\x46\xf5\x85\xea\x57\x4b\x3d\xae\xd1\x7c\x3b\x86\x45\xa3\xa1\xce\x38\xcb\x15\xf9\x3d\xe3\x36\x10\x41\xe4\x79\x23\xd5\x83\x0a\xd0\xaf\xd3\x15\x88\xba\xeb\x26\xdc\xf2\xdf\xe9\x2e\x40\x03\x8f\xb9\x10\x1b\xd8\x6a\x34\x8c\x51\xca\x64\xca\x46\x67\xde\xf9\x2d\xe6\x13\x75\xf8\x60\x23\xe8\xfc\xb4\x0d\x16\x93\x4d\x18\xfc\x76\x88\xfa\x4e\xbb\x1e\x77\x12\xdc\xe3\x4e\xdf\xbe\x17\xee\x46\xf2\xb4\xce\x9b\x0e\xc7\x09\x6d\xbd\xa9\xbb\x51\x35\x46\x7a\xb2\x67\x7e\x70\x82\xa2\x21\x6b\x72\x6c\x31\xb2\x64\xf2\x01\x7d\xd5\x94\x8d\x89\xc6\x7a\x48\xaf\xde\x7a\xab\x7b\xc5\x4c\xaf\xea\xaa\xa3\x76\x25\x44\x05\xcb\x2a\xcc\xf5\xfc\xa9\x9a\x7b\xe2\x3b\xac\x15\xe6\xd0\x6d\xa7\x98\x3d\x3e\xa1\xce\x4c\x70\x9c\x60\x9f\x3f\xf1\x69\x02\x3a\xe4\x9f\x83\x93\xdb\x14\xf4\x60\x06\x3a\x92\x71\x2f\x09\xcd\x40\x31\x7e\x55\xe1\x04\x1b\xbd\x1b\x70\xd1\xb1\xc0\x07\xd3\xd1\x6f\xf3\xb3\xb1\xd5\x87\x51\xb4\x47\x0b\xfc\x6e\x34\xcd\x0a\x2a\x3a\xbc\xee\x49\xc5\x31\x82\xf7\xf2\xb0\xa3\xa1\x2f\xbe\xc5\xc8\x38\x8d\x88\xa3\x13\xff\x5b\xbc\xcc\xf0\x93\x7d\xcc\x8c\x8c\xff\x3f\x2b\xfb\xfd\x58\xd9\xd0\x19\x0f\xe7\x65\x8f\xf3\xd6\x37\x39\x59\x27\xf6\x8f\xc7\xc7\x06\x78\x8e\x18\x59\x6f\xd2\x7f\x82\x8d\x8d\x4a\xd1\xbd\x84\x6c\x54\x57\x48\xf3\xde\x85\xdf\x87\x96\x91\xbc\xfb\x29\x19\x08\x7b\x77\xf5\xd0\x12\xfb\x87\xe1\x68\x13\x5a\xff\x97\xd3\xb4\x03\x5a\xeb\x63\x98\xda\x40\xec\xef\x4b\xd6\xfa\x8f\xf3\x23\x50\xcb\x4c\x62\xe1\x29\x8e\xa5\x30\xb0\x40\x7d\x83\x68\x03\x51\xdf\x08\xd7\xf7\xa5\x02\x73\x5b\xba\x73\x59\xea\x99\x0f\xa9\x60\x8a\x07\x7c\xfa\xf2\xa3\x10\xd7\x61\x57\xca\x60\xb2\x1d\xec\x53\xc6\x10\x15\x90\xb8\x12\xeb\xac\x7a\xb0\x32\x8e\xe6\x38\x32\x39\x60\xa5\x75\xa6\xf2\xac\x82\xf4\x32\x17\x35\xa6\xaf\xc7\xa4\xf3\xbb\x5f\x8e\x6e\x36\xfe\x5a\x17\x2d\x25\x3e\x37\x56\x79\xdf\x9a\x0c\xa1\xe7\xd8\xa1\xf2\xa6\xc2\xcc\x86\x98\xa3\xb5\x66\x4f\xdb\x42\x4e\x0b\x8a\x1e\x51\xa7\xc3\xf4\x67\xce\xbe\x36\x04\x20\x41\x62\xae\x85\xd1\x17\xad\xc8\x80\x47\xb8\x52\xcb\x6f\xdb\xac\xaa\x26\x77\xa8\x0e\x7a\xd0\x02\x3a\xde\x8b\xe9\xc7\xbb\xba\xdb\x9a\x86\xc1\x81\xc3\xd6\x40\xdb\x78\xf2\x36\x74\xe7\x3a\x74\x74\x22\x0c\xf6\x5d\x73\x06\x16\x2e\x56\x02\x17\x7a\x64\xbb\x93\x59\x9b\xc6\x27\x6e\x50\x42\xec\xf3\xe4\x69\xfa\x82\x68\xf8\xc0\x98\xc4\x1f\x98\x1f\x91\x2c\x73\xe5\x48\x36\x0a\xfb\xb9\xce\x64\xb6\x42\x8d\x92\x8a\x50\x59\xb1\x5c\x2b\x9b\xb7\xe6\x57\x04\xaf\x8e\x39\x61\x82\x2e\x70\x3a\xe1\x57\x52\x60\x04\x8d\xd5\xe9\x0c\xa2\x75\xe4\xbe\x76\x74\x81\x96\x58\xa1\xde\x39\xcf\xdb\x00\x8a\x3e\x50\x98\x63\x04\x31\x0d\x26\x4d\x95\xc9\xce\x57\xff\x72\x11\x9b\x40\x74\xf1\xd6\x46\x74\xe0\x43\xc3\xcb\x69\x5b\x9b\x27\xae\x85\x8c\x3c\x6d\x1c\x4d\xee\xdd\xf5\x2c\x2c\xee\x80\x15\x2a\x25\xf6\x70\xb8\x87\xfb\x97\xc6\xac\x30\xf7\xe1\x03\xc9\x17\x6f\xcd\xdf\x7d\xd7\xe1\xd3\x11\x30\x96\x68\x2f\xbc\xf7\xc7\x42\xe0\x51\x2c\xa7\x21\x9c\x61\x7a\x69\xea\xd8\x3b\xaa\x47\x23\xbc\xca\x2d\xb0\x76\x81\x52\xd3\x48\x3d\x10\x22\x1f\xd2\x36\x0c\xda\x96\x40\x3a\xda\x95\xba\x07\x22\x42\x95\xf8\x55\x76\x8d\xf1\xa7\x2f\x93\xe0\x1e\x77\x2c\x8f\xc4\x27\x89\x47\xd6\x10\xc0\x88\x51\x94\xf4\xb1\xc9\xec\x2e\xbb\x7e\x06\xd1\x3f\xdd\x32\x85\xe4\x89\xa5\xb0\x44\x1e\xed\x7a\xdb\x9a\xda\x67\x6a\x56\xa7\xbe\xe5\xc3\xac\x50\x9f\xfc\xa6\x2f\x8e\x31\xd2\x72\xff\x30\xbd\x78\xdb\x51\xf2\x69\xf7\xed\xf7\xb7\x4d\x71\x97\x26\x53\x9f\x46\xcd\xa1\xeb\x6f\xfe\xe7\x9c\x97\xae\x23\xf8\x81\x7f\x6f\x63\xf0\x4d\x7a\xfc\xcb\x9e\x6b\x07\x83\x9f\xf4\xb6\xdb\x81\xdb\xf1\x61\x10\x8a\x0f\xe9\x2c\x0f\x6c\x1a\xfb\xa7\xd8\xf9\x1c\xfc\xdc\x0a\x0a\xb5\xcd\x78\xf7\x04\xd6\x34\x95\x29\x5f\xd0\xbc\x6e\x0b\x2c\x85\x44\x50\xd9\x1a\x0f\x2f\xe6\xfd\x70\xdc\x0d\xbb\xae\x93\x95\xb6\x93\xbd\xb3\x2c\xa1\x1d\x0d\x60\x65\x3a\x31\x77\xfb\xc1\xc1\x8e\x85\x93\x3d\xa0\x6b\x7f\x7f\x41\x6d\x9a\xc1\x2b\x3b\x1e\x6e\x9c\xd4\x9f\x6a\x5a\xcc\x2a\x52\xf5\xd9\x33\x78\x32\x2d\x64\x9c\xf7\xa6\x93\x62\x11\x27\x7d\xfd\xf5\x93\xdd\xda\x2b\x32\xf0\xb8\x93\x31\xd2\xdf\x25\x6a\xa7\xc6\x85\xfa\xc8\xcc\x93\x38\x19\xd6\xf4\x89\xba\x76\x89\x7a\x4a\xa7\x78\x9d\xec\x19\x23\x87\x5f\xb6\xb9\xda\x3d\xa3\xed\x7c\x0e\x26\xa2\x41\x36\x5c\x01\x35\x7a\x1b\xe0\xe6\xd6\xa6\x51\x28\x4f\x6c\xfc\x17\x14\x1b\xac\xa0\x79\x5f\xf9\xe9\xa2\xfb\x09\xf4\xd0\x98\x70\xb3\x72\x3f\x4a\xdc\x1f\x16\xe0\xfe\xa3\x4d\xa6\x91\x92\x4e\xb1\x90\x04\xcb\x2f\xbd\x36\x06\xd7\x73\xde\xac\x12\x88\x4d\x7f\x2f\xd3\x8b\x15\x61\xb9\xa8\x7c\xcb\x36\x11\xb4\x7e\x68\x04\x75\xf7\x0b\x46\xcd\xd9\x22\x53\xcc\xb2\xad\x32\x7d\x4d\x9f\x4d\x31\xb5\x2d\xda\x6e\x1b\x0f\x1a\xbb\xb1\xd1\x29\xed\x8b\xbb\x15\x39\x39\xec\xf6\x25\xf0\x99\x3b\xc6\x04\x37\x17\x1b\x1b\x8a\xaa\x53\x4b\xc8\xca\x8e\x90\x99\xa1\xec\x74\x74\xfd\xe1\xeb\x53\xdb\x9e\xf6\xde\x83\x32\x63\x15\x16\xa6\xf0\x19\xc6\x0d\x9f\xc7\x92\x3e\x47\xa7\xf0\xf4\xc6\xca\x4b\x9c\x61\xed\x01\x41\x37\xf4\xe5\x0e\x59\xed\x32\x9c\x5c\xd8\x13\xb0\xd8\xf1\x31\x9f\x9e\xc9\xa1\x09\xbf\xdd\xa3\x2f\xde\x92\xc3\x0e\xd9\xd9\x67\x35\xd5\x81\xde\xc5\xfd\xc0\x2a\xa4\x4a\xdf\xe3\xcd\x18\x3f\xc3\x9e\xed\xdd\xaf\xc4\xaf\x0d\x93\xe6\xdf\x95\x18\x23\x0c\x41\xfa\x3c\xe6\xc7\x9f\xa3\xe8\x90\x44\x1d\x5c\x69\xec\x66\xad\xfd\xf8\xef\x00\x00\x00\xff\xff\x0d\xb0\x95\xf1\x19\x23\x00\x00") func templateBuilderUpdateTmplBytes() ([]byte, error) { return bindataRead( @@ -261,7 +261,7 @@ func templateBuilderUpdateTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/builder/update.tmpl", size: 9020, mode: os.FileMode(420), modTime: time.Unix(1, 0)} + info := bindataFileInfo{name: "template/builder/update.tmpl", size: 8985, mode: os.FileMode(420), modTime: time.Unix(1, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -386,7 +386,7 @@ func templateDialectGremlinDecodeTmpl() (*asset, error) { return a, nil } -var _templateDialectGremlinDeleteTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x7c\x92\xd1\x6f\xd3\x30\x10\xc6\x9f\xe3\xbf\xe2\x98\x26\x64\x57\xc1\x1d\x7b\x03\xb4\x87\x51\x8a\xa8\x34\x21\x58\x27\x5e\x2b\xd7\xbe\xa4\xd6\x8c\x1d\xce\x4e\xd5\x2a\xf2\xff\x8e\x9c\xa5\x53\x81\x89\xa7\x58\x77\xbf\xf3\xf7\x7d\xbe\x0c\xc3\x7c\xc6\x16\xa1\x3b\x92\x6d\x77\x09\xae\xaf\xde\xbe\x7b\xd3\x11\x46\xf4\x09\x3e\x2b\x8d\xdb\x10\x1e\x61\xe5\xb5\x84\x5b\xe7\x60\x84\x22\x94\x3e\xed\xd1\x48\xf6\xb0\xb3\x11\x62\xe8\x49\x23\xe8\x60\x10\x6c\x04\x67\x35\xfa\x88\x06\x7a\x6f\x90\x20\xed\x10\x6e\x3b\xa5\x77\x08\xd7\xf2\xea\xd4\x85\x26\xf4\xde\x30\xeb\xc7\xfe\xdd\x6a\xb1\xfc\xba\x5e\x42\x63\x1d\xc2\x54\xa3\x10\x12\x18\x4b\xa8\x53\xa0\x23\x84\x06\xd2\x99\x58\x22\x44\xc9\x66\xf3\x9c\x19\x1b\x06\x30\xd8\x58\x8f\x70\x61\xac\x72\xa8\xd3\xbc\x25\xfc\xe9\xac\x9f\x1b\x74\x98\xf0\x02\x72\x2e\xd4\xe5\xb6\xb7\xae\x78\x7a\x7f\x03\x9d\x8a\x5a\x39\xb8\x94\x6b\x1d\x3a\x94\x1f\xa7\xce\x04\x12\x6a\xb4\xfb\x27\xf2\xf9\xfc\x3c\x5e\x44\x9b\xde\x6b\xe0\xe7\x6c\xce\x30\x3b\x17\xc9\x59\xc0\xe4\x63\x79\x40\xcd\x75\x3a\x80\x0e\x3e\xe1\x21\xc9\xc5\xd3\x57\x00\xb7\x3e\xd5\x80\x44\x81\x04\x0c\xac\x22\x8c\x45\xf3\xf5\x34\x28\xef\x31\x76\xc1\x47\x1c\x32\xab\x7e\xf5\x48\xc7\x1a\xb6\xd6\x1b\xeb\xdb\x91\xfb\xc3\x6b\xce\x72\x1a\xe3\x42\x7e\x2f\x30\x17\xac\xb2\x4d\xb9\xfe\x25\xd8\x50\x39\xc9\x93\xb9\x1a\xfe\x12\xa8\xcb\xa2\xc5\x87\x71\xfc\xd5\x0d\x78\xeb\x8a\xc3\x8a\x30\xf5\xe4\xe1\x6a\xb4\xcd\xaa\xcc\x4e\x15\xc2\x28\xef\x51\x99\x95\x4f\x5c\xb0\xcc\x5e\x7a\x24\xf8\xcf\x2b\x71\x01\x33\x13\x9d\x7c\x20\xb5\x47\x8a\x6a\x94\x4b\xc5\x79\x2b\x7f\x70\x21\xbf\xa8\x78\xa7\xb6\xe8\xc6\x0b\xe5\x37\xa5\x1f\x55\x8b\x25\xc8\x58\x15\xac\x6a\x02\xc1\xa6\x86\x6e\xdc\x9a\xf2\x2d\xfe\x13\xb9\x23\x34\x56\xab\x84\x71\x8c\xd2\xf1\x24\xce\x13\x24\xb9\xb6\x06\x97\x4d\x83\x3a\xf1\xcd\x46\x7e\xa2\xd0\x71\x21\xe4\x22\xf4\x53\xa6\x61\x00\xf4\xa6\xfc\x01\xbf\x03\x00\x00\xff\xff\x16\x97\x23\x6f\x3a\x03\x00\x00") +var _templateDialectGremlinDeleteTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x7c\x52\x41\x6b\x1b\x3d\x14\x3c\xaf\x7e\xc5\xfb\x4c\xf8\x58\x19\x57\x76\x73\x6b\x4b\x0e\xa9\xeb\x52\x43\x28\x6d\x1c\x7a\x35\xb2\xf4\x76\x2d\xa2\x48\xdb\x27\xad\xb1\x59\xf4\xdf\x8b\x94\x75\x70\x4a\xe8\x69\x97\x37\x33\x6f\x66\x24\x0d\xc3\x7c\xca\x96\xbe\x3b\x91\x69\xf7\x11\xae\x17\xef\x3f\xbc\xeb\x08\x03\xba\x08\x5f\xa5\xc2\x9d\xf7\x8f\xb0\x76\x4a\xc0\xad\xb5\x50\x48\x01\x32\x4e\x07\xd4\x82\x3d\xec\x4d\x80\xe0\x7b\x52\x08\xca\x6b\x04\x13\xc0\x1a\x85\x2e\xa0\x86\xde\x69\x24\x88\x7b\x84\xdb\x4e\xaa\x3d\xc2\xb5\x58\x9c\x51\x68\x7c\xef\x34\x33\xae\xe0\x77\xeb\xe5\xea\xfb\x66\x05\x8d\xb1\x08\xe3\x8c\xbc\x8f\xa0\x0d\xa1\x8a\x9e\x4e\xe0\x1b\x88\x17\x66\x91\x10\x05\x9b\xce\x53\x62\x6c\x18\x40\x63\x63\x1c\xc2\x44\x1b\x69\x51\xc5\x79\x4b\xf8\x64\x8d\x9b\x6b\xb4\x18\x71\x02\x29\x65\xd6\xd5\xae\x37\x36\x67\xfa\x78\x03\x9d\x0c\x4a\x5a\xb8\x12\x1b\xe5\x3b\x14\x9f\x47\x64\x24\x12\x2a\x34\x87\x67\xe6\xcb\xff\x8b\x7c\x24\x3d\xf5\x51\x46\xe3\x5d\x59\x47\xc6\xc5\x0b\xdd\x44\x9c\xd1\x62\xce\x9a\xde\x29\xa8\x2f\x57\xa7\x04\xd3\xcb\x4c\x29\x71\x18\x63\xaf\x8e\xa8\x6a\x15\x8f\xa0\xbc\x8b\x78\x8c\x62\xf9\xfc\xe5\x50\x1b\x17\x67\x80\x44\x9e\x38\x0c\xac\x22\x0c\xd9\xfd\xff\x51\x28\xee\x31\x74\xde\x05\x1c\x12\xab\x7e\xf7\x48\xa7\x19\xec\x8c\xd3\xc6\xb5\x85\xf7\xaa\x5a\x4a\x62\x94\xd5\x5c\xfc\xcc\xe4\x9a\xb3\xca\x34\x79\xfd\x5b\x64\x4d\xf9\x4f\x9c\xc3\xcd\xe0\x2f\x83\x59\x7e\x17\xfc\x53\x91\xff\x77\x03\xce\xd8\x9c\xb0\x22\x8c\x3d\x39\x58\x94\xd8\xac\x4a\xec\x3c\x21\x0c\xe2\x1e\xa5\x5e\xbb\x58\x73\x96\xd8\x5b\x87\x04\xff\x38\xa5\x9a\xc3\x54\x07\x2b\x1e\x48\x1e\x90\x82\x2c\x76\x31\x27\x6f\xc5\xaf\x9a\x8b\x6f\x32\xdc\xc9\x1d\xda\xb2\x50\xfc\x90\xea\x51\xb6\x98\x8b\x94\x29\x67\x55\xe3\x09\xb6\x33\xe8\xca\x25\x4b\xd7\x22\xbc\xba\xd5\x94\x44\x47\xa8\x8d\x92\x11\x43\xa9\xd2\xd5\x91\x5f\x36\x88\x62\x63\x34\xae\x9a\x06\x55\xac\xb7\x5b\xf1\x85\x7c\x57\x73\x2e\x96\xbe\x1f\x3b\x0d\x03\xa0\xd3\xf9\x05\xfc\x09\x00\x00\xff\xff\xbd\x1b\x2d\x65\x69\x03\x00\x00") func templateDialectGremlinDeleteTmplBytes() ([]byte, error) { return bindataRead( @@ -401,7 +401,7 @@ func templateDialectGremlinDeleteTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/gremlin/delete.tmpl", size: 826, mode: os.FileMode(420), modTime: time.Unix(1, 0)} + info := bindataFileInfo{name: "template/dialect/gremlin/delete.tmpl", size: 873, mode: os.FileMode(420), modTime: time.Unix(1, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -566,7 +566,7 @@ func templateDialectGremlinSelectTmpl() (*asset, error) { return a, nil } -var _templateDialectGremlinUpdateTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xc4\x58\x5f\x6f\xdb\x38\x12\x7f\xb6\x3f\xc5\xac\xe1\x16\x52\xce\xcb\xa4\xfb\x76\x39\xe4\x80\x36\x71\x77\x7d\xd8\x4d\xba\x4d\xae\xf7\x50\x14\x01\x23\x8d\x6c\x22\x32\xa9\x25\x29\x35\x39\x43\xdf\xfd\x30\x24\x25\x4b\xb2\x93\x26\xed\xde\xf6\xa1\x8d\xc5\x3f\x33\xbf\x99\xf9\xcd\x70\xc8\xcd\xe6\xf0\x60\x7c\xaa\x8a\x7b\x2d\x96\x2b\x0b\x3f\x1d\xbd\xfa\xfb\x8f\x85\x46\x83\xd2\xc2\x5b\x9e\xe0\x8d\x52\xb7\xb0\x90\x09\x83\xd7\x79\x0e\x6e\x91\x01\x9a\xd7\x15\xa6\x6c\x7c\xb5\x12\x06\x8c\x2a\x75\x82\x90\xa8\x14\x41\x18\xc8\x45\x82\xd2\x60\x0a\xa5\x4c\x51\x83\x5d\x21\xbc\x2e\x78\xb2\x42\xf8\x89\x1d\x35\xb3\x90\xa9\x52\xa6\x63\x21\xdd\xfc\xaf\x8b\xd3\xf9\xf9\xe5\x1c\x32\x91\x23\x84\x31\xad\x94\x85\x54\x68\x4c\xac\xd2\xf7\xa0\x32\xb0\x1d\x65\x56\x23\xb2\xf1\xc1\x61\x5d\x8f\xc7\x9b\x0d\xa4\x98\x09\x89\x30\x49\x05\xcf\x31\xb1\x87\x4b\x8d\xeb\x5c\xc8\xc3\xb2\x48\xb9\xc5\x09\xd4\x35\xad\x9a\xde\x94\x22\x27\x4c\xc7\x27\x50\x70\x93\xf0\x1c\xa6\xec\x32\x51\x05\xb2\x37\x61\x26\x2c\xd4\x98\xa0\xa8\xfc\xca\xf6\x77\xbb\x3d\x2c\x5a\x97\x96\x5b\xa1\xa4\x13\xa7\x85\xb4\x9d\x7d\x13\xd6\xcc\xb6\xca\x95\x44\x5a\xb9\xe2\xe6\xb2\xcc\x32\x71\xb7\x95\x37\xb9\x90\x5b\x8c\xff\x45\xad\x68\xdd\x11\xd4\xf5\x66\x03\x22\xf3\x3b\xdd\x87\x9f\x3c\x81\x89\x14\xf9\xc4\x0f\xa1\x4c\x69\xe7\x38\x2b\x65\x02\x51\x0f\x7b\x5d\xc3\x41\xd7\xea\xba\x8e\x21\x38\xe6\x92\x57\x18\x25\xf6\x0e\x12\x25\x2d\xde\x59\x76\xea\xff\xc6\x24\xe2\xc7\x8e\x52\x27\x80\x9d\xf3\x75\x40\x80\xb9\xa1\x5f\x42\xda\x56\xf7\x0c\x50\x6b\xa5\x63\xd8\x8c\x47\x1a\x0d\x61\x7f\x19\xd4\xb0\xf7\x68\x0a\x25\x0d\x6e\xea\xf1\xa8\x2f\x78\x3c\x1a\x89\x74\x06\xea\x96\xd6\xf7\xbc\x59\xd7\xcc\x29\x5d\x9c\xb1\xdf\xc2\xd8\xcf\x68\xa1\xae\xa3\x98\x36\x65\xf0\x83\xba\x25\x5d\xa3\x91\x46\x5b\x6a\x09\xad\x63\x08\xcb\xcb\x0f\x3c\x17\xa9\xdb\x35\x27\x58\x1b\xc2\x7e\x0c\x93\xc5\xd9\xc4\x01\x3d\x86\x6c\x6d\x99\x9b\xca\xa2\xc9\x5a\x18\x23\xe4\x12\xba\x56\xb2\xc5\x19\x64\x4a\x43\xe0\x4e\x4c\x50\xe9\xdf\x1f\x25\xea\xfb\x19\xdc\x08\x99\x0a\xb9\x34\x0d\xee\x8e\xbb\x59\x30\x3b\x12\x69\xcc\x7e\xa7\xe5\x04\x99\xec\x0e\x6e\x7b\x9e\x94\xa1\x0c\x1f\x69\xf2\x00\x6a\xbd\x6f\x63\xaa\xe9\x17\x9b\xdf\x61\x42\xc1\x9d\xc1\x40\xd9\x8c\x32\x37\xfe\x87\xdb\xfe\xc3\x09\x48\x91\x3b\x3f\xee\x73\x23\x6a\x3d\x1e\xb5\xca\x9a\x38\x09\x73\xaa\xa4\xb1\x5c\x5a\xe7\xc0\xc8\x8b\x0b\xe1\x78\x4c\xcc\x4e\xec\x69\x60\xea\x8c\x98\xb2\xf7\x5b\x13\xdc\x0c\x4d\xd4\xb5\xe3\x51\x8f\x7d\x89\x92\x99\x58\x1e\xef\x98\xed\xc7\x6b\x4f\x8e\xae\x6b\x68\xf2\xad\x56\xeb\x86\x85\xd1\x5e\xf3\x1b\xe0\x52\xe4\x01\xb0\x0b\x77\xc7\x1c\xed\x6c\x91\x22\x1f\x06\x33\xac\xd1\x68\xd8\x7b\xe4\xe9\x42\xda\x41\xb0\x9e\x9d\x98\x51\x2f\xe5\x45\x0a\x4d\x2a\x5c\xdd\x17\xd8\xcd\xf8\x18\x0e\x52\x93\xb3\x2b\xcd\x2b\xd4\x86\x3b\x53\x48\xf1\x67\x61\x57\xc0\xce\xcb\xb5\x8b\x94\xe6\x54\x96\x1c\x56\x4b\x02\x92\xed\xa0\xb1\xba\x4c\xac\xf7\x40\xa1\x31\x1d\xca\x3b\x3c\xec\xae\xa6\x15\x22\xe1\x16\x19\xad\xb7\x68\xec\x9e\xf5\x6e\x78\xcd\x6d\xb2\x42\x03\x5c\xa6\x20\xac\xf1\x42\xb8\xb4\x2c\xf8\x75\x2b\xd4\x91\x7f\xcd\x6f\x31\xfa\xf8\xe9\x60\x3b\x3c\x83\xa3\x19\x99\xcd\xc8\xca\x3e\xf5\xe9\xf7\xe1\x01\x24\xdc\x20\x1d\x08\x3e\x43\xc1\x14\x98\x88\x4c\x24\x50\xa1\xb6\x78\x07\xee\x54\xd8\xa5\x5c\x45\xea\x96\xec\x03\x65\x67\x2b\x6a\x89\x12\x35\xcf\x1b\x51\x94\xf7\xe7\x4e\x8e\x48\xd0\x74\x24\x6d\x63\xde\x8a\x89\xd9\x2f\xdc\xfc\xca\x6f\x30\x77\xd1\x65\xef\x78\x72\xcb\x97\xae\x82\xb8\x51\xaa\x56\x24\xef\x7a\x06\x85\x3b\x47\xb8\x5c\xe2\x0e\x79\x5b\xc7\x9a\x10\x8a\xa8\x8a\xbd\xa7\xba\x86\x57\x5c\x43\xe4\x93\x43\x64\xa0\xf4\x30\xc2\x51\x8e\x12\xa6\x6c\x9e\x2e\xd1\xc4\x1e\xe7\x48\x57\x70\x02\x15\x3b\xcd\x95\x44\x57\x3a\x47\xd7\x70\x02\xba\xf2\x62\x1a\xc9\x23\xab\x0d\x7c\xfc\xd4\x0f\xe6\x78\x14\x3c\xe4\x31\x4f\xaf\x67\x30\xcd\x7c\xb2\xbe\x15\x98\xa7\x66\x9b\xc4\x1e\x4e\x24\x95\x85\x69\xc6\x16\x6b\x2a\xe3\x37\x39\xc6\xf4\xf5\x6f\xe7\xd4\x33\xcc\x78\x99\x07\x16\x52\x8a\x56\x3c\x2f\xf1\xb1\xd2\x9f\xed\x14\xfe\xb6\xc8\xb4\x4a\x49\xbc\x14\x7f\x94\x21\x2a\xa3\x3e\xb1\x4e\x80\x17\x05\xca\x34\xea\x0c\xce\xe0\xe5\xf6\xcb\xcb\xf2\xcc\x3f\xde\x86\x73\x7f\x24\x67\x30\x1c\xf6\x28\x9b\x62\xe8\xca\x83\xb3\x2a\x66\xa7\xaa\xa4\x2a\x30\x0b\xf2\x29\x25\x8e\xe1\xfa\x9a\x2d\x4c\x54\xb0\xf3\xf9\xef\xd1\x51\x1c\xb7\x1b\xa3\x73\xfc\x3c\xd7\xda\x1b\xe2\x3c\xfb\xcd\x00\x1a\xcd\x75\xdc\x7a\xab\x0d\xf5\x68\x54\xb1\x77\x5a\x15\xa8\xed\x7d\x44\x01\xbf\x14\x72\x99\xe3\x33\xa4\x93\x10\x27\x29\x44\x81\x92\x7c\x9a\xb9\xe2\x44\x8c\x44\x2d\x92\xb0\xd3\xe5\x62\x7a\xa5\xde\x70\x23\x92\x46\xfd\x97\x82\xff\x3a\x4d\x31\xf5\xca\x2f\x5d\x79\x72\x3e\x19\x32\xe0\x61\x0a\x8c\x78\x9a\x7e\x20\x05\x2e\xdf\x5a\xee\xd3\x32\x25\xa3\xeb\x6b\xe6\x26\x77\xa3\xbc\x63\x6f\x3c\xa3\x98\xb5\x61\x0a\xae\x65\x97\xe5\x3a\x8a\xd9\x39\xde\x59\x9f\x50\x5f\xcb\xba\x3f\x91\x76\x8d\xc5\x3b\xcc\xfb\x2b\xa9\x47\x2d\xd5\xa5\x6b\x81\xb3\x68\xf2\xb7\x13\x78\x51\x4d\x5a\x3e\xb6\x80\x02\x23\x87\x94\xfc\x06\x4e\x5e\x5f\xff\xb9\x91\xf5\x00\x5b\x7e\xb7\x20\x87\x47\xd0\xf0\x38\xca\x91\x6b\x50\x05\xb1\x98\xe7\x90\xb9\x0a\xc9\x3a\x87\x87\x3b\x93\xa7\x14\xe8\x8b\x66\x91\x3f\x4a\xb8\x86\xc2\xdb\x2e\x90\xaa\xb0\x90\x16\x75\xc6\x13\xd7\x2f\x3f\xa1\x00\x77\x32\xa1\x2f\xd9\xa5\xda\xfe\xd2\xda\x4f\xac\x53\xc2\x8e\x69\x14\x37\xb9\xd5\xc1\xd3\xd2\x79\x3b\xf6\x84\xb0\x3c\xc5\x89\x84\x2e\x47\xd9\x11\x1c\xc3\x3f\xe1\xc8\x63\xa8\xd8\xa5\x48\x71\x9e\x65\x98\x58\x8a\xec\xbb\x76\x51\x67\x3d\x63\x2c\x66\x67\x5a\x15\x3e\x6a\x7b\x02\xd3\xf1\x1c\x7a\xcf\xb9\xd3\xb1\xd3\x7e\xfa\xcb\x65\xb8\xc0\x4d\x16\xfe\xa6\x16\xe6\x24\xf5\x9c\xcd\xbd\x2e\x83\xc9\x0b\xc3\x5e\x98\x49\xc7\xf4\x29\xfa\xfc\xe8\x58\xbe\x3d\x11\xa7\xc8\x16\x66\x41\x35\xb0\xe9\x1a\x86\x1a\x4f\x60\x72\x51\xda\x49\x77\xd2\xa9\xdc\xd5\x88\xbe\xba\x7e\x59\x6f\xcf\xd3\x87\x07\xa0\x71\xad\x2a\x04\x74\x56\x7b\x32\x76\xf0\x75\x2b\xe7\x03\x5c\xc1\x47\xb9\xd2\xef\x8a\x42\xa3\x23\xd2\x7e\xa7\xd3\x15\xf9\xde\xe1\x49\xf7\x49\x5e\x9c\x99\xae\xd4\xae\x21\x1e\xed\x1b\x91\x8a\xe0\x2b\xab\x07\xc5\xfd\x8d\xb2\xab\xb9\x4b\x7c\xe9\x2f\x0a\xb1\xef\x92\x5c\x4b\xd2\x31\x94\xfd\x67\x85\x1a\x89\x51\x17\x9a\xfe\x5f\xc8\x50\x7d\x17\x67\xd4\x12\xba\xba\x70\x51\xda\xde\x60\x1c\xb7\xad\x52\x60\x1b\x5b\x58\xd4\xdc\xfa\x8e\xaa\xf5\xc1\xfe\x98\xef\x40\x5d\xc8\x67\x02\xb5\x2b\xd4\x7d\x40\x4f\xc3\xf3\x80\xfe\x8b\xd2\xfe\x05\x00\xda\xda\x4e\xad\x65\x5b\x44\xac\x36\x33\xb0\x3a\x64\x6b\x43\xd2\xd0\x77\xf7\x48\xfa\x04\x2e\x7d\x99\x44\xfb\x23\x52\x51\x8b\xd1\x77\x81\xbb\x21\x46\xe1\x5e\x10\x7b\x56\xec\xba\x72\xdf\xc6\x2b\xb5\xdd\xe6\x89\xf3\x30\x81\x7f\xe1\x66\x78\x21\xdb\x4f\xef\xaf\x6a\x28\x7c\x3b\x31\xc8\x89\x3e\xd8\x7e\x77\xf0\x8c\xde\x80\xaa\xe6\x63\xad\x41\xd0\x40\xf1\x6a\xce\xfa\x70\x06\x7c\xbd\x25\x4b\x36\x1f\x5e\xaf\x5a\x43\xbe\x2a\x8b\xbf\x83\xf9\x03\x02\xfd\x9f\xbc\x41\x1f\xdb\x53\xa5\xae\x7b\x76\x7f\x2f\xab\xf7\x1e\xf9\x3b\x47\x74\xe7\x76\x5e\xf9\xf6\xed\x37\x5e\x44\x56\x97\x18\x6f\x1f\x1a\xab\xc6\x86\xce\x95\xf5\xd1\x67\x8e\xd0\x59\x74\x1c\xdb\x69\x2d\x42\xd1\x59\xf3\x5b\x04\x53\x6a\x74\x0f\xcd\xb6\x7d\xc2\x48\x15\x1a\x57\x0c\x13\x25\x2d\x17\x12\xd6\xca\xad\xe1\x12\x08\x67\x78\x5e\x10\x19\x7c\x46\x58\xf1\xaa\xf7\x9c\x12\x6a\x57\x93\xd4\xae\xa4\xb6\x4f\x0f\xdf\x9a\xd5\x8f\x84\xf1\xe7\xab\xe8\x55\x37\x8a\x2f\xb7\x0e\xf1\xef\x9f\x6b\xb3\x3c\x86\x49\xa8\xb3\x5b\x5b\x83\x89\x66\xaf\x8d\x93\xfa\xe1\xa0\x8e\x2a\x38\xe9\x18\x6e\x3e\x1e\x7d\x72\x8f\x18\xec\x54\xf1\x1c\x4d\x82\xd1\x60\x92\xf0\xce\xc0\xbd\x6a\x34\xa5\x3d\xd1\xdb\xd2\xde\x5d\xfd\xea\xf8\x53\xe8\x43\x9d\x12\x3d\x14\xac\x7b\xc2\xf6\xb0\x6a\xf7\xc4\xa1\xa5\xe1\x99\x8e\x6e\x17\xff\x52\x42\xd2\x04\xf5\x8f\x63\xf7\xe0\x1e\xb6\xfe\x2f\x00\x00\xff\xff\xdd\x9f\x6c\xca\x09\x19\x00\x00") +var _templateDialectGremlinUpdateTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xc4\x58\x5f\x6f\xdb\x38\x12\x7f\xb6\x3f\xc5\xac\xe1\x16\x52\xce\xcb\xa4\xfb\x76\x39\xe4\x80\x36\x71\x77\x7d\xd8\x4d\xba\x4d\xae\xf7\x50\x14\x01\x23\x8d\x6c\x22\x32\xa9\x25\x29\x35\x39\x43\xdf\xfd\x30\x24\x25\x4b\xb2\x93\x26\xed\xde\xf6\xa1\x8d\xc5\x3f\x33\xbf\x99\xf9\xcd\x70\xc8\xcd\xe6\xf0\x60\x7c\xaa\x8a\x7b\x2d\x96\x2b\x0b\x3f\x1d\xbd\xfa\xfb\x8f\x85\x46\x83\xd2\xc2\x5b\x9e\xe0\x8d\x52\xb7\xb0\x90\x09\x83\xd7\x79\x0e\x6e\x91\x01\x9a\xd7\x15\xa6\x6c\x7c\xb5\x12\x06\x8c\x2a\x75\x82\x90\xa8\x14\x41\x18\xc8\x45\x82\xd2\x60\x0a\xa5\x4c\x51\x83\x5d\x21\xbc\x2e\x78\xb2\x42\xf8\x89\x1d\x35\xb3\x90\xa9\x52\xa6\x63\x21\xdd\xfc\xaf\x8b\xd3\xf9\xf9\xe5\x1c\x32\x91\x23\x84\x31\xad\x94\x85\x54\x68\x4c\xac\xd2\xf7\xa0\x32\xb0\x1d\x65\x56\x23\xb2\xf1\xc1\x61\x5d\x8f\xc7\x9b\x0d\xa4\x98\x09\x89\x30\x49\x05\xcf\x31\xb1\x87\x4b\x8d\xeb\x5c\xc8\xc3\xb2\x48\xb9\xc5\x09\xd4\x35\xad\x9a\xde\x94\x22\x27\x4c\xc7\x27\x50\x70\x93\xf0\x1c\xa6\xec\x32\x51\x05\xb2\x37\x61\x26\x2c\xd4\x98\xa0\xa8\xfc\xca\xf6\x77\xbb\x3d\x2c\x5a\x97\x96\x5b\xa1\xa4\x13\xa7\x85\xb4\x9d\x7d\x13\xd6\xcc\xb6\xca\x95\x44\x5a\xb9\xe2\xe6\xb2\xcc\x32\x71\xb7\x95\x37\xb9\x90\x5b\x8c\xff\x45\xad\x68\xdd\x11\xd4\xf5\x66\x03\x22\xf3\x3b\xdd\x87\x9f\x3c\x81\x89\x14\xf9\xc4\x0f\xa1\x4c\x69\xe7\x38\x2b\x65\x02\x51\x0f\x7b\x5d\xc3\x41\xd7\xea\xba\x8e\x21\x38\xe6\x92\x57\x18\x25\xf6\x0e\x12\x25\x2d\xde\x59\x76\xea\xff\xc6\x24\xe2\xc7\x8e\x52\x27\x80\x9d\xf3\x75\x40\x80\xb9\xa1\x5f\x42\xda\x56\xf7\x0c\x50\x6b\xa5\x63\xd8\x8c\x47\x1a\x0d\x61\x7f\x19\xd4\xb0\xf7\x68\x0a\x25\x0d\x6e\xea\xf1\xa8\x2f\x78\x3c\x1a\x89\x74\x06\xea\x96\xd6\xf7\xbc\x59\xd7\xcc\x29\x5d\x9c\xb1\xdf\xc2\xd8\xcf\x68\xa1\xae\xa3\x98\x36\x65\xf0\x83\xba\x25\x5d\xa3\x91\x46\x5b\x6a\x09\xad\x63\x08\xcb\xcb\x0f\x3c\x17\xa9\xdb\x35\x27\x58\x1b\xc2\x7e\x0c\x93\xc5\xd9\xc4\x01\x3d\x86\x6c\x6d\x99\x9b\xca\xa2\xc9\x5a\x18\x23\xe4\x12\xba\x56\xb2\xc5\x19\x64\x4a\x43\xe0\x4e\x4c\x50\xe9\xdf\x1f\x25\xea\xfb\x19\xdc\x08\x99\x0a\xb9\x34\x0d\xee\x8e\xbb\x59\x30\x3b\x12\x69\xcc\x7e\xa7\xe5\x04\x99\xec\x0e\x6e\x7b\x9e\x94\xa1\x0c\x1f\x69\xf2\x00\x6a\xbd\x6f\x63\xaa\xe9\x17\x9b\xdf\x61\x42\xc1\x9d\xc1\x40\xd9\x8c\x32\x37\xfe\x87\xdb\xfe\xc3\x09\x48\x91\x3b\x3f\xee\x73\x23\x6a\x3d\x1e\xb5\xca\x9a\x38\x09\x73\xaa\xa4\xb1\x5c\x5a\xe7\xc0\xc8\x8b\x0b\xe1\x78\x4c\xcc\x4e\xec\x69\x60\xea\x8c\x98\xb2\xf7\x5b\x13\xdc\x0c\x4d\xd4\xb5\xe3\x51\x8f\x7d\x89\x92\x99\x58\x1e\xef\x98\xed\xc7\x6b\x4f\x8e\xae\x6b\x68\xf2\xad\x56\xeb\x86\x85\xd1\x5e\xf3\x1b\xe0\x52\xe4\x01\xb0\x0b\x77\xc7\x1c\xed\x6c\x91\x22\x1f\x06\x33\xac\xd1\x68\xd8\x7b\xe4\xe9\x42\xda\x41\xb0\x9e\x9d\x98\x51\x2f\xe5\x45\x0a\x4d\x2a\x5c\xdd\x17\xd8\xcd\xf8\x18\x0e\x52\x93\xb3\x2b\xcd\x2b\xd4\x86\x3b\x53\x48\xf1\x67\x61\x57\xc0\xce\xcb\xb5\x8b\x94\xe6\x54\x96\x1c\x56\x4b\x02\x92\xed\xa0\xb1\xba\x4c\xac\xf7\x40\xa1\x31\x1d\xca\x3b\x3c\xec\xae\xa6\x15\x22\xe1\x16\x19\xad\xb7\x68\xec\x9e\xf5\x6e\x78\xcd\x6d\xb2\x42\x03\x5c\xa6\x20\xac\xf1\x42\xb8\xb4\x2c\xf8\x75\x2b\xd4\x91\x7f\xcd\x6f\x31\xfa\xf8\xe9\x60\x3b\x3c\x83\xa3\x19\x99\xcd\xc8\xca\x3e\xf5\xe9\xf7\xe1\x01\x24\xdc\x20\x1d\x08\x3e\x43\xc1\x14\x98\x88\x4c\x24\x50\xa1\xb6\x78\x07\xee\x54\xd8\xa5\x5c\x45\xea\x96\xec\x03\x65\x67\x2b\x6a\x89\x12\x35\xcf\x1b\x51\x94\xf7\xe7\x4e\x8e\x48\xd0\x74\x24\x6d\x63\xde\x8a\x89\xd9\x2f\xdc\xfc\xca\x6f\x30\x77\xd1\x65\xef\x78\x72\xcb\x97\xae\x82\xb8\x51\xaa\x56\x24\xef\x7a\x06\x85\x3b\x47\xb8\x5c\xe2\x4e\xa9\x6b\x1d\x6b\x42\x28\xa2\x2a\xf6\x9e\xea\x1a\x5e\x71\x0d\x91\x4f\x0e\x91\x81\xd2\xc3\x08\x47\x39\x4a\x98\xb2\x79\xba\x44\x13\x7b\x9c\x23\x5d\xc1\x09\x54\xec\x34\x57\x12\x5d\xe9\x1c\x5d\xc3\x09\xe8\xca\x8b\x69\x24\x8f\xac\x36\xf0\xf1\x53\x3f\x98\xe3\x51\xf0\x90\xc7\x3c\xbd\x9e\xc1\x34\xf3\xc9\xfa\x56\x60\x9e\x9a\x6d\x12\x7b\x38\x91\x54\x16\xa6\x19\x5b\xac\xc9\xb6\x9b\x1c\x63\xfa\xfa\xb7\x73\xea\x19\x66\xbc\xcc\x03\x0b\x29\x45\x2b\x9e\x97\xf8\x58\xe9\xcf\x76\x0a\x7f\x5b\x64\x5a\xa5\x24\x5e\x8a\x3f\xca\x10\x95\x51\x9f\x58\x27\xc0\x8b\x02\x65\x1a\x75\x06\x67\xf0\x72\xfb\xe5\x65\x79\xe6\x1f\x6f\xc3\xb9\x3f\x92\x33\x18\x0e\x7b\x94\x4d\x31\x74\xe5\xc1\x59\x15\xb3\x53\x55\x52\x15\x98\x05\xf9\x94\x12\xc7\x70\x7d\xcd\x16\x26\x2a\xd8\xf9\xfc\xf7\xe8\x28\x8e\xdb\x8d\xd1\x39\x7e\x9e\x6b\xed\x0d\x71\x9e\xfd\x66\x00\x8d\xe6\x3a\x6e\xbd\xd5\x86\x7a\x34\xaa\xd8\x3b\xad\x0a\xd4\xf6\x3e\xa2\x80\x5f\x0a\xb9\xcc\xf1\x19\xd2\x49\x88\x93\x14\xa2\x40\x49\x3e\xcd\x5c\x71\x22\x46\xa2\x16\x49\xd8\xe9\x72\x31\xbd\x52\x6f\xb8\x11\x49\xa3\xfe\x4b\xc1\x7f\x9d\xa6\x98\x7a\xe5\x97\xae\x3c\x39\x9f\x0c\x19\xf0\x30\x05\x46\x3c\x4d\x3f\x90\x02\x97\x6f\x2d\xf7\x69\x99\x92\xd1\xf5\x35\x73\x93\xbb\x51\xde\xb1\x37\x9e\x51\xcc\xda\x30\x05\xd7\xb2\xcb\x72\x1d\xc5\xec\x1c\xef\xac\x4f\xa8\xaf\x65\xdd\x9f\x48\xbb\xc6\xe2\x1d\xe6\xfd\x95\xd4\xa3\x96\xea\xd2\xb5\xc0\x59\x34\xf9\xdb\x09\xbc\xa8\x26\x2d\x1f\x5b\x40\x81\x91\x43\x4a\x7e\x03\x27\xaf\xaf\xff\xdc\xc8\x7a\x80\x2d\xbf\x5b\x90\xc3\x23\x68\x78\x1c\xe5\xc8\x35\xa8\x82\x58\xcc\x73\xc8\x5c\x85\x64\x9d\xc3\xc3\x9d\xc9\x53\x0a\xf4\x45\xb3\xc8\x1f\x25\x5c\x43\xe1\x6d\x17\x48\x55\x58\x48\x8b\x3a\xe3\x89\xeb\x97\x9f\x50\x80\x3b\x99\xd0\x97\xec\x52\x6d\x7f\x69\xed\x27\xd6\x29\x61\xc7\x34\x8a\x9b\xdc\xea\xe0\x69\xe9\xbc\x1d\x7b\x42\x58\x9e\xe2\x44\x42\x97\xa3\xec\x08\x8e\xe1\x9f\x70\xe4\x31\x54\xec\x52\xa4\x38\xcf\x32\x4c\x2c\x45\xf6\x5d\xbb\xa8\xb3\x9e\x31\x16\xb3\x33\xad\x0a\x1f\xb5\x3d\x81\xe9\x78\x0e\xbd\xe7\xdc\xe9\xd8\x69\x3f\xfd\xe5\x32\x5c\xe0\x26\x0b\x7f\x53\x0b\x73\x92\x7a\xce\xe6\x5e\x97\xc1\xe4\x85\x61\x2f\xcc\xa4\x63\xfa\x14\x7d\x7e\x74\x2c\xdf\x9e\x88\x53\x64\x0b\xb3\xa0\x1a\xd8\x74\x0d\x43\x8d\x27\x30\xb9\x28\xed\xa4\x3b\xe9\x54\xee\x6a\x44\x5f\x5d\xbf\xac\xb7\xe7\xe9\xc3\x03\xd0\xb8\x56\x15\x02\x3a\xab\x3d\x19\x3b\xf8\xba\x95\xf3\x01\xae\xe0\xa3\x5c\xe9\x77\x45\xa1\xd1\x11\xe9\xc3\x9d\xce\x7b\x87\x27\xdd\x27\x79\x71\x66\xba\x52\xbb\x86\x78\xb4\x6f\x44\x2a\x82\xaf\xac\x1e\x14\xf7\x37\xca\xae\xe6\x2e\xf1\xa5\xbf\x28\xc4\xbe\x4b\x72\x2d\x49\xc7\x50\xf6\x9f\x15\x6a\x24\x46\x5d\x68\xfa\x7f\x21\x43\xf5\x5d\x9c\x51\x4b\xe8\xea\xc2\x45\x69\x7b\x83\x71\xdc\xb6\x4a\x81\x6d\x6c\x61\x51\x73\xeb\x3b\xaa\xd6\x07\xfb\x63\xbe\x03\x75\x21\x9f\x09\xd4\xae\x50\xf7\x01\x3d\x0d\xcf\x03\xfa\x2f\x4a\xfb\x17\x00\x68\x6b\x3b\xb5\x96\x6d\x11\xb1\xda\xcc\xc0\xea\x90\xad\x0d\x49\x43\xdf\xdd\x23\xe9\x13\xb8\xf4\x65\x12\xed\x8f\x48\x45\x2d\x46\xdf\x05\xee\x86\x18\x85\x7b\x41\xec\x59\xb1\xeb\xca\x7d\x1b\xaf\xd4\x76\x9b\x27\xce\xc3\x04\xfe\x85\x9b\xe1\x85\x6c\x3f\xbd\xbf\xaa\xa1\xf0\xed\xc4\x20\x27\xfa\x60\xfb\xdd\xc1\x33\x7a\x03\xaa\x9a\x8f\xb5\x06\x41\x03\xc5\xab\x39\xeb\xc3\x19\xf0\xf5\x96\x2c\xd9\x7c\x78\xbd\x6a\x0d\xf9\xaa\x2c\xfe\x0e\xe6\x0f\x08\xf4\x7f\xf2\x06\x7d\x6c\x4f\x95\xba\xee\xd9\xfd\xbd\xac\xde\x7b\xe4\xef\x1c\xd1\x9d\xdb\x79\xe5\xdb\xb7\xdf\x78\x11\x59\x5d\x62\xbc\x7d\x68\xac\x1a\x1b\x3a\x57\xd6\x47\x9f\x39\x42\x67\xd1\x71\x6c\xa7\xb5\x08\x45\x67\xcd\x6f\x11\x4c\xa9\xd1\x3d\x34\xdb\xf6\x09\x23\x55\x68\x5c\x31\x4c\x94\xb4\x5c\x48\x58\x2b\xb7\x86\x4b\x20\x9c\xe1\x79\x41\x64\xf0\x19\x61\xc5\xab\xde\x73\x4a\xa8\x5d\x4d\x52\xbb\x92\xda\x3e\x3d\x7c\x6b\x56\x3f\x12\xc6\x9f\xaf\xa2\x57\xdd\x28\xbe\xdc\x3a\xc4\xbf\x7f\xae\xcd\xf2\x18\x26\xa1\xce\x6e\x6d\x0d\x26\x9a\xbd\x36\x4e\xea\x87\x83\x3a\xaa\xe0\xa4\x63\xb8\xf9\x78\xf4\xc9\x3d\x62\xb0\x53\xc5\x73\x34\x09\x46\x83\x49\xc2\x3b\x03\xf7\xaa\xd1\x94\xf6\x44\x6f\x4b\x7b\x77\xf5\xab\xe3\x4f\xa1\x0f\x75\x4a\xf4\x50\xb0\xee\x09\xdb\xc3\xaa\xdd\x13\x87\x96\x86\x67\x3a\xba\x5d\xfc\x4b\x09\x49\x13\xd4\x3f\x8e\xdd\x83\x7b\xd8\xfa\xbf\x00\x00\x00\xff\xff\x58\xda\xec\xde\x09\x19\x00\x00") func templateDialectGremlinUpdateTmplBytes() ([]byte, error) { return bindataRead( @@ -646,7 +646,7 @@ func templateDialectSqlDecodeTmpl() (*asset, error) { return a, nil } -var _templateDialectSqlDeleteTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x64\x52\xdf\x6b\x5b\x21\x18\x7d\xbe\xfe\x15\x87\x52\x46\x6e\xc8\x4c\xd7\xb7\x65\x74\xd0\xa5\x2d\x04\x46\x29\xa4\x6f\x63\x0c\xab\xdf\x4d\xa4\x56\x8d\x7a\x4b\xc2\xc5\xff\x7d\x68\x7e\x90\x6e\x0f\xd7\xab\xdf\x77\x8e\xe7\x78\x74\x18\xa6\x63\x36\x77\x7e\x17\xf4\x6a\x9d\x70\x7d\xf5\xe5\xeb\x67\x1f\x28\x92\x4d\x78\x10\x92\x5e\x9c\x7b\xc5\xc2\x4a\x8e\x5b\x63\x50\x41\x11\xa5\x1f\xde\x49\x71\xf6\xbc\xd6\x11\xd1\xf5\x41\x12\xa4\x53\x04\x1d\x61\xb4\x24\x1b\x49\xa1\xb7\x8a\x02\xd2\x9a\x70\xeb\x85\x5c\x13\xae\xf9\xd5\xb1\x8b\xce\xf5\x56\x31\x6d\x6b\xff\xe7\x62\x7e\xff\xb8\xbc\x47\xa7\x0d\xe1\x50\x0b\xce\x25\x28\x1d\x48\x26\x17\x76\x70\x1d\xd2\x99\x58\x0a\x44\x9c\x8d\xa7\x39\x33\x36\x0c\x50\xd4\x69\x4b\xb8\x50\x5a\x18\x92\x69\x1a\x37\x66\xaa\xc8\x50\xa2\x0b\xe4\x5c\x10\x97\x2f\xbd\x36\xc5\xcf\xec\x06\x5e\x44\x29\x0c\x2e\xf9\x52\x3a\x4f\xfc\xc7\xa1\x73\x00\x06\x92\xa4\xdf\xf7\xc8\xd3\xfc\x44\x2f\x82\x5d\x6f\x25\x46\xe7\xd8\x9c\x31\x3e\x17\xc9\xb9\x45\xdc\x98\xfb\x2d\xc9\x91\x4c\x5b\x48\x67\x13\x6d\x13\x9f\xef\xff\x2d\x46\xda\xa6\x09\x28\x04\x17\x5a\x0c\xac\xf9\x13\x3d\xc9\xa2\xf8\x29\x6e\xcc\x2a\x08\xbf\xe6\x77\xd5\xff\xd2\x93\x1c\x58\xd3\x3c\x3a\x45\xb3\xb3\x6e\x59\x1f\x7b\xcd\xb3\x78\x31\x34\x43\x71\xc0\x9f\x84\x7c\x15\x2b\x42\xce\xbc\x96\x27\x05\xb0\xb8\x3b\xe7\x3e\x68\x32\xea\x44\x6e\x9e\x77\x9e\x66\xe8\x4a\x91\xd7\x2d\x16\x77\xbc\xd4\x8a\xdb\x98\x1e\xc5\x5b\xd9\xac\x6e\xd3\xcc\x9d\xe9\xdf\xec\xff\x4a\x47\x5a\x65\x08\x9b\x8e\x84\x3a\x96\x21\xb3\x46\x77\xf0\xb1\x1c\xf1\x43\xc8\x39\x73\x1f\x48\x69\x29\x12\xc5\x6f\x30\x64\x47\x3e\xb6\xf8\x8e\xab\x12\xcb\x3e\x17\xfe\x74\x44\xe0\x06\x25\xfc\x51\x24\x53\xdf\x05\xc6\x71\x63\xf8\xf2\xb0\xaa\x49\x36\x4d\xe7\x02\x74\xbd\x3d\x61\x57\x54\x44\xf7\xe7\xf4\xf1\x97\xfe\x7d\xa2\xb6\xd5\x1f\xab\x5f\x66\x4d\xa0\xd4\x07\x8b\x7f\xd2\x2f\x29\xc7\x72\x83\x13\x7c\xbc\x6e\xae\x42\x99\x4c\x50\x0d\xb6\x6c\xff\x0c\xc9\xaa\xf2\x40\xfe\x06\x00\x00\xff\xff\xb7\xf8\x07\x70\x55\x03\x00\x00") +var _templateDialectSqlDeleteTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x64\x52\xd1\x6a\x1b\x31\x10\x7c\x3e\x7d\xc5\x10\x42\xb1\x8d\x2b\xa7\x79\xab\x4b\x0a\xa9\x93\x80\xa1\x84\x80\xf3\x56\x4a\x51\xa4\x3d\x5b\x44\x91\x64\x49\x17\x12\x0e\xfd\x7b\x91\xec\x33\x97\xf6\xe1\x74\xd2\xce\xcc\xee\x6a\xb4\x7d\xbf\x98\xb1\x95\xf3\xef\x41\x6f\x77\x09\x97\x17\x5f\xbe\x7e\xf6\x81\x22\xd9\x84\x3b\x21\xe9\xc9\xb9\x67\xac\xad\xe4\xb8\x36\x06\x95\x14\x51\xf0\xf0\x4a\x8a\xb3\xc7\x9d\x8e\x88\xae\x0b\x92\x20\x9d\x22\xe8\x08\xa3\x25\xd9\x48\x0a\x9d\x55\x14\x90\x76\x84\x6b\x2f\xe4\x8e\x70\xc9\x2f\x06\x14\xad\xeb\xac\x62\xda\x56\xfc\xe7\x7a\x75\x7b\xbf\xb9\x45\xab\x0d\xe1\x18\x0b\xce\x25\x28\x1d\x48\x26\x17\xde\xe1\x5a\xa4\x51\xb1\x14\x88\x38\x9b\x2d\x72\x66\xac\xef\xa1\xa8\xd5\x96\x70\xa6\xb4\x30\x24\xd3\x22\xee\xcd\x42\x91\xa1\x44\x67\xc8\xb9\x30\xce\x9f\x3a\x6d\x4a\x3f\xcb\x2b\x78\x11\xa5\x30\x38\xe7\x1b\xe9\x3c\xf1\x1f\x47\xe4\x48\x0c\x24\x49\xbf\x1e\x98\xa7\xfd\x49\x7e\x24\xbd\x74\x49\x24\xed\x6c\x4d\x17\xb4\x4d\x23\xdd\x19\x1f\xd0\x5a\x9c\xb5\x9d\x95\x98\x8c\x53\xe7\x8c\xd9\xb8\xa7\x9c\xa7\x88\x7b\x73\xfb\x46\x72\x22\xd3\x1b\xa4\xb3\x89\xde\x12\x5f\x1d\xfe\x53\x4c\xb4\x4d\x73\x50\x08\x2e\x4c\xd1\xb3\xe6\x4f\xf4\x24\x4b\xed\x4f\x71\x6f\xb6\x41\xf8\x1d\xbf\xa9\xd7\xdd\x78\x92\x3d\x6b\x9a\x7b\xa7\x68\x39\x42\xcb\x79\xc0\x9a\x47\xf1\x64\x68\x89\xd2\x01\x7f\x10\xf2\x59\x6c\x09\x39\xf3\x1a\x9e\x17\xc2\xfa\x66\xac\xbd\xd3\x64\xd4\x49\xdc\x3c\xbe\x7b\x5a\xa2\x2d\x41\x5e\x53\xac\x6f\x78\x89\x95\x6e\x63\xba\x17\x2f\x25\x59\x4d\xd3\xac\x9c\xe9\x5e\xec\xff\x95\x06\x59\x55\x08\x9b\x06\x41\x5d\xcb\x92\x59\xa3\x5b\xf8\x58\xae\xf8\xc1\xee\x9c\xb9\x0f\xa4\xb4\x14\x89\xe2\x37\x18\xb2\x13\x1f\xa7\xf8\x8e\x8b\x62\xcb\xc1\x17\xfe\x30\x30\x70\x85\x62\xfe\x24\x92\xa9\x63\x84\x59\xdc\x1b\xbe\x39\x9e\xaa\x93\x4d\xd3\xba\x00\x5d\x1f\x5b\xd8\x2d\x95\xa2\x87\x7b\xfa\xf8\x4b\xff\x3e\x49\xa7\xb5\x3f\x56\xbf\xcc\x9a\x40\xa9\x0b\x16\xff\xb8\x5f\x5c\x8e\xe5\x05\xe7\xf8\xf8\xdc\x5c\x85\xb2\x99\xa3\x36\x38\x65\x87\xa9\x25\xab\xca\x80\xfc\x0d\x00\x00\xff\xff\x34\x05\x1c\x43\x84\x03\x00\x00") func templateDialectSqlDeleteTmplBytes() ([]byte, error) { return bindataRead( @@ -661,7 +661,7 @@ func templateDialectSqlDeleteTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/sql/delete.tmpl", size: 853, mode: os.FileMode(420), modTime: time.Unix(1, 0)} + info := bindataFileInfo{name: "template/dialect/sql/delete.tmpl", size: 900, mode: os.FileMode(420), modTime: time.Unix(1, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -846,7 +846,7 @@ func templateDialectSqlTxTmpl() (*asset, error) { return a, nil } -var _templateDialectSqlUpdateTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xac\x57\xdf\x4f\x1b\xb9\x13\x7f\xce\xfe\x15\xd3\x15\x42\x09\x4a\x17\xbe\x7d\xfb\xa6\xca\x49\x14\xe8\x29\xba\x96\xf6\x1a\xda\x87\xab\x2a\x64\xd6\xb3\xc1\xc2\xf1\x2e\xb6\x97\xa3\x17\xed\xff\x7e\x1a\xff\xd8\x6c\xb2\x01\x4a\xaf\x0f\x04\xef\xfc\xf2\xf8\x33\xe3\xf1\xcc\x6a\x75\x78\x90\x9c\x94\xd5\x77\x2d\x16\xd7\x16\x5e\x1d\xfd\xef\xff\x2f\x2b\x8d\x06\x95\x85\xb7\x2c\xc7\xab\xb2\xbc\x81\x99\xca\x33\x38\x96\x12\x9c\x90\x01\xe2\xeb\x3b\xe4\x59\x72\x71\x2d\x0c\x98\xb2\xd6\x39\x42\x5e\x72\x04\x61\x40\x8a\x1c\x95\x41\x0e\xb5\xe2\xa8\xc1\x5e\x23\x1c\x57\x2c\xbf\x46\x78\x95\x1d\x45\x2e\x14\x65\xad\x78\x22\x94\xe3\xbf\x9b\x9d\x9c\x9d\xcf\xcf\xa0\x10\x12\x21\xd0\x74\x59\x5a\xe0\x42\x63\x6e\x4b\xfd\x1d\xca\x02\x6c\x67\x33\xab\x11\xb3\xe4\xe0\xb0\x69\x92\x64\xb5\x02\x8e\x85\x50\x08\x29\x17\x4c\x62\x6e\x0f\xcd\xad\x3c\xac\x2b\xce\x2c\xa6\xd0\x34\x24\xb1\x57\xdd\x2c\x60\x32\x85\xbd\x6c\x9e\x97\x15\x66\x1f\x59\x7e\xc3\x16\x18\xb9\x57\xb5\x90\xe4\xed\x64\x0a\x15\x33\x39\x93\xad\xe0\x9b\xc0\x09\x82\x1a\x73\x14\x77\x5e\xb2\x5d\xb7\xea\x41\x68\x59\x5b\x66\x45\xa9\x9c\x39\x2d\x94\xed\xe8\xa5\x59\xe4\xb6\xae\x95\x0a\x49\xf2\x9a\x99\x79\x5d\x14\xe2\x7e\x6d\x2f\xfd\xa0\xe2\x09\x5e\xc2\xde\x3f\xa8\x4b\x12\x3c\x82\xa6\x59\xad\x40\x14\x5e\xd5\x7d\x78\xe6\x14\x52\x25\x64\xea\x49\xa8\x78\xab\xaa\xd1\x92\x66\xaa\xd2\x5d\xba\xc4\x9d\x42\x7a\xa9\x4a\x8e\x9b\xca\x49\x51\xab\x1c\x86\x1b\x27\x6f\x1a\x38\xe8\x62\xd6\x34\x23\x30\xb7\x72\xce\xee\x70\x98\xdb\x7b\xc8\x4b\x65\xf1\xde\x66\x27\xfe\xff\x28\xaa\x5b\xd2\xdc\xd8\xdb\x99\xc9\xce\xd9\x32\x38\x82\xd2\xd0\x4a\x28\xdb\x7a\x30\x06\xd4\x9a\xfe\x4a\x3d\x82\x55\x32\xb8\x34\x15\xe6\x74\x94\x7d\x73\x2b\x17\x9a\x55\xd7\xd9\x67\x17\xe8\x79\x85\xf9\x2a\x19\x0c\xce\x4b\x8e\x93\x0e\x97\xbe\x23\x6f\x70\xc1\xae\x24\x4e\xc0\x6d\xbb\xce\x80\xcc\x91\xc7\x24\x70\x52\xca\x7a\xa9\x4c\x5f\x24\x30\x9c\xd0\xec\xb4\xbb\xc1\x5b\x81\x92\xb7\x3b\x0c\x2e\xbe\x57\x38\x81\x82\x88\x99\x33\x32\x3b\xcd\x88\x46\x70\x18\x1b\xce\xea\xcc\x84\xcd\xfa\x7b\x45\x35\xa7\xc1\x94\x8d\x0a\xee\x97\x7e\x9a\x64\x40\x51\x5d\x03\x99\x0c\x06\x82\x8f\xa1\xbc\x21\x64\x36\x32\xb0\x63\xee\x7d\xa0\xfd\xee\x22\x31\x1c\x91\x52\x01\x2f\xca\x1b\x70\x9e\x6b\xb4\xb5\x56\xd0\xe6\x12\x61\xbf\xff\x85\x49\xc1\x9d\xd6\x19\x85\x60\x45\xfe\x4f\x20\x9d\x9d\xa6\x2e\x30\x13\x28\x96\x36\x73\xac\x62\x98\x2e\x85\x31\x42\x2d\xa0\x1b\xd5\x6c\x76\x0a\x45\xa9\x21\xdc\xc6\x11\xb9\x4a\x7f\x2e\x8e\x2e\x38\xe4\xda\x17\x26\x6b\x84\x29\x08\xee\x4f\x16\x12\xc1\x7b\x58\x99\x78\xaa\x4e\x0a\x66\x95\x46\x2e\x72\x66\xd1\xbc\x06\x89\x6a\x58\x99\x11\xfc\x06\x47\xfe\x2c\xde\xfa\xc7\x28\x02\x53\xa0\x3c\x1e\x1a\x94\xae\x9c\xc0\x81\xb9\x95\xd9\x3c\x7c\x8d\xbc\xce\x80\xdc\x14\xee\x5e\x33\xb5\x40\xda\xd6\xd3\x07\x95\xf9\x2a\xbe\xb5\xca\x23\x47\x6c\x92\xf0\x13\x62\x11\xee\x8b\x5b\x7b\xfd\xbd\xc2\xd7\x1b\x97\x1f\xc6\x9f\x26\x86\xad\xd4\x30\x54\xa5\x85\xbd\x22\x9b\x2d\x29\x56\x57\x12\x47\xf4\xe5\x73\xf9\x14\x0b\x56\x4b\x1b\x74\x08\x83\x3b\x02\xe8\xb1\x00\x17\xbd\xf0\xbe\x86\x18\xd9\x88\x87\xf7\x24\x9b\xbb\xdb\xce\xaa\x0a\x15\x1f\x6e\x73\xc6\x0f\x67\x76\x3f\xb7\x8b\x87\x32\x7b\x30\x70\x11\x9d\x04\xbf\x03\xed\xb1\x7c\x2f\x7a\xd9\x3e\x18\x34\x1d\xa8\x23\x72\x4c\xf1\x76\xdf\xf3\x7a\x89\x5a\xe4\x41\xf9\x0e\xb5\x45\x7e\x51\xbe\x61\x46\xe4\x11\xba\x27\xb1\x3b\xe6\x1c\xb9\x77\x60\x6e\x75\x9d\x5b\x77\xe8\x1e\x80\x9b\x08\x1e\x73\xfe\x00\x82\xc7\x9c\x3f\x8a\xe0\x73\x20\xdc\x89\xe1\xb3\x41\x8c\x28\x76\x60\x8c\xb9\xba\xeb\x8b\x6a\x4a\x91\x7d\xa8\x08\x1f\x26\x3b\x19\xb8\x3b\xe9\x36\x31\x3b\x91\xc8\x34\xf2\xe1\x68\x67\xde\x39\xee\x03\xb8\x39\xde\xaf\xca\xbd\xff\x92\x67\xdb\x77\x79\xc7\xbd\xbe\x1c\xc3\x1e\xfa\xbb\x7d\xc6\x17\x68\xda\x42\xb5\x0b\x22\x6c\xef\x65\x00\xc7\xa5\x96\xc7\x87\x6c\xfe\x2d\xec\x35\xe0\xbd\xa5\x7d\xf6\x20\x25\x83\x29\x99\x6f\x62\xb8\xc0\xe2\xb2\x92\x54\xc4\x36\xba\x1b\x8e\x05\x3a\xd9\x6c\x67\x28\x3d\xb8\xce\xbd\xdd\xb8\x77\x58\x63\x20\x4b\xa3\x50\x98\x43\x12\xb8\xea\x84\xd9\x67\x25\x6e\xeb\xe8\x8d\x23\x73\x34\xbb\xee\xd1\x27\x5c\x96\x77\xfe\x26\xe1\x56\x56\xcc\x4e\x0d\x5d\x26\x2a\xd2\x4e\xdd\xd7\xe9\xfd\x7d\x78\xf1\x5c\xc0\x1e\x45\x2c\xa5\xc7\xc4\xa4\x60\x75\x8d\x90\xfe\x85\xba\x4c\xdb\x97\xcc\xc7\xf9\xc7\xc1\xdc\x42\xf3\x27\xe1\x6c\xf1\x6c\x2d\x3d\x86\xe0\x8f\x43\xf7\x64\xf2\x3c\x09\xc5\xaf\x48\xab\x1d\x45\xb0\x65\x6c\xa4\xd4\xf6\x35\xda\x68\x5b\x3a\xad\xe1\x14\xf6\x37\xfa\xc1\xbc\x54\x85\x58\x4c\x7a\x2f\xbf\xa7\xaf\x9b\x88\x63\x63\xc4\x42\x41\x6c\x11\xc8\x56\xc6\x1c\xcd\x15\x50\xd3\x0a\xce\x73\x16\x48\x9b\xc2\xa6\xa5\x53\x53\xf4\xa8\xbb\xa2\x70\xfd\xe8\x14\xb6\xba\x4f\x02\x9c\x9a\xdf\x71\xcf\x5b\xae\x69\x35\x06\xe7\xc2\xe8\xb5\x53\x7f\x31\x05\x25\x24\xc5\xb1\xd7\xec\xac\xdd\x1a\x3f\xbc\x93\xf9\xe9\xad\x3a\x89\x78\x19\x9f\x44\xd4\x3a\x1b\x1e\x74\x1a\x66\xfb\x96\x86\x33\xd7\xd5\x75\x1e\x41\xef\xcd\xfe\x06\x7b\xd5\xab\xb1\xef\xd8\x15\x4a\xd7\x17\xf9\x73\x89\x02\x72\xd4\x3a\xee\x25\xcc\xfc\xcf\x77\xae\x02\x6b\x26\x94\x75\x46\x86\xa8\xfb\xfb\x90\x52\xa8\x48\xbb\x1a\x53\xc7\x6d\x92\x2e\x2f\xa2\xa6\x84\x4c\xdc\x5c\x15\x47\x98\x07\xe6\xc3\x36\xd5\x63\xa0\x63\x51\xf7\x73\x1f\xe5\x32\xbc\x24\x1e\x49\x6d\x4e\x1c\xc4\x8b\x6f\xd3\x27\x94\x93\x75\x8c\xfc\x25\xfe\x84\xd2\xbd\x4e\xe1\x89\x99\x51\x6f\x62\xc2\xdc\x81\xd9\xcc\x04\x42\x60\x3f\x30\x94\x78\x61\xc7\xdc\x7a\xb2\xba\x43\x0a\x65\x27\x66\xef\x5f\xbd\x0f\xa3\x5c\xdf\xc2\xc7\x3f\x3a\xea\xeb\x21\xeb\xeb\x37\x63\xb5\x50\x8b\x7e\x08\xbd\x9a\xdf\xa4\xa3\x0a\xeb\xb1\x90\x9c\x78\x23\xb8\x88\x27\xa2\x75\x7b\x18\xbd\x40\x3b\xd9\x02\xcb\x53\x57\x7e\x78\x22\xe4\x9e\x31\x40\xa1\x7f\xe8\x7f\x6c\x8c\x0a\xc2\x7d\x18\x83\x89\xa7\x46\x2a\x57\x51\x63\x0a\xb8\xab\xe6\xef\x0b\xcd\x06\x97\x63\xb8\x59\x8f\x07\xbe\x8e\xfb\x8c\xe5\x0b\x0a\x14\x1d\x31\xe8\xb4\x75\xb1\xc7\x1a\xc3\x4d\xbf\x2c\x76\x96\xff\x06\x00\x00\xff\xff\x85\x4a\xda\x98\x91\x11\x00\x00") +var _templateDialectSqlUpdateTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xac\x57\x4d\x6f\xdb\x38\x13\x3e\x5b\xbf\x62\x2a\x04\x81\x1d\xb8\x4a\xde\xde\x5e\x17\x5e\x20\x4d\xd2\x85\xb1\x6d\xda\xad\xd3\x1e\xb6\x28\x02\x46\x1c\x39\x44\x68\x52\x21\xa9\x6c\xba\x86\xfe\xfb\x62\x48\x4a\x96\x2d\x27\x69\xba\x3d\xc4\x91\xe6\x8b\xc3\x67\x3e\x34\xb3\x5a\x1d\x1e\x24\x27\xba\xfc\x6e\xc4\xe2\xda\xc1\xab\xa3\xff\xfd\xff\x65\x69\xd0\xa2\x72\xf0\x96\xe5\x78\xa5\xf5\x0d\xcc\x54\x9e\xc1\xb1\x94\xe0\x85\x2c\x10\xdf\xdc\x21\xcf\x92\x8b\x6b\x61\xc1\xea\xca\xe4\x08\xb9\xe6\x08\xc2\x82\x14\x39\x2a\x8b\x1c\x2a\xc5\xd1\x80\xbb\x46\x38\x2e\x59\x7e\x8d\xf0\x2a\x3b\x6a\xb8\x50\xe8\x4a\xf1\x44\x28\xcf\x7f\x37\x3b\x39\x3b\x9f\x9f\x41\x21\x24\x42\xa4\x19\xad\x1d\x70\x61\x30\x77\xda\x7c\x07\x5d\x80\xeb\x1c\xe6\x0c\x62\x96\x1c\x1c\xd6\x75\x92\xac\x56\xc0\xb1\x10\x0a\x21\xe5\x82\x49\xcc\xdd\xa1\xbd\x95\x87\x55\xc9\x99\xc3\x14\xea\x9a\x24\xf6\xca\x9b\x05\x4c\xa6\xb0\x97\xcd\x73\x5d\x62\xf6\x91\xe5\x37\x6c\x81\x0d\xf7\xaa\x12\x92\xbc\x9d\x4c\xa1\x64\x36\x67\xb2\x15\x7c\x13\x39\x51\xd0\x60\x8e\xe2\x2e\x48\xb6\xcf\xad\x7a\x14\x5a\x56\x8e\x39\xa1\x95\x37\x67\x84\x72\x1d\xbd\x34\x6b\xb8\xad\x6b\x5a\x21\x49\x5e\x33\x3b\xaf\x8a\x42\xdc\xaf\xed\xa5\x1f\x54\x73\x83\x97\xb0\xf7\x0f\x1a\x4d\x82\x47\x50\xd7\xab\x15\x88\x22\xa8\xfa\x97\xc0\x9c\x42\xaa\x84\x4c\x03\x09\x15\x6f\x55\x0d\x3a\xd2\x4c\x55\xba\x4b\x97\xb8\x53\x48\x2f\x95\xe6\xb8\xa9\x9c\x14\x95\xca\x61\xb8\x71\xf3\xba\x86\x83\x2e\x66\x75\x3d\x02\x7b\x2b\xe7\xec\x0e\x87\xb9\xbb\x87\x5c\x2b\x87\xf7\x2e\x3b\x09\xff\x47\x8d\xba\x23\xcd\x8d\xb3\xbd\x99\xec\x9c\x2d\xa3\x23\x28\x2d\x3d\x09\xe5\x5a\x0f\xc6\x80\xc6\xd0\x9f\x36\x23\x58\x25\x83\x4b\x5b\x62\x4e\x57\xd9\xb7\xb7\x72\x61\x58\x79\x9d\x7d\xf6\x81\x9e\x97\x98\xaf\x92\xc1\xe0\x5c\x73\x9c\x74\xb8\xf4\xde\xf0\x06\x17\xec\x4a\xe2\x04\xfc\xb1\xeb\x0c\xc8\x3c\x79\x4c\x02\x27\x5a\x56\x4b\x65\xfb\x22\x91\xe1\x85\x66\xa7\xdd\x03\xde\x0a\x94\xbc\x3d\x61\x70\xf1\xbd\xc4\x09\x14\x44\xcc\xbc\x91\xd9\x69\x46\x34\x82\xc3\xba\x78\x57\x6f\x26\x1e\xd6\x3f\xab\x51\xf3\x1a\x4c\xb9\x46\xc1\xff\xd2\x4f\x9d\x0c\x28\xaa\x6b\x20\x93\xc1\x40\xf0\x31\xe8\x1b\x42\x66\x23\x03\x3b\xe6\xde\x47\xda\xef\x3e\x12\xc3\x11\x29\x15\xf0\x42\xdf\x80\xf7\xdc\xa0\xab\x8c\x82\x36\x97\x08\xfb\xfd\x2f\x4c\x0a\xee\xb5\xce\x28\x04\x2b\xf2\x7f\x02\xe9\xec\x34\xf5\x81\x99\x40\xb1\x74\x99\x67\x15\xc3\x74\x29\xac\x15\x6a\x01\xdd\xa8\x66\xb3\x53\x28\xb4\x81\x58\x8d\x23\x72\x95\xfe\x7c\x1c\x7d\x70\xc8\xb5\x2f\x4c\x56\x08\x53\x10\x3c\xdc\x2c\x26\x42\xf0\xb0\xb4\xbb\x6e\x55\x1a\xe4\x22\x67\x0e\xed\x6b\x90\xa8\x86\xa5\x1d\xc1\x6f\x70\x14\xee\x12\xac\x7f\x6c\x44\x60\x0a\x94\xc7\x43\x8b\xd2\xb7\x13\x38\xb0\xb7\x32\x9b\xc7\xb7\x51\xd0\x19\x90\x9b\xc2\xd7\x35\x53\x0b\xa4\x63\x03\x7d\x50\xda\xaf\xe2\x5b\xab\x3c\xf2\xc4\x3a\x89\x3f\x31\x16\xb1\x5e\xfc\x73\xd0\xdf\x2b\x42\xbf\xf1\xf9\x61\xc3\x6d\x9a\xb0\x69\x03\x43\xa5\x1d\xec\x15\xd9\x6c\x49\xb7\xba\x92\x38\xa2\xb7\x90\xcb\xa7\x58\xb0\x4a\xba\xa8\x43\x18\xdc\x11\x40\x8f\x05\xb8\xe8\x85\xf7\x35\x34\x91\x6d\xf0\x08\x9e\x64\x73\x5f\xed\xac\x2c\x51\xf1\xe1\x36\x67\xfc\x70\x66\xf7\x73\xbb\x78\x28\xb3\x07\x03\x1f\xd1\x49\xf4\x3b\xd2\x1e\xcb\xf7\xa2\x97\xed\x83\x41\xdd\x81\xba\x41\x8e\x29\xde\x9e\x7b\x5e\x2d\xd1\x88\x3c\x2a\xdf\xa1\x71\xc8\x2f\xf4\x1b\x66\x45\xde\x40\xf7\x24\x76\xc7\x9c\x23\x0f\x0e\xcc\x9d\xa9\x72\xe7\x2f\xdd\x03\x70\x13\xc1\x63\xce\x1f\x40\xf0\x98\xf3\x47\x11\x7c\x0e\x84\x3b\x31\x7c\x36\x88\x0d\x8a\x1d\x18\x9b\x5c\xdd\xf5\x46\x3d\xa5\xc8\x3e\x94\x84\x0f\x93\x9d\x0c\xdc\x9d\x74\x9b\x98\x9d\x48\x64\x06\xf9\x70\xb4\x33\xef\x3c\xf7\x01\xdc\x3c\xef\x57\xe5\xde\x7f\xc9\xb3\xed\x5a\xde\x51\xd7\x97\x63\xd8\xc3\x50\xdb\x67\x7c\x81\xb6\x6d\x54\xbb\x20\xc2\xb6\x2e\x23\x38\x3e\xb5\x02\x3e\x64\xf3\x6f\xe1\xae\x01\xef\x1d\x9d\xb3\x07\x29\x19\x4c\xc9\x7c\xdd\x84\x0b\x1c\x2e\x4b\x49\x4d\x6c\x63\xba\xe1\x58\xa0\x97\xcd\x76\x86\x32\x80\xeb\xdd\xdb\x8d\x7b\x87\x35\x06\xb2\x34\x8a\x8d\x39\x26\x81\xef\x4e\x98\x7d\x56\xe2\xb6\x6a\xbc\xf1\x64\x8e\x3b\xdb\xf1\x27\x5c\xea\xbb\x50\x49\xb8\x95\x15\xb3\x53\x4b\xc5\x44\x4d\xda\xab\x87\x3e\xbd\xbf\x0f\x2f\x9e\x0b\xd8\xa3\x88\xa5\xf4\x31\xb1\x29\x38\x53\x21\xa4\x7f\xa1\xd1\x69\xfb\x25\x0b\x71\xfe\x71\x30\xb7\xd0\xfc\x49\x38\x5b\x3c\x5b\x4b\x8f\x21\xf8\xe3\xd0\x3d\x99\x3c\x4f\x42\xf1\x2b\xd2\x6a\x47\x13\x6c\x19\x1b\x29\xb5\x5d\x46\x1b\x63\x4b\x67\x34\x9c\xc2\xfe\xc6\x3c\x98\x6b\x55\x88\x45\x28\xe3\xce\xf0\x99\x05\xfa\x7a\x88\x38\xb6\x56\x2c\x14\x4c\x61\x6d\x2b\x63\x9e\xe6\x1b\xa8\x6d\x05\xe7\x39\x8b\xa4\x4d\x61\xdb\xd2\x69\x28\x7a\xd4\x5d\x51\xf8\x79\x74\x0a\x5b\xd3\x27\x01\x4e\xc3\xef\xb8\xe7\x2d\x37\xf4\x34\x06\xef\xc2\xe8\xb5\x57\x7f\x31\x05\x25\x24\xc5\xb1\x37\xec\xac\xdd\x1a\x3f\x7c\x92\xfd\xe9\xa3\x3a\x89\x78\xd9\x7c\x12\xd1\x98\x6c\x78\xd0\x19\x98\xdd\x5b\x5a\xce\xfc\x54\xd7\xf9\x08\x06\x6f\xf6\x37\xd8\xab\x5e\x8f\x7d\xc7\xae\x50\xfa\xb9\x28\xdc\x4b\x14\x90\xa3\x31\xcd\x59\xc2\xce\xff\x7c\xe7\x3b\xb0\x61\x42\x39\x6f\x64\x88\xa6\x7f\x0e\x29\xc5\x8e\xb4\x6b\x30\xf5\xdc\x3a\xe9\xf2\x1a\xd4\x94\x90\x89\xdf\xab\x9a\x15\xe6\x81\xfd\xb0\x4d\xf5\x26\xd0\x4d\x53\x0f\x7b\x1f\xe5\x32\xbc\x24\x1e\x49\x6d\x6e\x1c\xc4\x6b\xbe\x4d\x9f\x50\x4e\xd6\x31\x0a\x45\xfc\x09\xa5\xff\x3a\xc5\x4f\xcc\x8c\x66\x13\x1b\xf7\x0e\xcc\x66\x36\x12\x22\xfb\x81\xa5\x24\x08\x7b\xe6\xd6\x27\xab\xbb\xa4\x50\x76\x62\xf6\xfe\xd5\xfb\xb8\xca\xf5\x2d\x7c\xfc\xa3\xa3\xbe\x5e\xb2\xbe\x7e\xb3\xce\x08\xb5\xe8\x87\x30\xa8\x85\x43\x3a\xaa\xb0\x5e\x0b\xc9\x89\x37\x82\x8b\xe6\x46\xf4\xdc\x5e\xc6\x2c\xd0\x4d\xb6\xc0\x0a\xd4\x55\x58\x9e\x08\xb9\x67\x2c\x50\x18\x3e\xf4\x3f\xb6\x46\x45\xe1\x3e\x8c\xd1\xc4\x53\x2b\x95\xef\xa8\x4d\x0a\xf8\x52\x0b\xf5\x42\xbb\xc1\xe5\x18\x6e\xd6\xeb\x41\xe8\xe3\x21\x63\xf9\x82\x02\x45\x57\x8c\x3a\x6d\x5f\xec\xb1\xc6\x70\xd3\x6f\x8b\x9d\xc7\x7f\x03\x00\x00\xff\xff\xe9\xe3\x9b\x04\x91\x11\x00\x00") func templateDialectSqlUpdateTmplBytes() ([]byte, error) { return bindataRead( diff --git a/entc/gen/template/builder/delete.tmpl b/entc/gen/template/builder/delete.tmpl index 72e9750c8..781c90ab2 100644 --- a/entc/gen/template/builder/delete.tmpl +++ b/entc/gen/template/builder/delete.tmpl @@ -25,13 +25,12 @@ type {{ $builder }} struct { config hooks []Hook mutation *{{ $.MutationName }} - predicates []predicate.{{ $.Name }} } // Where adds a new predicate to the delete builder. func ({{ $receiver }} *{{ $builder }}) Where(ps ...predicate.{{ $.Name }}) *{{ $builder }} { - {{ $receiver}}.predicates = append({{ $receiver}}.predicates, ps...) + {{ $mutation }}.predicates = append({{ $mutation }}.predicates, ps...) return {{ $receiver }} } diff --git a/entc/gen/template/builder/mutation.tmpl b/entc/gen/template/builder/mutation.tmpl index b8ce874b4..24dad8f9e 100644 --- a/entc/gen/template/builder/mutation.tmpl +++ b/entc/gen/template/builder/mutation.tmpl @@ -63,6 +63,7 @@ type {{ $mutation }} struct { {{- end }} done bool oldValue func(context.Context) (*{{ $n.Name }}, error) + predicates []predicate.{{ $n.Name }} } var _ ent.Mutation = (*{{ $mutation }})(nil) diff --git a/entc/gen/template/builder/update.tmpl b/entc/gen/template/builder/update.tmpl index 5af9dd1e6..e2a4c30f4 100644 --- a/entc/gen/template/builder/update.tmpl +++ b/entc/gen/template/builder/update.tmpl @@ -26,12 +26,11 @@ import ( type {{ $builder }} struct { config {{- template "update/fields" $ -}} - predicates []predicate.{{ $.Name }} } // Where adds a new predicate for the builder. func ({{ $receiver}} *{{ $builder }}) Where(ps ...predicate.{{ $.Name }}) *{{ $builder }} { - {{ $receiver}}.predicates = append({{ $receiver}}.predicates, ps...) + {{ $mutation }}.predicates = append({{ $mutation }}.predicates, ps...) return {{ $receiver }} } diff --git a/entc/gen/template/dialect/gremlin/delete.tmpl b/entc/gen/template/dialect/gremlin/delete.tmpl index 400521292..850590aa9 100644 --- a/entc/gen/template/dialect/gremlin/delete.tmpl +++ b/entc/gen/template/dialect/gremlin/delete.tmpl @@ -7,6 +7,7 @@ in the LICENSE file in the root directory of this source tree. {{ define "dialect/gremlin/delete" }} {{ $builder := pascal $.Scope.Builder }} {{ $receiver := receiver $builder }} +{{ $mutation := print $receiver ".mutation" }} func ({{ $receiver}} *{{ $builder }}) gremlinExec(ctx context.Context) (int, error) { res := &gremlin.Response{} @@ -20,7 +21,7 @@ func ({{ $receiver}} *{{ $builder }}) gremlinExec(ctx context.Context) (int, err func ({{ $receiver }} *{{ $builder }}) gremlin() *dsl.Traversal { t := g.V().HasLabel({{ $.Package }}.Label) - for _, p := range {{ $receiver }}.predicates { + for _, p := range {{ $mutation }}.predicates { p(t) } return t.SideEffect(__.Drop()).Count() diff --git a/entc/gen/template/dialect/gremlin/update.tmpl b/entc/gen/template/dialect/gremlin/update.tmpl index 29af0fcca..24d9be915 100644 --- a/entc/gen/template/dialect/gremlin/update.tmpl +++ b/entc/gen/template/dialect/gremlin/update.tmpl @@ -54,7 +54,7 @@ func ({{ $receiver }} *{{ $builder }}) gremlin({{ if $one }}id {{ $.ID.Type }}{{ {{- /* general update for N vertices */}} {{- else }} v := g.V().HasLabel({{ $.Package }}.Label) - for _, p := range {{ $receiver }}.predicates { + for _, p := range {{ $mutation }}.predicates { p(v) } {{- end }} diff --git a/entc/gen/template/dialect/sql/delete.tmpl b/entc/gen/template/dialect/sql/delete.tmpl index 90d604af3..9aab59bfa 100644 --- a/entc/gen/template/dialect/sql/delete.tmpl +++ b/entc/gen/template/dialect/sql/delete.tmpl @@ -7,6 +7,7 @@ in the LICENSE file in the root directory of this source tree. {{ define "dialect/sql/delete" }} {{ $builder := pascal $.Scope.Builder }} {{ $receiver := receiver $builder }} +{{ $mutation := print $receiver ".mutation" }} func ({{ $receiver}} *{{ $builder }}) sqlExec(ctx context.Context) (int, error) { _spec := &sqlgraph.DeleteSpec{ @@ -18,7 +19,7 @@ func ({{ $receiver}} *{{ $builder }}) sqlExec(ctx context.Context) (int, error) }, }, } - if ps := {{ $receiver }}.predicates; len(ps) > 0 { + if ps := {{ $mutation }}.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/gen/template/dialect/sql/update.tmpl b/entc/gen/template/dialect/sql/update.tmpl index 3f3099272..058137b9e 100644 --- a/entc/gen/template/dialect/sql/update.tmpl +++ b/entc/gen/template/dialect/sql/update.tmpl @@ -31,7 +31,7 @@ func ({{ $receiver }} *{{ $builder }}) sqlSave(ctx context.Context) ({{ $ret }} } _spec.Node.ID.Value = id {{- else }} - if ps := {{ $receiver }}.predicates; len(ps) > 0 { + if ps := {{ $mutation }}.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/config/ent/mutation.go b/entc/integration/config/ent/mutation.go index d7cb82f86..14b2c8602 100644 --- a/entc/integration/config/ent/mutation.go +++ b/entc/integration/config/ent/mutation.go @@ -12,6 +12,7 @@ import ( "sync" "github.com/facebook/ent" + "github.com/facebook/ent/entc/integration/config/ent/predicate" ) const ( @@ -36,6 +37,7 @@ type UserMutation struct { clearedFields map[string]struct{} done bool oldValue func(context.Context) (*User, error) + predicates []predicate.User } var _ ent.Mutation = (*UserMutation)(nil) diff --git a/entc/integration/config/ent/user_delete.go b/entc/integration/config/ent/user_delete.go index 089a29ffa..218c22bd3 100644 --- a/entc/integration/config/ent/user_delete.go +++ b/entc/integration/config/ent/user_delete.go @@ -20,14 +20,13 @@ import ( // UserDelete is the builder for deleting a User entity. type UserDelete struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate to the delete builder. func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete { - ud.predicates = append(ud.predicates, ps...) + ud.mutation.predicates = append(ud.mutation.predicates, ps...) return ud } @@ -79,7 +78,7 @@ func (ud *UserDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := ud.predicates; len(ps) > 0 { + if ps := ud.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/config/ent/user_update.go b/entc/integration/config/ent/user_update.go index 6d4d31972..10be50cfa 100644 --- a/entc/integration/config/ent/user_update.go +++ b/entc/integration/config/ent/user_update.go @@ -20,14 +20,13 @@ import ( // UserUpdate is the builder for updating User entities. type UserUpdate struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate for the builder. func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate { - uu.predicates = append(uu.predicates, ps...) + uu.mutation.predicates = append(uu.mutation.predicates, ps...) return uu } @@ -98,7 +97,7 @@ func (uu *UserUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := uu.predicates; len(ps) > 0 { + if ps := uu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/customid/ent/blob_delete.go b/entc/integration/customid/ent/blob_delete.go index 8ca020916..6d57a6176 100644 --- a/entc/integration/customid/ent/blob_delete.go +++ b/entc/integration/customid/ent/blob_delete.go @@ -20,14 +20,13 @@ import ( // BlobDelete is the builder for deleting a Blob entity. type BlobDelete struct { config - hooks []Hook - mutation *BlobMutation - predicates []predicate.Blob + hooks []Hook + mutation *BlobMutation } // Where adds a new predicate to the delete builder. func (bd *BlobDelete) Where(ps ...predicate.Blob) *BlobDelete { - bd.predicates = append(bd.predicates, ps...) + bd.mutation.predicates = append(bd.mutation.predicates, ps...) return bd } @@ -79,7 +78,7 @@ func (bd *BlobDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := bd.predicates; len(ps) > 0 { + if ps := bd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/customid/ent/blob_update.go b/entc/integration/customid/ent/blob_update.go index d8561b070..7a7d350db 100644 --- a/entc/integration/customid/ent/blob_update.go +++ b/entc/integration/customid/ent/blob_update.go @@ -21,14 +21,13 @@ import ( // BlobUpdate is the builder for updating Blob entities. type BlobUpdate struct { config - hooks []Hook - mutation *BlobMutation - predicates []predicate.Blob + hooks []Hook + mutation *BlobMutation } // Where adds a new predicate for the builder. func (bu *BlobUpdate) Where(ps ...predicate.Blob) *BlobUpdate { - bu.predicates = append(bu.predicates, ps...) + bu.mutation.predicates = append(bu.mutation.predicates, ps...) return bu } @@ -166,7 +165,7 @@ func (bu *BlobUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := bu.predicates; len(ps) > 0 { + if ps := bu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/customid/ent/car_delete.go b/entc/integration/customid/ent/car_delete.go index efb22c6a4..9f75049d1 100644 --- a/entc/integration/customid/ent/car_delete.go +++ b/entc/integration/customid/ent/car_delete.go @@ -20,14 +20,13 @@ import ( // CarDelete is the builder for deleting a Car entity. type CarDelete struct { config - hooks []Hook - mutation *CarMutation - predicates []predicate.Car + hooks []Hook + mutation *CarMutation } // Where adds a new predicate to the delete builder. func (cd *CarDelete) Where(ps ...predicate.Car) *CarDelete { - cd.predicates = append(cd.predicates, ps...) + cd.mutation.predicates = append(cd.mutation.predicates, ps...) return cd } @@ -79,7 +78,7 @@ func (cd *CarDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := cd.predicates; len(ps) > 0 { + if ps := cd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/customid/ent/car_update.go b/entc/integration/customid/ent/car_update.go index 1f0a6a240..0fa28bce6 100644 --- a/entc/integration/customid/ent/car_update.go +++ b/entc/integration/customid/ent/car_update.go @@ -21,14 +21,13 @@ import ( // CarUpdate is the builder for updating Car entities. type CarUpdate struct { config - hooks []Hook - mutation *CarMutation - predicates []predicate.Car + hooks []Hook + mutation *CarMutation } // Where adds a new predicate for the builder. func (cu *CarUpdate) Where(ps ...predicate.Car) *CarUpdate { - cu.predicates = append(cu.predicates, ps...) + cu.mutation.predicates = append(cu.mutation.predicates, ps...) return cu } @@ -205,7 +204,7 @@ func (cu *CarUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := cu.predicates; len(ps) > 0 { + if ps := cu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/customid/ent/group_delete.go b/entc/integration/customid/ent/group_delete.go index 4348286a8..f096a62fa 100644 --- a/entc/integration/customid/ent/group_delete.go +++ b/entc/integration/customid/ent/group_delete.go @@ -20,14 +20,13 @@ import ( // GroupDelete is the builder for deleting a Group entity. type GroupDelete struct { config - hooks []Hook - mutation *GroupMutation - predicates []predicate.Group + hooks []Hook + mutation *GroupMutation } // Where adds a new predicate to the delete builder. func (gd *GroupDelete) Where(ps ...predicate.Group) *GroupDelete { - gd.predicates = append(gd.predicates, ps...) + gd.mutation.predicates = append(gd.mutation.predicates, ps...) return gd } @@ -79,7 +78,7 @@ func (gd *GroupDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := gd.predicates; len(ps) > 0 { + if ps := gd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/customid/ent/group_update.go b/entc/integration/customid/ent/group_update.go index 41cb5b49b..a83f826d4 100644 --- a/entc/integration/customid/ent/group_update.go +++ b/entc/integration/customid/ent/group_update.go @@ -21,14 +21,13 @@ import ( // GroupUpdate is the builder for updating Group entities. type GroupUpdate struct { config - hooks []Hook - mutation *GroupMutation - predicates []predicate.Group + hooks []Hook + mutation *GroupMutation } // Where adds a new predicate for the builder. func (gu *GroupUpdate) Where(ps ...predicate.Group) *GroupUpdate { - gu.predicates = append(gu.predicates, ps...) + gu.mutation.predicates = append(gu.mutation.predicates, ps...) return gu } @@ -135,7 +134,7 @@ func (gu *GroupUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := gu.predicates; len(ps) > 0 { + if ps := gu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/customid/ent/mutation.go b/entc/integration/customid/ent/mutation.go index facfb39f8..a3bdb8e16 100644 --- a/entc/integration/customid/ent/mutation.go +++ b/entc/integration/customid/ent/mutation.go @@ -15,6 +15,7 @@ import ( "github.com/facebook/ent/entc/integration/customid/ent/car" "github.com/facebook/ent/entc/integration/customid/ent/group" "github.com/facebook/ent/entc/integration/customid/ent/pet" + "github.com/facebook/ent/entc/integration/customid/ent/predicate" "github.com/facebook/ent/entc/integration/customid/ent/user" "github.com/google/uuid" @@ -53,6 +54,7 @@ type BlobMutation struct { clearedlinks bool done bool oldValue func(context.Context) (*Blob, error) + predicates []predicate.Blob } var _ ent.Mutation = (*BlobMutation)(nil) @@ -504,6 +506,7 @@ type CarMutation struct { clearedowner bool done bool oldValue func(context.Context) (*Car, error) + predicates []predicate.Car } var _ ent.Mutation = (*CarMutation)(nil) @@ -1090,6 +1093,7 @@ type GroupMutation struct { clearedusers bool done bool oldValue func(context.Context) (*Group, error) + predicates []predicate.Group } var _ ent.Mutation = (*GroupMutation)(nil) @@ -1425,6 +1429,7 @@ type PetMutation struct { clearedbest_friend bool done bool oldValue func(context.Context) (*Pet, error) + predicates []predicate.Pet } var _ ent.Mutation = (*PetMutation)(nil) @@ -1954,6 +1959,7 @@ type UserMutation struct { clearedpets bool done bool oldValue func(context.Context) (*User, error) + predicates []predicate.User } var _ ent.Mutation = (*UserMutation)(nil) diff --git a/entc/integration/customid/ent/pet_delete.go b/entc/integration/customid/ent/pet_delete.go index 87f5f8b01..c63dc5486 100644 --- a/entc/integration/customid/ent/pet_delete.go +++ b/entc/integration/customid/ent/pet_delete.go @@ -20,14 +20,13 @@ import ( // PetDelete is the builder for deleting a Pet entity. type PetDelete struct { config - hooks []Hook - mutation *PetMutation - predicates []predicate.Pet + hooks []Hook + mutation *PetMutation } // Where adds a new predicate to the delete builder. func (pd *PetDelete) Where(ps ...predicate.Pet) *PetDelete { - pd.predicates = append(pd.predicates, ps...) + pd.mutation.predicates = append(pd.mutation.predicates, ps...) return pd } @@ -79,7 +78,7 @@ func (pd *PetDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := pd.predicates; len(ps) > 0 { + if ps := pd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/customid/ent/pet_update.go b/entc/integration/customid/ent/pet_update.go index e45aa85eb..96475f37f 100644 --- a/entc/integration/customid/ent/pet_update.go +++ b/entc/integration/customid/ent/pet_update.go @@ -22,14 +22,13 @@ import ( // PetUpdate is the builder for updating Pet entities. type PetUpdate struct { config - hooks []Hook - mutation *PetMutation - predicates []predicate.Pet + hooks []Hook + mutation *PetMutation } // Where adds a new predicate for the builder. func (pu *PetUpdate) Where(ps ...predicate.Pet) *PetUpdate { - pu.predicates = append(pu.predicates, ps...) + pu.mutation.predicates = append(pu.mutation.predicates, ps...) return pu } @@ -222,7 +221,7 @@ func (pu *PetUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := pu.predicates; len(ps) > 0 { + if ps := pu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/customid/ent/user_delete.go b/entc/integration/customid/ent/user_delete.go index 6bfd9e33b..0c211d17b 100644 --- a/entc/integration/customid/ent/user_delete.go +++ b/entc/integration/customid/ent/user_delete.go @@ -20,14 +20,13 @@ import ( // UserDelete is the builder for deleting a User entity. type UserDelete struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate to the delete builder. func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete { - ud.predicates = append(ud.predicates, ps...) + ud.mutation.predicates = append(ud.mutation.predicates, ps...) return ud } @@ -79,7 +78,7 @@ func (ud *UserDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := ud.predicates; len(ps) > 0 { + if ps := ud.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/customid/ent/user_update.go b/entc/integration/customid/ent/user_update.go index 7cf950672..261155441 100644 --- a/entc/integration/customid/ent/user_update.go +++ b/entc/integration/customid/ent/user_update.go @@ -22,14 +22,13 @@ import ( // UserUpdate is the builder for updating User entities. type UserUpdate struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate for the builder. func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate { - uu.predicates = append(uu.predicates, ps...) + uu.mutation.predicates = append(uu.mutation.predicates, ps...) return uu } @@ -233,7 +232,7 @@ func (uu *UserUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := uu.predicates; len(ps) > 0 { + if ps := uu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/ent/card_delete.go b/entc/integration/ent/card_delete.go index 6d920acec..4ca4ffbf6 100644 --- a/entc/integration/ent/card_delete.go +++ b/entc/integration/ent/card_delete.go @@ -20,14 +20,13 @@ import ( // CardDelete is the builder for deleting a Card entity. type CardDelete struct { config - hooks []Hook - mutation *CardMutation - predicates []predicate.Card + hooks []Hook + mutation *CardMutation } // Where adds a new predicate to the delete builder. func (cd *CardDelete) Where(ps ...predicate.Card) *CardDelete { - cd.predicates = append(cd.predicates, ps...) + cd.mutation.predicates = append(cd.mutation.predicates, ps...) return cd } @@ -79,7 +78,7 @@ func (cd *CardDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := cd.predicates; len(ps) > 0 { + if ps := cd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/ent/card_update.go b/entc/integration/ent/card_update.go index 798c1dde9..1605404c8 100644 --- a/entc/integration/ent/card_update.go +++ b/entc/integration/ent/card_update.go @@ -22,14 +22,13 @@ import ( // CardUpdate is the builder for updating Card entities. type CardUpdate struct { config - hooks []Hook - mutation *CardMutation - predicates []predicate.Card + hooks []Hook + mutation *CardMutation } // Where adds a new predicate for the builder. func (cu *CardUpdate) Where(ps ...predicate.Card) *CardUpdate { - cu.predicates = append(cu.predicates, ps...) + cu.mutation.predicates = append(cu.mutation.predicates, ps...) return cu } @@ -206,7 +205,7 @@ func (cu *CardUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := cu.predicates; len(ps) > 0 { + if ps := cu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/ent/comment_delete.go b/entc/integration/ent/comment_delete.go index a1606e3ae..ea4e06157 100644 --- a/entc/integration/ent/comment_delete.go +++ b/entc/integration/ent/comment_delete.go @@ -20,14 +20,13 @@ import ( // CommentDelete is the builder for deleting a Comment entity. type CommentDelete struct { config - hooks []Hook - mutation *CommentMutation - predicates []predicate.Comment + hooks []Hook + mutation *CommentMutation } // Where adds a new predicate to the delete builder. func (cd *CommentDelete) Where(ps ...predicate.Comment) *CommentDelete { - cd.predicates = append(cd.predicates, ps...) + cd.mutation.predicates = append(cd.mutation.predicates, ps...) return cd } @@ -79,7 +78,7 @@ func (cd *CommentDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := cd.predicates; len(ps) > 0 { + if ps := cd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/ent/comment_update.go b/entc/integration/ent/comment_update.go index aefeb70c8..88d610c20 100644 --- a/entc/integration/ent/comment_update.go +++ b/entc/integration/ent/comment_update.go @@ -20,14 +20,13 @@ import ( // CommentUpdate is the builder for updating Comment entities. type CommentUpdate struct { config - hooks []Hook - mutation *CommentMutation - predicates []predicate.Comment + hooks []Hook + mutation *CommentMutation } // Where adds a new predicate for the builder. func (cu *CommentUpdate) Where(ps ...predicate.Comment) *CommentUpdate { - cu.predicates = append(cu.predicates, ps...) + cu.mutation.predicates = append(cu.mutation.predicates, ps...) return cu } @@ -151,7 +150,7 @@ func (cu *CommentUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := cu.predicates; len(ps) > 0 { + if ps := cu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/ent/fieldtype_delete.go b/entc/integration/ent/fieldtype_delete.go index 80c42e168..ea56bcff8 100644 --- a/entc/integration/ent/fieldtype_delete.go +++ b/entc/integration/ent/fieldtype_delete.go @@ -20,14 +20,13 @@ import ( // FieldTypeDelete is the builder for deleting a FieldType entity. type FieldTypeDelete struct { config - hooks []Hook - mutation *FieldTypeMutation - predicates []predicate.FieldType + hooks []Hook + mutation *FieldTypeMutation } // Where adds a new predicate to the delete builder. func (ftd *FieldTypeDelete) Where(ps ...predicate.FieldType) *FieldTypeDelete { - ftd.predicates = append(ftd.predicates, ps...) + ftd.mutation.predicates = append(ftd.mutation.predicates, ps...) return ftd } @@ -79,7 +78,7 @@ func (ftd *FieldTypeDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := ftd.predicates; len(ps) > 0 { + if ps := ftd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/ent/fieldtype_update.go b/entc/integration/ent/fieldtype_update.go index a55a27f3b..23aec7bb1 100644 --- a/entc/integration/ent/fieldtype_update.go +++ b/entc/integration/ent/fieldtype_update.go @@ -25,14 +25,13 @@ import ( // FieldTypeUpdate is the builder for updating FieldType entities. type FieldTypeUpdate struct { config - hooks []Hook - mutation *FieldTypeMutation - predicates []predicate.FieldType + hooks []Hook + mutation *FieldTypeMutation } // Where adds a new predicate for the builder. func (ftu *FieldTypeUpdate) Where(ps ...predicate.FieldType) *FieldTypeUpdate { - ftu.predicates = append(ftu.predicates, ps...) + ftu.mutation.predicates = append(ftu.mutation.predicates, ps...) return ftu } @@ -1096,7 +1095,7 @@ func (ftu *FieldTypeUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := ftu.predicates; len(ps) > 0 { + if ps := ftu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/ent/file_delete.go b/entc/integration/ent/file_delete.go index 2266778bb..5817b2eb8 100644 --- a/entc/integration/ent/file_delete.go +++ b/entc/integration/ent/file_delete.go @@ -20,14 +20,13 @@ import ( // FileDelete is the builder for deleting a File entity. type FileDelete struct { config - hooks []Hook - mutation *FileMutation - predicates []predicate.File + hooks []Hook + mutation *FileMutation } // Where adds a new predicate to the delete builder. func (fd *FileDelete) Where(ps ...predicate.File) *FileDelete { - fd.predicates = append(fd.predicates, ps...) + fd.mutation.predicates = append(fd.mutation.predicates, ps...) return fd } @@ -79,7 +78,7 @@ func (fd *FileDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := fd.predicates; len(ps) > 0 { + if ps := fd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/ent/file_update.go b/entc/integration/ent/file_update.go index bef7a49e5..b230f57da 100644 --- a/entc/integration/ent/file_update.go +++ b/entc/integration/ent/file_update.go @@ -23,14 +23,13 @@ import ( // FileUpdate is the builder for updating File entities. type FileUpdate struct { config - hooks []Hook - mutation *FileMutation - predicates []predicate.File + hooks []Hook + mutation *FileMutation } // Where adds a new predicate for the builder. func (fu *FileUpdate) Where(ps ...predicate.File) *FileUpdate { - fu.predicates = append(fu.predicates, ps...) + fu.mutation.predicates = append(fu.mutation.predicates, ps...) return fu } @@ -290,7 +289,7 @@ func (fu *FileUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := fu.predicates; len(ps) > 0 { + if ps := fu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/ent/filetype_delete.go b/entc/integration/ent/filetype_delete.go index 1ab322032..033d3393c 100644 --- a/entc/integration/ent/filetype_delete.go +++ b/entc/integration/ent/filetype_delete.go @@ -20,14 +20,13 @@ import ( // FileTypeDelete is the builder for deleting a FileType entity. type FileTypeDelete struct { config - hooks []Hook - mutation *FileTypeMutation - predicates []predicate.FileType + hooks []Hook + mutation *FileTypeMutation } // Where adds a new predicate to the delete builder. func (ftd *FileTypeDelete) Where(ps ...predicate.FileType) *FileTypeDelete { - ftd.predicates = append(ftd.predicates, ps...) + ftd.mutation.predicates = append(ftd.mutation.predicates, ps...) return ftd } @@ -79,7 +78,7 @@ func (ftd *FileTypeDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := ftd.predicates; len(ps) > 0 { + if ps := ftd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/ent/filetype_update.go b/entc/integration/ent/filetype_update.go index fd8792e58..32f51a1b5 100644 --- a/entc/integration/ent/filetype_update.go +++ b/entc/integration/ent/filetype_update.go @@ -21,14 +21,13 @@ import ( // FileTypeUpdate is the builder for updating FileType entities. type FileTypeUpdate struct { config - hooks []Hook - mutation *FileTypeMutation - predicates []predicate.FileType + hooks []Hook + mutation *FileTypeMutation } // Where adds a new predicate for the builder. func (ftu *FileTypeUpdate) Where(ps ...predicate.FileType) *FileTypeUpdate { - ftu.predicates = append(ftu.predicates, ps...) + ftu.mutation.predicates = append(ftu.mutation.predicates, ps...) return ftu } @@ -190,7 +189,7 @@ func (ftu *FileTypeUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := ftu.predicates; len(ps) > 0 { + if ps := ftu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/ent/goods_delete.go b/entc/integration/ent/goods_delete.go index 452eeb2a8..f48a13cca 100644 --- a/entc/integration/ent/goods_delete.go +++ b/entc/integration/ent/goods_delete.go @@ -20,14 +20,13 @@ import ( // GoodsDelete is the builder for deleting a Goods entity. type GoodsDelete struct { config - hooks []Hook - mutation *GoodsMutation - predicates []predicate.Goods + hooks []Hook + mutation *GoodsMutation } // Where adds a new predicate to the delete builder. func (gd *GoodsDelete) Where(ps ...predicate.Goods) *GoodsDelete { - gd.predicates = append(gd.predicates, ps...) + gd.mutation.predicates = append(gd.mutation.predicates, ps...) return gd } @@ -79,7 +78,7 @@ func (gd *GoodsDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := gd.predicates; len(ps) > 0 { + if ps := gd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/ent/goods_update.go b/entc/integration/ent/goods_update.go index 2584398ea..5a19f68a4 100644 --- a/entc/integration/ent/goods_update.go +++ b/entc/integration/ent/goods_update.go @@ -20,14 +20,13 @@ import ( // GoodsUpdate is the builder for updating Goods entities. type GoodsUpdate struct { config - hooks []Hook - mutation *GoodsMutation - predicates []predicate.Goods + hooks []Hook + mutation *GoodsMutation } // Where adds a new predicate for the builder. func (gu *GoodsUpdate) Where(ps ...predicate.Goods) *GoodsUpdate { - gu.predicates = append(gu.predicates, ps...) + gu.mutation.predicates = append(gu.mutation.predicates, ps...) return gu } @@ -98,7 +97,7 @@ func (gu *GoodsUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := gu.predicates; len(ps) > 0 { + if ps := gu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/ent/group_delete.go b/entc/integration/ent/group_delete.go index ad0cd8f2e..4f3277c31 100644 --- a/entc/integration/ent/group_delete.go +++ b/entc/integration/ent/group_delete.go @@ -20,14 +20,13 @@ import ( // GroupDelete is the builder for deleting a Group entity. type GroupDelete struct { config - hooks []Hook - mutation *GroupMutation - predicates []predicate.Group + hooks []Hook + mutation *GroupMutation } // Where adds a new predicate to the delete builder. func (gd *GroupDelete) Where(ps ...predicate.Group) *GroupDelete { - gd.predicates = append(gd.predicates, ps...) + gd.mutation.predicates = append(gd.mutation.predicates, ps...) return gd } @@ -79,7 +78,7 @@ func (gd *GroupDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := gd.predicates; len(ps) > 0 { + if ps := gd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/ent/group_update.go b/entc/integration/ent/group_update.go index 9be03fdb0..3c0edf3b5 100644 --- a/entc/integration/ent/group_update.go +++ b/entc/integration/ent/group_update.go @@ -25,14 +25,13 @@ import ( // GroupUpdate is the builder for updating Group entities. type GroupUpdate struct { config - hooks []Hook - mutation *GroupMutation - predicates []predicate.Group + hooks []Hook + mutation *GroupMutation } // Where adds a new predicate for the builder. func (gu *GroupUpdate) Where(ps ...predicate.Group) *GroupUpdate { - gu.predicates = append(gu.predicates, ps...) + gu.mutation.predicates = append(gu.mutation.predicates, ps...) return gu } @@ -330,7 +329,7 @@ func (gu *GroupUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := gu.predicates; len(ps) > 0 { + if ps := gu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/ent/groupinfo_delete.go b/entc/integration/ent/groupinfo_delete.go index 3930d0050..ad69972f4 100644 --- a/entc/integration/ent/groupinfo_delete.go +++ b/entc/integration/ent/groupinfo_delete.go @@ -20,14 +20,13 @@ import ( // GroupInfoDelete is the builder for deleting a GroupInfo entity. type GroupInfoDelete struct { config - hooks []Hook - mutation *GroupInfoMutation - predicates []predicate.GroupInfo + hooks []Hook + mutation *GroupInfoMutation } // Where adds a new predicate to the delete builder. func (gid *GroupInfoDelete) Where(ps ...predicate.GroupInfo) *GroupInfoDelete { - gid.predicates = append(gid.predicates, ps...) + gid.mutation.predicates = append(gid.mutation.predicates, ps...) return gid } @@ -79,7 +78,7 @@ func (gid *GroupInfoDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := gid.predicates; len(ps) > 0 { + if ps := gid.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/ent/groupinfo_update.go b/entc/integration/ent/groupinfo_update.go index 3af75a562..fae6b15f5 100644 --- a/entc/integration/ent/groupinfo_update.go +++ b/entc/integration/ent/groupinfo_update.go @@ -21,14 +21,13 @@ import ( // GroupInfoUpdate is the builder for updating GroupInfo entities. type GroupInfoUpdate struct { config - hooks []Hook - mutation *GroupInfoMutation - predicates []predicate.GroupInfo + hooks []Hook + mutation *GroupInfoMutation } // Where adds a new predicate for the builder. func (giu *GroupInfoUpdate) Where(ps ...predicate.GroupInfo) *GroupInfoUpdate { - giu.predicates = append(giu.predicates, ps...) + giu.mutation.predicates = append(giu.mutation.predicates, ps...) return giu } @@ -162,7 +161,7 @@ func (giu *GroupInfoUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := giu.predicates; len(ps) > 0 { + if ps := giu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/ent/item_delete.go b/entc/integration/ent/item_delete.go index 57e9a29fa..5047c7d93 100644 --- a/entc/integration/ent/item_delete.go +++ b/entc/integration/ent/item_delete.go @@ -20,14 +20,13 @@ import ( // ItemDelete is the builder for deleting a Item entity. type ItemDelete struct { config - hooks []Hook - mutation *ItemMutation - predicates []predicate.Item + hooks []Hook + mutation *ItemMutation } // Where adds a new predicate to the delete builder. func (id *ItemDelete) Where(ps ...predicate.Item) *ItemDelete { - id.predicates = append(id.predicates, ps...) + id.mutation.predicates = append(id.mutation.predicates, ps...) return id } @@ -79,7 +78,7 @@ func (id *ItemDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := id.predicates; len(ps) > 0 { + if ps := id.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/ent/item_update.go b/entc/integration/ent/item_update.go index ac845e8db..1d8192ba1 100644 --- a/entc/integration/ent/item_update.go +++ b/entc/integration/ent/item_update.go @@ -20,14 +20,13 @@ import ( // ItemUpdate is the builder for updating Item entities. type ItemUpdate struct { config - hooks []Hook - mutation *ItemMutation - predicates []predicate.Item + hooks []Hook + mutation *ItemMutation } // Where adds a new predicate for the builder. func (iu *ItemUpdate) Where(ps ...predicate.Item) *ItemUpdate { - iu.predicates = append(iu.predicates, ps...) + iu.mutation.predicates = append(iu.mutation.predicates, ps...) return iu } @@ -98,7 +97,7 @@ func (iu *ItemUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := iu.predicates; len(ps) > 0 { + if ps := iu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/ent/mutation.go b/entc/integration/ent/mutation.go index f811e10c5..f2c21f1a4 100644 --- a/entc/integration/ent/mutation.go +++ b/entc/integration/ent/mutation.go @@ -24,6 +24,7 @@ import ( "github.com/facebook/ent/entc/integration/ent/groupinfo" "github.com/facebook/ent/entc/integration/ent/node" "github.com/facebook/ent/entc/integration/ent/pet" + "github.com/facebook/ent/entc/integration/ent/predicate" "github.com/facebook/ent/entc/integration/ent/role" "github.com/facebook/ent/entc/integration/ent/schema" "github.com/facebook/ent/entc/integration/ent/spec" @@ -77,6 +78,7 @@ type CardMutation struct { clearedspec bool done bool oldValue func(context.Context) (*Card, error) + predicates []predicate.Card } var _ ent.Mutation = (*CardMutation)(nil) @@ -705,6 +707,7 @@ type CommentMutation struct { clearedFields map[string]struct{} done bool oldValue func(context.Context) (*Comment, error) + predicates []predicate.Comment } var _ ent.Mutation = (*CommentMutation)(nil) @@ -1301,6 +1304,7 @@ type FieldTypeMutation struct { clearedFields map[string]struct{} done bool oldValue func(context.Context) (*FieldType, error) + predicates []predicate.FieldType } var _ ent.Mutation = (*FieldTypeMutation)(nil) @@ -5681,6 +5685,7 @@ type FileMutation struct { clearedfield bool done bool oldValue func(context.Context) (*File, error) + predicates []predicate.File } var _ ent.Mutation = (*FileMutation)(nil) @@ -6493,6 +6498,7 @@ type FileTypeMutation struct { clearedfiles bool done bool oldValue func(context.Context) (*FileType, error) + predicates []predicate.FileType } var _ ent.Mutation = (*FileTypeMutation)(nil) @@ -6982,6 +6988,7 @@ type GoodsMutation struct { clearedFields map[string]struct{} done bool oldValue func(context.Context) (*Goods, error) + predicates []predicate.Goods } var _ ent.Mutation = (*GoodsMutation)(nil) @@ -7229,6 +7236,7 @@ type GroupMutation struct { clearedinfo bool done bool oldValue func(context.Context) (*Group, error) + predicates []predicate.Group } var _ ent.Mutation = (*GroupMutation)(nil) @@ -8124,6 +8132,7 @@ type GroupInfoMutation struct { clearedgroups bool done bool oldValue func(context.Context) (*GroupInfo, error) + predicates []predicate.GroupInfo } var _ ent.Mutation = (*GroupInfoMutation)(nil) @@ -8594,6 +8603,7 @@ type ItemMutation struct { clearedFields map[string]struct{} done bool oldValue func(context.Context) (*Item, error) + predicates []predicate.Item } var _ ent.Mutation = (*ItemMutation)(nil) @@ -8830,6 +8840,7 @@ type NodeMutation struct { clearednext bool done bool oldValue func(context.Context) (*Node, error) + predicates []predicate.Node } var _ ent.Mutation = (*NodeMutation)(nil) @@ -9309,6 +9320,7 @@ type PetMutation struct { clearedowner bool done bool oldValue func(context.Context) (*Pet, error) + predicates []predicate.Pet } var _ ent.Mutation = (*PetMutation)(nil) @@ -9728,6 +9740,7 @@ type SpecMutation struct { clearedcard bool done bool oldValue func(context.Context) (*Spec, error) + predicates []predicate.Spec } var _ ent.Mutation = (*SpecMutation)(nil) @@ -10049,6 +10062,7 @@ type TaskMutation struct { clearedFields map[string]struct{} done bool oldValue func(context.Context) (*Task, error) + predicates []predicate.Task } var _ ent.Mutation = (*TaskMutation)(nil) @@ -10416,6 +10430,7 @@ type UserMutation struct { clearedparent bool done bool oldValue func(context.Context) (*User, error) + predicates []predicate.User } var _ ent.Mutation = (*UserMutation)(nil) diff --git a/entc/integration/ent/node_delete.go b/entc/integration/ent/node_delete.go index 8e8acc286..fe0fa3a70 100644 --- a/entc/integration/ent/node_delete.go +++ b/entc/integration/ent/node_delete.go @@ -20,14 +20,13 @@ import ( // NodeDelete is the builder for deleting a Node entity. type NodeDelete struct { config - hooks []Hook - mutation *NodeMutation - predicates []predicate.Node + hooks []Hook + mutation *NodeMutation } // Where adds a new predicate to the delete builder. func (nd *NodeDelete) Where(ps ...predicate.Node) *NodeDelete { - nd.predicates = append(nd.predicates, ps...) + nd.mutation.predicates = append(nd.mutation.predicates, ps...) return nd } @@ -79,7 +78,7 @@ func (nd *NodeDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := nd.predicates; len(ps) > 0 { + if ps := nd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/ent/node_update.go b/entc/integration/ent/node_update.go index e44b43c15..c4a82855d 100644 --- a/entc/integration/ent/node_update.go +++ b/entc/integration/ent/node_update.go @@ -20,14 +20,13 @@ import ( // NodeUpdate is the builder for updating Node entities. type NodeUpdate struct { config - hooks []Hook - mutation *NodeMutation - predicates []predicate.Node + hooks []Hook + mutation *NodeMutation } // Where adds a new predicate for the builder. func (nu *NodeUpdate) Where(ps ...predicate.Node) *NodeUpdate { - nu.predicates = append(nu.predicates, ps...) + nu.mutation.predicates = append(nu.mutation.predicates, ps...) return nu } @@ -175,7 +174,7 @@ func (nu *NodeUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := nu.predicates; len(ps) > 0 { + if ps := nu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/ent/pet_delete.go b/entc/integration/ent/pet_delete.go index 1ce7abdbe..942ad944e 100644 --- a/entc/integration/ent/pet_delete.go +++ b/entc/integration/ent/pet_delete.go @@ -20,14 +20,13 @@ import ( // PetDelete is the builder for deleting a Pet entity. type PetDelete struct { config - hooks []Hook - mutation *PetMutation - predicates []predicate.Pet + hooks []Hook + mutation *PetMutation } // Where adds a new predicate to the delete builder. func (pd *PetDelete) Where(ps ...predicate.Pet) *PetDelete { - pd.predicates = append(pd.predicates, ps...) + pd.mutation.predicates = append(pd.mutation.predicates, ps...) return pd } @@ -79,7 +78,7 @@ func (pd *PetDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := pd.predicates; len(ps) > 0 { + if ps := pd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/ent/pet_update.go b/entc/integration/ent/pet_update.go index 419a56569..bcbe18b6a 100644 --- a/entc/integration/ent/pet_update.go +++ b/entc/integration/ent/pet_update.go @@ -21,14 +21,13 @@ import ( // PetUpdate is the builder for updating Pet entities. type PetUpdate struct { config - hooks []Hook - mutation *PetMutation - predicates []predicate.Pet + hooks []Hook + mutation *PetMutation } // Where adds a new predicate for the builder. func (pu *PetUpdate) Where(ps ...predicate.Pet) *PetUpdate { - pu.predicates = append(pu.predicates, ps...) + pu.mutation.predicates = append(pu.mutation.predicates, ps...) return pu } @@ -155,7 +154,7 @@ func (pu *PetUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := pu.predicates; len(ps) > 0 { + if ps := pu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/ent/spec_delete.go b/entc/integration/ent/spec_delete.go index ca225341e..e7c0ca700 100644 --- a/entc/integration/ent/spec_delete.go +++ b/entc/integration/ent/spec_delete.go @@ -20,14 +20,13 @@ import ( // SpecDelete is the builder for deleting a Spec entity. type SpecDelete struct { config - hooks []Hook - mutation *SpecMutation - predicates []predicate.Spec + hooks []Hook + mutation *SpecMutation } // Where adds a new predicate to the delete builder. func (sd *SpecDelete) Where(ps ...predicate.Spec) *SpecDelete { - sd.predicates = append(sd.predicates, ps...) + sd.mutation.predicates = append(sd.mutation.predicates, ps...) return sd } @@ -79,7 +78,7 @@ func (sd *SpecDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := sd.predicates; len(ps) > 0 { + if ps := sd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/ent/spec_update.go b/entc/integration/ent/spec_update.go index 45d6e6dbb..f89003ede 100644 --- a/entc/integration/ent/spec_update.go +++ b/entc/integration/ent/spec_update.go @@ -21,14 +21,13 @@ import ( // SpecUpdate is the builder for updating Spec entities. type SpecUpdate struct { config - hooks []Hook - mutation *SpecMutation - predicates []predicate.Spec + hooks []Hook + mutation *SpecMutation } // Where adds a new predicate for the builder. func (su *SpecUpdate) Where(ps ...predicate.Spec) *SpecUpdate { - su.predicates = append(su.predicates, ps...) + su.mutation.predicates = append(su.mutation.predicates, ps...) return su } @@ -135,7 +134,7 @@ func (su *SpecUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := su.predicates; len(ps) > 0 { + if ps := su.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/ent/task_delete.go b/entc/integration/ent/task_delete.go index f501aebdb..d8b2f97ca 100644 --- a/entc/integration/ent/task_delete.go +++ b/entc/integration/ent/task_delete.go @@ -20,14 +20,13 @@ import ( // TaskDelete is the builder for deleting a Task entity. type TaskDelete struct { config - hooks []Hook - mutation *TaskMutation - predicates []predicate.Task + hooks []Hook + mutation *TaskMutation } // Where adds a new predicate to the delete builder. func (td *TaskDelete) Where(ps ...predicate.Task) *TaskDelete { - td.predicates = append(td.predicates, ps...) + td.mutation.predicates = append(td.mutation.predicates, ps...) return td } @@ -79,7 +78,7 @@ func (td *TaskDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := td.predicates; len(ps) > 0 { + if ps := td.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/ent/task_update.go b/entc/integration/ent/task_update.go index 2c146f70b..1235e765b 100644 --- a/entc/integration/ent/task_update.go +++ b/entc/integration/ent/task_update.go @@ -21,14 +21,13 @@ import ( // TaskUpdate is the builder for updating Task entities. type TaskUpdate struct { config - hooks []Hook - mutation *TaskMutation - predicates []predicate.Task + hooks []Hook + mutation *TaskMutation } // Where adds a new predicate for the builder. func (tu *TaskUpdate) Where(ps ...predicate.Task) *TaskUpdate { - tu.predicates = append(tu.predicates, ps...) + tu.mutation.predicates = append(tu.mutation.predicates, ps...) return tu } @@ -136,7 +135,7 @@ func (tu *TaskUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := tu.predicates; len(ps) > 0 { + if ps := tu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/ent/user_delete.go b/entc/integration/ent/user_delete.go index 4605fbe71..3403d818e 100644 --- a/entc/integration/ent/user_delete.go +++ b/entc/integration/ent/user_delete.go @@ -20,14 +20,13 @@ import ( // UserDelete is the builder for deleting a User entity. type UserDelete struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate to the delete builder. func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete { - ud.predicates = append(ud.predicates, ps...) + ud.mutation.predicates = append(ud.mutation.predicates, ps...) return ud } @@ -79,7 +78,7 @@ func (ud *UserDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := ud.predicates; len(ps) > 0 { + if ps := ud.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/ent/user_update.go b/entc/integration/ent/user_update.go index 5ef142d81..b44b83803 100644 --- a/entc/integration/ent/user_update.go +++ b/entc/integration/ent/user_update.go @@ -24,14 +24,13 @@ import ( // UserUpdate is the builder for updating User entities. type UserUpdate struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate for the builder. func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate { - uu.predicates = append(uu.predicates, ps...) + uu.mutation.predicates = append(uu.mutation.predicates, ps...) return uu } @@ -629,7 +628,7 @@ func (uu *UserUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := uu.predicates; len(ps) > 0 { + if ps := uu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/gremlin/ent/card_delete.go b/entc/integration/gremlin/ent/card_delete.go index daf6e4757..b1bb270bc 100644 --- a/entc/integration/gremlin/ent/card_delete.go +++ b/entc/integration/gremlin/ent/card_delete.go @@ -21,14 +21,13 @@ import ( // CardDelete is the builder for deleting a Card entity. type CardDelete struct { config - hooks []Hook - mutation *CardMutation - predicates []predicate.Card + hooks []Hook + mutation *CardMutation } // Where adds a new predicate to the delete builder. func (cd *CardDelete) Where(ps ...predicate.Card) *CardDelete { - cd.predicates = append(cd.predicates, ps...) + cd.mutation.predicates = append(cd.mutation.predicates, ps...) return cd } @@ -81,7 +80,7 @@ func (cd *CardDelete) gremlinExec(ctx context.Context) (int, error) { func (cd *CardDelete) gremlin() *dsl.Traversal { t := g.V().HasLabel(card.Label) - for _, p := range cd.predicates { + for _, p := range cd.mutation.predicates { p(t) } return t.SideEffect(__.Drop()).Count() diff --git a/entc/integration/gremlin/ent/card_update.go b/entc/integration/gremlin/ent/card_update.go index 4862d0466..42030061e 100644 --- a/entc/integration/gremlin/ent/card_update.go +++ b/entc/integration/gremlin/ent/card_update.go @@ -24,14 +24,13 @@ import ( // CardUpdate is the builder for updating Card entities. type CardUpdate struct { config - hooks []Hook - mutation *CardMutation - predicates []predicate.Card + hooks []Hook + mutation *CardMutation } // Where adds a new predicate for the builder. func (cu *CardUpdate) Where(ps ...predicate.Card) *CardUpdate { - cu.predicates = append(cu.predicates, ps...) + cu.mutation.predicates = append(cu.mutation.predicates, ps...) return cu } @@ -216,7 +215,7 @@ func (cu *CardUpdate) gremlin() *dsl.Traversal { } constraints := make([]*constraint, 0, 1) v := g.V().HasLabel(card.Label) - for _, p := range cu.predicates { + for _, p := range cu.mutation.predicates { p(v) } var ( diff --git a/entc/integration/gremlin/ent/comment_delete.go b/entc/integration/gremlin/ent/comment_delete.go index 08be0aab8..55b662843 100644 --- a/entc/integration/gremlin/ent/comment_delete.go +++ b/entc/integration/gremlin/ent/comment_delete.go @@ -21,14 +21,13 @@ import ( // CommentDelete is the builder for deleting a Comment entity. type CommentDelete struct { config - hooks []Hook - mutation *CommentMutation - predicates []predicate.Comment + hooks []Hook + mutation *CommentMutation } // Where adds a new predicate to the delete builder. func (cd *CommentDelete) Where(ps ...predicate.Comment) *CommentDelete { - cd.predicates = append(cd.predicates, ps...) + cd.mutation.predicates = append(cd.mutation.predicates, ps...) return cd } @@ -81,7 +80,7 @@ func (cd *CommentDelete) gremlinExec(ctx context.Context) (int, error) { func (cd *CommentDelete) gremlin() *dsl.Traversal { t := g.V().HasLabel(comment.Label) - for _, p := range cd.predicates { + for _, p := range cd.mutation.predicates { p(t) } return t.SideEffect(__.Drop()).Count() diff --git a/entc/integration/gremlin/ent/comment_update.go b/entc/integration/gremlin/ent/comment_update.go index c4c6fae41..f2770c04a 100644 --- a/entc/integration/gremlin/ent/comment_update.go +++ b/entc/integration/gremlin/ent/comment_update.go @@ -22,14 +22,13 @@ import ( // CommentUpdate is the builder for updating Comment entities. type CommentUpdate struct { config - hooks []Hook - mutation *CommentMutation - predicates []predicate.Comment + hooks []Hook + mutation *CommentMutation } // Where adds a new predicate for the builder. func (cu *CommentUpdate) Where(ps ...predicate.Comment) *CommentUpdate { - cu.predicates = append(cu.predicates, ps...) + cu.mutation.predicates = append(cu.mutation.predicates, ps...) return cu } @@ -161,7 +160,7 @@ func (cu *CommentUpdate) gremlin() *dsl.Traversal { } constraints := make([]*constraint, 0, 2) v := g.V().HasLabel(comment.Label) - for _, p := range cu.predicates { + for _, p := range cu.mutation.predicates { p(v) } var ( diff --git a/entc/integration/gremlin/ent/fieldtype_delete.go b/entc/integration/gremlin/ent/fieldtype_delete.go index 824d5bc12..6744f7ae3 100644 --- a/entc/integration/gremlin/ent/fieldtype_delete.go +++ b/entc/integration/gremlin/ent/fieldtype_delete.go @@ -21,14 +21,13 @@ import ( // FieldTypeDelete is the builder for deleting a FieldType entity. type FieldTypeDelete struct { config - hooks []Hook - mutation *FieldTypeMutation - predicates []predicate.FieldType + hooks []Hook + mutation *FieldTypeMutation } // Where adds a new predicate to the delete builder. func (ftd *FieldTypeDelete) Where(ps ...predicate.FieldType) *FieldTypeDelete { - ftd.predicates = append(ftd.predicates, ps...) + ftd.mutation.predicates = append(ftd.mutation.predicates, ps...) return ftd } @@ -81,7 +80,7 @@ func (ftd *FieldTypeDelete) gremlinExec(ctx context.Context) (int, error) { func (ftd *FieldTypeDelete) gremlin() *dsl.Traversal { t := g.V().HasLabel(fieldtype.Label) - for _, p := range ftd.predicates { + for _, p := range ftd.mutation.predicates { p(t) } return t.SideEffect(__.Drop()).Count() diff --git a/entc/integration/gremlin/ent/fieldtype_update.go b/entc/integration/gremlin/ent/fieldtype_update.go index eab0ca5d6..08b56513d 100644 --- a/entc/integration/gremlin/ent/fieldtype_update.go +++ b/entc/integration/gremlin/ent/fieldtype_update.go @@ -27,14 +27,13 @@ import ( // FieldTypeUpdate is the builder for updating FieldType entities. type FieldTypeUpdate struct { config - hooks []Hook - mutation *FieldTypeMutation - predicates []predicate.FieldType + hooks []Hook + mutation *FieldTypeMutation } // Where adds a new predicate for the builder. func (ftu *FieldTypeUpdate) Where(ps ...predicate.FieldType) *FieldTypeUpdate { - ftu.predicates = append(ftu.predicates, ps...) + ftu.mutation.predicates = append(ftu.mutation.predicates, ps...) return ftu } @@ -1101,7 +1100,7 @@ func (ftu *FieldTypeUpdate) gremlinSave(ctx context.Context) (int, error) { func (ftu *FieldTypeUpdate) gremlin() *dsl.Traversal { v := g.V().HasLabel(fieldtype.Label) - for _, p := range ftu.predicates { + for _, p := range ftu.mutation.predicates { p(v) } var ( diff --git a/entc/integration/gremlin/ent/file_delete.go b/entc/integration/gremlin/ent/file_delete.go index fa25720f6..859870d41 100644 --- a/entc/integration/gremlin/ent/file_delete.go +++ b/entc/integration/gremlin/ent/file_delete.go @@ -21,14 +21,13 @@ import ( // FileDelete is the builder for deleting a File entity. type FileDelete struct { config - hooks []Hook - mutation *FileMutation - predicates []predicate.File + hooks []Hook + mutation *FileMutation } // Where adds a new predicate to the delete builder. func (fd *FileDelete) Where(ps ...predicate.File) *FileDelete { - fd.predicates = append(fd.predicates, ps...) + fd.mutation.predicates = append(fd.mutation.predicates, ps...) return fd } @@ -81,7 +80,7 @@ func (fd *FileDelete) gremlinExec(ctx context.Context) (int, error) { func (fd *FileDelete) gremlin() *dsl.Traversal { t := g.V().HasLabel(file.Label) - for _, p := range fd.predicates { + for _, p := range fd.mutation.predicates { p(t) } return t.SideEffect(__.Drop()).Count() diff --git a/entc/integration/gremlin/ent/file_update.go b/entc/integration/gremlin/ent/file_update.go index 3e0ef668a..c32f54c12 100644 --- a/entc/integration/gremlin/ent/file_update.go +++ b/entc/integration/gremlin/ent/file_update.go @@ -24,14 +24,13 @@ import ( // FileUpdate is the builder for updating File entities. type FileUpdate struct { config - hooks []Hook - mutation *FileMutation - predicates []predicate.File + hooks []Hook + mutation *FileMutation } // Where adds a new predicate for the builder. func (fu *FileUpdate) Where(ps ...predicate.File) *FileUpdate { - fu.predicates = append(fu.predicates, ps...) + fu.mutation.predicates = append(fu.mutation.predicates, ps...) return fu } @@ -299,7 +298,7 @@ func (fu *FileUpdate) gremlin() *dsl.Traversal { } constraints := make([]*constraint, 0, 1) v := g.V().HasLabel(file.Label) - for _, p := range fu.predicates { + for _, p := range fu.mutation.predicates { p(v) } var ( diff --git a/entc/integration/gremlin/ent/filetype_delete.go b/entc/integration/gremlin/ent/filetype_delete.go index 51711d4d9..f4c79c205 100644 --- a/entc/integration/gremlin/ent/filetype_delete.go +++ b/entc/integration/gremlin/ent/filetype_delete.go @@ -21,14 +21,13 @@ import ( // FileTypeDelete is the builder for deleting a FileType entity. type FileTypeDelete struct { config - hooks []Hook - mutation *FileTypeMutation - predicates []predicate.FileType + hooks []Hook + mutation *FileTypeMutation } // Where adds a new predicate to the delete builder. func (ftd *FileTypeDelete) Where(ps ...predicate.FileType) *FileTypeDelete { - ftd.predicates = append(ftd.predicates, ps...) + ftd.mutation.predicates = append(ftd.mutation.predicates, ps...) return ftd } @@ -81,7 +80,7 @@ func (ftd *FileTypeDelete) gremlinExec(ctx context.Context) (int, error) { func (ftd *FileTypeDelete) gremlin() *dsl.Traversal { t := g.V().HasLabel(filetype.Label) - for _, p := range ftd.predicates { + for _, p := range ftd.mutation.predicates { p(t) } return t.SideEffect(__.Drop()).Count() diff --git a/entc/integration/gremlin/ent/filetype_update.go b/entc/integration/gremlin/ent/filetype_update.go index 40f1984a7..f75d53378 100644 --- a/entc/integration/gremlin/ent/filetype_update.go +++ b/entc/integration/gremlin/ent/filetype_update.go @@ -22,14 +22,13 @@ import ( // FileTypeUpdate is the builder for updating FileType entities. type FileTypeUpdate struct { config - hooks []Hook - mutation *FileTypeMutation - predicates []predicate.FileType + hooks []Hook + mutation *FileTypeMutation } // Where adds a new predicate for the builder. func (ftu *FileTypeUpdate) Where(ps ...predicate.FileType) *FileTypeUpdate { - ftu.predicates = append(ftu.predicates, ps...) + ftu.mutation.predicates = append(ftu.mutation.predicates, ps...) return ftu } @@ -199,7 +198,7 @@ func (ftu *FileTypeUpdate) gremlin() *dsl.Traversal { } constraints := make([]*constraint, 0, 2) v := g.V().HasLabel(filetype.Label) - for _, p := range ftu.predicates { + for _, p := range ftu.mutation.predicates { p(v) } var ( diff --git a/entc/integration/gremlin/ent/goods_delete.go b/entc/integration/gremlin/ent/goods_delete.go index 244c891c3..132ab1c36 100644 --- a/entc/integration/gremlin/ent/goods_delete.go +++ b/entc/integration/gremlin/ent/goods_delete.go @@ -21,14 +21,13 @@ import ( // GoodsDelete is the builder for deleting a Goods entity. type GoodsDelete struct { config - hooks []Hook - mutation *GoodsMutation - predicates []predicate.Goods + hooks []Hook + mutation *GoodsMutation } // Where adds a new predicate to the delete builder. func (gd *GoodsDelete) Where(ps ...predicate.Goods) *GoodsDelete { - gd.predicates = append(gd.predicates, ps...) + gd.mutation.predicates = append(gd.mutation.predicates, ps...) return gd } @@ -81,7 +80,7 @@ func (gd *GoodsDelete) gremlinExec(ctx context.Context) (int, error) { func (gd *GoodsDelete) gremlin() *dsl.Traversal { t := g.V().HasLabel(goods.Label) - for _, p := range gd.predicates { + for _, p := range gd.mutation.predicates { p(t) } return t.SideEffect(__.Drop()).Count() diff --git a/entc/integration/gremlin/ent/goods_update.go b/entc/integration/gremlin/ent/goods_update.go index d044d7049..43f5c27e8 100644 --- a/entc/integration/gremlin/ent/goods_update.go +++ b/entc/integration/gremlin/ent/goods_update.go @@ -20,14 +20,13 @@ import ( // GoodsUpdate is the builder for updating Goods entities. type GoodsUpdate struct { config - hooks []Hook - mutation *GoodsMutation - predicates []predicate.Goods + hooks []Hook + mutation *GoodsMutation } // Where adds a new predicate for the builder. func (gu *GoodsUpdate) Where(ps ...predicate.Goods) *GoodsUpdate { - gu.predicates = append(gu.predicates, ps...) + gu.mutation.predicates = append(gu.mutation.predicates, ps...) return gu } @@ -101,7 +100,7 @@ func (gu *GoodsUpdate) gremlinSave(ctx context.Context) (int, error) { func (gu *GoodsUpdate) gremlin() *dsl.Traversal { v := g.V().HasLabel(goods.Label) - for _, p := range gu.predicates { + for _, p := range gu.mutation.predicates { p(v) } var ( diff --git a/entc/integration/gremlin/ent/group_delete.go b/entc/integration/gremlin/ent/group_delete.go index 7229df353..2aa549897 100644 --- a/entc/integration/gremlin/ent/group_delete.go +++ b/entc/integration/gremlin/ent/group_delete.go @@ -21,14 +21,13 @@ import ( // GroupDelete is the builder for deleting a Group entity. type GroupDelete struct { config - hooks []Hook - mutation *GroupMutation - predicates []predicate.Group + hooks []Hook + mutation *GroupMutation } // Where adds a new predicate to the delete builder. func (gd *GroupDelete) Where(ps ...predicate.Group) *GroupDelete { - gd.predicates = append(gd.predicates, ps...) + gd.mutation.predicates = append(gd.mutation.predicates, ps...) return gd } @@ -81,7 +80,7 @@ func (gd *GroupDelete) gremlinExec(ctx context.Context) (int, error) { func (gd *GroupDelete) gremlin() *dsl.Traversal { t := g.V().HasLabel(group.Label) - for _, p := range gd.predicates { + for _, p := range gd.mutation.predicates { p(t) } return t.SideEffect(__.Drop()).Count() diff --git a/entc/integration/gremlin/ent/group_update.go b/entc/integration/gremlin/ent/group_update.go index 6a895bb6a..b8e9d6330 100644 --- a/entc/integration/gremlin/ent/group_update.go +++ b/entc/integration/gremlin/ent/group_update.go @@ -25,14 +25,13 @@ import ( // GroupUpdate is the builder for updating Group entities. type GroupUpdate struct { config - hooks []Hook - mutation *GroupMutation - predicates []predicate.Group + hooks []Hook + mutation *GroupMutation } // Where adds a new predicate for the builder. func (gu *GroupUpdate) Where(ps ...predicate.Group) *GroupUpdate { - gu.predicates = append(gu.predicates, ps...) + gu.mutation.predicates = append(gu.mutation.predicates, ps...) return gu } @@ -338,7 +337,7 @@ func (gu *GroupUpdate) gremlin() *dsl.Traversal { } constraints := make([]*constraint, 0, 2) v := g.V().HasLabel(group.Label) - for _, p := range gu.predicates { + for _, p := range gu.mutation.predicates { p(v) } var ( diff --git a/entc/integration/gremlin/ent/groupinfo_delete.go b/entc/integration/gremlin/ent/groupinfo_delete.go index 6a21da13e..2ae5119f6 100644 --- a/entc/integration/gremlin/ent/groupinfo_delete.go +++ b/entc/integration/gremlin/ent/groupinfo_delete.go @@ -21,14 +21,13 @@ import ( // GroupInfoDelete is the builder for deleting a GroupInfo entity. type GroupInfoDelete struct { config - hooks []Hook - mutation *GroupInfoMutation - predicates []predicate.GroupInfo + hooks []Hook + mutation *GroupInfoMutation } // Where adds a new predicate to the delete builder. func (gid *GroupInfoDelete) Where(ps ...predicate.GroupInfo) *GroupInfoDelete { - gid.predicates = append(gid.predicates, ps...) + gid.mutation.predicates = append(gid.mutation.predicates, ps...) return gid } @@ -81,7 +80,7 @@ func (gid *GroupInfoDelete) gremlinExec(ctx context.Context) (int, error) { func (gid *GroupInfoDelete) gremlin() *dsl.Traversal { t := g.V().HasLabel(groupinfo.Label) - for _, p := range gid.predicates { + for _, p := range gid.mutation.predicates { p(t) } return t.SideEffect(__.Drop()).Count() diff --git a/entc/integration/gremlin/ent/groupinfo_update.go b/entc/integration/gremlin/ent/groupinfo_update.go index 4899c25c9..3e1c0322a 100644 --- a/entc/integration/gremlin/ent/groupinfo_update.go +++ b/entc/integration/gremlin/ent/groupinfo_update.go @@ -23,14 +23,13 @@ import ( // GroupInfoUpdate is the builder for updating GroupInfo entities. type GroupInfoUpdate struct { config - hooks []Hook - mutation *GroupInfoMutation - predicates []predicate.GroupInfo + hooks []Hook + mutation *GroupInfoMutation } // Where adds a new predicate for the builder. func (giu *GroupInfoUpdate) Where(ps ...predicate.GroupInfo) *GroupInfoUpdate { - giu.predicates = append(giu.predicates, ps...) + giu.mutation.predicates = append(giu.mutation.predicates, ps...) return giu } @@ -172,7 +171,7 @@ func (giu *GroupInfoUpdate) gremlin() *dsl.Traversal { } constraints := make([]*constraint, 0, 1) v := g.V().HasLabel(groupinfo.Label) - for _, p := range giu.predicates { + for _, p := range giu.mutation.predicates { p(v) } var ( diff --git a/entc/integration/gremlin/ent/item_delete.go b/entc/integration/gremlin/ent/item_delete.go index 64aa7131e..d36c6210e 100644 --- a/entc/integration/gremlin/ent/item_delete.go +++ b/entc/integration/gremlin/ent/item_delete.go @@ -21,14 +21,13 @@ import ( // ItemDelete is the builder for deleting a Item entity. type ItemDelete struct { config - hooks []Hook - mutation *ItemMutation - predicates []predicate.Item + hooks []Hook + mutation *ItemMutation } // Where adds a new predicate to the delete builder. func (id *ItemDelete) Where(ps ...predicate.Item) *ItemDelete { - id.predicates = append(id.predicates, ps...) + id.mutation.predicates = append(id.mutation.predicates, ps...) return id } @@ -81,7 +80,7 @@ func (id *ItemDelete) gremlinExec(ctx context.Context) (int, error) { func (id *ItemDelete) gremlin() *dsl.Traversal { t := g.V().HasLabel(item.Label) - for _, p := range id.predicates { + for _, p := range id.mutation.predicates { p(t) } return t.SideEffect(__.Drop()).Count() diff --git a/entc/integration/gremlin/ent/item_update.go b/entc/integration/gremlin/ent/item_update.go index 3bf0bda92..09280feba 100644 --- a/entc/integration/gremlin/ent/item_update.go +++ b/entc/integration/gremlin/ent/item_update.go @@ -20,14 +20,13 @@ import ( // ItemUpdate is the builder for updating Item entities. type ItemUpdate struct { config - hooks []Hook - mutation *ItemMutation - predicates []predicate.Item + hooks []Hook + mutation *ItemMutation } // Where adds a new predicate for the builder. func (iu *ItemUpdate) Where(ps ...predicate.Item) *ItemUpdate { - iu.predicates = append(iu.predicates, ps...) + iu.mutation.predicates = append(iu.mutation.predicates, ps...) return iu } @@ -101,7 +100,7 @@ func (iu *ItemUpdate) gremlinSave(ctx context.Context) (int, error) { func (iu *ItemUpdate) gremlin() *dsl.Traversal { v := g.V().HasLabel(item.Label) - for _, p := range iu.predicates { + for _, p := range iu.mutation.predicates { p(v) } var ( diff --git a/entc/integration/gremlin/ent/mutation.go b/entc/integration/gremlin/ent/mutation.go index a9377343e..7c7792ed3 100644 --- a/entc/integration/gremlin/ent/mutation.go +++ b/entc/integration/gremlin/ent/mutation.go @@ -26,6 +26,7 @@ import ( "github.com/facebook/ent/entc/integration/gremlin/ent/groupinfo" "github.com/facebook/ent/entc/integration/gremlin/ent/node" "github.com/facebook/ent/entc/integration/gremlin/ent/pet" + "github.com/facebook/ent/entc/integration/gremlin/ent/predicate" "github.com/facebook/ent/entc/integration/gremlin/ent/spec" "github.com/facebook/ent/entc/integration/gremlin/ent/task" "github.com/facebook/ent/entc/integration/gremlin/ent/user" @@ -77,6 +78,7 @@ type CardMutation struct { clearedspec bool done bool oldValue func(context.Context) (*Card, error) + predicates []predicate.Card } var _ ent.Mutation = (*CardMutation)(nil) @@ -705,6 +707,7 @@ type CommentMutation struct { clearedFields map[string]struct{} done bool oldValue func(context.Context) (*Comment, error) + predicates []predicate.Comment } var _ ent.Mutation = (*CommentMutation)(nil) @@ -1301,6 +1304,7 @@ type FieldTypeMutation struct { clearedFields map[string]struct{} done bool oldValue func(context.Context) (*FieldType, error) + predicates []predicate.FieldType } var _ ent.Mutation = (*FieldTypeMutation)(nil) @@ -5681,6 +5685,7 @@ type FileMutation struct { clearedfield bool done bool oldValue func(context.Context) (*File, error) + predicates []predicate.File } var _ ent.Mutation = (*FileMutation)(nil) @@ -6493,6 +6498,7 @@ type FileTypeMutation struct { clearedfiles bool done bool oldValue func(context.Context) (*FileType, error) + predicates []predicate.FileType } var _ ent.Mutation = (*FileTypeMutation)(nil) @@ -6982,6 +6988,7 @@ type GoodsMutation struct { clearedFields map[string]struct{} done bool oldValue func(context.Context) (*Goods, error) + predicates []predicate.Goods } var _ ent.Mutation = (*GoodsMutation)(nil) @@ -7229,6 +7236,7 @@ type GroupMutation struct { clearedinfo bool done bool oldValue func(context.Context) (*Group, error) + predicates []predicate.Group } var _ ent.Mutation = (*GroupMutation)(nil) @@ -8124,6 +8132,7 @@ type GroupInfoMutation struct { clearedgroups bool done bool oldValue func(context.Context) (*GroupInfo, error) + predicates []predicate.GroupInfo } var _ ent.Mutation = (*GroupInfoMutation)(nil) @@ -8594,6 +8603,7 @@ type ItemMutation struct { clearedFields map[string]struct{} done bool oldValue func(context.Context) (*Item, error) + predicates []predicate.Item } var _ ent.Mutation = (*ItemMutation)(nil) @@ -8830,6 +8840,7 @@ type NodeMutation struct { clearednext bool done bool oldValue func(context.Context) (*Node, error) + predicates []predicate.Node } var _ ent.Mutation = (*NodeMutation)(nil) @@ -9309,6 +9320,7 @@ type PetMutation struct { clearedowner bool done bool oldValue func(context.Context) (*Pet, error) + predicates []predicate.Pet } var _ ent.Mutation = (*PetMutation)(nil) @@ -9728,6 +9740,7 @@ type SpecMutation struct { clearedcard bool done bool oldValue func(context.Context) (*Spec, error) + predicates []predicate.Spec } var _ ent.Mutation = (*SpecMutation)(nil) @@ -10049,6 +10062,7 @@ type TaskMutation struct { clearedFields map[string]struct{} done bool oldValue func(context.Context) (*Task, error) + predicates []predicate.Task } var _ ent.Mutation = (*TaskMutation)(nil) @@ -10416,6 +10430,7 @@ type UserMutation struct { clearedparent bool done bool oldValue func(context.Context) (*User, error) + predicates []predicate.User } var _ ent.Mutation = (*UserMutation)(nil) diff --git a/entc/integration/gremlin/ent/node_delete.go b/entc/integration/gremlin/ent/node_delete.go index d37e6dd39..84db7d741 100644 --- a/entc/integration/gremlin/ent/node_delete.go +++ b/entc/integration/gremlin/ent/node_delete.go @@ -21,14 +21,13 @@ import ( // NodeDelete is the builder for deleting a Node entity. type NodeDelete struct { config - hooks []Hook - mutation *NodeMutation - predicates []predicate.Node + hooks []Hook + mutation *NodeMutation } // Where adds a new predicate to the delete builder. func (nd *NodeDelete) Where(ps ...predicate.Node) *NodeDelete { - nd.predicates = append(nd.predicates, ps...) + nd.mutation.predicates = append(nd.mutation.predicates, ps...) return nd } @@ -81,7 +80,7 @@ func (nd *NodeDelete) gremlinExec(ctx context.Context) (int, error) { func (nd *NodeDelete) gremlin() *dsl.Traversal { t := g.V().HasLabel(node.Label) - for _, p := range nd.predicates { + for _, p := range nd.mutation.predicates { p(t) } return t.SideEffect(__.Drop()).Count() diff --git a/entc/integration/gremlin/ent/node_update.go b/entc/integration/gremlin/ent/node_update.go index f4079bbb9..64fb038dd 100644 --- a/entc/integration/gremlin/ent/node_update.go +++ b/entc/integration/gremlin/ent/node_update.go @@ -22,14 +22,13 @@ import ( // NodeUpdate is the builder for updating Node entities. type NodeUpdate struct { config - hooks []Hook - mutation *NodeMutation - predicates []predicate.Node + hooks []Hook + mutation *NodeMutation } // Where adds a new predicate for the builder. func (nu *NodeUpdate) Where(ps ...predicate.Node) *NodeUpdate { - nu.predicates = append(nu.predicates, ps...) + nu.mutation.predicates = append(nu.mutation.predicates, ps...) return nu } @@ -185,7 +184,7 @@ func (nu *NodeUpdate) gremlin() *dsl.Traversal { } constraints := make([]*constraint, 0, 2) v := g.V().HasLabel(node.Label) - for _, p := range nu.predicates { + for _, p := range nu.mutation.predicates { p(v) } var ( diff --git a/entc/integration/gremlin/ent/pet_delete.go b/entc/integration/gremlin/ent/pet_delete.go index d38e946be..9b78f6048 100644 --- a/entc/integration/gremlin/ent/pet_delete.go +++ b/entc/integration/gremlin/ent/pet_delete.go @@ -21,14 +21,13 @@ import ( // PetDelete is the builder for deleting a Pet entity. type PetDelete struct { config - hooks []Hook - mutation *PetMutation - predicates []predicate.Pet + hooks []Hook + mutation *PetMutation } // Where adds a new predicate to the delete builder. func (pd *PetDelete) Where(ps ...predicate.Pet) *PetDelete { - pd.predicates = append(pd.predicates, ps...) + pd.mutation.predicates = append(pd.mutation.predicates, ps...) return pd } @@ -81,7 +80,7 @@ func (pd *PetDelete) gremlinExec(ctx context.Context) (int, error) { func (pd *PetDelete) gremlin() *dsl.Traversal { t := g.V().HasLabel(pet.Label) - for _, p := range pd.predicates { + for _, p := range pd.mutation.predicates { p(t) } return t.SideEffect(__.Drop()).Count() diff --git a/entc/integration/gremlin/ent/pet_update.go b/entc/integration/gremlin/ent/pet_update.go index a2e38f569..c023a25a2 100644 --- a/entc/integration/gremlin/ent/pet_update.go +++ b/entc/integration/gremlin/ent/pet_update.go @@ -23,14 +23,13 @@ import ( // PetUpdate is the builder for updating Pet entities. type PetUpdate struct { config - hooks []Hook - mutation *PetMutation - predicates []predicate.Pet + hooks []Hook + mutation *PetMutation } // Where adds a new predicate for the builder. func (pu *PetUpdate) Where(ps ...predicate.Pet) *PetUpdate { - pu.predicates = append(pu.predicates, ps...) + pu.mutation.predicates = append(pu.mutation.predicates, ps...) return pu } @@ -165,7 +164,7 @@ func (pu *PetUpdate) gremlin() *dsl.Traversal { } constraints := make([]*constraint, 0, 1) v := g.V().HasLabel(pet.Label) - for _, p := range pu.predicates { + for _, p := range pu.mutation.predicates { p(v) } var ( diff --git a/entc/integration/gremlin/ent/spec_delete.go b/entc/integration/gremlin/ent/spec_delete.go index b1f62f455..6becfa069 100644 --- a/entc/integration/gremlin/ent/spec_delete.go +++ b/entc/integration/gremlin/ent/spec_delete.go @@ -21,14 +21,13 @@ import ( // SpecDelete is the builder for deleting a Spec entity. type SpecDelete struct { config - hooks []Hook - mutation *SpecMutation - predicates []predicate.Spec + hooks []Hook + mutation *SpecMutation } // Where adds a new predicate to the delete builder. func (sd *SpecDelete) Where(ps ...predicate.Spec) *SpecDelete { - sd.predicates = append(sd.predicates, ps...) + sd.mutation.predicates = append(sd.mutation.predicates, ps...) return sd } @@ -81,7 +80,7 @@ func (sd *SpecDelete) gremlinExec(ctx context.Context) (int, error) { func (sd *SpecDelete) gremlin() *dsl.Traversal { t := g.V().HasLabel(spec.Label) - for _, p := range sd.predicates { + for _, p := range sd.mutation.predicates { p(t) } return t.SideEffect(__.Drop()).Count() diff --git a/entc/integration/gremlin/ent/spec_update.go b/entc/integration/gremlin/ent/spec_update.go index 0e65246ff..8492a40d8 100644 --- a/entc/integration/gremlin/ent/spec_update.go +++ b/entc/integration/gremlin/ent/spec_update.go @@ -21,14 +21,13 @@ import ( // SpecUpdate is the builder for updating Spec entities. type SpecUpdate struct { config - hooks []Hook - mutation *SpecMutation - predicates []predicate.Spec + hooks []Hook + mutation *SpecMutation } // Where adds a new predicate for the builder. func (su *SpecUpdate) Where(ps ...predicate.Spec) *SpecUpdate { - su.predicates = append(su.predicates, ps...) + su.mutation.predicates = append(su.mutation.predicates, ps...) return su } @@ -138,7 +137,7 @@ func (su *SpecUpdate) gremlinSave(ctx context.Context) (int, error) { func (su *SpecUpdate) gremlin() *dsl.Traversal { v := g.V().HasLabel(spec.Label) - for _, p := range su.predicates { + for _, p := range su.mutation.predicates { p(v) } var ( diff --git a/entc/integration/gremlin/ent/task_delete.go b/entc/integration/gremlin/ent/task_delete.go index 49b0e5228..29e050532 100644 --- a/entc/integration/gremlin/ent/task_delete.go +++ b/entc/integration/gremlin/ent/task_delete.go @@ -21,14 +21,13 @@ import ( // TaskDelete is the builder for deleting a Task entity. type TaskDelete struct { config - hooks []Hook - mutation *TaskMutation - predicates []predicate.Task + hooks []Hook + mutation *TaskMutation } // Where adds a new predicate to the delete builder. func (td *TaskDelete) Where(ps ...predicate.Task) *TaskDelete { - td.predicates = append(td.predicates, ps...) + td.mutation.predicates = append(td.mutation.predicates, ps...) return td } @@ -81,7 +80,7 @@ func (td *TaskDelete) gremlinExec(ctx context.Context) (int, error) { func (td *TaskDelete) gremlin() *dsl.Traversal { t := g.V().HasLabel(task.Label) - for _, p := range td.predicates { + for _, p := range td.mutation.predicates { p(t) } return t.SideEffect(__.Drop()).Count() diff --git a/entc/integration/gremlin/ent/task_update.go b/entc/integration/gremlin/ent/task_update.go index 87138022e..8873a337a 100644 --- a/entc/integration/gremlin/ent/task_update.go +++ b/entc/integration/gremlin/ent/task_update.go @@ -22,14 +22,13 @@ import ( // TaskUpdate is the builder for updating Task entities. type TaskUpdate struct { config - hooks []Hook - mutation *TaskMutation - predicates []predicate.Task + hooks []Hook + mutation *TaskMutation } // Where adds a new predicate for the builder. func (tu *TaskUpdate) Where(ps ...predicate.Task) *TaskUpdate { - tu.predicates = append(tu.predicates, ps...) + tu.mutation.predicates = append(tu.mutation.predicates, ps...) return tu } @@ -140,7 +139,7 @@ func (tu *TaskUpdate) gremlinSave(ctx context.Context) (int, error) { func (tu *TaskUpdate) gremlin() *dsl.Traversal { v := g.V().HasLabel(task.Label) - for _, p := range tu.predicates { + for _, p := range tu.mutation.predicates { p(v) } var ( diff --git a/entc/integration/gremlin/ent/user_delete.go b/entc/integration/gremlin/ent/user_delete.go index dfe8ff3fd..42ed66177 100644 --- a/entc/integration/gremlin/ent/user_delete.go +++ b/entc/integration/gremlin/ent/user_delete.go @@ -21,14 +21,13 @@ import ( // UserDelete is the builder for deleting a User entity. type UserDelete struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate to the delete builder. func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete { - ud.predicates = append(ud.predicates, ps...) + ud.mutation.predicates = append(ud.mutation.predicates, ps...) return ud } @@ -81,7 +80,7 @@ func (ud *UserDelete) gremlinExec(ctx context.Context) (int, error) { func (ud *UserDelete) gremlin() *dsl.Traversal { t := g.V().HasLabel(user.Label) - for _, p := range ud.predicates { + for _, p := range ud.mutation.predicates { p(t) } return t.SideEffect(__.Drop()).Count() diff --git a/entc/integration/gremlin/ent/user_update.go b/entc/integration/gremlin/ent/user_update.go index 1b2fd2963..70fbcf203 100644 --- a/entc/integration/gremlin/ent/user_update.go +++ b/entc/integration/gremlin/ent/user_update.go @@ -22,14 +22,13 @@ import ( // UserUpdate is the builder for updating User entities. type UserUpdate struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate for the builder. func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate { - uu.predicates = append(uu.predicates, ps...) + uu.mutation.predicates = append(uu.mutation.predicates, ps...) return uu } @@ -635,7 +634,7 @@ func (uu *UserUpdate) gremlin() *dsl.Traversal { } constraints := make([]*constraint, 0, 8) v := g.V().HasLabel(user.Label) - for _, p := range uu.predicates { + for _, p := range uu.mutation.predicates { p(v) } var ( diff --git a/entc/integration/hooks/ent/card_delete.go b/entc/integration/hooks/ent/card_delete.go index 46b225c48..91b7efb9e 100644 --- a/entc/integration/hooks/ent/card_delete.go +++ b/entc/integration/hooks/ent/card_delete.go @@ -20,14 +20,13 @@ import ( // CardDelete is the builder for deleting a Card entity. type CardDelete struct { config - hooks []Hook - mutation *CardMutation - predicates []predicate.Card + hooks []Hook + mutation *CardMutation } // Where adds a new predicate to the delete builder. func (cd *CardDelete) Where(ps ...predicate.Card) *CardDelete { - cd.predicates = append(cd.predicates, ps...) + cd.mutation.predicates = append(cd.mutation.predicates, ps...) return cd } @@ -79,7 +78,7 @@ func (cd *CardDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := cd.predicates; len(ps) > 0 { + if ps := cd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/hooks/ent/card_update.go b/entc/integration/hooks/ent/card_update.go index d7bcddac4..2a061922c 100644 --- a/entc/integration/hooks/ent/card_update.go +++ b/entc/integration/hooks/ent/card_update.go @@ -22,14 +22,13 @@ import ( // CardUpdate is the builder for updating Card entities. type CardUpdate struct { config - hooks []Hook - mutation *CardMutation - predicates []predicate.Card + hooks []Hook + mutation *CardMutation } // Where adds a new predicate for the builder. func (cu *CardUpdate) Where(ps ...predicate.Card) *CardUpdate { - cu.predicates = append(cu.predicates, ps...) + cu.mutation.predicates = append(cu.mutation.predicates, ps...) return cu } @@ -165,7 +164,7 @@ func (cu *CardUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := cu.predicates; len(ps) > 0 { + if ps := cu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/hooks/ent/mutation.go b/entc/integration/hooks/ent/mutation.go index a88e28136..07bd53113 100644 --- a/entc/integration/hooks/ent/mutation.go +++ b/entc/integration/hooks/ent/mutation.go @@ -13,6 +13,7 @@ import ( "time" "github.com/facebook/ent/entc/integration/hooks/ent/card" + "github.com/facebook/ent/entc/integration/hooks/ent/predicate" "github.com/facebook/ent/entc/integration/hooks/ent/user" "github.com/facebook/ent" @@ -47,6 +48,7 @@ type CardMutation struct { clearedowner bool done bool oldValue func(context.Context) (*Card, error) + predicates []predicate.Card } var _ ent.Mutation = (*CardMutation)(nil) @@ -603,6 +605,7 @@ type UserMutation struct { clearedbest_friend bool done bool oldValue func(context.Context) (*User, error) + predicates []predicate.User } var _ ent.Mutation = (*UserMutation)(nil) diff --git a/entc/integration/hooks/ent/user_delete.go b/entc/integration/hooks/ent/user_delete.go index d0582bb8a..ee0d0a77f 100644 --- a/entc/integration/hooks/ent/user_delete.go +++ b/entc/integration/hooks/ent/user_delete.go @@ -20,14 +20,13 @@ import ( // UserDelete is the builder for deleting a User entity. type UserDelete struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate to the delete builder. func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete { - ud.predicates = append(ud.predicates, ps...) + ud.mutation.predicates = append(ud.mutation.predicates, ps...) return ud } @@ -79,7 +78,7 @@ func (ud *UserDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := ud.predicates; len(ps) > 0 { + if ps := ud.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/hooks/ent/user_update.go b/entc/integration/hooks/ent/user_update.go index 5c5416515..9841af2bc 100644 --- a/entc/integration/hooks/ent/user_update.go +++ b/entc/integration/hooks/ent/user_update.go @@ -21,14 +21,13 @@ import ( // UserUpdate is the builder for updating User entities. type UserUpdate struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate for the builder. func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate { - uu.predicates = append(uu.predicates, ps...) + uu.mutation.predicates = append(uu.mutation.predicates, ps...) return uu } @@ -250,7 +249,7 @@ func (uu *UserUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := uu.predicates; len(ps) > 0 { + if ps := uu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/idtype/ent/mutation.go b/entc/integration/idtype/ent/mutation.go index 9ffd181e6..4ee3ccfb8 100644 --- a/entc/integration/idtype/ent/mutation.go +++ b/entc/integration/idtype/ent/mutation.go @@ -11,6 +11,7 @@ import ( "fmt" "sync" + "github.com/facebook/ent/entc/integration/idtype/ent/predicate" "github.com/facebook/ent/entc/integration/idtype/ent/user" "github.com/facebook/ent" @@ -47,6 +48,7 @@ type UserMutation struct { clearedfollowing bool done bool oldValue func(context.Context) (*User, error) + predicates []predicate.User } var _ ent.Mutation = (*UserMutation)(nil) diff --git a/entc/integration/idtype/ent/user_delete.go b/entc/integration/idtype/ent/user_delete.go index a64b1ae00..f9b076754 100644 --- a/entc/integration/idtype/ent/user_delete.go +++ b/entc/integration/idtype/ent/user_delete.go @@ -20,14 +20,13 @@ import ( // UserDelete is the builder for deleting a User entity. type UserDelete struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate to the delete builder. func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete { - ud.predicates = append(ud.predicates, ps...) + ud.mutation.predicates = append(ud.mutation.predicates, ps...) return ud } @@ -79,7 +78,7 @@ func (ud *UserDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := ud.predicates; len(ps) > 0 { + if ps := ud.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/idtype/ent/user_update.go b/entc/integration/idtype/ent/user_update.go index 7e756a60a..93723a284 100644 --- a/entc/integration/idtype/ent/user_update.go +++ b/entc/integration/idtype/ent/user_update.go @@ -20,14 +20,13 @@ import ( // UserUpdate is the builder for updating User entities. type UserUpdate struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate for the builder. func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate { - uu.predicates = append(uu.predicates, ps...) + uu.mutation.predicates = append(uu.mutation.predicates, ps...) return uu } @@ -201,7 +200,7 @@ func (uu *UserUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := uu.predicates; len(ps) > 0 { + if ps := uu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/json/ent/mutation.go b/entc/integration/json/ent/mutation.go index 1b0c0db7b..bf9786f43 100644 --- a/entc/integration/json/ent/mutation.go +++ b/entc/integration/json/ent/mutation.go @@ -14,6 +14,7 @@ import ( "net/url" "sync" + "github.com/facebook/ent/entc/integration/json/ent/predicate" "github.com/facebook/ent/entc/integration/json/ent/schema" "github.com/facebook/ent/entc/integration/json/ent/user" @@ -49,6 +50,7 @@ type UserMutation struct { clearedFields map[string]struct{} done bool oldValue func(context.Context) (*User, error) + predicates []predicate.User } var _ ent.Mutation = (*UserMutation)(nil) diff --git a/entc/integration/json/ent/user_delete.go b/entc/integration/json/ent/user_delete.go index c0978bcc0..699cc8f43 100644 --- a/entc/integration/json/ent/user_delete.go +++ b/entc/integration/json/ent/user_delete.go @@ -20,14 +20,13 @@ import ( // UserDelete is the builder for deleting a User entity. type UserDelete struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate to the delete builder. func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete { - ud.predicates = append(ud.predicates, ps...) + ud.mutation.predicates = append(ud.mutation.predicates, ps...) return ud } @@ -79,7 +78,7 @@ func (ud *UserDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := ud.predicates; len(ps) > 0 { + if ps := ud.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/json/ent/user_update.go b/entc/integration/json/ent/user_update.go index b0def7592..eebc4d867 100644 --- a/entc/integration/json/ent/user_update.go +++ b/entc/integration/json/ent/user_update.go @@ -24,14 +24,13 @@ import ( // UserUpdate is the builder for updating User entities. type UserUpdate struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate for the builder. func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate { - uu.predicates = append(uu.predicates, ps...) + uu.mutation.predicates = append(uu.mutation.predicates, ps...) return uu } @@ -186,7 +185,7 @@ func (uu *UserUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := uu.predicates; len(ps) > 0 { + if ps := uu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/migrate/entv1/car_delete.go b/entc/integration/migrate/entv1/car_delete.go index 58fee2d4d..28f2c55fe 100644 --- a/entc/integration/migrate/entv1/car_delete.go +++ b/entc/integration/migrate/entv1/car_delete.go @@ -20,14 +20,13 @@ import ( // CarDelete is the builder for deleting a Car entity. type CarDelete struct { config - hooks []Hook - mutation *CarMutation - predicates []predicate.Car + hooks []Hook + mutation *CarMutation } // Where adds a new predicate to the delete builder. func (cd *CarDelete) Where(ps ...predicate.Car) *CarDelete { - cd.predicates = append(cd.predicates, ps...) + cd.mutation.predicates = append(cd.mutation.predicates, ps...) return cd } @@ -79,7 +78,7 @@ func (cd *CarDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := cd.predicates; len(ps) > 0 { + if ps := cd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/migrate/entv1/car_update.go b/entc/integration/migrate/entv1/car_update.go index bc829da16..e84c7726c 100644 --- a/entc/integration/migrate/entv1/car_update.go +++ b/entc/integration/migrate/entv1/car_update.go @@ -21,14 +21,13 @@ import ( // CarUpdate is the builder for updating Car entities. type CarUpdate struct { config - hooks []Hook - mutation *CarMutation - predicates []predicate.Car + hooks []Hook + mutation *CarMutation } // Where adds a new predicate for the builder. func (cu *CarUpdate) Where(ps ...predicate.Car) *CarUpdate { - cu.predicates = append(cu.predicates, ps...) + cu.mutation.predicates = append(cu.mutation.predicates, ps...) return cu } @@ -124,7 +123,7 @@ func (cu *CarUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := cu.predicates; len(ps) > 0 { + if ps := cu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/migrate/entv1/mutation.go b/entc/integration/migrate/entv1/mutation.go index ef35784b7..2ab6bf9d3 100644 --- a/entc/integration/migrate/entv1/mutation.go +++ b/entc/integration/migrate/entv1/mutation.go @@ -12,6 +12,7 @@ import ( "sync" "github.com/facebook/ent/entc/integration/migrate/entv1/car" + "github.com/facebook/ent/entc/integration/migrate/entv1/predicate" "github.com/facebook/ent/entc/integration/migrate/entv1/user" "github.com/facebook/ent" @@ -42,6 +43,7 @@ type CarMutation struct { clearedowner bool done bool oldValue func(context.Context) (*Car, error) + predicates []predicate.Car } var _ ent.Mutation = (*CarMutation)(nil) @@ -357,6 +359,7 @@ type UserMutation struct { clearedcar bool done bool oldValue func(context.Context) (*User, error) + predicates []predicate.User } var _ ent.Mutation = (*UserMutation)(nil) diff --git a/entc/integration/migrate/entv1/user_delete.go b/entc/integration/migrate/entv1/user_delete.go index ebc22ed50..01ab5e169 100644 --- a/entc/integration/migrate/entv1/user_delete.go +++ b/entc/integration/migrate/entv1/user_delete.go @@ -20,14 +20,13 @@ import ( // UserDelete is the builder for deleting a User entity. type UserDelete struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate to the delete builder. func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete { - ud.predicates = append(ud.predicates, ps...) + ud.mutation.predicates = append(ud.mutation.predicates, ps...) return ud } @@ -79,7 +78,7 @@ func (ud *UserDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := ud.predicates; len(ps) > 0 { + if ps := ud.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/migrate/entv1/user_update.go b/entc/integration/migrate/entv1/user_update.go index 1585e1a2b..91db5866d 100644 --- a/entc/integration/migrate/entv1/user_update.go +++ b/entc/integration/migrate/entv1/user_update.go @@ -21,14 +21,13 @@ import ( // UserUpdate is the builder for updating User entities. type UserUpdate struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate for the builder. func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate { - uu.predicates = append(uu.predicates, ps...) + uu.mutation.predicates = append(uu.mutation.predicates, ps...) return uu } @@ -348,7 +347,7 @@ func (uu *UserUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := uu.predicates; len(ps) > 0 { + if ps := uu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/migrate/entv2/car_delete.go b/entc/integration/migrate/entv2/car_delete.go index 3fb6567cf..f796f763f 100644 --- a/entc/integration/migrate/entv2/car_delete.go +++ b/entc/integration/migrate/entv2/car_delete.go @@ -20,14 +20,13 @@ import ( // CarDelete is the builder for deleting a Car entity. type CarDelete struct { config - hooks []Hook - mutation *CarMutation - predicates []predicate.Car + hooks []Hook + mutation *CarMutation } // Where adds a new predicate to the delete builder. func (cd *CarDelete) Where(ps ...predicate.Car) *CarDelete { - cd.predicates = append(cd.predicates, ps...) + cd.mutation.predicates = append(cd.mutation.predicates, ps...) return cd } @@ -79,7 +78,7 @@ func (cd *CarDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := cd.predicates; len(ps) > 0 { + if ps := cd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/migrate/entv2/car_update.go b/entc/integration/migrate/entv2/car_update.go index bbaa155b5..960e85ae2 100644 --- a/entc/integration/migrate/entv2/car_update.go +++ b/entc/integration/migrate/entv2/car_update.go @@ -21,14 +21,13 @@ import ( // CarUpdate is the builder for updating Car entities. type CarUpdate struct { config - hooks []Hook - mutation *CarMutation - predicates []predicate.Car + hooks []Hook + mutation *CarMutation } // Where adds a new predicate for the builder. func (cu *CarUpdate) Where(ps ...predicate.Car) *CarUpdate { - cu.predicates = append(cu.predicates, ps...) + cu.mutation.predicates = append(cu.mutation.predicates, ps...) return cu } @@ -124,7 +123,7 @@ func (cu *CarUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := cu.predicates; len(ps) > 0 { + if ps := cu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/migrate/entv2/group_delete.go b/entc/integration/migrate/entv2/group_delete.go index f4f1cf230..2de76d066 100644 --- a/entc/integration/migrate/entv2/group_delete.go +++ b/entc/integration/migrate/entv2/group_delete.go @@ -20,14 +20,13 @@ import ( // GroupDelete is the builder for deleting a Group entity. type GroupDelete struct { config - hooks []Hook - mutation *GroupMutation - predicates []predicate.Group + hooks []Hook + mutation *GroupMutation } // Where adds a new predicate to the delete builder. func (gd *GroupDelete) Where(ps ...predicate.Group) *GroupDelete { - gd.predicates = append(gd.predicates, ps...) + gd.mutation.predicates = append(gd.mutation.predicates, ps...) return gd } @@ -79,7 +78,7 @@ func (gd *GroupDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := gd.predicates; len(ps) > 0 { + if ps := gd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/migrate/entv2/group_update.go b/entc/integration/migrate/entv2/group_update.go index 07b69a559..520e6c44b 100644 --- a/entc/integration/migrate/entv2/group_update.go +++ b/entc/integration/migrate/entv2/group_update.go @@ -20,14 +20,13 @@ import ( // GroupUpdate is the builder for updating Group entities. type GroupUpdate struct { config - hooks []Hook - mutation *GroupMutation - predicates []predicate.Group + hooks []Hook + mutation *GroupMutation } // Where adds a new predicate for the builder. func (gu *GroupUpdate) Where(ps ...predicate.Group) *GroupUpdate { - gu.predicates = append(gu.predicates, ps...) + gu.mutation.predicates = append(gu.mutation.predicates, ps...) return gu } @@ -98,7 +97,7 @@ func (gu *GroupUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := gu.predicates; len(ps) > 0 { + if ps := gu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/migrate/entv2/mutation.go b/entc/integration/migrate/entv2/mutation.go index 825ab514b..a9457a9cb 100644 --- a/entc/integration/migrate/entv2/mutation.go +++ b/entc/integration/migrate/entv2/mutation.go @@ -13,6 +13,7 @@ import ( "github.com/facebook/ent/entc/integration/migrate/entv2/car" "github.com/facebook/ent/entc/integration/migrate/entv2/pet" + "github.com/facebook/ent/entc/integration/migrate/entv2/predicate" "github.com/facebook/ent/entc/integration/migrate/entv2/user" "github.com/facebook/ent" @@ -45,6 +46,7 @@ type CarMutation struct { clearedowner bool done bool oldValue func(context.Context) (*Car, error) + predicates []predicate.Car } var _ ent.Mutation = (*CarMutation)(nil) @@ -342,6 +344,7 @@ type GroupMutation struct { clearedFields map[string]struct{} done bool oldValue func(context.Context) (*Group, error) + predicates []predicate.Group } var _ ent.Mutation = (*GroupMutation)(nil) @@ -574,6 +577,7 @@ type PetMutation struct { clearedowner bool done bool oldValue func(context.Context) (*Pet, error) + predicates []predicate.Pet } var _ ent.Mutation = (*PetMutation)(nil) @@ -892,6 +896,7 @@ type UserMutation struct { clearedfriends bool done bool oldValue func(context.Context) (*User, error) + predicates []predicate.User } var _ ent.Mutation = (*UserMutation)(nil) diff --git a/entc/integration/migrate/entv2/pet_delete.go b/entc/integration/migrate/entv2/pet_delete.go index cd6bbebb3..beb23bf6d 100644 --- a/entc/integration/migrate/entv2/pet_delete.go +++ b/entc/integration/migrate/entv2/pet_delete.go @@ -20,14 +20,13 @@ import ( // PetDelete is the builder for deleting a Pet entity. type PetDelete struct { config - hooks []Hook - mutation *PetMutation - predicates []predicate.Pet + hooks []Hook + mutation *PetMutation } // Where adds a new predicate to the delete builder. func (pd *PetDelete) Where(ps ...predicate.Pet) *PetDelete { - pd.predicates = append(pd.predicates, ps...) + pd.mutation.predicates = append(pd.mutation.predicates, ps...) return pd } @@ -79,7 +78,7 @@ func (pd *PetDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := pd.predicates; len(ps) > 0 { + if ps := pd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/migrate/entv2/pet_update.go b/entc/integration/migrate/entv2/pet_update.go index 8c57b855b..511869b1f 100644 --- a/entc/integration/migrate/entv2/pet_update.go +++ b/entc/integration/migrate/entv2/pet_update.go @@ -21,14 +21,13 @@ import ( // PetUpdate is the builder for updating Pet entities. type PetUpdate struct { config - hooks []Hook - mutation *PetMutation - predicates []predicate.Pet + hooks []Hook + mutation *PetMutation } // Where adds a new predicate for the builder. func (pu *PetUpdate) Where(ps ...predicate.Pet) *PetUpdate { - pu.predicates = append(pu.predicates, ps...) + pu.mutation.predicates = append(pu.mutation.predicates, ps...) return pu } @@ -124,7 +123,7 @@ func (pu *PetUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := pu.predicates; len(ps) > 0 { + if ps := pu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/migrate/entv2/user_delete.go b/entc/integration/migrate/entv2/user_delete.go index b32329141..2488bb9df 100644 --- a/entc/integration/migrate/entv2/user_delete.go +++ b/entc/integration/migrate/entv2/user_delete.go @@ -20,14 +20,13 @@ import ( // UserDelete is the builder for deleting a User entity. type UserDelete struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate to the delete builder. func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete { - ud.predicates = append(ud.predicates, ps...) + ud.mutation.predicates = append(ud.mutation.predicates, ps...) return ud } @@ -79,7 +78,7 @@ func (ud *UserDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := ud.predicates; len(ps) > 0 { + if ps := ud.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/migrate/entv2/user_update.go b/entc/integration/migrate/entv2/user_update.go index 4e816e6a6..2c53516b7 100644 --- a/entc/integration/migrate/entv2/user_update.go +++ b/entc/integration/migrate/entv2/user_update.go @@ -22,14 +22,13 @@ import ( // UserUpdate is the builder for updating User entities. type UserUpdate struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate for the builder. func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate { - uu.predicates = append(uu.predicates, ps...) + uu.mutation.predicates = append(uu.mutation.predicates, ps...) return uu } @@ -388,7 +387,7 @@ func (uu *UserUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := uu.predicates; len(ps) > 0 { + if ps := uu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/privacy/ent/mutation.go b/entc/integration/privacy/ent/mutation.go index ac31683c6..eae929ff9 100644 --- a/entc/integration/privacy/ent/mutation.go +++ b/entc/integration/privacy/ent/mutation.go @@ -11,6 +11,7 @@ import ( "fmt" "sync" + "github.com/facebook/ent/entc/integration/privacy/ent/predicate" "github.com/facebook/ent/entc/integration/privacy/ent/task" "github.com/facebook/ent/entc/integration/privacy/ent/team" "github.com/facebook/ent/entc/integration/privacy/ent/user" @@ -50,6 +51,7 @@ type TaskMutation struct { clearedowner bool done bool oldValue func(context.Context) (*Task, error) + predicates []predicate.Task } var _ ent.Mutation = (*TaskMutation)(nil) @@ -625,6 +627,7 @@ type TeamMutation struct { clearedusers bool done bool oldValue func(context.Context) (*Team, error) + predicates []predicate.Team } var _ ent.Mutation = (*TeamMutation)(nil) @@ -1094,6 +1097,7 @@ type UserMutation struct { clearedtasks bool done bool oldValue func(context.Context) (*User, error) + predicates []predicate.User } var _ ent.Mutation = (*UserMutation)(nil) diff --git a/entc/integration/privacy/ent/task_delete.go b/entc/integration/privacy/ent/task_delete.go index e3ed89290..6e120af91 100644 --- a/entc/integration/privacy/ent/task_delete.go +++ b/entc/integration/privacy/ent/task_delete.go @@ -20,14 +20,13 @@ import ( // TaskDelete is the builder for deleting a Task entity. type TaskDelete struct { config - hooks []Hook - mutation *TaskMutation - predicates []predicate.Task + hooks []Hook + mutation *TaskMutation } // Where adds a new predicate to the delete builder. func (td *TaskDelete) Where(ps ...predicate.Task) *TaskDelete { - td.predicates = append(td.predicates, ps...) + td.mutation.predicates = append(td.mutation.predicates, ps...) return td } @@ -79,7 +78,7 @@ func (td *TaskDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := td.predicates; len(ps) > 0 { + if ps := td.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/privacy/ent/task_update.go b/entc/integration/privacy/ent/task_update.go index 24889a8f3..42bd594ac 100644 --- a/entc/integration/privacy/ent/task_update.go +++ b/entc/integration/privacy/ent/task_update.go @@ -22,14 +22,13 @@ import ( // TaskUpdate is the builder for updating Task entities. type TaskUpdate struct { config - hooks []Hook - mutation *TaskMutation - predicates []predicate.Task + hooks []Hook + mutation *TaskMutation } // Where adds a new predicate for the builder. func (tu *TaskUpdate) Where(ps ...predicate.Task) *TaskUpdate { - tu.predicates = append(tu.predicates, ps...) + tu.mutation.predicates = append(tu.mutation.predicates, ps...) return tu } @@ -222,7 +221,7 @@ func (tu *TaskUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := tu.predicates; len(ps) > 0 { + if ps := tu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/privacy/ent/team_delete.go b/entc/integration/privacy/ent/team_delete.go index ac8ca24f6..30eda30a6 100644 --- a/entc/integration/privacy/ent/team_delete.go +++ b/entc/integration/privacy/ent/team_delete.go @@ -20,14 +20,13 @@ import ( // TeamDelete is the builder for deleting a Team entity. type TeamDelete struct { config - hooks []Hook - mutation *TeamMutation - predicates []predicate.Team + hooks []Hook + mutation *TeamMutation } // Where adds a new predicate to the delete builder. func (td *TeamDelete) Where(ps ...predicate.Team) *TeamDelete { - td.predicates = append(td.predicates, ps...) + td.mutation.predicates = append(td.mutation.predicates, ps...) return td } @@ -79,7 +78,7 @@ func (td *TeamDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := td.predicates; len(ps) > 0 { + if ps := td.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/privacy/ent/team_update.go b/entc/integration/privacy/ent/team_update.go index d61de0050..e682d9187 100644 --- a/entc/integration/privacy/ent/team_update.go +++ b/entc/integration/privacy/ent/team_update.go @@ -22,14 +22,13 @@ import ( // TeamUpdate is the builder for updating Team entities. type TeamUpdate struct { config - hooks []Hook - mutation *TeamMutation - predicates []predicate.Team + hooks []Hook + mutation *TeamMutation } // Where adds a new predicate for the builder. func (tu *TeamUpdate) Where(ps ...predicate.Team) *TeamUpdate { - tu.predicates = append(tu.predicates, ps...) + tu.mutation.predicates = append(tu.mutation.predicates, ps...) return tu } @@ -194,7 +193,7 @@ func (tu *TeamUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := tu.predicates; len(ps) > 0 { + if ps := tu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/privacy/ent/user_delete.go b/entc/integration/privacy/ent/user_delete.go index 278685434..b8f41e944 100644 --- a/entc/integration/privacy/ent/user_delete.go +++ b/entc/integration/privacy/ent/user_delete.go @@ -20,14 +20,13 @@ import ( // UserDelete is the builder for deleting a User entity. type UserDelete struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate to the delete builder. func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete { - ud.predicates = append(ud.predicates, ps...) + ud.mutation.predicates = append(ud.mutation.predicates, ps...) return ud } @@ -79,7 +78,7 @@ func (ud *UserDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := ud.predicates; len(ps) > 0 { + if ps := ud.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/privacy/ent/user_update.go b/entc/integration/privacy/ent/user_update.go index 4ae088e2f..b7c72757c 100644 --- a/entc/integration/privacy/ent/user_update.go +++ b/entc/integration/privacy/ent/user_update.go @@ -22,14 +22,13 @@ import ( // UserUpdate is the builder for updating User entities. type UserUpdate struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate for the builder. func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate { - uu.predicates = append(uu.predicates, ps...) + uu.mutation.predicates = append(uu.mutation.predicates, ps...) return uu } @@ -199,7 +198,7 @@ func (uu *UserUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := uu.predicates; len(ps) > 0 { + if ps := uu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/template/ent/group_delete.go b/entc/integration/template/ent/group_delete.go index 600c66d54..490687fab 100644 --- a/entc/integration/template/ent/group_delete.go +++ b/entc/integration/template/ent/group_delete.go @@ -20,14 +20,13 @@ import ( // GroupDelete is the builder for deleting a Group entity. type GroupDelete struct { config - hooks []Hook - mutation *GroupMutation - predicates []predicate.Group + hooks []Hook + mutation *GroupMutation } // Where adds a new predicate to the delete builder. func (gd *GroupDelete) Where(ps ...predicate.Group) *GroupDelete { - gd.predicates = append(gd.predicates, ps...) + gd.mutation.predicates = append(gd.mutation.predicates, ps...) return gd } @@ -79,7 +78,7 @@ func (gd *GroupDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := gd.predicates; len(ps) > 0 { + if ps := gd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/template/ent/group_update.go b/entc/integration/template/ent/group_update.go index f25f7dceb..a13e97b7b 100644 --- a/entc/integration/template/ent/group_update.go +++ b/entc/integration/template/ent/group_update.go @@ -20,14 +20,13 @@ import ( // GroupUpdate is the builder for updating Group entities. type GroupUpdate struct { config - hooks []Hook - mutation *GroupMutation - predicates []predicate.Group + hooks []Hook + mutation *GroupMutation } // Where adds a new predicate for the builder. func (gu *GroupUpdate) Where(ps ...predicate.Group) *GroupUpdate { - gu.predicates = append(gu.predicates, ps...) + gu.mutation.predicates = append(gu.mutation.predicates, ps...) return gu } @@ -111,7 +110,7 @@ func (gu *GroupUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := gu.predicates; len(ps) > 0 { + if ps := gu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/template/ent/mutation.go b/entc/integration/template/ent/mutation.go index 81ec1b014..a71816fe8 100644 --- a/entc/integration/template/ent/mutation.go +++ b/entc/integration/template/ent/mutation.go @@ -14,6 +14,7 @@ import ( "github.com/facebook/ent/entc/integration/template/ent/group" "github.com/facebook/ent/entc/integration/template/ent/pet" + "github.com/facebook/ent/entc/integration/template/ent/predicate" "github.com/facebook/ent/entc/integration/template/ent/user" "github.com/facebook/ent" @@ -45,6 +46,7 @@ type GroupMutation struct { clearedFields map[string]struct{} done bool oldValue func(context.Context) (*Group, error) + predicates []predicate.Group } var _ ent.Mutation = (*GroupMutation)(nil) @@ -377,6 +379,7 @@ type PetMutation struct { clearedowner bool done bool oldValue func(context.Context) (*Pet, error) + predicates []predicate.Pet } var _ ent.Mutation = (*PetMutation)(nil) @@ -854,6 +857,7 @@ type UserMutation struct { clearedfriends bool done bool oldValue func(context.Context) (*User, error) + predicates []predicate.User } var _ ent.Mutation = (*UserMutation)(nil) diff --git a/entc/integration/template/ent/pet_delete.go b/entc/integration/template/ent/pet_delete.go index 6f668a55f..ae2c59e96 100644 --- a/entc/integration/template/ent/pet_delete.go +++ b/entc/integration/template/ent/pet_delete.go @@ -20,14 +20,13 @@ import ( // PetDelete is the builder for deleting a Pet entity. type PetDelete struct { config - hooks []Hook - mutation *PetMutation - predicates []predicate.Pet + hooks []Hook + mutation *PetMutation } // Where adds a new predicate to the delete builder. func (pd *PetDelete) Where(ps ...predicate.Pet) *PetDelete { - pd.predicates = append(pd.predicates, ps...) + pd.mutation.predicates = append(pd.mutation.predicates, ps...) return pd } @@ -79,7 +78,7 @@ func (pd *PetDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := pd.predicates; len(ps) > 0 { + if ps := pd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/template/ent/pet_update.go b/entc/integration/template/ent/pet_update.go index 23c77d426..913866ee6 100644 --- a/entc/integration/template/ent/pet_update.go +++ b/entc/integration/template/ent/pet_update.go @@ -22,14 +22,13 @@ import ( // PetUpdate is the builder for updating Pet entities. type PetUpdate struct { config - hooks []Hook - mutation *PetMutation - predicates []predicate.Pet + hooks []Hook + mutation *PetMutation } // Where adds a new predicate for the builder. func (pu *PetUpdate) Where(ps ...predicate.Pet) *PetUpdate { - pu.predicates = append(pu.predicates, ps...) + pu.mutation.predicates = append(pu.mutation.predicates, ps...) return pu } @@ -158,7 +157,7 @@ func (pu *PetUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := pu.predicates; len(ps) > 0 { + if ps := pu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/template/ent/user_delete.go b/entc/integration/template/ent/user_delete.go index 11650af38..2478bf049 100644 --- a/entc/integration/template/ent/user_delete.go +++ b/entc/integration/template/ent/user_delete.go @@ -20,14 +20,13 @@ import ( // UserDelete is the builder for deleting a User entity. type UserDelete struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate to the delete builder. func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete { - ud.predicates = append(ud.predicates, ps...) + ud.mutation.predicates = append(ud.mutation.predicates, ps...) return ud } @@ -79,7 +78,7 @@ func (ud *UserDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := ud.predicates; len(ps) > 0 { + if ps := ud.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/entc/integration/template/ent/user_update.go b/entc/integration/template/ent/user_update.go index a0de5206e..6e4835062 100644 --- a/entc/integration/template/ent/user_update.go +++ b/entc/integration/template/ent/user_update.go @@ -21,14 +21,13 @@ import ( // UserUpdate is the builder for updating User entities. type UserUpdate struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate for the builder. func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate { - uu.predicates = append(uu.predicates, ps...) + uu.mutation.predicates = append(uu.mutation.predicates, ps...) return uu } @@ -177,7 +176,7 @@ func (uu *UserUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := uu.predicates; len(ps) > 0 { + if ps := uu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/edgeindex/ent/city_delete.go b/examples/edgeindex/ent/city_delete.go index f85e6014c..b762cba1b 100644 --- a/examples/edgeindex/ent/city_delete.go +++ b/examples/edgeindex/ent/city_delete.go @@ -20,14 +20,13 @@ import ( // CityDelete is the builder for deleting a City entity. type CityDelete struct { config - hooks []Hook - mutation *CityMutation - predicates []predicate.City + hooks []Hook + mutation *CityMutation } // Where adds a new predicate to the delete builder. func (cd *CityDelete) Where(ps ...predicate.City) *CityDelete { - cd.predicates = append(cd.predicates, ps...) + cd.mutation.predicates = append(cd.mutation.predicates, ps...) return cd } @@ -79,7 +78,7 @@ func (cd *CityDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := cd.predicates; len(ps) > 0 { + if ps := cd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/edgeindex/ent/city_update.go b/examples/edgeindex/ent/city_update.go index 07e92aaf8..a484b719d 100644 --- a/examples/edgeindex/ent/city_update.go +++ b/examples/edgeindex/ent/city_update.go @@ -21,14 +21,13 @@ import ( // CityUpdate is the builder for updating City entities. type CityUpdate struct { config - hooks []Hook - mutation *CityMutation - predicates []predicate.City + hooks []Hook + mutation *CityMutation } // Where adds a new predicate for the builder. func (cu *CityUpdate) Where(ps ...predicate.City) *CityUpdate { - cu.predicates = append(cu.predicates, ps...) + cu.mutation.predicates = append(cu.mutation.predicates, ps...) return cu } @@ -141,7 +140,7 @@ func (cu *CityUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := cu.predicates; len(ps) > 0 { + if ps := cu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/edgeindex/ent/mutation.go b/examples/edgeindex/ent/mutation.go index bd5cad4f1..e31479521 100644 --- a/examples/edgeindex/ent/mutation.go +++ b/examples/edgeindex/ent/mutation.go @@ -12,6 +12,7 @@ import ( "sync" "github.com/facebook/ent/examples/edgeindex/ent/city" + "github.com/facebook/ent/examples/edgeindex/ent/predicate" "github.com/facebook/ent/examples/edgeindex/ent/street" "github.com/facebook/ent" @@ -44,6 +45,7 @@ type CityMutation struct { clearedstreets bool done bool oldValue func(context.Context) (*City, error) + predicates []predicate.City } var _ ent.Mutation = (*CityMutation)(nil) @@ -428,6 +430,7 @@ type StreetMutation struct { clearedcity bool done bool oldValue func(context.Context) (*Street, error) + predicates []predicate.Street } var _ ent.Mutation = (*StreetMutation)(nil) diff --git a/examples/edgeindex/ent/street_delete.go b/examples/edgeindex/ent/street_delete.go index 99d519bee..7be08e7ff 100644 --- a/examples/edgeindex/ent/street_delete.go +++ b/examples/edgeindex/ent/street_delete.go @@ -20,14 +20,13 @@ import ( // StreetDelete is the builder for deleting a Street entity. type StreetDelete struct { config - hooks []Hook - mutation *StreetMutation - predicates []predicate.Street + hooks []Hook + mutation *StreetMutation } // Where adds a new predicate to the delete builder. func (sd *StreetDelete) Where(ps ...predicate.Street) *StreetDelete { - sd.predicates = append(sd.predicates, ps...) + sd.mutation.predicates = append(sd.mutation.predicates, ps...) return sd } @@ -79,7 +78,7 @@ func (sd *StreetDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := sd.predicates; len(ps) > 0 { + if ps := sd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/edgeindex/ent/street_update.go b/examples/edgeindex/ent/street_update.go index 8b0acc006..5255b6f7f 100644 --- a/examples/edgeindex/ent/street_update.go +++ b/examples/edgeindex/ent/street_update.go @@ -21,14 +21,13 @@ import ( // StreetUpdate is the builder for updating Street entities. type StreetUpdate struct { config - hooks []Hook - mutation *StreetMutation - predicates []predicate.Street + hooks []Hook + mutation *StreetMutation } // Where adds a new predicate for the builder. func (su *StreetUpdate) Where(ps ...predicate.Street) *StreetUpdate { - su.predicates = append(su.predicates, ps...) + su.mutation.predicates = append(su.mutation.predicates, ps...) return su } @@ -130,7 +129,7 @@ func (su *StreetUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := su.predicates; len(ps) > 0 { + if ps := su.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/entcpkg/ent/mutation.go b/examples/entcpkg/ent/mutation.go index d7cb82f86..cb52ec56e 100644 --- a/examples/entcpkg/ent/mutation.go +++ b/examples/entcpkg/ent/mutation.go @@ -12,6 +12,7 @@ import ( "sync" "github.com/facebook/ent" + "github.com/facebook/ent/examples/entcpkg/ent/predicate" ) const ( @@ -36,6 +37,7 @@ type UserMutation struct { clearedFields map[string]struct{} done bool oldValue func(context.Context) (*User, error) + predicates []predicate.User } var _ ent.Mutation = (*UserMutation)(nil) diff --git a/examples/entcpkg/ent/user_delete.go b/examples/entcpkg/ent/user_delete.go index f76fa17ef..eb47344a6 100644 --- a/examples/entcpkg/ent/user_delete.go +++ b/examples/entcpkg/ent/user_delete.go @@ -20,14 +20,13 @@ import ( // UserDelete is the builder for deleting a User entity. type UserDelete struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate to the delete builder. func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete { - ud.predicates = append(ud.predicates, ps...) + ud.mutation.predicates = append(ud.mutation.predicates, ps...) return ud } @@ -79,7 +78,7 @@ func (ud *UserDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := ud.predicates; len(ps) > 0 { + if ps := ud.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/entcpkg/ent/user_update.go b/examples/entcpkg/ent/user_update.go index e733af3a9..46aaeb993 100644 --- a/examples/entcpkg/ent/user_update.go +++ b/examples/entcpkg/ent/user_update.go @@ -20,14 +20,13 @@ import ( // UserUpdate is the builder for updating User entities. type UserUpdate struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate for the builder. func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate { - uu.predicates = append(uu.predicates, ps...) + uu.mutation.predicates = append(uu.mutation.predicates, ps...) return uu } @@ -98,7 +97,7 @@ func (uu *UserUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := uu.predicates; len(ps) > 0 { + if ps := uu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/m2m2types/ent/group_delete.go b/examples/m2m2types/ent/group_delete.go index f89789a71..8d7fc1cbc 100644 --- a/examples/m2m2types/ent/group_delete.go +++ b/examples/m2m2types/ent/group_delete.go @@ -20,14 +20,13 @@ import ( // GroupDelete is the builder for deleting a Group entity. type GroupDelete struct { config - hooks []Hook - mutation *GroupMutation - predicates []predicate.Group + hooks []Hook + mutation *GroupMutation } // Where adds a new predicate to the delete builder. func (gd *GroupDelete) Where(ps ...predicate.Group) *GroupDelete { - gd.predicates = append(gd.predicates, ps...) + gd.mutation.predicates = append(gd.mutation.predicates, ps...) return gd } @@ -79,7 +78,7 @@ func (gd *GroupDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := gd.predicates; len(ps) > 0 { + if ps := gd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/m2m2types/ent/group_update.go b/examples/m2m2types/ent/group_update.go index 50257ddf1..82664112a 100644 --- a/examples/m2m2types/ent/group_update.go +++ b/examples/m2m2types/ent/group_update.go @@ -21,14 +21,13 @@ import ( // GroupUpdate is the builder for updating Group entities. type GroupUpdate struct { config - hooks []Hook - mutation *GroupMutation - predicates []predicate.Group + hooks []Hook + mutation *GroupMutation } // Where adds a new predicate for the builder. func (gu *GroupUpdate) Where(ps ...predicate.Group) *GroupUpdate { - gu.predicates = append(gu.predicates, ps...) + gu.mutation.predicates = append(gu.mutation.predicates, ps...) return gu } @@ -141,7 +140,7 @@ func (gu *GroupUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := gu.predicates; len(ps) > 0 { + if ps := gu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/m2m2types/ent/mutation.go b/examples/m2m2types/ent/mutation.go index 88b753cf3..a29dfda33 100644 --- a/examples/m2m2types/ent/mutation.go +++ b/examples/m2m2types/ent/mutation.go @@ -12,6 +12,7 @@ import ( "sync" "github.com/facebook/ent/examples/m2m2types/ent/group" + "github.com/facebook/ent/examples/m2m2types/ent/predicate" "github.com/facebook/ent/examples/m2m2types/ent/user" "github.com/facebook/ent" @@ -44,6 +45,7 @@ type GroupMutation struct { clearedusers bool done bool oldValue func(context.Context) (*Group, error) + predicates []predicate.Group } var _ ent.Mutation = (*GroupMutation)(nil) @@ -431,6 +433,7 @@ type UserMutation struct { clearedgroups bool done bool oldValue func(context.Context) (*User, error) + predicates []predicate.User } var _ ent.Mutation = (*UserMutation)(nil) diff --git a/examples/m2m2types/ent/user_delete.go b/examples/m2m2types/ent/user_delete.go index e954c4724..f21343c93 100644 --- a/examples/m2m2types/ent/user_delete.go +++ b/examples/m2m2types/ent/user_delete.go @@ -20,14 +20,13 @@ import ( // UserDelete is the builder for deleting a User entity. type UserDelete struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate to the delete builder. func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete { - ud.predicates = append(ud.predicates, ps...) + ud.mutation.predicates = append(ud.mutation.predicates, ps...) return ud } @@ -79,7 +78,7 @@ func (ud *UserDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := ud.predicates; len(ps) > 0 { + if ps := ud.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/m2m2types/ent/user_update.go b/examples/m2m2types/ent/user_update.go index a6a4009ee..979a478a1 100644 --- a/examples/m2m2types/ent/user_update.go +++ b/examples/m2m2types/ent/user_update.go @@ -21,14 +21,13 @@ import ( // UserUpdate is the builder for updating User entities. type UserUpdate struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate for the builder. func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate { - uu.predicates = append(uu.predicates, ps...) + uu.mutation.predicates = append(uu.mutation.predicates, ps...) return uu } @@ -154,7 +153,7 @@ func (uu *UserUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := uu.predicates; len(ps) > 0 { + if ps := uu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/m2mbidi/ent/mutation.go b/examples/m2mbidi/ent/mutation.go index 39b55521f..ca5dd6e23 100644 --- a/examples/m2mbidi/ent/mutation.go +++ b/examples/m2mbidi/ent/mutation.go @@ -11,6 +11,7 @@ import ( "fmt" "sync" + "github.com/facebook/ent/examples/m2mbidi/ent/predicate" "github.com/facebook/ent/examples/m2mbidi/ent/user" "github.com/facebook/ent" @@ -44,6 +45,7 @@ type UserMutation struct { clearedfriends bool done bool oldValue func(context.Context) (*User, error) + predicates []predicate.User } var _ ent.Mutation = (*UserMutation)(nil) diff --git a/examples/m2mbidi/ent/user_delete.go b/examples/m2mbidi/ent/user_delete.go index 8bceada75..26ce87639 100644 --- a/examples/m2mbidi/ent/user_delete.go +++ b/examples/m2mbidi/ent/user_delete.go @@ -20,14 +20,13 @@ import ( // UserDelete is the builder for deleting a User entity. type UserDelete struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate to the delete builder. func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete { - ud.predicates = append(ud.predicates, ps...) + ud.mutation.predicates = append(ud.mutation.predicates, ps...) return ud } @@ -79,7 +78,7 @@ func (ud *UserDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := ud.predicates; len(ps) > 0 { + if ps := ud.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/m2mbidi/ent/user_update.go b/examples/m2mbidi/ent/user_update.go index 617fd9183..ebb236cfe 100644 --- a/examples/m2mbidi/ent/user_update.go +++ b/examples/m2mbidi/ent/user_update.go @@ -20,14 +20,13 @@ import ( // UserUpdate is the builder for updating User entities. type UserUpdate struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate for the builder. func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate { - uu.predicates = append(uu.predicates, ps...) + uu.mutation.predicates = append(uu.mutation.predicates, ps...) return uu } @@ -153,7 +152,7 @@ func (uu *UserUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := uu.predicates; len(ps) > 0 { + if ps := uu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/m2mrecur/ent/mutation.go b/examples/m2mrecur/ent/mutation.go index 3f715d667..a7d004bbd 100644 --- a/examples/m2mrecur/ent/mutation.go +++ b/examples/m2mrecur/ent/mutation.go @@ -11,6 +11,7 @@ import ( "fmt" "sync" + "github.com/facebook/ent/examples/m2mrecur/ent/predicate" "github.com/facebook/ent/examples/m2mrecur/ent/user" "github.com/facebook/ent" @@ -47,6 +48,7 @@ type UserMutation struct { clearedfollowing bool done bool oldValue func(context.Context) (*User, error) + predicates []predicate.User } var _ ent.Mutation = (*UserMutation)(nil) diff --git a/examples/m2mrecur/ent/user_delete.go b/examples/m2mrecur/ent/user_delete.go index 765c492ce..2f45fa37a 100644 --- a/examples/m2mrecur/ent/user_delete.go +++ b/examples/m2mrecur/ent/user_delete.go @@ -20,14 +20,13 @@ import ( // UserDelete is the builder for deleting a User entity. type UserDelete struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate to the delete builder. func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete { - ud.predicates = append(ud.predicates, ps...) + ud.mutation.predicates = append(ud.mutation.predicates, ps...) return ud } @@ -79,7 +78,7 @@ func (ud *UserDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := ud.predicates; len(ps) > 0 { + if ps := ud.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/m2mrecur/ent/user_update.go b/examples/m2mrecur/ent/user_update.go index fcc280752..73f6a1491 100644 --- a/examples/m2mrecur/ent/user_update.go +++ b/examples/m2mrecur/ent/user_update.go @@ -20,14 +20,13 @@ import ( // UserUpdate is the builder for updating User entities. type UserUpdate struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate for the builder. func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate { - uu.predicates = append(uu.predicates, ps...) + uu.mutation.predicates = append(uu.mutation.predicates, ps...) return uu } @@ -189,7 +188,7 @@ func (uu *UserUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := uu.predicates; len(ps) > 0 { + if ps := uu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/o2m2types/ent/mutation.go b/examples/o2m2types/ent/mutation.go index 1c6cd25a9..03ef7d832 100644 --- a/examples/o2m2types/ent/mutation.go +++ b/examples/o2m2types/ent/mutation.go @@ -12,6 +12,7 @@ import ( "sync" "github.com/facebook/ent/examples/o2m2types/ent/pet" + "github.com/facebook/ent/examples/o2m2types/ent/predicate" "github.com/facebook/ent/examples/o2m2types/ent/user" "github.com/facebook/ent" @@ -43,6 +44,7 @@ type PetMutation struct { clearedowner bool done bool oldValue func(context.Context) (*Pet, error) + predicates []predicate.Pet } var _ ent.Mutation = (*PetMutation)(nil) @@ -408,6 +410,7 @@ type UserMutation struct { clearedpets bool done bool oldValue func(context.Context) (*User, error) + predicates []predicate.User } var _ ent.Mutation = (*UserMutation)(nil) diff --git a/examples/o2m2types/ent/pet_delete.go b/examples/o2m2types/ent/pet_delete.go index 19b745504..4a565ee57 100644 --- a/examples/o2m2types/ent/pet_delete.go +++ b/examples/o2m2types/ent/pet_delete.go @@ -20,14 +20,13 @@ import ( // PetDelete is the builder for deleting a Pet entity. type PetDelete struct { config - hooks []Hook - mutation *PetMutation - predicates []predicate.Pet + hooks []Hook + mutation *PetMutation } // Where adds a new predicate to the delete builder. func (pd *PetDelete) Where(ps ...predicate.Pet) *PetDelete { - pd.predicates = append(pd.predicates, ps...) + pd.mutation.predicates = append(pd.mutation.predicates, ps...) return pd } @@ -79,7 +78,7 @@ func (pd *PetDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := pd.predicates; len(ps) > 0 { + if ps := pd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/o2m2types/ent/pet_update.go b/examples/o2m2types/ent/pet_update.go index 21e4b9c0a..5dcf68b62 100644 --- a/examples/o2m2types/ent/pet_update.go +++ b/examples/o2m2types/ent/pet_update.go @@ -21,14 +21,13 @@ import ( // PetUpdate is the builder for updating Pet entities. type PetUpdate struct { config - hooks []Hook - mutation *PetMutation - predicates []predicate.Pet + hooks []Hook + mutation *PetMutation } // Where adds a new predicate for the builder. func (pu *PetUpdate) Where(ps ...predicate.Pet) *PetUpdate { - pu.predicates = append(pu.predicates, ps...) + pu.mutation.predicates = append(pu.mutation.predicates, ps...) return pu } @@ -130,7 +129,7 @@ func (pu *PetUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := pu.predicates; len(ps) > 0 { + if ps := pu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/o2m2types/ent/user_delete.go b/examples/o2m2types/ent/user_delete.go index 9ae6053d9..80df09b19 100644 --- a/examples/o2m2types/ent/user_delete.go +++ b/examples/o2m2types/ent/user_delete.go @@ -20,14 +20,13 @@ import ( // UserDelete is the builder for deleting a User entity. type UserDelete struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate to the delete builder. func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete { - ud.predicates = append(ud.predicates, ps...) + ud.mutation.predicates = append(ud.mutation.predicates, ps...) return ud } @@ -79,7 +78,7 @@ func (ud *UserDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := ud.predicates; len(ps) > 0 { + if ps := ud.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/o2m2types/ent/user_update.go b/examples/o2m2types/ent/user_update.go index 6e7849a82..5ac41b1cb 100644 --- a/examples/o2m2types/ent/user_update.go +++ b/examples/o2m2types/ent/user_update.go @@ -21,14 +21,13 @@ import ( // UserUpdate is the builder for updating User entities. type UserUpdate struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate for the builder. func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate { - uu.predicates = append(uu.predicates, ps...) + uu.mutation.predicates = append(uu.mutation.predicates, ps...) return uu } @@ -154,7 +153,7 @@ func (uu *UserUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := uu.predicates; len(ps) > 0 { + if ps := uu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/o2mrecur/ent/mutation.go b/examples/o2mrecur/ent/mutation.go index c84a523f8..48e1506a0 100644 --- a/examples/o2mrecur/ent/mutation.go +++ b/examples/o2mrecur/ent/mutation.go @@ -12,6 +12,7 @@ import ( "sync" "github.com/facebook/ent/examples/o2mrecur/ent/node" + "github.com/facebook/ent/examples/o2mrecur/ent/predicate" "github.com/facebook/ent" ) @@ -45,6 +46,7 @@ type NodeMutation struct { clearedchildren bool done bool oldValue func(context.Context) (*Node, error) + predicates []predicate.Node } var _ ent.Mutation = (*NodeMutation)(nil) diff --git a/examples/o2mrecur/ent/node_delete.go b/examples/o2mrecur/ent/node_delete.go index b7fd66aee..75580a35e 100644 --- a/examples/o2mrecur/ent/node_delete.go +++ b/examples/o2mrecur/ent/node_delete.go @@ -20,14 +20,13 @@ import ( // NodeDelete is the builder for deleting a Node entity. type NodeDelete struct { config - hooks []Hook - mutation *NodeMutation - predicates []predicate.Node + hooks []Hook + mutation *NodeMutation } // Where adds a new predicate to the delete builder. func (nd *NodeDelete) Where(ps ...predicate.Node) *NodeDelete { - nd.predicates = append(nd.predicates, ps...) + nd.mutation.predicates = append(nd.mutation.predicates, ps...) return nd } @@ -79,7 +78,7 @@ func (nd *NodeDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := nd.predicates; len(ps) > 0 { + if ps := nd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/o2mrecur/ent/node_update.go b/examples/o2mrecur/ent/node_update.go index c72a01dad..6d0162638 100644 --- a/examples/o2mrecur/ent/node_update.go +++ b/examples/o2mrecur/ent/node_update.go @@ -20,14 +20,13 @@ import ( // NodeUpdate is the builder for updating Node entities. type NodeUpdate struct { config - hooks []Hook - mutation *NodeMutation - predicates []predicate.Node + hooks []Hook + mutation *NodeMutation } // Where adds a new predicate for the builder. func (nu *NodeUpdate) Where(ps ...predicate.Node) *NodeUpdate { - nu.predicates = append(nu.predicates, ps...) + nu.mutation.predicates = append(nu.mutation.predicates, ps...) return nu } @@ -172,7 +171,7 @@ func (nu *NodeUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := nu.predicates; len(ps) > 0 { + if ps := nu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/o2o2types/ent/card_delete.go b/examples/o2o2types/ent/card_delete.go index 099dfc635..1a3d09034 100644 --- a/examples/o2o2types/ent/card_delete.go +++ b/examples/o2o2types/ent/card_delete.go @@ -20,14 +20,13 @@ import ( // CardDelete is the builder for deleting a Card entity. type CardDelete struct { config - hooks []Hook - mutation *CardMutation - predicates []predicate.Card + hooks []Hook + mutation *CardMutation } // Where adds a new predicate to the delete builder. func (cd *CardDelete) Where(ps ...predicate.Card) *CardDelete { - cd.predicates = append(cd.predicates, ps...) + cd.mutation.predicates = append(cd.mutation.predicates, ps...) return cd } @@ -79,7 +78,7 @@ func (cd *CardDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := cd.predicates; len(ps) > 0 { + if ps := cd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/o2o2types/ent/card_update.go b/examples/o2o2types/ent/card_update.go index 42ba0a57a..3106e5f45 100644 --- a/examples/o2o2types/ent/card_update.go +++ b/examples/o2o2types/ent/card_update.go @@ -23,14 +23,13 @@ import ( // CardUpdate is the builder for updating Card entities. type CardUpdate struct { config - hooks []Hook - mutation *CardMutation - predicates []predicate.Card + hooks []Hook + mutation *CardMutation } // Where adds a new predicate for the builder. func (cu *CardUpdate) Where(ps ...predicate.Card) *CardUpdate { - cu.predicates = append(cu.predicates, ps...) + cu.mutation.predicates = append(cu.mutation.predicates, ps...) return cu } @@ -144,7 +143,7 @@ func (cu *CardUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := cu.predicates; len(ps) > 0 { + if ps := cu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/o2o2types/ent/mutation.go b/examples/o2o2types/ent/mutation.go index a0cd98fa6..c641bd86c 100644 --- a/examples/o2o2types/ent/mutation.go +++ b/examples/o2o2types/ent/mutation.go @@ -13,6 +13,7 @@ import ( "time" "github.com/facebook/ent/examples/o2o2types/ent/card" + "github.com/facebook/ent/examples/o2o2types/ent/predicate" "github.com/facebook/ent/examples/o2o2types/ent/user" "github.com/facebook/ent" @@ -45,6 +46,7 @@ type CardMutation struct { clearedowner bool done bool oldValue func(context.Context) (*Card, error) + predicates []predicate.Card } var _ ent.Mutation = (*CardMutation)(nil) @@ -463,6 +465,7 @@ type UserMutation struct { clearedcard bool done bool oldValue func(context.Context) (*User, error) + predicates []predicate.User } var _ ent.Mutation = (*UserMutation)(nil) diff --git a/examples/o2o2types/ent/user_delete.go b/examples/o2o2types/ent/user_delete.go index ecd4e8821..18633f54f 100644 --- a/examples/o2o2types/ent/user_delete.go +++ b/examples/o2o2types/ent/user_delete.go @@ -20,14 +20,13 @@ import ( // UserDelete is the builder for deleting a User entity. type UserDelete struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate to the delete builder. func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete { - ud.predicates = append(ud.predicates, ps...) + ud.mutation.predicates = append(ud.mutation.predicates, ps...) return ud } @@ -79,7 +78,7 @@ func (ud *UserDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := ud.predicates; len(ps) > 0 { + if ps := ud.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/o2o2types/ent/user_update.go b/examples/o2o2types/ent/user_update.go index 9ab93526b..288da22fb 100644 --- a/examples/o2o2types/ent/user_update.go +++ b/examples/o2o2types/ent/user_update.go @@ -21,14 +21,13 @@ import ( // UserUpdate is the builder for updating User entities. type UserUpdate struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate for the builder. func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate { - uu.predicates = append(uu.predicates, ps...) + uu.mutation.predicates = append(uu.mutation.predicates, ps...) return uu } @@ -143,7 +142,7 @@ func (uu *UserUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := uu.predicates; len(ps) > 0 { + if ps := uu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/o2obidi/ent/mutation.go b/examples/o2obidi/ent/mutation.go index dd435ec21..99d97c1aa 100644 --- a/examples/o2obidi/ent/mutation.go +++ b/examples/o2obidi/ent/mutation.go @@ -11,6 +11,7 @@ import ( "fmt" "sync" + "github.com/facebook/ent/examples/o2obidi/ent/predicate" "github.com/facebook/ent/examples/o2obidi/ent/user" "github.com/facebook/ent" @@ -43,6 +44,7 @@ type UserMutation struct { clearedspouse bool done bool oldValue func(context.Context) (*User, error) + predicates []predicate.User } var _ ent.Mutation = (*UserMutation)(nil) diff --git a/examples/o2obidi/ent/user_delete.go b/examples/o2obidi/ent/user_delete.go index cf6289055..26c757147 100644 --- a/examples/o2obidi/ent/user_delete.go +++ b/examples/o2obidi/ent/user_delete.go @@ -20,14 +20,13 @@ import ( // UserDelete is the builder for deleting a User entity. type UserDelete struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate to the delete builder. func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete { - ud.predicates = append(ud.predicates, ps...) + ud.mutation.predicates = append(ud.mutation.predicates, ps...) return ud } @@ -79,7 +78,7 @@ func (ud *UserDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := ud.predicates; len(ps) > 0 { + if ps := ud.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/o2obidi/ent/user_update.go b/examples/o2obidi/ent/user_update.go index d84279a73..56f12aaeb 100644 --- a/examples/o2obidi/ent/user_update.go +++ b/examples/o2obidi/ent/user_update.go @@ -20,14 +20,13 @@ import ( // UserUpdate is the builder for updating User entities. type UserUpdate struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate for the builder. func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate { - uu.predicates = append(uu.predicates, ps...) + uu.mutation.predicates = append(uu.mutation.predicates, ps...) return uu } @@ -142,7 +141,7 @@ func (uu *UserUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := uu.predicates; len(ps) > 0 { + if ps := uu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/o2orecur/ent/mutation.go b/examples/o2orecur/ent/mutation.go index 38e4eee2d..8dfe930ae 100644 --- a/examples/o2orecur/ent/mutation.go +++ b/examples/o2orecur/ent/mutation.go @@ -12,6 +12,7 @@ import ( "sync" "github.com/facebook/ent/examples/o2orecur/ent/node" + "github.com/facebook/ent/examples/o2orecur/ent/predicate" "github.com/facebook/ent" ) @@ -44,6 +45,7 @@ type NodeMutation struct { clearednext bool done bool oldValue func(context.Context) (*Node, error) + predicates []predicate.Node } var _ ent.Mutation = (*NodeMutation)(nil) diff --git a/examples/o2orecur/ent/node_delete.go b/examples/o2orecur/ent/node_delete.go index 7cf922cdc..f4c9267f1 100644 --- a/examples/o2orecur/ent/node_delete.go +++ b/examples/o2orecur/ent/node_delete.go @@ -20,14 +20,13 @@ import ( // NodeDelete is the builder for deleting a Node entity. type NodeDelete struct { config - hooks []Hook - mutation *NodeMutation - predicates []predicate.Node + hooks []Hook + mutation *NodeMutation } // Where adds a new predicate to the delete builder. func (nd *NodeDelete) Where(ps ...predicate.Node) *NodeDelete { - nd.predicates = append(nd.predicates, ps...) + nd.mutation.predicates = append(nd.mutation.predicates, ps...) return nd } @@ -79,7 +78,7 @@ func (nd *NodeDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := nd.predicates; len(ps) > 0 { + if ps := nd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/o2orecur/ent/node_update.go b/examples/o2orecur/ent/node_update.go index 4cee4a69b..f0eb7ce1a 100644 --- a/examples/o2orecur/ent/node_update.go +++ b/examples/o2orecur/ent/node_update.go @@ -20,14 +20,13 @@ import ( // NodeUpdate is the builder for updating Node entities. type NodeUpdate struct { config - hooks []Hook - mutation *NodeMutation - predicates []predicate.Node + hooks []Hook + mutation *NodeMutation } // Where adds a new predicate for the builder. func (nu *NodeUpdate) Where(ps ...predicate.Node) *NodeUpdate { - nu.predicates = append(nu.predicates, ps...) + nu.mutation.predicates = append(nu.mutation.predicates, ps...) return nu } @@ -161,7 +160,7 @@ func (nu *NodeUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := nu.predicates; len(ps) > 0 { + if ps := nu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/start/ent/car_delete.go b/examples/start/ent/car_delete.go index 114ab8795..80ec8a3cf 100644 --- a/examples/start/ent/car_delete.go +++ b/examples/start/ent/car_delete.go @@ -20,14 +20,13 @@ import ( // CarDelete is the builder for deleting a Car entity. type CarDelete struct { config - hooks []Hook - mutation *CarMutation - predicates []predicate.Car + hooks []Hook + mutation *CarMutation } // Where adds a new predicate to the delete builder. func (cd *CarDelete) Where(ps ...predicate.Car) *CarDelete { - cd.predicates = append(cd.predicates, ps...) + cd.mutation.predicates = append(cd.mutation.predicates, ps...) return cd } @@ -79,7 +78,7 @@ func (cd *CarDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := cd.predicates; len(ps) > 0 { + if ps := cd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/start/ent/car_update.go b/examples/start/ent/car_update.go index f82c6ebd5..1eb4c1190 100644 --- a/examples/start/ent/car_update.go +++ b/examples/start/ent/car_update.go @@ -22,14 +22,13 @@ import ( // CarUpdate is the builder for updating Car entities. type CarUpdate struct { config - hooks []Hook - mutation *CarMutation - predicates []predicate.Car + hooks []Hook + mutation *CarMutation } // Where adds a new predicate for the builder. func (cu *CarUpdate) Where(ps ...predicate.Car) *CarUpdate { - cu.predicates = append(cu.predicates, ps...) + cu.mutation.predicates = append(cu.mutation.predicates, ps...) return cu } @@ -137,7 +136,7 @@ func (cu *CarUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := cu.predicates; len(ps) > 0 { + if ps := cu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/start/ent/group_delete.go b/examples/start/ent/group_delete.go index c028b3348..7ee323b7f 100644 --- a/examples/start/ent/group_delete.go +++ b/examples/start/ent/group_delete.go @@ -20,14 +20,13 @@ import ( // GroupDelete is the builder for deleting a Group entity. type GroupDelete struct { config - hooks []Hook - mutation *GroupMutation - predicates []predicate.Group + hooks []Hook + mutation *GroupMutation } // Where adds a new predicate to the delete builder. func (gd *GroupDelete) Where(ps ...predicate.Group) *GroupDelete { - gd.predicates = append(gd.predicates, ps...) + gd.mutation.predicates = append(gd.mutation.predicates, ps...) return gd } @@ -79,7 +78,7 @@ func (gd *GroupDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := gd.predicates; len(ps) > 0 { + if ps := gd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/start/ent/group_update.go b/examples/start/ent/group_update.go index 1f8c4bfc3..b81c449d5 100644 --- a/examples/start/ent/group_update.go +++ b/examples/start/ent/group_update.go @@ -21,14 +21,13 @@ import ( // GroupUpdate is the builder for updating Group entities. type GroupUpdate struct { config - hooks []Hook - mutation *GroupMutation - predicates []predicate.Group + hooks []Hook + mutation *GroupMutation } // Where adds a new predicate for the builder. func (gu *GroupUpdate) Where(ps ...predicate.Group) *GroupUpdate { - gu.predicates = append(gu.predicates, ps...) + gu.mutation.predicates = append(gu.mutation.predicates, ps...) return gu } @@ -157,7 +156,7 @@ func (gu *GroupUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := gu.predicates; len(ps) > 0 { + if ps := gu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/start/ent/mutation.go b/examples/start/ent/mutation.go index 0833633fe..8dce3e3e0 100644 --- a/examples/start/ent/mutation.go +++ b/examples/start/ent/mutation.go @@ -14,6 +14,7 @@ import ( "github.com/facebook/ent/examples/start/ent/car" "github.com/facebook/ent/examples/start/ent/group" + "github.com/facebook/ent/examples/start/ent/predicate" "github.com/facebook/ent/examples/start/ent/user" "github.com/facebook/ent" @@ -47,6 +48,7 @@ type CarMutation struct { clearedowner bool done bool oldValue func(context.Context) (*Car, error) + predicates []predicate.Car } var _ ent.Mutation = (*CarMutation)(nil) @@ -464,6 +466,7 @@ type GroupMutation struct { clearedusers bool done bool oldValue func(context.Context) (*Group, error) + predicates []predicate.Group } var _ ent.Mutation = (*GroupMutation)(nil) @@ -854,6 +857,7 @@ type UserMutation struct { clearedgroups bool done bool oldValue func(context.Context) (*User, error) + predicates []predicate.User } var _ ent.Mutation = (*UserMutation)(nil) diff --git a/examples/start/ent/user_delete.go b/examples/start/ent/user_delete.go index 7685b8450..4228741a1 100644 --- a/examples/start/ent/user_delete.go +++ b/examples/start/ent/user_delete.go @@ -20,14 +20,13 @@ import ( // UserDelete is the builder for deleting a User entity. type UserDelete struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate to the delete builder. func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete { - ud.predicates = append(ud.predicates, ps...) + ud.mutation.predicates = append(ud.mutation.predicates, ps...) return ud } @@ -79,7 +78,7 @@ func (ud *UserDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := ud.predicates; len(ps) > 0 { + if ps := ud.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/start/ent/user_update.go b/examples/start/ent/user_update.go index 52c3b2a1b..4d16927dc 100644 --- a/examples/start/ent/user_update.go +++ b/examples/start/ent/user_update.go @@ -22,14 +22,13 @@ import ( // UserUpdate is the builder for updating User entities. type UserUpdate struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate for the builder. func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate { - uu.predicates = append(uu.predicates, ps...) + uu.mutation.predicates = append(uu.mutation.predicates, ps...) return uu } @@ -215,7 +214,7 @@ func (uu *UserUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := uu.predicates; len(ps) > 0 { + if ps := uu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/traversal/ent/group_delete.go b/examples/traversal/ent/group_delete.go index 81c487261..c4e0d95a4 100644 --- a/examples/traversal/ent/group_delete.go +++ b/examples/traversal/ent/group_delete.go @@ -20,14 +20,13 @@ import ( // GroupDelete is the builder for deleting a Group entity. type GroupDelete struct { config - hooks []Hook - mutation *GroupMutation - predicates []predicate.Group + hooks []Hook + mutation *GroupMutation } // Where adds a new predicate to the delete builder. func (gd *GroupDelete) Where(ps ...predicate.Group) *GroupDelete { - gd.predicates = append(gd.predicates, ps...) + gd.mutation.predicates = append(gd.mutation.predicates, ps...) return gd } @@ -79,7 +78,7 @@ func (gd *GroupDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := gd.predicates; len(ps) > 0 { + if ps := gd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/traversal/ent/group_update.go b/examples/traversal/ent/group_update.go index 3773323da..e442e3c00 100644 --- a/examples/traversal/ent/group_update.go +++ b/examples/traversal/ent/group_update.go @@ -21,14 +21,13 @@ import ( // GroupUpdate is the builder for updating Group entities. type GroupUpdate struct { config - hooks []Hook - mutation *GroupMutation - predicates []predicate.Group + hooks []Hook + mutation *GroupMutation } // Where adds a new predicate for the builder. func (gu *GroupUpdate) Where(ps ...predicate.Group) *GroupUpdate { - gu.predicates = append(gu.predicates, ps...) + gu.mutation.predicates = append(gu.mutation.predicates, ps...) return gu } @@ -166,7 +165,7 @@ func (gu *GroupUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := gu.predicates; len(ps) > 0 { + if ps := gu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/traversal/ent/mutation.go b/examples/traversal/ent/mutation.go index 6cbdf3612..8a6138289 100644 --- a/examples/traversal/ent/mutation.go +++ b/examples/traversal/ent/mutation.go @@ -13,6 +13,7 @@ import ( "github.com/facebook/ent/examples/traversal/ent/group" "github.com/facebook/ent/examples/traversal/ent/pet" + "github.com/facebook/ent/examples/traversal/ent/predicate" "github.com/facebook/ent/examples/traversal/ent/user" "github.com/facebook/ent" @@ -48,6 +49,7 @@ type GroupMutation struct { clearedadmin bool done bool oldValue func(context.Context) (*Group, error) + predicates []predicate.Group } var _ ent.Mutation = (*GroupMutation)(nil) @@ -492,6 +494,7 @@ type PetMutation struct { clearedowner bool done bool oldValue func(context.Context) (*Pet, error) + predicates []predicate.Pet } var _ ent.Mutation = (*PetMutation)(nil) @@ -945,6 +948,7 @@ type UserMutation struct { clearedmanage bool done bool oldValue func(context.Context) (*User, error) + predicates []predicate.User } var _ ent.Mutation = (*UserMutation)(nil) diff --git a/examples/traversal/ent/pet_delete.go b/examples/traversal/ent/pet_delete.go index a72b61c03..53c949e6b 100644 --- a/examples/traversal/ent/pet_delete.go +++ b/examples/traversal/ent/pet_delete.go @@ -20,14 +20,13 @@ import ( // PetDelete is the builder for deleting a Pet entity. type PetDelete struct { config - hooks []Hook - mutation *PetMutation - predicates []predicate.Pet + hooks []Hook + mutation *PetMutation } // Where adds a new predicate to the delete builder. func (pd *PetDelete) Where(ps ...predicate.Pet) *PetDelete { - pd.predicates = append(pd.predicates, ps...) + pd.mutation.predicates = append(pd.mutation.predicates, ps...) return pd } @@ -79,7 +78,7 @@ func (pd *PetDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := pd.predicates; len(ps) > 0 { + if ps := pd.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/traversal/ent/pet_update.go b/examples/traversal/ent/pet_update.go index 4fda95d77..f57b76fa7 100644 --- a/examples/traversal/ent/pet_update.go +++ b/examples/traversal/ent/pet_update.go @@ -21,14 +21,13 @@ import ( // PetUpdate is the builder for updating Pet entities. type PetUpdate struct { config - hooks []Hook - mutation *PetMutation - predicates []predicate.Pet + hooks []Hook + mutation *PetMutation } // Where adds a new predicate for the builder. func (pu *PetUpdate) Where(ps ...predicate.Pet) *PetUpdate { - pu.predicates = append(pu.predicates, ps...) + pu.mutation.predicates = append(pu.mutation.predicates, ps...) return pu } @@ -166,7 +165,7 @@ func (pu *PetUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := pu.predicates; len(ps) > 0 { + if ps := pu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/traversal/ent/user_delete.go b/examples/traversal/ent/user_delete.go index 8b4b0095a..314e02c87 100644 --- a/examples/traversal/ent/user_delete.go +++ b/examples/traversal/ent/user_delete.go @@ -20,14 +20,13 @@ import ( // UserDelete is the builder for deleting a User entity. type UserDelete struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate to the delete builder. func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete { - ud.predicates = append(ud.predicates, ps...) + ud.mutation.predicates = append(ud.mutation.predicates, ps...) return ud } @@ -79,7 +78,7 @@ func (ud *UserDelete) sqlExec(ctx context.Context) (int, error) { }, }, } - if ps := ud.predicates; len(ps) > 0 { + if ps := ud.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector) diff --git a/examples/traversal/ent/user_update.go b/examples/traversal/ent/user_update.go index 836c0a23a..2d76531ba 100644 --- a/examples/traversal/ent/user_update.go +++ b/examples/traversal/ent/user_update.go @@ -22,14 +22,13 @@ import ( // UserUpdate is the builder for updating User entities. type UserUpdate struct { config - hooks []Hook - mutation *UserMutation - predicates []predicate.User + hooks []Hook + mutation *UserMutation } // Where adds a new predicate for the builder. func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate { - uu.predicates = append(uu.predicates, ps...) + uu.mutation.predicates = append(uu.mutation.predicates, ps...) return uu } @@ -263,7 +262,7 @@ func (uu *UserUpdate) sqlSave(ctx context.Context) (n int, err error) { }, }, } - if ps := uu.predicates; len(ps) > 0 { + if ps := uu.mutation.predicates; len(ps) > 0 { _spec.Predicate = func(selector *sql.Selector) { for i := range ps { ps[i](selector)