diff --git a/entc/gen/internal/bindata.go b/entc/gen/internal/bindata.go index 576dea7f0..0beaf3b92 100644 --- a/entc/gen/internal/bindata.go +++ b/entc/gen/internal/bindata.go @@ -186,7 +186,7 @@ func templateBuilderDeleteTmpl() (*asset, error) { return a, nil } -var _templateBuilderMutationTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xd4\x5b\x4b\x73\xdc\xb6\x96\x5e\x37\x7f\xc5\x09\xcb\x49\x35\x35\x1d\x76\x72\x77\xe3\x4c\x2f\x3c\x56\x72\x47\x55\x33\xd6\xd4\xb5\x32\x1b\x97\xeb\x06\x26\xd0\x12\xca\x7c\x74\x08\x74\x4b\xaa\x4e\xff\xf7\xa9\x73\x00\x90\x00\x5f\xfd\xb0\xe2\xca\xcd\x22\x96\x48\x10\x38\x8f\xef\xbc\xa1\xfd\x7e\x79\x15\xbd\xad\x36\xcf\xb5\xbc\x7f\xd0\xf0\xb7\x1f\x7e\xfc\xf7\xef\x37\xb5\x50\xa2\xd4\xf0\x0b\xcb\xc4\xa7\xaa\xfa\x0c\x37\x65\x96\xc2\x9b\x3c\x07\x5a\xa4\x00\xdf\xd7\x3b\xc1\xd3\xe8\xee\x41\x2a\x50\xd5\xb6\xce\x04\x64\x15\x17\x20\x15\xe4\x32\x13\xa5\x12\x1c\xb6\x25\x17\x35\xe8\x07\x01\x6f\x36\x2c\x7b\x10\xf0\xb7\xf4\x07\xf7\x16\xd6\xd5\xb6\xe4\x91\x2c\xe9\xfd\x7f\xdf\xbc\xfd\xf9\xdd\xfb\x9f\x61\x2d\x73\x01\xf6\x59\x5d\x55\x1a\xb8\xac\x45\xa6\xab\xfa\x19\xaa\x35\x68\xef\x30\x5d\x0b\x91\x46\x57\xcb\xc3\x21\x8a\xf6\x7b\xe0\x62\x2d\x4b\x01\x71\xb1\xd5\x4c\xcb\xaa\x8c\xc1\xbe\x78\xb5\xf9\x7c\x0f\xaf\x57\xf0\x89\x29\x01\xaf\xd2\xb7\x55\xb9\x96\xf7\xe9\xff\xb2\xec\x33\xbb\x17\xb8\x68\xbf\x07\x2d\x8a\x4d\xce\xb4\x80\xf8\x41\x30\x2e\xea\x18\x5e\xd1\xe7\xb2\xd8\x54\xb5\x86\x79\x34\x8b\xd5\x73\x99\xc5\x51\x34\xdb\xef\xbf\x87\x9a\x95\xf7\x02\x5e\x95\xb8\xed\xab\xf4\x5d\xc5\x85\xc2\xe5\xb3\x59\x8c\xe7\xf5\x8f\x58\xe2\xe3\xd2\x7b\x10\x9b\x7d\x44\xc9\xe9\x98\x59\x7c\x2f\xf5\xc3\xf6\x53\x9a\x55\xc5\x72\x6d\x65\x2e\xcb\x6c\xfb\x89\xe9\xaa\x5e\x8a\x52\xc7\x51\x12\x45\x59\x55\x2a\x22\x66\xb9\x84\xdb\x8d\xa8\x89\x4f\xd0\xcf\x1b\xa1\xd2\x68\x76\xbb\x79\x5b\x0b\xe4\x01\x00\x56\x20\x4a\x9d\xba\x27\xf8\xee\x5a\xe4\x22\x7c\x67\x9e\xb4\xef\x6e\x4b\xd1\x79\x77\x5b\xd2\xeb\x5f\x37\xbc\xb3\xad\x79\xd2\xbe\xf3\x3f\x6d\x9e\x44\x44\x27\x0a\xa7\x21\x71\x52\x76\x77\xcf\x1b\x61\xe4\xf4\x8e\x15\x28\x24\x58\x41\x1c\x3c\x08\xa5\x96\x90\x76\x47\xb6\x23\xc5\x3b\x28\xd0\xbb\x32\xfd\x1f\xfb\xab\xdd\x2d\x5a\x2e\x21\x58\x75\x38\x40\x2d\x2c\xf2\x15\xb0\x12\xaa\x56\xc6\x0f\x4c\x03\x2d\x14\x84\xcc\xfd\x1e\x36\xf9\xb6\x66\xb9\x47\x1d\xee\x57\xd2\xf9\x16\xbe\xf7\x35\xdb\x3c\xa4\x11\x32\xdf\x3b\x48\xe9\x7a\x9b\x69\xd8\x47\xb3\x8c\xc0\x12\xcd\xaa\x0d\xdc\x6e\xa2\x99\x7e\xde\xe0\x4b\x59\xde\x23\xb3\xb8\xfd\xcd\x75\xfa\x9f\x5b\x99\x73\x51\xff\x22\x45\x8e\xac\xc3\x55\xf3\x06\x85\x46\xe2\xf3\x44\xbb\xb6\xfc\xd2\x72\x2b\x5c\xfc\x60\x3d\xbc\xcf\xba\xdd\x84\x76\x91\x6b\xf7\x2c\x7d\xb7\x2d\x44\x2d\x33\xf3\x6e\xc6\x38\x3f\x63\x1b\xab\xa5\xe0\xe7\x2c\x17\xac\x16\xdc\x12\x56\xb0\xcd\x07\xc3\xea\x47\x23\x8e\x7d\xc8\x87\xb0\x7c\xfc\xcc\xef\x85\x0a\xe9\x13\xe9\xaf\xa5\xfc\x7d\x4b\xc7\x81\xf7\x1f\x12\x22\x86\xe9\x13\x86\x25\x5f\x66\x33\x47\xd0\xf0\x67\x9f\xaa\x2a\x77\xcc\xe4\xea\xc4\xb3\x90\xa9\xc1\xe3\x3c\x1e\x67\xb3\x5a\x14\xd5\x6e\xec\xdc\x93\xb6\x18\x13\x31\xaf\x4a\x61\x29\xaf\x72\xfe\x7f\x2c\xdf\x0a\x58\x6f\xcb\x6c\x9e\x55\xa5\x16\x4f\x1a\x9d\x13\xfe\x9b\xc0\xfc\x2a\x30\xae\x05\x88\xba\xae\xea\x24\x3a\x44\xd1\x8e\xd5\xf0\x4f\xb2\x67\x67\x33\xb0\xb2\xeb\x3d\x10\x27\xf3\x52\xe6\x49\x68\x6a\xb7\x1b\x67\x70\x9b\x5a\x96\x1a\xe6\x19\x2b\x44\x63\x25\x09\xc4\x66\x41\x3c\x60\x7f\xf6\xd3\xc3\x01\x58\x9e\x57\x8f\x0a\x74\x05\x05\x2b\xd1\x61\xa2\x35\x35\x07\x1b\x83\xd9\x5a\xcb\xdc\x2a\x59\xde\x13\x87\xf8\x2b\xcb\xa1\xa2\x6d\xd4\x80\xdd\xb5\x07\x90\x40\x7a\xec\x44\x64\xc1\xe2\xb1\x6b\xab\x19\x39\x51\x85\xaf\x5a\x2a\xd6\x55\xed\xb8\x4a\x23\xdc\x6f\xe0\xcb\x79\x66\x89\x5d\x00\x59\x37\xfe\xa3\x15\xa4\x69\x3a\x48\x56\x02\x5d\x92\xd0\x3f\x14\x28\xcc\xef\x3a\x2f\xf6\xd1\xcc\x3a\x8e\xd7\x0e\x8e\xd9\x22\x9a\xcd\xaa\xcd\x6b\x1f\xa2\xd5\x06\x1f\xea\xe7\xe0\x69\xcf\xcf\xe2\x9a\xc0\x32\x5f\x43\xc1\x3e\x8b\xf9\x80\x7d\x26\x8b\x68\x76\x88\x66\xc8\xfc\x3f\x89\x1b\x24\xce\x98\x2b\xb1\xb6\x27\x1a\xf4\xbc\x48\x68\x5d\x2d\xf4\xb6\x2e\xa1\x88\xac\x43\xb6\x1f\x18\x68\xc4\x8f\x52\x3f\xc4\x0d\x1d\xf1\xcd\xb5\x8f\x0a\x5c\x8a\x7e\x52\x68\x45\xea\x97\x1c\xd6\x64\x20\x94\x05\xb4\x70\xb0\xc2\x6f\x3f\x99\x4b\x0e\x5d\xf7\x98\x8c\xe0\x60\xdf\x90\x48\x88\x28\x7a\x0a\x48\x88\x23\x34\x87\x39\x9a\xad\xa8\x6b\x63\x25\xf8\x4b\x55\x66\x02\x30\x2b\x48\x6f\xcb\x4c\xe0\x93\x1d\x59\x5b\x68\x56\xd1\x6c\x96\x44\xb3\x59\x91\x36\xd6\xb8\xb2\xf6\xa8\x9f\xe0\x54\x9b\x24\x2a\xe8\xc0\xf4\xba\x9a\xd3\xe7\xf6\xd9\x4c\xae\xa1\x48\xc9\xe8\xcd\xef\x44\xe3\x0a\xd6\x85\x4e\x7f\xc6\x6f\xd7\xf3\xf8\xf7\xad\xa8\x9f\xd1\x4a\xaa\x9c\x03\xd1\xa8\x60\x53\x29\xdd\x82\x59\x2a\x28\x2b\x6d\xec\x4e\xf0\x38\xa1\x9d\x0e\xc6\xeb\xd9\x6d\xe9\x3b\xa2\x07\x56\x50\xa4\x6f\x73\x29\x4a\x3d\x4f\xd2\x80\xde\xf4\xef\x42\x23\x63\x0b\x90\xdc\x6e\x82\xff\x3f\x24\xc6\xe7\x91\xa4\xdb\x8d\x22\xf3\xba\x48\x47\xe3\xdc\x0a\xbe\x93\x1c\x91\xe4\xe1\x67\x04\x3e\xe3\xc8\x41\xae\xc3\xbc\xe2\x28\x84\x30\x8c\x77\xf4\xf8\x85\x10\x1a\xd0\xff\x59\xba\xb7\x67\x20\x61\x0b\x28\x65\x7e\x92\xec\x70\x75\x7a\x73\x6d\x05\xb8\x5c\x82\xd1\x1a\x98\xcd\x14\x30\x72\x69\xbf\xa1\x9f\x37\x6f\x7e\x83\x75\x5d\x15\xa1\x70\xe0\x26\x94\x16\x3c\x32\x85\x7b\x89\x27\x91\x6d\xb5\xe0\x98\xed\x30\xd0\x35\x2b\x15\x23\x1f\x0c\x73\xdc\xf0\xee\x29\x59\x84\xcf\x59\x0e\x99\x39\x5f\x2a\x4b\x02\xd6\x0f\x24\xfb\x79\xd1\xcd\x90\x12\x70\x10\x83\x2b\x4b\x36\x26\x4b\xe6\x27\xf4\x88\xe6\xe1\xde\x79\xc1\x22\x35\x3f\x1d\xdc\xa2\x54\x96\x52\xcf\x93\x46\x3d\xe6\xa9\x15\xc4\xdd\x53\x2b\x84\xd2\x48\xe0\xee\xe9\x37\x72\xea\x8e\x06\x65\x92\xbe\x47\x51\x8b\x80\x57\x8f\x23\xf5\x13\xee\x25\xb5\xbf\x17\x29\x0d\x2a\xfd\x20\xea\x47\xa9\xc4\x04\x7f\x77\x4f\x73\x54\xfa\xdd\x93\xaf\x69\xb9\x86\x19\x7a\xd6\xcf\xc8\x63\x91\xf2\x5a\xee\x44\x9d\xce\xaf\xf4\xd3\x35\xfd\x98\xfc\x04\xdf\x54\x9f\x09\x13\x0e\x12\x32\x5f\x04\xe6\xee\x4a\x9e\xc3\xe1\x75\xcf\xc2\xeb\x6d\x59\xa2\x27\xe8\xea\x2c\x36\xfe\x5a\x3f\x91\x68\xef\x9e\x86\xc4\xaa\x9f\xba\x22\x45\x43\x47\x2c\x92\x75\x9a\xc4\x8c\xa0\xf8\xab\x12\xf5\x35\x95\x63\x26\x27\x59\x2e\xe1\xbd\xd0\x37\xd7\xad\x4d\x1a\x4f\x69\xed\xd0\xb9\xf6\x14\xde\x55\x94\x5f\x33\xbd\xa0\x4a\x8f\xbe\x6c\x93\x70\xa9\x80\x65\x99\xd8\xa0\x22\xaa\x32\x7f\x86\xaa\xec\x18\x36\x45\x6a\xb2\xe8\x99\x13\x7b\xdf\x1c\x89\x94\x91\x28\x71\xa2\x3b\xf2\x6b\xb7\xe5\x12\x6e\xae\x1b\x04\x58\x7e\x0c\x7f\xb6\x0e\x68\x4d\x29\xe0\x0f\x17\x12\x7e\x14\xb0\x1d\x93\x39\xfb\x94\x0b\xc3\x97\x5c\x23\xa8\x1e\x99\x82\x4d\x5d\xed\x24\x17\x1c\x73\x21\xfc\xe2\x93\xa1\xa8\x45\x55\x9f\xbd\x9b\x6b\x84\xd5\x00\x7b\x0b\x10\x4f\x52\x69\x45\xd9\xa1\x03\xdb\x14\xb7\x2b\x54\xae\x07\x35\x3f\xa4\x5f\x8d\x7f\xb8\x00\x5d\x6f\x85\x75\xd9\xe3\x25\x09\xc1\x94\xd2\x07\x91\x09\x84\x76\x53\x75\xbc\xa7\x9c\x03\xb3\x9c\x3d\x8a\x42\xfc\x8e\x0b\xe3\x22\x26\x77\x4b\x5f\xad\x20\x26\x09\xbb\x47\x6d\x22\x0c\xaf\x48\x32\x6d\x92\xf1\x5e\xe8\x18\x77\x7e\x4f\x19\x8c\xa3\xd1\x2c\x35\xf5\x74\xb3\xd6\xab\xd0\xe3\x94\x3e\x7a\x8b\x0b\x58\xa9\x1d\x8a\x9b\xfd\xfd\xf8\x62\x8a\x1f\x07\x41\x83\xe4\x29\xfc\x79\x9b\xcc\x0d\x3b\x96\xaf\xf5\x10\x10\xfb\xd5\x96\xcd\x06\x37\x6d\x45\xb4\xbc\x42\x6a\x34\x0a\xad\xb4\x15\x1b\x25\xbf\xd5\x4e\xd4\xb5\xe4\x02\x36\xb5\xd8\xc9\x6a\xab\x20\x63\x79\x4e\x89\xf5\x1b\xce\x53\xa0\xde\xc9\x91\xa2\xaf\x48\x47\xcb\xbe\x95\x0d\x44\x7e\xf9\x71\x88\x5a\x41\x35\xc5\xc3\xdf\x85\x36\xc5\x75\x6b\x23\xa1\xd0\x86\xcd\xe5\xa8\x10\x3b\x07\x20\xee\xeb\x50\x92\x7d\xcc\xcf\x76\xc6\xb3\x0e\xb2\x14\x51\x3e\xb5\xf3\xa1\xdf\x60\x9f\xe2\xad\x43\xff\xce\x82\x7c\x94\xdf\x5b\x23\x22\x9f\x65\x97\x87\x74\xd8\x5e\x10\xc6\x89\xca\x94\xf6\x7a\xe3\x82\x88\x17\x26\x71\x4d\x10\x84\x03\xaf\x88\x9e\xbd\x69\xbb\x2c\xa0\xaa\x81\x33\xcd\xa8\xdf\x45\xb9\x1f\xac\x99\xcc\xd5\x79\xf2\x34\x0c\x8c\x64\xa9\x3b\x30\xa6\x89\xbc\xc8\xdc\x78\xae\xc3\xe1\xaa\xb1\xc4\xae\x0e\x5c\xda\x6c\x34\x20\xd7\xf0\x4d\x91\x56\x9b\xf4\x46\xcd\xbd\x7e\x51\x98\xe9\xec\xfa\x41\x6d\x48\xc0\xe8\x3c\x4d\xd6\xda\x84\x84\xb6\x25\xd5\x08\x49\x51\x4a\x6b\xd5\x7b\xdc\xe5\xfd\xf1\x07\xf8\xf9\x5a\x0f\x0c\xa7\x12\x57\x8b\xdf\xb7\xb2\x16\x94\x17\xdc\x5c\xdb\xfa\xa5\x83\xf2\x86\x32\x77\x9e\x11\x17\x61\xd4\x3d\x42\x2d\x24\x86\x78\x7c\xf7\xcd\x51\x82\xfa\x19\x3f\xa5\x36\x23\x74\xbe\x86\x6f\x1f\x63\x3a\x36\x09\x61\xee\xce\xb7\xc6\x12\xba\x50\x9b\x86\x1e\xa8\x25\x8a\x60\x60\x25\x1f\xf6\x21\x03\x5e\xf9\x0d\xe7\x83\x5e\xb9\xeb\x64\x19\xe7\x0a\x1a\x27\xa9\xab\xd0\x80\xd2\x68\xf6\x02\x7e\xd6\x60\x62\xd4\xcb\xf9\xd2\x9e\x5d\x4d\x2c\xfc\xb7\x15\x78\x7e\x39\x2c\x9f\x26\xbd\xe8\x77\xc1\x67\xa4\x02\x23\x89\x37\x9c\x0b\x3e\x24\xfb\xc0\xaf\x18\xfd\x9a\x64\x95\x29\x14\x59\x9b\x2f\x0c\xc4\x26\x03\x40\xa9\x7c\x3f\x3b\x21\xc5\x51\x1a\x4e\xf3\xb6\xce\xdd\x8e\xb1\x6f\xe5\x1f\xba\xdc\xd6\xe7\xce\x0e\x1e\xc8\x5b\xaf\x3b\x33\x01\xbc\x69\x9f\x37\xde\xc8\xd4\x65\x2c\x1f\x05\xde\xdb\x5c\xb0\xfa\x24\xe8\x51\x47\xa4\x93\xad\x5e\x88\x3e\x2b\x8a\xf1\x80\x6e\xe2\xe8\x74\x20\x3e\x25\x12\x07\xa1\x18\xbf\x08\xda\x3a\x1f\xda\x9c\xe7\x70\xf8\x08\x2b\x70\x5d\x9d\x7d\x03\xba\x86\xea\x26\x27\x0a\x05\x65\xe4\x27\x78\x3c\x28\x32\x87\x4a\x1b\xac\x0c\xdc\x42\x08\x22\x42\x2d\x51\x67\x02\x31\x14\x28\x22\xcc\x48\xd5\xab\x96\x26\xb8\xf5\x60\x54\x7d\x1e\x04\x90\xe3\xdb\xf3\x90\xff\x10\x4a\x0c\xe6\x7e\x35\xbd\x60\x79\x0e\xd9\x03\x26\xb8\xca\x95\x32\x71\xc0\x6d\x7c\x66\x36\x78\x2c\xef\x6b\xd3\xad\x97\x4a\xd7\xbc\xcd\x42\xd3\x99\x71\x9a\x00\xcd\x3b\x42\x5d\x80\x2f\xd5\xa4\x97\xfc\x79\x32\xf5\xb2\xff\x7e\x23\xdf\xf4\x5a\xf0\x71\xcc\x38\xa1\xc9\x9a\xb0\xd7\xd8\xb7\x6b\x56\x10\x2b\xcc\xe1\xe9\x81\x9f\xe8\x4b\xae\x7e\x09\x8c\x7b\xbe\x61\x2a\x63\x39\x7e\x95\xc0\x5c\xc9\xf2\x7e\x9b\xb3\x1a\xf7\x24\x7d\xfc\x01\xe6\x7d\x02\xf1\xcd\xb5\x1a\x3f\xd3\xed\x3b\xbc\xad\xfb\x45\xb8\x86\xb6\x69\x5b\x7a\xb4\x59\xac\xb8\x6d\x6c\xd0\xa9\xd0\xc1\xb7\xb9\xaf\x68\x2c\x42\xf0\x7b\xe1\x22\x9b\xed\xf8\xbb\x57\x9f\x9e\x41\x72\x43\x24\xa6\x78\x3e\xa1\xaa\x39\xf0\x28\xba\x5a\x42\xe6\x7d\x86\x69\x7f\x3b\xdd\x90\xdc\xf5\xa6\xcd\xce\x30\x38\x84\x30\x20\x1d\x1a\xc4\x34\x2e\xae\x3f\xd2\xb0\x95\x73\x30\x4b\x99\x79\xd9\xd8\xc0\x17\x7e\x3c\x18\xdf\xb6\x69\x54\x4f\x0f\x4c\x92\x26\x96\x60\x1e\x24\xdb\xae\x35\xf2\x3c\x79\xc6\x07\xc9\xd5\x07\xf9\xb1\xe7\x2e\x67\xdd\x21\xcc\xa1\x09\x43\xa1\x4c\x26\x82\x90\x38\x27\x08\x9d\x8a\x9a\x0b\xc2\xd2\xe4\x14\x6c\xd5\xc6\xdc\xc1\x00\x21\x2e\x0f\x10\xc4\x44\xc8\x97\x17\x1f\x2e\x0b\x07\x6e\xe4\x30\xc9\x94\x97\x63\x99\xf7\xa1\x1e\x3a\xfd\x9c\x90\x42\xd9\x4b\xe1\x8f\x13\xda\x3f\xc0\xeb\xd1\xf4\x50\x3b\x94\x46\x4d\x58\xca\x37\xfd\xcc\xc9\xb5\x67\x7a\x8b\x9b\x04\xca\x4f\xac\xda\x70\xd8\x58\x66\xd3\x9c\xc1\xd2\xaa\x86\x39\xe9\x7a\x0d\xf1\xb7\xe9\x8f\x2a\x0e\x10\x97\xb4\x1f\xf4\x1c\x72\xfc\x0f\x1a\x73\xc6\x27\x39\xe3\x56\x1d\x9e\xe7\x34\x73\xd2\x4b\xdc\xa6\x3a\xae\x15\xcf\x31\xb6\xae\x6f\xcc\xe1\x19\x0d\x4c\xce\x6d\x3b\x2e\x6b\x7a\xed\xf9\x9e\x6b\xc4\xe5\x1e\x39\xe9\x83\xe4\x7d\xdf\xd5\x71\xc3\xe3\x4e\xf1\xf8\xe6\xc3\xce\xb1\xa5\xb8\xc9\x34\x42\xf7\xd1\xc5\x08\x3f\xc9\x1d\xfa\x56\x69\xe9\x22\x62\x6d\x6a\x7e\xbe\x0f\xbc\xb9\x56\xc6\x12\x15\x7c\xf8\x38\xa5\x7d\x92\x10\x6f\x45\x74\x44\xbd\x76\x36\xc7\x15\xac\x80\x6d\x36\xa2\xe4\x78\x46\x33\x16\x1b\x34\x3e\x97\x8b\x8e\x3a\x25\x35\xe9\x95\x54\xdf\x2d\x99\x5b\x0a\x43\xa8\xa1\x8b\x39\xb6\x17\x4d\xdf\xb2\xfc\x91\x3d\xb7\x07\xe4\xa2\x44\x82\x13\xf8\x8f\x15\xfc\x48\xbd\x83\xad\xf9\x1a\xcd\x4e\x2d\xa8\xd6\x7f\xae\xb6\xa0\x1e\xaa\x6d\xce\x61\xab\xc4\xa4\x37\x95\xa5\xd2\x82\xf1\x14\x6e\xb4\xf3\x6d\xd4\xad\x21\xa9\x96\x5a\xd4\x98\x77\x6e\x15\xbb\x17\x68\xbc\x5e\xa3\xdb\x5d\x1a\x72\x28\x3a\xd7\xcd\x9e\xa2\x5d\x94\xd2\x98\x71\xc9\xb5\xd5\xfa\x88\x3f\xfd\x09\x5f\x07\x0e\xb8\xaf\xf3\x2b\x4f\xe9\x1d\xc3\xeb\xa3\xea\x62\x38\x59\x29\x1d\x0e\x41\xbb\x3e\x0a\x7b\xe2\xaf\xc4\x97\xd6\x36\xa2\xad\x6d\x10\x0a\x17\x95\x36\x43\xde\x30\x2c\x6d\x7a\x59\xe5\x91\x0c\x65\xcd\x72\x42\x60\x47\xbc\x47\x7d\xf0\x50\xff\xda\x2f\x61\xe8\x9e\x5d\xd8\xc4\x6d\xfa\xae\x65\x7b\xf3\x63\x90\xfb\xdb\xcd\x1c\xff\xe7\x0d\x88\x8b\xb4\xda\xb8\xf9\x23\xc2\xcf\xdf\xb7\x74\xd7\xe4\x9a\x5b\x8e\xcd\x66\xf3\x7d\x30\x87\x9e\x3a\x13\xb7\x9d\x27\xf6\xfe\x58\x70\xb2\x7e\x76\x47\xdb\x11\x4c\x33\xb2\xcc\x73\x53\xa5\xfa\xf3\x4e\xa3\x79\x0e\x7c\x4b\x17\xd1\x96\xcb\x4e\xa1\xee\x0f\xb2\x64\x09\x55\x4d\xb7\x3c\x2b\xb8\xb7\xc8\xb1\x53\x08\xfc\xb0\xb7\xb7\x2c\x97\x5c\x64\xb5\x28\x44\xa9\x05\x5f\xd0\x48\xc2\x74\x99\x0c\x65\xf3\x49\x0e\xdd\x1a\xf8\xf0\xb1\xe5\xd2\x9e\xf1\xda\x06\x55\xf7\x6a\x01\x3f\x50\xbd\x9a\x8b\x32\x98\x3d\x25\x27\xdc\x96\xfb\xfe\xdc\xe9\x50\x9b\xa1\x4d\xb7\x10\x2d\xad\x8d\x1d\xaf\x47\xea\xea\xce\xb5\x2e\x77\xc7\x80\x56\xfb\x9a\x1c\x68\x05\x56\x6b\x60\xb6\xf9\xf2\x28\xf5\x83\xb9\x8b\x28\x77\xc2\x61\x16\xf1\xf7\x20\x40\x89\xac\x2a\x39\x25\x99\x82\x95\xcd\x0c\x86\xcb\x8c\x6e\x3b\x91\xc6\x48\xed\x76\x2b\x33\xf6\xc7\x42\x54\x09\x4d\x53\x06\x4c\xd6\xf1\x77\x7b\xf5\xd6\xc6\x1f\x95\x3d\x88\x82\x1d\x55\xe2\x1c\x89\xb1\x50\x4d\xcc\x9d\x01\xdb\xff\x6e\xd2\x5e\x14\x00\x71\xd0\x51\x8f\x7a\x94\x3a\x7b\x20\x6e\x9a\x62\x74\x42\x9b\x17\xa9\x73\x96\x31\x25\x02\xad\xbc\xf6\x13\xec\x46\xd7\xdd\x11\x54\xb7\xc1\x32\xac\x47\x33\xb4\x27\xaf\xe5\xfc\x4c\xce\xfb\xfa\x6c\xdb\xf7\x95\xdf\x52\x6b\x2e\x69\xb8\x31\x0f\xe9\xf4\x4b\xe7\x46\xb8\x47\x65\x2e\x6b\x9b\xa9\x91\xed\x21\x37\xb3\x24\x54\xf7\x9a\xc9\xdc\xbf\xb5\x31\xe0\xf7\x2c\x23\x43\xa3\xa3\x05\x8c\x2a\xbd\x9d\x0f\x5d\xaa\xf5\xf4\xeb\x6a\xbb\x1d\x90\x9d\xa5\x73\x6f\x4a\xb3\x2d\x3f\x97\xd5\x63\xf7\x0e\x83\x51\xf1\xb7\x2a\x36\xc2\x4a\xac\xb1\xbf\x17\x36\xad\xe9\xdc\xa1\x58\x5b\x95\x79\x06\x8e\x59\x56\x7b\x23\x85\xee\xea\x18\x5c\xf8\x18\x92\xbe\xe9\xf2\xd0\x76\xc9\xb8\xcd\x6a\xf2\xfd\x18\x96\x0a\xa9\x0a\x86\xf2\x6f\xb7\xc0\xe7\x53\x48\x70\x24\xfb\x96\xbe\xb0\x64\x37\x9a\x4f\x2c\x71\xfb\xa8\xab\xe0\x3f\xc1\x47\x0f\x6b\x79\xe7\x3a\xc8\x44\x5a\x3a\x0f\x67\x44\x36\x0d\x74\xb7\x6e\x1a\x4c\x84\x9a\x14\x4f\x1b\x91\x69\x61\x84\x02\xdf\xde\x91\x5e\x3c\x55\xda\x51\xaf\xd1\xa8\xab\x00\x8a\xf4\xbd\xd0\x83\xb3\x95\x9d\x7f\x63\x8e\xb2\x94\x4e\xab\x69\x90\x88\x33\xe0\xe4\x05\xdc\x20\x15\x70\xf7\x07\x06\xc2\x76\x13\xb3\xad\xa3\xf0\xa2\xb8\x4d\x14\xba\xed\xfc\x23\x53\xa5\xc1\x58\xde\x5e\x24\xfa\x2f\xa6\x82\xde\xf6\x8e\xd5\x8e\x2c\xf7\xc1\x89\xbe\x7f\x7c\xa6\x72\x91\xaf\x38\x67\x60\x78\x72\xbc\x1f\x2a\x99\x83\x5f\xc2\x0c\xa0\x93\xea\x8e\x20\xa5\xab\xeb\x30\xe5\xb4\xa2\xe8\xcc\x0f\xc3\xfc\x8c\x52\x38\x0c\x37\x53\x19\x85\x9f\x4e\x74\xd2\x08\x93\x3b\xf6\x32\x89\x17\x49\x23\x5a\xbe\x4e\xcc\x25\x86\x71\x75\x49\x36\xf1\xd2\x88\x1a\x09\x3f\x6d\xfe\x3e\x31\x86\x9d\x86\xcd\x29\xf9\x87\xc1\x88\xd9\x91\x26\xee\xff\x12\xe1\xc5\x91\x7c\x6a\x78\x79\xc9\x6c\xf2\x6b\xe9\xff\x78\x68\xea\x04\xa7\x17\x0a\x4f\xd6\x1b\x61\x88\x7a\xc3\x87\x71\xb7\x4b\x02\x88\x0e\x0d\xa0\x4f\x00\xe2\xf1\x00\x16\x44\xa4\x4e\x20\x33\x77\x9a\xfd\xbf\x29\x0a\x63\x99\xbd\x9a\xd4\xaf\x6f\xcd\x37\xf8\xf9\xb9\x91\x2b\x38\x6e\x2a\x76\x85\xf3\xd4\x2f\x0d\x5e\x9d\xe9\xec\x97\x04\x2e\x3a\xc1\xb2\x31\x0f\xc2\xd0\x5f\x28\x66\xf9\x44\x7a\xf7\xd5\x5d\xb1\xda\x96\xa9\x72\x3d\x50\xa4\x8e\xdf\x30\x38\x52\x94\x3a\xb1\x04\xf1\xc4\x0d\x97\x46\x6f\x1a\xe0\xea\x8f\x91\x77\xbf\xe0\xd0\x22\xd3\xd8\x4b\xef\x32\xc9\x9f\xe1\x57\x8f\xc2\x76\x20\x56\x06\xde\x71\x04\xbb\x97\x3b\xc8\x97\x41\xed\x98\x73\x2c\x52\xe2\x6a\x3c\x2a\x7e\x0d\xe7\xe4\xbb\x98\x01\xef\x44\x6d\x56\x97\x7b\x51\xe9\xe6\x77\x56\x3b\x1d\x7b\xa8\xc5\x3d\xab\xb9\xf1\x47\x14\x1b\x0d\x3c\xcc\xe6\x03\x20\x19\x47\x08\xb9\xb6\x73\x41\xd2\x12\x3b\x01\x92\xbf\x5a\x43\xa6\x5b\x9a\xbb\xc6\xb6\x85\x40\x80\x80\x17\xd1\xf9\x54\x45\x65\x6e\xb8\xf8\x41\x88\xe6\x94\xb8\xce\x8f\x3f\x4a\xe8\xa5\xb9\xa7\x67\x3d\x14\x6e\x70\x72\xdd\x44\x87\x74\x42\x0f\xcd\x65\x8e\x75\x40\xdd\xfd\x9b\xe4\xd8\x9f\xd9\x9e\x38\x6d\x3e\x45\x8d\xa2\xab\x46\x43\x69\x13\x5b\xec\x40\xe9\xb4\xf6\x27\x2d\xf6\xe5\xed\x0f\xc5\x50\xda\x92\x2b\x98\xeb\xca\xfc\xfd\x8d\xf9\x6b\xec\xc4\x93\xbb\x91\xf9\xba\xaa\x4d\x59\xe2\xdc\x6f\xa3\xa3\xa3\xa2\xbf\xb9\x56\xa1\x69\x7c\xf8\xd8\xa4\x9a\x5d\x03\xf1\xe4\x39\x61\x1f\x03\xd2\xbf\x4c\xae\x23\xe6\x31\x36\x35\xbe\x60\xb4\xd5\x18\x93\xc7\xf4\xfe\x4a\xf2\x83\x9f\x31\x76\x47\xcb\x34\xb5\x6a\x71\xe9\x95\x66\x3f\x2c\x68\xcc\x38\x72\x7c\x62\x3d\xf8\x79\x23\xb2\x89\x21\x59\x93\xd2\x5a\x26\x24\x66\x24\x97\x95\x4e\x16\x81\x76\x72\x7d\xa2\xcd\x37\xf3\xea\xf3\x2c\xde\x3f\xe4\x4f\xb5\x79\x0b\x94\xee\x45\xb3\xd3\xae\x3e\x04\x38\xb9\x08\xbe\x27\xfa\x85\xde\xb5\xab\x23\x5e\xc2\x8a\xef\x4c\x3f\xe1\x74\x75\x99\xa7\x68\xcf\xfc\x4a\xbe\x62\x44\x6d\x17\x2a\x62\x2c\xdd\x3a\x6e\xc8\x53\x10\x19\xb7\xe7\x13\x2e\x52\x9c\x6f\xd6\x97\x5b\xb5\x2d\x01\x4e\xb4\xea\x4e\xa5\x71\xaa\x55\xfb\x87\x7c\x0d\xab\x1e\xb4\xe8\xc9\xa1\xfa\x5f\xcf\x94\x91\xab\x73\x2a\x42\xd2\xd7\x17\x14\x84\xde\x79\xc3\xf5\xe0\x8b\x1a\xf0\x9f\x6c\xbc\xa7\x5e\x8b\x3c\xbf\x46\xf2\x9a\x88\x24\x2d\xe4\xed\x25\xea\xdd\xc6\xdc\xbe\xac\xe6\x45\x72\x4e\xa8\x66\xfe\xea\xfa\xf3\x6a\xdd\xee\x2d\xa7\xaf\x55\xeb\x7a\x37\xc0\xfa\xd5\x0f\x55\x5d\xa4\xfa\xcb\xcb\xdc\x36\xb8\x4e\x55\xb9\xb4\xea\x4b\x8b\xdc\xaf\x82\x8a\x97\x4a\xe1\x5d\xca\xfb\xd5\x2a\xdc\xbe\x8a\xbd\x4b\x51\xed\x8f\xff\x1f\x00\x00\xff\xff\xd7\xd7\x27\x50\x39\x4e\x00\x00") +var _templateBuilderMutationTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xd4\x5b\x59\x73\x1c\xb7\x76\x7e\x9e\xfe\x15\xc7\x5d\xb2\x33\xcd\x8c\x7b\xec\xfb\x16\x39\x7c\x50\x44\xfb\x86\x55\x89\x98\xba\xa2\xf3\xa2\x52\xd9\x60\x03\x43\x22\xea\x65\xdc\xc0\x0c\xc9\x1a\xcf\x7f\x4f\x9d\x03\xa0\x1b\xe8\x6d\x16\xd1\x2a\x5d\x3f\x58\x64\x63\x3b\xcb\x77\x36\x1c\x70\xb7\x5b\x5e\x44\x6f\xab\xf5\x73\x2d\xef\x1f\x34\xfc\xed\x87\x1f\xff\xed\xfb\x75\x2d\x94\x28\x35\xfc\xc2\x32\x71\x57\x55\x9f\xe0\xba\xcc\x52\x78\x93\xe7\x40\x93\x14\xe0\x78\xbd\x15\x3c\x8d\x6e\x1f\xa4\x02\x55\x6d\xea\x4c\x40\x56\x71\x01\x52\x41\x2e\x33\x51\x2a\xc1\x61\x53\x72\x51\x83\x7e\x10\xf0\x66\xcd\xb2\x07\x01\x7f\x4b\x7f\x70\xa3\xb0\xaa\x36\x25\x8f\x64\x49\xe3\xff\x75\xfd\xf6\xe7\x77\xef\x7f\x86\x95\xcc\x05\xd8\x6f\x75\x55\x69\xe0\xb2\x16\x99\xae\xea\x67\xa8\x56\xa0\xbd\xc3\x74\x2d\x44\x1a\x5d\x2c\xf7\xfb\x28\xda\xed\x80\x8b\x95\x2c\x05\xc4\xc5\x46\x33\x2d\xab\x32\x06\x3b\xf0\x6a\xfd\xe9\x1e\x5e\x5f\xc2\x1d\x53\x02\x5e\xa5\x6f\xab\x72\x25\xef\xd3\xff\x61\xd9\x27\x76\x2f\x70\xd2\x6e\x07\x5a\x14\xeb\x9c\x69\x01\xf1\x83\x60\x5c\xd4\x31\xbc\xa2\xe5\xb2\x58\x57\xb5\x86\x79\x34\x8b\xd5\x73\x99\xc5\x51\x34\xdb\xed\xbe\x87\x9a\x95\xf7\x02\x5e\x95\xb8\xed\xab\xf4\x5d\xc5\x85\xc2\xe9\xb3\x59\x8c\xe7\xf5\x8f\x58\xe2\xe7\xd2\xfb\x10\x9b\x7d\x44\xc9\xe9\x98\x59\x7c\x2f\xf5\xc3\xe6\x2e\xcd\xaa\x62\xb9\xb2\x32\x97\x65\xb6\xb9\x63\xba\xaa\x97\xa2\xd4\x71\x94\x44\x51\x56\x95\x8a\x88\x59\x2e\xe1\x66\x2d\x6a\xe2\x13\xf4\xf3\x5a\xa8\x34\x9a\xdd\xac\xdf\xd6\x02\x79\x00\x80\x4b\x10\xa5\x4e\xdd\x17\x1c\xbb\x12\xb9\x08\xc7\xcc\x97\x76\xec\xa6\x14\x9d\xb1\x9b\x92\x86\x7f\x5d\xf3\xce\xb6\xe6\x4b\x3b\xe6\x2f\x6d\xbe\x44\x44\x27\x0a\xa7\x21\x71\x52\x76\xb7\xcf\x6b\x61\xe4\xf4\x8e\x15\x28\x24\xb8\x84\x38\xf8\x10\x4a\x2d\x21\xed\x8e\x6c\x47\x8a\x77\x50\xa0\xb1\x32\xfd\x6f\xfb\xab\xdd\x2d\x5a\x2e\x21\x98\xb5\xdf\x43\x2d\x2c\xf2\x15\xb0\x12\xaa\x56\xc6\x0f\x4c\x03\x4d\x14\x84\xcc\xdd\x0e\xd6\xf9\xa6\x66\xb9\x47\x1d\xee\x57\xd2\xf9\x16\xbe\xf7\x35\x5b\x3f\xa4\x11\x32\xdf\x3b\x48\xe9\x7a\x93\x69\xd8\x45\xb3\x8c\xc0\x12\xcd\xaa\x35\xdc\xac\xa3\x99\x7e\x5e\xe3\xa0\x2c\xef\x91\x59\xdc\xfe\xfa\x2a\xfd\x8f\x8d\xcc\xb9\xa8\x7f\x91\x22\x47\xd6\xe1\xa2\x19\x41\xa1\x91\xf8\x3c\xd1\xae\x2c\xbf\x34\xdd\x0a\x17\x17\xac\x86\xf7\x59\xb5\x9b\xd0\x2e\x72\xe5\xbe\xa5\xef\x36\x85\xa8\x65\x66\xc6\x66\x8c\xf3\x13\xb6\xb1\x5a\x0a\x7e\xce\x72\xc1\x6a\xc1\x2d\x61\x05\x5b\x7f\x30\xac\x7e\x34\xe2\xd8\x85\x7c\x08\xcb\xc7\xcf\xfc\x5e\xa8\x90\x3e\x91\xfe\x5a\xca\x3f\x36\x74\x1c\x78\xff\x21\x21\x62\x98\x3e\x61\x58\xf2\x65\x36\x73\x04\x0d\x2f\xbb\xab\xaa\xdc\x31\x93\xab\x23\xcf\x42\xa6\x06\x8f\xf3\x78\x9c\xcd\x6a\x51\x54\xdb\xb1\x73\x8f\xda\x62\x4c\xc4\xbc\x2a\x85\xa5\xbc\xca\xf9\xff\xb2\x7c\x23\x60\xb5\x29\xb3\x79\x56\x95\x5a\x3c\x69\x74\x4e\xf8\x6f\x02\xf3\x8b\xc0\xb8\x16\x20\xea\xba\xaa\x93\x68\x1f\x45\x5b\x56\xc3\x6f\x64\xcf\xce\x66\xe0\xd2\xce\xf7\x40\x9c\xcc\x4b\x99\x27\xa1\xa9\xdd\xac\x9d\xc1\xad\x6b\x59\x6a\x98\x67\xac\x10\x8d\x95\x24\x10\x9b\x09\xf1\x80\xfd\xd9\xa5\xfb\x3d\xb0\x3c\xaf\x1e\x15\xe8\x0a\x0a\x56\xa2\xc3\x44\x6b\x6a\x0e\x36\x06\xb3\xb1\x96\xb9\x51\xb2\xbc\x27\x0e\xf1\x57\x96\x43\x45\xdb\xa8\x01\xbb\x6b\x0f\x20\x81\xf4\xd8\x89\xc8\x82\xc5\x63\xd7\x56\x33\x72\xa2\x0a\x87\x5a\x2a\x56\x55\xed\xb8\x4a\x23\xdc\x6f\x60\xe5\x3c\xb3\xc4\x2e\x80\xac\x1b\xff\xd1\x0a\xd2\x34\x1d\x24\x2b\x81\x2e\x49\xe8\x1f\x0a\x14\xe6\x77\x9d\x81\x5d\x34\xb3\x8e\xe3\xb5\x83\x63\xb6\x88\x66\xb3\x6a\xfd\xda\x87\x68\xb5\xc6\x8f\xfa\x39\xf8\xda\xf3\xb3\x38\x27\xb0\xcc\xd7\x50\xb0\x4f\x62\x3e\x60\x9f\xc9\x22\x9a\xed\xa3\x19\x32\xff\x1b\x71\x83\xc4\x19\x73\x25\xd6\x76\x44\x83\x9e\x17\x09\xcd\xab\x85\xde\xd4\x25\x14\x91\x75\xc8\x76\x81\x81\x46\xfc\x28\xf5\x43\xdc\xd0\x11\x5f\x5f\xf9\xa8\xc0\xa9\xe8\x27\x85\x56\xa4\x7e\xc9\x61\x45\x06\x42\x59\x40\x0b\x07\x2b\xfc\x76\xc9\x5c\x72\xe8\xba\xc7\x64\x04\x07\xbb\x86\x44\x42\x44\xd1\x53\x40\x42\x1c\xa1\x39\xcc\xd1\x6c\x45\x5d\x1b\x2b\xc1\x5f\xaa\x32\x13\x80\x59\x41\x7a\x53\x66\x02\xbf\x6c\xc9\xda\x42\xb3\x8a\x66\xb3\x24\x9a\xcd\x8a\xb4\xb1\xc6\x4b\x6b\x8f\xfa\x09\x8e\xb5\x49\xa2\x82\x0e\x4c\xaf\xaa\x39\x2d\xb7\xdf\x66\x72\x05\x45\x4a\x46\x6f\x7e\x27\x1a\x2f\x61\x55\xe8\xf4\x67\x5c\xbb\x9a\xc7\x7f\x6c\x44\xfd\x8c\x56\x52\xe5\x1c\x88\x46\x05\xeb\x4a\xe9\x16\xcc\x52\x41\x59\x69\x63\x77\x82\xc7\x09\xed\xb4\x37\x5e\xcf\x6e\x4b\xeb\x88\x1e\xb8\x84\x22\x7d\x9b\x4b\x51\xea\x79\x92\x06\xf4\xa6\x7f\x17\x1a\x19\x5b\x80\xe4\x76\x13\xfc\xff\x3e\x31\x3e\x8f\x24\xdd\x6e\x14\x99\xe1\x22\x1d\x8d\x73\x97\xf0\x9d\xe4\x88\x24\x0f\x3f\x23\xf0\x19\x47\x0e\x72\x1d\xe6\x15\x07\x21\x84\x61\xbc\xa3\xc7\xcf\x84\xd0\x80\xfe\x4f\xd2\xbd\x3d\x03\x09\x5b\x40\x29\xf3\xa3\x64\x87\xb3\xd3\xeb\x2b\x2b\xc0\xe5\x12\x8c\xd6\xc0\x6c\xa6\x80\x91\x4b\xfb\x1d\xfd\xbc\x19\xf9\x1d\x56\x75\x55\x84\xc2\x81\xeb\x50\x5a\xf0\xc8\x14\xee\x25\x9e\x44\xb6\xd1\x82\x63\xb6\xc3\x40\xd7\xac\x54\x8c\x7c\x30\xcc\x71\xc3\xdb\xa7\x64\x11\x7e\x67\x39\x64\xe6\x7c\xa9\x2c\x09\x58\x3f\x90\xec\xe7\x45\x37\x43\x4a\xc0\x41\x0c\x2e\x2c\xd9\x98\x2c\x99\x9f\xd0\x23\x9a\x8f\x3b\xe7\x05\x8b\xd4\xfc\xb4\x77\x93\x52\x59\x4a\x3d\x4f\x1a\xf5\x98\xaf\x56\x10\xb7\x4f\xad\x10\x4a\x23\x81\xdb\xa7\xdf\xc9\xa9\x3b\x1a\x94\x49\xfa\x1e\x45\x2d\x02\x5e\x3d\x8e\xd4\x4f\xb8\x97\xd4\xfe\x5e\xa4\x34\xa8\xf4\x83\xa8\x1f\xa5\x12\x13\xfc\xdd\x3e\xcd\x51\xe9\xb7\x4f\xbe\xa6\xe5\x0a\x66\xe8\x59\x3f\x21\x8f\x45\xca\x6b\xb9\x15\x75\x3a\xbf\xd0\x4f\x57\xf4\x63\xf2\x13\x7c\x53\x7d\x22\x4c\x38\x48\xc8\x7c\x11\x98\xbb\x2b\x79\xf6\xfb\xd7\x3d\x0b\xaf\x37\x65\x89\x9e\xa0\xab\xb3\xd8\xf8\x6b\xfd\x44\xa2\xbd\x7d\x1a\x12\xab\x7e\xea\x8a\x14\x0d\x1d\xb1\x48\xd6\x69\x12\x33\x82\xe2\xaf\x4a\xd4\x57\x54\x8e\x99\x9c\x64\xb9\x84\xf7\x42\x5f\x5f\xb5\x36\x69\x3c\xa5\xb5\x43\xe7\xda\x53\x78\x57\x51\x7e\xcd\xf4\x82\x2a\x3d\x5a\xd9\x26\xe1\x52\x01\xcb\x32\xb1\x46\x45\x54\x65\xfe\x0c\x55\xd9\x31\x6c\x8a\xd4\x64\xd1\x33\x27\xf6\xbe\x39\x12\x29\x23\x51\xe2\x48\x77\xe4\xd7\x6e\xcb\x25\x5c\x5f\x35\x08\xb0\xfc\x18\xfe\x6c\x1d\xd0\x9a\x52\xc0\x1f\x4e\x24\xfc\x28\x60\x5b\x26\x73\x76\x97\x0b\xc3\x97\x5c\x21\xa8\x1e\x99\x82\x75\x5d\x6d\x25\x17\x1c\x73\x21\x5c\x71\x67\x28\x6a\x51\xd5\x67\xef\xfa\x0a\x61\x35\xc0\xde\x02\xc4\x93\x54\x5a\x51\x76\xe8\xc0\x36\xc5\xed\x25\x2a\xd7\x83\x9a\x1f\xd2\x2f\xc6\x17\x2e\x40\xd7\x1b\x61\x5d\xf6\x78\x49\x42\x30\xa5\xf4\x41\x64\x02\xa1\xdd\x54\x1d\xef\x29\xe7\xc0\x2c\x67\x87\xa2\x10\x7f\xe0\xc4\xb8\x88\xc9\xdd\xd2\xaa\x4b\x88\x49\xc2\xee\x53\x9b\x08\xc3\x2b\x92\x4c\x9b\x64\xbc\x17\x3a\xc6\x9d\xdf\x53\x06\xe3\x68\x34\x53\x4d\x3d\xdd\xcc\xf5\x2a\xf4\x38\xa5\x45\x6f\x71\x02\x2b\xb5\x43\x71\xb3\xbf\x1f\x5f\x4c\xf1\xe3\x20\x68\x90\x3c\x85\x3f\x6f\x93\xb9\x61\xc7\xf2\xb5\x1a\x02\x62\xbf\xda\xb2\xd9\xe0\xba\xad\x88\x96\x17\x48\x8d\x46\xa1\x95\xb6\x62\xa3\xe4\xb7\xda\x8a\xba\x96\x5c\xc0\xba\x16\x5b\x59\x6d\x14\x64\x2c\xcf\x29\xb1\x7e\xc3\x79\x0a\x74\x77\x72\xa0\xe8\x2b\xd2\xd1\xb2\xef\xd2\x06\x22\xbf\xfc\xd8\x47\xad\xa0\x9a\xe2\xe1\xef\x42\x9b\xe2\xba\xb5\x91\x50\x68\xc3\xe6\x72\x50\x88\x9d\x03\x10\xf7\x75\x28\xc9\x3e\xe6\x67\x5b\xe3\x59\x07\x59\x8a\x28\x9f\xda\xfa\xd0\x6f\xb0\x4f\xf1\xd6\xa1\x7f\x6b\x41\x3e\xca\xef\x8d\x11\x91\xcf\xb2\xcb\x43\xba\x6c\x5b\x2f\x18\x26\x52\xb4\xeb\xf5\xc0\x08\x54\x77\xff\x27\x32\xf2\x0e\xe5\xbf\xe8\x31\x07\x61\xfc\x8b\x9d\x2a\x15\xac\x84\xce\x1e\x04\xa7\x5d\x9b\x10\xcf\x99\x66\x77\x0c\x63\x14\x7e\x7e\xe3\x62\x97\x17\x9d\x11\x16\x41\xec\x0f\x9c\x31\x06\x94\xe6\xb6\x67\x01\x55\xdd\xec\x08\x94\x72\xc2\x8a\xc9\x5c\x9d\xa6\x46\x23\xb7\x91\xe4\x78\x0b\xc6\x23\xa0\x08\x65\x6e\x1c\xe6\x7e\x7f\xd1\x38\x80\xae\xea\x5d\xb6\x6e\x14\x2f\x57\xf0\x4d\x91\x56\xeb\xf4\x5a\xcd\xbd\x6b\xaa\x30\xc1\xda\xf6\x63\xe9\x90\x5e\xd1\x67\x9b\x64\xb9\x89\x44\xed\x4d\x58\x23\x24\x45\x99\xb4\x45\xd5\x61\x4f\xfb\xe7\x9f\xe0\xa7\x89\x3d\x0c\x1e\x4b\x5c\x2d\xfe\xd8\xc8\x5a\x50\x3a\x72\x7d\x65\xcb\xa6\x8e\x71\x35\x94\xb9\xf3\x8c\xb8\xc8\x34\xdc\x27\xd4\x42\x62\x88\xc7\xb1\x6f\x0e\x12\xd4\x2f\x34\x28\xa3\x1a\xa1\xf3\x35\x7c\xfb\x18\xd3\xb1\x49\x68\x5d\xee\x7c\x6b\xa3\xa1\xe7\xb6\xd9\xef\x9e\x6e\x62\x11\x0c\xac\xe4\xc3\xae\x6b\x20\x18\xbc\xe1\x7c\x30\x18\x74\x7d\x3b\xe3\x5c\x41\xe3\x9b\x75\x15\xda\x6d\x1a\xcd\x5e\xc0\xbd\x1b\x4c\x8c\x3a\x57\x5f\xda\xb3\x8b\x89\x89\xff\x7a\x09\x5e\x38\x08\xab\xb6\x49\xe7\xfd\x5d\xb0\x8c\x54\x60\x24\xf1\x86\x73\xc1\x87\x64\x1f\xb8\x33\xa3\x5f\x93\x23\x33\x85\x22\x6b\xbd\xd0\x40\x48\x34\x00\x94\xca\x77\xef\x13\x52\x1c\xa5\xe1\x38\x27\xef\xbc\xfc\x18\xfb\x56\xfe\xa1\xa7\x6f\x5d\xfd\x6c\xef\x81\xbc\x75\xf6\x33\x93\x37\x34\xb7\xf6\x8d\x37\x32\xe5\x20\xcb\x47\x81\xf7\x36\x17\xac\x3e\x0a\x7a\x74\x11\xd3\x49\x92\xcf\x44\x9f\x15\xc5\x78\x1e\x61\xc2\xf7\x74\xfc\x3f\x26\x01\x08\x32\x00\x5c\x11\xdc\x26\x7d\x68\x53\xad\xfd\xfe\x23\x5c\x82\xbb\x4c\xda\x35\xa0\x6b\xa8\x6e\x52\xb1\x50\x50\x46\x7e\x82\xc7\x83\x22\x73\xa8\xb4\xc1\xca\xc0\x2d\x84\x20\x22\xd4\x12\x75\x22\x10\x43\x81\x22\xc2\x8c\x54\xbd\x22\x6d\x82\x5b\x0f\x46\xd5\xa7\x41\x00\x39\xbe\x3d\x0f\xf9\x0f\xa1\xc4\x60\xca\x59\xd3\x00\xcb\x73\xc8\x1e\x30\xaf\x56\x2e\x77\x88\x03\x6e\xe3\x13\x93\xd0\x43\xe9\x66\x9b\xe5\xbd\x54\x96\xe8\x6d\x16\x9a\xce\x8c\x53\xe3\x69\xde\x11\xea\x02\x7c\xa9\x26\xbd\x9c\xd3\x93\xa9\x57\x74\xf4\xfb\x07\xe6\x8a\x07\x3f\xc7\x8c\x13\x9a\xac\x09\x7b\xfd\x04\x3b\xe7\x12\x62\x85\xa5\x03\x7d\xf0\xeb\x0b\xc9\xd5\x2f\x81\x71\xcf\xd7\x4c\x65\x2c\xc7\x55\x09\xcc\x95\x2c\xef\x37\x39\xab\x71\x4f\xd2\xc7\x9f\x60\xc6\x13\x88\xaf\xaf\xd4\xf8\x99\x6e\xdf\xe1\x6d\xdd\x2f\xc2\xdd\xa3\x9b\xdb\x52\x8f\x36\x8b\x15\xb7\x8d\x0d\x3a\x15\x3a\xf8\x36\xe5\x16\x8d\x45\x08\x7e\x2f\x5c\x64\xb3\x8d\x06\x37\x74\xf7\x0c\x92\x1b\x22\x31\xc5\xf3\x09\x55\xcd\x81\x07\xd1\xd5\x12\x32\xef\x33\x4c\xfb\xdb\xa6\x8a\xe4\xee\x4a\xdc\xec\x0c\x83\xbd\x0f\x03\xd2\xa1\xfe\x4f\xe3\xe2\xfa\x9d\x14\x5b\xb0\x07\x2d\x9c\x99\x97\x8d\x0d\xac\xf0\xe3\xc1\xf8\xb6\xcd\xfd\xf8\x20\xad\xed\x75\x79\x13\x4b\x30\x0f\x92\xed\x65\x39\xf2\x3c\x79\xc6\x07\xc9\xd5\x07\xf9\xb1\xe7\x2e\x67\xdd\xde\xcf\xbe\x09\x43\xa1\x4c\x26\x82\x90\x38\x25\x08\x1d\x8b\x9a\x33\xc2\xd2\x64\xf3\xed\xb2\x8d\xb9\x83\x01\x42\x9c\x1f\x20\x88\x89\x90\x2f\x2f\x3e\x9c\x17\x0e\x5c\xa7\x63\x92\x29\x2f\xc7\x32\xe3\xa1\x1e\x3a\xd7\x48\x21\x85\xb2\x97\xc2\x1f\x26\xb4\x7f\x80\x77\x35\xd4\x43\xed\x50\x1a\x35\x61\x29\xdf\xf4\x33\x27\x77\x2b\xd4\x9b\xdc\x24\x50\x7e\x62\xd5\x86\xc3\xc6\x32\x9b\x3b\x21\x2c\xad\x6a\x98\x93\xae\x57\x10\x7f\x9b\xfe\xa8\xe2\x00\x71\x49\xbb\xa0\xe7\x90\xe3\x7f\x50\x77\x35\x3e\xca\x19\xb7\xea\xf0\x3c\xa7\x69\xcf\x9e\xe3\x36\xd5\x61\xad\x78\x8e\xb1\x75\x7d\x63\x0e\xcf\x68\x60\xb2\x5d\xdc\x71\x59\xd3\x73\x4f\xf7\x5c\x23\x2e\xf7\xc0\x49\x1f\x24\xef\xfb\xae\x8e\x1b\x1e\x77\x8a\x87\x37\x1f\x76\x8e\x2d\xc5\x4d\xa6\x11\xba\x8f\x2e\x46\xf8\x51\xee\xd0\xb7\x4a\x4b\x17\x11\x6b\x53\xf3\xd3\x7d\xe0\xf5\x95\x32\x96\xa8\xe0\xc3\xc7\x29\xed\x93\x84\x78\x2b\xa2\x03\xea\xb5\x2d\x41\xae\xe0\x12\xd8\x7a\x2d\x4a\x8e\x67\x34\xdd\xb8\x41\xe3\x73\xb9\xe8\xa8\x53\x52\x93\x5e\x49\xf5\xdd\x92\x79\x1c\x31\x84\x1a\x7a\x0f\x64\xaf\xc0\x69\x2d\xcb\x1f\xd9\x73\x7b\x40\x2e\x4a\x24\x38\x81\x7f\xbf\x84\x1f\xe9\xee\x60\x63\x56\xa3\xd9\xa9\x05\xd5\xfa\xcf\xd5\x06\xd4\x43\xb5\xc9\x39\x6c\x94\x98\xf4\xa6\xb2\x54\x5a\x30\x9e\xc2\xb5\x76\xbe\x8d\x6e\x6b\x48\xaa\xa5\x16\x35\xe6\x9d\x1b\xc5\xee\x05\x1a\xaf\x77\x7d\xe6\xde\x2a\x39\x14\x9d\xea\x66\x8f\xd1\x2e\x4a\x69\xcc\xb8\xe4\xca\x6a\x7d\xc4\x9f\xfe\x84\xc3\x81\x03\xee\xeb\xfc\xc2\x53\x7a\xc7\xf0\xfa\xa8\x3a\x1b\x4e\x56\x4a\xfb\x7d\xd0\x25\x88\xc2\xab\xf8\x57\xe2\x73\x6b\x1b\xd1\xd6\x36\x08\x85\xb3\x4a\x9b\x21\x6f\x18\x96\x36\xbd\xac\xf2\x40\x86\xb2\x62\x39\x21\xb0\x23\xde\x83\x3e\x78\xe8\xda\xdc\x2f\x61\xe8\x79\x5f\x78\x77\xdc\xdc\xbb\x96\xed\x83\x93\x41\xee\x6f\xd6\x73\xfc\x9f\xd7\x97\x2e\xd2\x6a\xed\xda\x9e\x08\x3f\x7f\xdf\xd2\xbd\xce\x6b\x1e\x57\x36\x9b\xcd\x83\x6b\xe7\x64\xea\x4c\xdc\x76\x9e\xd8\x67\x6b\xc1\xc9\xfa\xd9\x1d\x6d\x3b\x3f\x4d\xa7\x34\xcf\x4d\x95\xea\xb7\x59\x8d\xe6\x39\xf0\x0d\xbd\x7f\x5b\x2e\x3b\x85\xba\xdf\x3f\x93\x25\x54\x35\x3d\x2e\xad\xe0\xde\x22\xc7\x36\x3f\x70\x61\x6f\x6f\x59\x2e\xb9\xc8\x6a\x51\x88\x52\x0b\xbe\xa0\x4e\x88\xb9\x65\x32\x94\xcd\x27\x39\x74\x73\xe0\xc3\xc7\x96\x4b\x7b\xc6\x6b\x1b\x54\xdd\xd0\x02\x7e\xa0\x7a\x35\x17\x65\xd0\xf2\x4a\x8e\x78\xa4\xf7\xfd\xa9\x4d\xa9\x36\x43\x9b\xbe\x42\xb4\xb4\x36\x76\xbc\x1a\xa9\xab\x3b\xaf\xc9\xdc\xd3\x06\x9a\xed\x6b\x72\xe0\x2a\xb0\x5a\x01\xb3\x97\x2f\x8f\x52\x3f\x98\x27\x90\x72\x2b\x1c\x66\x11\x7f\x0f\x02\x94\xc8\xaa\x92\x53\x92\x29\x58\xd9\xb4\x7e\xb8\xcc\xe8\x91\x15\x69\x8c\xd4\x6e\xb7\x32\xaf\x0d\xb0\x10\x55\x42\x53\x97\x01\x93\x75\xfc\xdd\xbe\xf8\xb5\xf1\x47\x65\x0f\xa2\x60\x07\x95\x38\x47\x62\x2c\x54\x13\xf3\x54\xc1\xde\x7f\x37\x69\x2f\x0a\x80\x38\xe8\xa8\x47\x3d\x4a\x9d\x3d\x10\x37\x4d\x31\x3a\xa1\xcd\xb3\xd4\x39\xcb\x98\x12\x81\x56\x5e\xfb\x09\x76\xa3\xeb\x6e\xe7\xab\x7b\xc1\x32\xac\x47\xf3\x56\x80\xbc\x96\xf3\x33\x39\xef\xeb\xb3\xbd\xbe\xaf\xfc\x2b\xb5\x81\xc6\xd1\x0b\xf4\x8d\x70\x8f\xca\xbc\x11\x37\x5d\x23\x7b\x87\xdc\xf4\x92\x50\xdd\x2b\x26\x73\xff\xb1\xc8\x80\xdf\xb3\x8c\x0c\xb5\x8e\x16\x30\xaa\xf4\xb6\x3f\x74\xae\xd6\xd3\x2f\xab\xed\xb6\x41\x76\x92\xce\xbd\x2e\xcd\xa6\xfc\x54\x56\x8f\xdd\xa7\x13\x46\xc5\xdf\xaa\xd8\x08\x2b\xb1\xc6\xfe\x5e\xd8\xb4\xa6\xf3\x74\x63\x65\x55\xe6\x19\x38\x66\x59\xed\x43\x18\x7a\x22\x64\x70\xe1\x63\x48\xfa\xa6\xcb\x43\xdb\x25\xe3\x36\xb3\xc9\xf7\x63\x58\x2a\xa4\x2a\x18\xca\xbf\xdd\x02\xbf\x4f\x21\xc1\x91\xec\x5b\xfa\xc2\x92\xdd\x68\x3e\xb1\xc4\xed\xa2\xae\x82\xff\x02\x1f\x3d\xac\xe5\xad\xbb\x41\x26\xd2\xd2\x79\xd8\x23\xb2\x69\xa0\x7b\xec\xd3\x60\x22\xd4\xa4\x78\x5a\x8b\x4c\x0b\x23\x14\xf8\xf6\x96\xf4\xe2\xa9\xd2\x3e\xb6\x33\x1a\x75\x15\x40\x91\xbe\x17\x7a\xb0\xb7\xb2\xf5\x1f\xea\x51\x96\xd2\xb9\x6a\x1a\x24\xe2\x04\x38\x79\x01\x37\x48\x05\xdc\xb3\x85\x81\xb0\xdd\xc4\x6c\xeb\x28\xbc\x28\x6e\x13\x85\xee\x75\xfe\x81\xae\xd2\x60\x2c\x6f\xdf\x2f\xfd\x27\x53\xc1\xdd\xf6\x96\xd5\x8e\x2c\xb7\xe0\x48\xdf\x3f\xde\x53\x39\xcb\x57\x9c\xd2\x30\x3c\x3a\xde\x0f\x95\xcc\xc1\x2f\x61\x06\xd0\x49\x75\x47\x90\xd2\xd5\x75\x98\x72\x5a\x51\x74\xfa\x87\x61\x7e\x16\xb9\x77\x0a\x53\x19\x85\x9f\x4e\x74\xd2\x08\x93\x3b\xf6\x32\x89\x17\x49\x23\x5a\xbe\x8e\xcc\x25\x86\x71\x75\x4e\x36\xf1\xd2\x88\x1a\x09\x3f\x6d\xfe\x3e\xd1\x86\x9d\x86\xcd\x31\xf9\x87\xc1\x88\xd9\x91\x3a\xee\xff\x14\xe1\xc5\x91\x7c\x6c\x78\x79\xc9\x6c\xf2\x4b\xe9\xff\x70\x68\xea\x04\xa7\x17\x0a\x4f\xd6\x1b\x61\x88\x7a\xc3\x87\x71\xb7\x4d\x02\x88\x0e\x35\xa0\x8f\x00\xe2\xe1\x00\x16\x44\xa4\x4e\x20\x33\x4f\xa9\xfd\x3f\x65\x0a\x63\x99\x7d\x9a\xd4\xaf\x6f\xcd\x1a\x5c\x7e\x6a\xe4\x0a\x8e\x9b\x8a\x5d\x61\x3f\xf5\x73\x83\x57\xa7\x3b\xfb\x39\x81\x8b\x4e\xb0\x6c\xcc\x83\x30\xf4\x15\xc5\x2c\x9f\x48\xef\x99\xbc\x2b\x56\xdb\x32\x55\xae\x06\x8a\xd4\xf1\x17\x06\x07\x8a\x52\x27\x96\x20\x9e\xb8\xe6\xd2\xe8\x4b\x03\x9c\xfd\x31\xf2\xde\x17\xec\x5b\x64\x1a\x7b\xe9\x3d\x26\xf9\x2b\xfc\xea\x41\xd8\x0e\xc4\xca\xc0\x3b\x8e\x60\xf7\x7c\x07\xf9\x32\xa8\x1d\x73\x8e\x45\x4a\x5c\x8d\x47\xc5\x2f\xe1\x9c\x7c\x17\x33\xe0\x9d\xe8\x9a\xd5\xe5\x5e\x54\xba\xf9\x37\xab\x9d\x1b\x7b\xa8\xc5\x3d\xab\xb9\xf1\x47\x14\x1b\x0d\x3c\xcc\xe6\x03\x20\x19\x47\x08\xb9\xb6\x53\x41\xd2\x12\x3b\x01\x92\xaf\xed\x42\xa6\x5b\x9a\xbb\x8b\x6d\x0b\x81\x00\x01\x2f\xa2\xf3\xa9\x8a\xca\xbc\x70\xf1\x83\x10\xf5\x29\x71\x9e\x1f\x7f\x94\xd0\x4b\xf3\x4e\xcf\x7a\x28\xdc\xe0\xe8\xba\x89\x0e\xe9\x84\x1e\xea\xcb\x1c\xba\x01\x75\xef\x6f\x92\x43\x7f\xdd\x7b\x64\xb7\xf9\x18\x35\x8a\xae\x1a\x0d\xa5\x4d\x6c\xb1\x0d\xa5\xe3\xae\x3f\x69\xb2\x2f\x6f\xbf\x29\x86\xd2\x96\x5c\xc1\x5c\x57\xe6\xcf\x7e\xcc\x1f\x81\x27\x9e\xdc\x8d\xcc\x57\x55\x6d\xca\x12\xe7\x7e\x1b\x1d\x1d\x14\xfd\xf5\x95\x0a\x4d\xe3\xc3\xc7\x26\xd5\xec\x1a\x88\x27\xcf\x09\xfb\x18\x90\xfe\x79\x72\x1d\x31\x8f\xb1\xae\xf1\x19\xad\xad\xc6\x98\x3c\xa6\x77\x17\x92\xef\xfd\x8c\xb1\xdb\x5a\xa6\xae\x55\x8b\x4b\xaf\x34\xfb\x61\x41\x6d\xc6\x91\xe3\x13\xeb\xc1\x4f\x6b\x91\x4d\x34\xc9\x9a\x94\xd6\x32\x21\x31\x23\x39\xaf\x74\xb2\x08\xb4\x9d\xeb\x23\x6d\xbe\xe9\x57\x9f\x66\xf1\xfe\x21\x7f\xa9\xcd\x5b\xa0\x74\x1f\x9a\x1d\xf7\xf4\x21\xc0\xc9\x59\xf0\x3d\xd2\x2f\xf4\x9e\x5d\x1d\xf0\x12\x56\x7c\x27\xfa\x09\xa7\xab\xf3\x3c\x45\x7b\xe6\x17\xf2\x15\x23\x6a\x3b\x53\x11\x63\xe9\xd6\x61\x43\x9e\x82\xc8\xb8\x3d\x1f\xf1\x90\xe2\x74\xb3\x3e\xdf\xaa\x6d\x09\x70\xa4\x55\x77\x2a\x8d\x63\xad\xda\x3f\xe4\x4b\x58\xf5\xa0\x45\x4f\x36\xd5\xbf\x3e\x53\x46\xae\x4e\xa9\x08\x49\x5f\x9f\x51\x10\x7a\xe7\x0d\xd7\x83\x2f\x6a\xc0\x7f\xb1\xf1\x1e\xfb\x2c\xf2\xf4\x1a\xc9\xbb\x44\x24\x69\x21\x6f\x2f\x51\xef\x36\xe6\xf6\x79\x35\x2f\x92\x73\x44\x35\xf3\xb5\xeb\xcf\xab\x75\xbb\xaf\x9c\xbe\x54\xad\xeb\xbd\x00\xeb\x57\x3f\x54\x75\x91\xea\xcf\x2f\x73\xdb\xe0\x3a\x55\xe5\xd2\xac\xcf\x2d\x72\xbf\x08\x2a\x5e\x2a\x85\x77\x29\xef\x17\xab\x70\xfb\x2a\xf6\x1e\x45\xb5\x3f\xfe\x7f\x00\x00\x00\xff\xff\xac\xd9\xc6\x6e\xb0\x4e\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: 20025, mode: os.FileMode(420), modTime: time.Unix(1, 0)} + info := bindataFileInfo{name: "template/builder/mutation.tmpl", size: 20144, mode: os.FileMode(420), modTime: time.Unix(1, 0)} a := &asset{bytes: bytes, info: info} return a, nil } diff --git a/entc/gen/template/builder/mutation.tmpl b/entc/gen/template/builder/mutation.tmpl index 60785cf64..2d3719d6d 100644 --- a/entc/gen/template/builder/mutation.tmpl +++ b/entc/gen/template/builder/mutation.tmpl @@ -175,7 +175,9 @@ func (m *{{ $mutation }}) ID() (id {{ $n.ID.Type }}, exists bool) { return *v, true } - // {{ $f.MutationGetOld }} returns the old {{ $f.Name }} value, if exists. + // {{ $f.MutationGetOld }} returns the old {{ $f.Name }} value of the {{ $n.Name }}. + // If the {{ $n.Name }} object wasn't provided to the builder, the object is fetched + // from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *{{ $mutation }}) {{ $f.MutationGetOld }}(ctx context.Context) (v {{ if $f.Nillable }}*{{ end }}{{ $f.Type }}, err error) { if !m.op.Is(OpUpdateOne) { diff --git a/entc/integration/customid/ent/mutation.go b/entc/integration/customid/ent/mutation.go index 9bb3d65f7..453f5cdb3 100644 --- a/entc/integration/customid/ent/mutation.go +++ b/entc/integration/customid/ent/mutation.go @@ -153,7 +153,9 @@ func (m *BlobMutation) UUID() (r uuid.UUID, exists bool) { return *v, true } -// OldUUID returns the old uuid value, if exists. +// OldUUID returns the old uuid value of the Blob. +// If the Blob object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *BlobMutation) OldUUID(ctx context.Context) (v uuid.UUID, err error) { if !m.op.Is(OpUpdateOne) { @@ -576,7 +578,9 @@ func (m *CarMutation) Model() (r string, exists bool) { return *v, true } -// OldModel returns the old model value, if exists. +// OldModel returns the old model value of the Car. +// If the Car object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *CarMutation) OldModel(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { diff --git a/entc/integration/ent/mutation.go b/entc/integration/ent/mutation.go index 5cd9d3c32..9a5e589f3 100644 --- a/entc/integration/ent/mutation.go +++ b/entc/integration/ent/mutation.go @@ -163,7 +163,9 @@ func (m *CardMutation) CreateTime() (r time.Time, exists bool) { return *v, true } -// OldCreateTime returns the old create_time value, if exists. +// OldCreateTime returns the old create_time value of the Card. +// If the Card object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *CardMutation) OldCreateTime(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { @@ -198,7 +200,9 @@ func (m *CardMutation) UpdateTime() (r time.Time, exists bool) { return *v, true } -// OldUpdateTime returns the old update_time value, if exists. +// OldUpdateTime returns the old update_time value of the Card. +// If the Card object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *CardMutation) OldUpdateTime(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { @@ -233,7 +237,9 @@ func (m *CardMutation) Number() (r string, exists bool) { return *v, true } -// OldNumber returns the old number value, if exists. +// OldNumber returns the old number value of the Card. +// If the Card object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *CardMutation) OldNumber(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -268,7 +274,9 @@ func (m *CardMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the Card. +// If the Card object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *CardMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -768,7 +776,9 @@ func (m *CommentMutation) UniqueInt() (r int, exists bool) { return *v, true } -// OldUniqueInt returns the old unique_int value, if exists. +// OldUniqueInt returns the old unique_int value of the Comment. +// If the Comment object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *CommentMutation) OldUniqueInt(ctx context.Context) (v int, err error) { if !m.op.Is(OpUpdateOne) { @@ -823,7 +833,9 @@ func (m *CommentMutation) UniqueFloat() (r float64, exists bool) { return *v, true } -// OldUniqueFloat returns the old unique_float value, if exists. +// OldUniqueFloat returns the old unique_float value of the Comment. +// If the Comment object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *CommentMutation) OldUniqueFloat(ctx context.Context) (v float64, err error) { if !m.op.Is(OpUpdateOne) { @@ -878,7 +890,9 @@ func (m *CommentMutation) NillableInt() (r int, exists bool) { return *v, true } -// OldNillableInt returns the old nillable_int value, if exists. +// OldNillableInt returns the old nillable_int value of the Comment. +// If the Comment object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *CommentMutation) OldNillableInt(ctx context.Context) (v *int, err error) { if !m.op.Is(OpUpdateOne) { @@ -1334,7 +1348,9 @@ func (m *FieldTypeMutation) Int() (r int, exists bool) { return *v, true } -// OldInt returns the old int value, if exists. +// OldInt returns the old int value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldInt(ctx context.Context) (v int, err error) { if !m.op.Is(OpUpdateOne) { @@ -1389,7 +1405,9 @@ func (m *FieldTypeMutation) Int8() (r int8, exists bool) { return *v, true } -// OldInt8 returns the old int8 value, if exists. +// OldInt8 returns the old int8 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldInt8(ctx context.Context) (v int8, err error) { if !m.op.Is(OpUpdateOne) { @@ -1444,7 +1462,9 @@ func (m *FieldTypeMutation) Int16() (r int16, exists bool) { return *v, true } -// OldInt16 returns the old int16 value, if exists. +// OldInt16 returns the old int16 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldInt16(ctx context.Context) (v int16, err error) { if !m.op.Is(OpUpdateOne) { @@ -1499,7 +1519,9 @@ func (m *FieldTypeMutation) Int32() (r int32, exists bool) { return *v, true } -// OldInt32 returns the old int32 value, if exists. +// OldInt32 returns the old int32 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldInt32(ctx context.Context) (v int32, err error) { if !m.op.Is(OpUpdateOne) { @@ -1554,7 +1576,9 @@ func (m *FieldTypeMutation) Int64() (r int64, exists bool) { return *v, true } -// OldInt64 returns the old int64 value, if exists. +// OldInt64 returns the old int64 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldInt64(ctx context.Context) (v int64, err error) { if !m.op.Is(OpUpdateOne) { @@ -1609,7 +1633,9 @@ func (m *FieldTypeMutation) OptionalInt() (r int, exists bool) { return *v, true } -// OldOptionalInt returns the old optional_int value, if exists. +// OldOptionalInt returns the old optional_int value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldOptionalInt(ctx context.Context) (v int, err error) { if !m.op.Is(OpUpdateOne) { @@ -1678,7 +1704,9 @@ func (m *FieldTypeMutation) OptionalInt8() (r int8, exists bool) { return *v, true } -// OldOptionalInt8 returns the old optional_int8 value, if exists. +// OldOptionalInt8 returns the old optional_int8 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldOptionalInt8(ctx context.Context) (v int8, err error) { if !m.op.Is(OpUpdateOne) { @@ -1747,7 +1775,9 @@ func (m *FieldTypeMutation) OptionalInt16() (r int16, exists bool) { return *v, true } -// OldOptionalInt16 returns the old optional_int16 value, if exists. +// OldOptionalInt16 returns the old optional_int16 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldOptionalInt16(ctx context.Context) (v int16, err error) { if !m.op.Is(OpUpdateOne) { @@ -1816,7 +1846,9 @@ func (m *FieldTypeMutation) OptionalInt32() (r int32, exists bool) { return *v, true } -// OldOptionalInt32 returns the old optional_int32 value, if exists. +// OldOptionalInt32 returns the old optional_int32 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldOptionalInt32(ctx context.Context) (v int32, err error) { if !m.op.Is(OpUpdateOne) { @@ -1885,7 +1917,9 @@ func (m *FieldTypeMutation) OptionalInt64() (r int64, exists bool) { return *v, true } -// OldOptionalInt64 returns the old optional_int64 value, if exists. +// OldOptionalInt64 returns the old optional_int64 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldOptionalInt64(ctx context.Context) (v int64, err error) { if !m.op.Is(OpUpdateOne) { @@ -1954,7 +1988,9 @@ func (m *FieldTypeMutation) NillableInt() (r int, exists bool) { return *v, true } -// OldNillableInt returns the old nillable_int value, if exists. +// OldNillableInt returns the old nillable_int value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldNillableInt(ctx context.Context) (v *int, err error) { if !m.op.Is(OpUpdateOne) { @@ -2023,7 +2059,9 @@ func (m *FieldTypeMutation) NillableInt8() (r int8, exists bool) { return *v, true } -// OldNillableInt8 returns the old nillable_int8 value, if exists. +// OldNillableInt8 returns the old nillable_int8 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldNillableInt8(ctx context.Context) (v *int8, err error) { if !m.op.Is(OpUpdateOne) { @@ -2092,7 +2130,9 @@ func (m *FieldTypeMutation) NillableInt16() (r int16, exists bool) { return *v, true } -// OldNillableInt16 returns the old nillable_int16 value, if exists. +// OldNillableInt16 returns the old nillable_int16 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldNillableInt16(ctx context.Context) (v *int16, err error) { if !m.op.Is(OpUpdateOne) { @@ -2161,7 +2201,9 @@ func (m *FieldTypeMutation) NillableInt32() (r int32, exists bool) { return *v, true } -// OldNillableInt32 returns the old nillable_int32 value, if exists. +// OldNillableInt32 returns the old nillable_int32 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldNillableInt32(ctx context.Context) (v *int32, err error) { if !m.op.Is(OpUpdateOne) { @@ -2230,7 +2272,9 @@ func (m *FieldTypeMutation) NillableInt64() (r int64, exists bool) { return *v, true } -// OldNillableInt64 returns the old nillable_int64 value, if exists. +// OldNillableInt64 returns the old nillable_int64 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldNillableInt64(ctx context.Context) (v *int64, err error) { if !m.op.Is(OpUpdateOne) { @@ -2299,7 +2343,9 @@ func (m *FieldTypeMutation) ValidateOptionalInt32() (r int32, exists bool) { return *v, true } -// OldValidateOptionalInt32 returns the old validate_optional_int32 value, if exists. +// OldValidateOptionalInt32 returns the old validate_optional_int32 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldValidateOptionalInt32(ctx context.Context) (v int32, err error) { if !m.op.Is(OpUpdateOne) { @@ -2368,7 +2414,9 @@ func (m *FieldTypeMutation) OptionalUint() (r uint, exists bool) { return *v, true } -// OldOptionalUint returns the old optional_uint value, if exists. +// OldOptionalUint returns the old optional_uint value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldOptionalUint(ctx context.Context) (v uint, err error) { if !m.op.Is(OpUpdateOne) { @@ -2437,7 +2485,9 @@ func (m *FieldTypeMutation) OptionalUint8() (r uint8, exists bool) { return *v, true } -// OldOptionalUint8 returns the old optional_uint8 value, if exists. +// OldOptionalUint8 returns the old optional_uint8 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldOptionalUint8(ctx context.Context) (v uint8, err error) { if !m.op.Is(OpUpdateOne) { @@ -2506,7 +2556,9 @@ func (m *FieldTypeMutation) OptionalUint16() (r uint16, exists bool) { return *v, true } -// OldOptionalUint16 returns the old optional_uint16 value, if exists. +// OldOptionalUint16 returns the old optional_uint16 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldOptionalUint16(ctx context.Context) (v uint16, err error) { if !m.op.Is(OpUpdateOne) { @@ -2575,7 +2627,9 @@ func (m *FieldTypeMutation) OptionalUint32() (r uint32, exists bool) { return *v, true } -// OldOptionalUint32 returns the old optional_uint32 value, if exists. +// OldOptionalUint32 returns the old optional_uint32 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldOptionalUint32(ctx context.Context) (v uint32, err error) { if !m.op.Is(OpUpdateOne) { @@ -2644,7 +2698,9 @@ func (m *FieldTypeMutation) OptionalUint64() (r uint64, exists bool) { return *v, true } -// OldOptionalUint64 returns the old optional_uint64 value, if exists. +// OldOptionalUint64 returns the old optional_uint64 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldOptionalUint64(ctx context.Context) (v uint64, err error) { if !m.op.Is(OpUpdateOne) { @@ -2712,7 +2768,9 @@ func (m *FieldTypeMutation) State() (r fieldtype.State, exists bool) { return *v, true } -// OldState returns the old state value, if exists. +// OldState returns the old state value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldState(ctx context.Context) (v fieldtype.State, err error) { if !m.op.Is(OpUpdateOne) { @@ -2761,7 +2819,9 @@ func (m *FieldTypeMutation) OptionalFloat() (r float64, exists bool) { return *v, true } -// OldOptionalFloat returns the old optional_float value, if exists. +// OldOptionalFloat returns the old optional_float value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldOptionalFloat(ctx context.Context) (v float64, err error) { if !m.op.Is(OpUpdateOne) { @@ -2830,7 +2890,9 @@ func (m *FieldTypeMutation) OptionalFloat32() (r float32, exists bool) { return *v, true } -// OldOptionalFloat32 returns the old optional_float32 value, if exists. +// OldOptionalFloat32 returns the old optional_float32 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldOptionalFloat32(ctx context.Context) (v float32, err error) { if !m.op.Is(OpUpdateOne) { @@ -2898,7 +2960,9 @@ func (m *FieldTypeMutation) Datetime() (r time.Time, exists bool) { return *v, true } -// OldDatetime returns the old datetime value, if exists. +// OldDatetime returns the old datetime value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldDatetime(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { @@ -2947,7 +3011,9 @@ func (m *FieldTypeMutation) Decimal() (r float64, exists bool) { return *v, true } -// OldDecimal returns the old decimal value, if exists. +// OldDecimal returns the old decimal value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldDecimal(ctx context.Context) (v float64, err error) { if !m.op.Is(OpUpdateOne) { @@ -4127,7 +4193,9 @@ func (m *FileMutation) Size() (r int, exists bool) { return *v, true } -// OldSize returns the old size value, if exists. +// OldSize returns the old size value of the File. +// If the File object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FileMutation) OldSize(ctx context.Context) (v int, err error) { if !m.op.Is(OpUpdateOne) { @@ -4181,7 +4249,9 @@ func (m *FileMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the File. +// If the File object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FileMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -4216,7 +4286,9 @@ func (m *FileMutation) User() (r string, exists bool) { return *v, true } -// OldUser returns the old user value, if exists. +// OldUser returns the old user value of the File. +// If the File object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FileMutation) OldUser(ctx context.Context) (v *string, err error) { if !m.op.Is(OpUpdateOne) { @@ -4264,7 +4336,9 @@ func (m *FileMutation) Group() (r string, exists bool) { return *v, true } -// OldGroup returns the old group value, if exists. +// OldGroup returns the old group value of the File. +// If the File object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FileMutation) OldGroup(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -4838,7 +4912,9 @@ func (m *FileTypeMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the FileType. +// If the FileType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FileTypeMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -5215,7 +5291,9 @@ func (m *GroupMutation) Active() (r bool, exists bool) { return *v, true } -// OldActive returns the old active value, if exists. +// OldActive returns the old active value of the Group. +// If the Group object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *GroupMutation) OldActive(ctx context.Context) (v bool, err error) { if !m.op.Is(OpUpdateOne) { @@ -5250,7 +5328,9 @@ func (m *GroupMutation) Expire() (r time.Time, exists bool) { return *v, true } -// OldExpire returns the old expire value, if exists. +// OldExpire returns the old expire value of the Group. +// If the Group object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *GroupMutation) OldExpire(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { @@ -5285,7 +5365,9 @@ func (m *GroupMutation) GetType() (r string, exists bool) { return *v, true } -// OldType returns the old type value, if exists. +// OldType returns the old type value of the Group. +// If the Group object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *GroupMutation) OldType(ctx context.Context) (v *string, err error) { if !m.op.Is(OpUpdateOne) { @@ -5334,7 +5416,9 @@ func (m *GroupMutation) MaxUsers() (r int, exists bool) { return *v, true } -// OldMaxUsers returns the old max_users value, if exists. +// OldMaxUsers returns the old max_users value of the Group. +// If the Group object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *GroupMutation) OldMaxUsers(ctx context.Context) (v int, err error) { if !m.op.Is(OpUpdateOne) { @@ -5402,7 +5486,9 @@ func (m *GroupMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the Group. +// If the Group object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *GroupMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -6051,7 +6137,9 @@ func (m *GroupInfoMutation) Desc() (r string, exists bool) { return *v, true } -// OldDesc returns the old desc value, if exists. +// OldDesc returns the old desc value of the GroupInfo. +// If the GroupInfo object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *GroupInfoMutation) OldDesc(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -6087,7 +6175,9 @@ func (m *GroupInfoMutation) MaxUsers() (r int, exists bool) { return *v, true } -// OldMaxUsers returns the old max_users value, if exists. +// OldMaxUsers returns the old max_users value of the GroupInfo. +// If the GroupInfo object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *GroupInfoMutation) OldMaxUsers(ctx context.Context) (v int, err error) { if !m.op.Is(OpUpdateOne) { @@ -6738,7 +6828,9 @@ func (m *NodeMutation) Value() (r int, exists bool) { return *v, true } -// OldValue returns the old value value, if exists. +// OldValue returns the old value value of the Node. +// If the Node object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *NodeMutation) OldValue(ctx context.Context) (v int, err error) { if !m.op.Is(OpUpdateOne) { @@ -7214,7 +7306,9 @@ func (m *PetMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the Pet. +// If the Pet object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *PetMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -7967,7 +8061,9 @@ func (m *UserMutation) OptionalInt() (r int, exists bool) { return *v, true } -// OldOptionalInt returns the old optional_int value, if exists. +// OldOptionalInt returns the old optional_int value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldOptionalInt(ctx context.Context) (v int, err error) { if !m.op.Is(OpUpdateOne) { @@ -8036,7 +8132,9 @@ func (m *UserMutation) Age() (r int, exists bool) { return *v, true } -// OldAge returns the old age value, if exists. +// OldAge returns the old age value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldAge(ctx context.Context) (v int, err error) { if !m.op.Is(OpUpdateOne) { @@ -8090,7 +8188,9 @@ func (m *UserMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -8125,7 +8225,9 @@ func (m *UserMutation) Last() (r string, exists bool) { return *v, true } -// OldLast returns the old last value, if exists. +// OldLast returns the old last value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldLast(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -8160,7 +8262,9 @@ func (m *UserMutation) Nickname() (r string, exists bool) { return *v, true } -// OldNickname returns the old nickname value, if exists. +// OldNickname returns the old nickname value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldNickname(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -8208,7 +8312,9 @@ func (m *UserMutation) Phone() (r string, exists bool) { return *v, true } -// OldPhone returns the old phone value, if exists. +// OldPhone returns the old phone value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldPhone(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -8256,7 +8362,9 @@ func (m *UserMutation) Password() (r string, exists bool) { return *v, true } -// OldPassword returns the old password value, if exists. +// OldPassword returns the old password value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldPassword(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -8304,7 +8412,9 @@ func (m *UserMutation) Role() (r user.Role, exists bool) { return *v, true } -// OldRole returns the old role value, if exists. +// OldRole returns the old role value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldRole(ctx context.Context) (v user.Role, err error) { if !m.op.Is(OpUpdateOne) { @@ -8339,7 +8449,9 @@ func (m *UserMutation) SSOCert() (r string, exists bool) { return *v, true } -// OldSSOCert returns the old SSOCert value, if exists. +// OldSSOCert returns the old SSOCert value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldSSOCert(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { diff --git a/entc/integration/gremlin/ent/mutation.go b/entc/integration/gremlin/ent/mutation.go index 6188de70f..fca7ffa9d 100644 --- a/entc/integration/gremlin/ent/mutation.go +++ b/entc/integration/gremlin/ent/mutation.go @@ -163,7 +163,9 @@ func (m *CardMutation) CreateTime() (r time.Time, exists bool) { return *v, true } -// OldCreateTime returns the old create_time value, if exists. +// OldCreateTime returns the old create_time value of the Card. +// If the Card object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *CardMutation) OldCreateTime(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { @@ -198,7 +200,9 @@ func (m *CardMutation) UpdateTime() (r time.Time, exists bool) { return *v, true } -// OldUpdateTime returns the old update_time value, if exists. +// OldUpdateTime returns the old update_time value of the Card. +// If the Card object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *CardMutation) OldUpdateTime(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { @@ -233,7 +237,9 @@ func (m *CardMutation) Number() (r string, exists bool) { return *v, true } -// OldNumber returns the old number value, if exists. +// OldNumber returns the old number value of the Card. +// If the Card object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *CardMutation) OldNumber(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -268,7 +274,9 @@ func (m *CardMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the Card. +// If the Card object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *CardMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -768,7 +776,9 @@ func (m *CommentMutation) UniqueInt() (r int, exists bool) { return *v, true } -// OldUniqueInt returns the old unique_int value, if exists. +// OldUniqueInt returns the old unique_int value of the Comment. +// If the Comment object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *CommentMutation) OldUniqueInt(ctx context.Context) (v int, err error) { if !m.op.Is(OpUpdateOne) { @@ -823,7 +833,9 @@ func (m *CommentMutation) UniqueFloat() (r float64, exists bool) { return *v, true } -// OldUniqueFloat returns the old unique_float value, if exists. +// OldUniqueFloat returns the old unique_float value of the Comment. +// If the Comment object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *CommentMutation) OldUniqueFloat(ctx context.Context) (v float64, err error) { if !m.op.Is(OpUpdateOne) { @@ -878,7 +890,9 @@ func (m *CommentMutation) NillableInt() (r int, exists bool) { return *v, true } -// OldNillableInt returns the old nillable_int value, if exists. +// OldNillableInt returns the old nillable_int value of the Comment. +// If the Comment object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *CommentMutation) OldNillableInt(ctx context.Context) (v *int, err error) { if !m.op.Is(OpUpdateOne) { @@ -1334,7 +1348,9 @@ func (m *FieldTypeMutation) Int() (r int, exists bool) { return *v, true } -// OldInt returns the old int value, if exists. +// OldInt returns the old int value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldInt(ctx context.Context) (v int, err error) { if !m.op.Is(OpUpdateOne) { @@ -1389,7 +1405,9 @@ func (m *FieldTypeMutation) Int8() (r int8, exists bool) { return *v, true } -// OldInt8 returns the old int8 value, if exists. +// OldInt8 returns the old int8 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldInt8(ctx context.Context) (v int8, err error) { if !m.op.Is(OpUpdateOne) { @@ -1444,7 +1462,9 @@ func (m *FieldTypeMutation) Int16() (r int16, exists bool) { return *v, true } -// OldInt16 returns the old int16 value, if exists. +// OldInt16 returns the old int16 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldInt16(ctx context.Context) (v int16, err error) { if !m.op.Is(OpUpdateOne) { @@ -1499,7 +1519,9 @@ func (m *FieldTypeMutation) Int32() (r int32, exists bool) { return *v, true } -// OldInt32 returns the old int32 value, if exists. +// OldInt32 returns the old int32 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldInt32(ctx context.Context) (v int32, err error) { if !m.op.Is(OpUpdateOne) { @@ -1554,7 +1576,9 @@ func (m *FieldTypeMutation) Int64() (r int64, exists bool) { return *v, true } -// OldInt64 returns the old int64 value, if exists. +// OldInt64 returns the old int64 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldInt64(ctx context.Context) (v int64, err error) { if !m.op.Is(OpUpdateOne) { @@ -1609,7 +1633,9 @@ func (m *FieldTypeMutation) OptionalInt() (r int, exists bool) { return *v, true } -// OldOptionalInt returns the old optional_int value, if exists. +// OldOptionalInt returns the old optional_int value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldOptionalInt(ctx context.Context) (v int, err error) { if !m.op.Is(OpUpdateOne) { @@ -1678,7 +1704,9 @@ func (m *FieldTypeMutation) OptionalInt8() (r int8, exists bool) { return *v, true } -// OldOptionalInt8 returns the old optional_int8 value, if exists. +// OldOptionalInt8 returns the old optional_int8 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldOptionalInt8(ctx context.Context) (v int8, err error) { if !m.op.Is(OpUpdateOne) { @@ -1747,7 +1775,9 @@ func (m *FieldTypeMutation) OptionalInt16() (r int16, exists bool) { return *v, true } -// OldOptionalInt16 returns the old optional_int16 value, if exists. +// OldOptionalInt16 returns the old optional_int16 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldOptionalInt16(ctx context.Context) (v int16, err error) { if !m.op.Is(OpUpdateOne) { @@ -1816,7 +1846,9 @@ func (m *FieldTypeMutation) OptionalInt32() (r int32, exists bool) { return *v, true } -// OldOptionalInt32 returns the old optional_int32 value, if exists. +// OldOptionalInt32 returns the old optional_int32 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldOptionalInt32(ctx context.Context) (v int32, err error) { if !m.op.Is(OpUpdateOne) { @@ -1885,7 +1917,9 @@ func (m *FieldTypeMutation) OptionalInt64() (r int64, exists bool) { return *v, true } -// OldOptionalInt64 returns the old optional_int64 value, if exists. +// OldOptionalInt64 returns the old optional_int64 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldOptionalInt64(ctx context.Context) (v int64, err error) { if !m.op.Is(OpUpdateOne) { @@ -1954,7 +1988,9 @@ func (m *FieldTypeMutation) NillableInt() (r int, exists bool) { return *v, true } -// OldNillableInt returns the old nillable_int value, if exists. +// OldNillableInt returns the old nillable_int value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldNillableInt(ctx context.Context) (v *int, err error) { if !m.op.Is(OpUpdateOne) { @@ -2023,7 +2059,9 @@ func (m *FieldTypeMutation) NillableInt8() (r int8, exists bool) { return *v, true } -// OldNillableInt8 returns the old nillable_int8 value, if exists. +// OldNillableInt8 returns the old nillable_int8 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldNillableInt8(ctx context.Context) (v *int8, err error) { if !m.op.Is(OpUpdateOne) { @@ -2092,7 +2130,9 @@ func (m *FieldTypeMutation) NillableInt16() (r int16, exists bool) { return *v, true } -// OldNillableInt16 returns the old nillable_int16 value, if exists. +// OldNillableInt16 returns the old nillable_int16 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldNillableInt16(ctx context.Context) (v *int16, err error) { if !m.op.Is(OpUpdateOne) { @@ -2161,7 +2201,9 @@ func (m *FieldTypeMutation) NillableInt32() (r int32, exists bool) { return *v, true } -// OldNillableInt32 returns the old nillable_int32 value, if exists. +// OldNillableInt32 returns the old nillable_int32 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldNillableInt32(ctx context.Context) (v *int32, err error) { if !m.op.Is(OpUpdateOne) { @@ -2230,7 +2272,9 @@ func (m *FieldTypeMutation) NillableInt64() (r int64, exists bool) { return *v, true } -// OldNillableInt64 returns the old nillable_int64 value, if exists. +// OldNillableInt64 returns the old nillable_int64 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldNillableInt64(ctx context.Context) (v *int64, err error) { if !m.op.Is(OpUpdateOne) { @@ -2299,7 +2343,9 @@ func (m *FieldTypeMutation) ValidateOptionalInt32() (r int32, exists bool) { return *v, true } -// OldValidateOptionalInt32 returns the old validate_optional_int32 value, if exists. +// OldValidateOptionalInt32 returns the old validate_optional_int32 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldValidateOptionalInt32(ctx context.Context) (v int32, err error) { if !m.op.Is(OpUpdateOne) { @@ -2368,7 +2414,9 @@ func (m *FieldTypeMutation) OptionalUint() (r uint, exists bool) { return *v, true } -// OldOptionalUint returns the old optional_uint value, if exists. +// OldOptionalUint returns the old optional_uint value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldOptionalUint(ctx context.Context) (v uint, err error) { if !m.op.Is(OpUpdateOne) { @@ -2437,7 +2485,9 @@ func (m *FieldTypeMutation) OptionalUint8() (r uint8, exists bool) { return *v, true } -// OldOptionalUint8 returns the old optional_uint8 value, if exists. +// OldOptionalUint8 returns the old optional_uint8 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldOptionalUint8(ctx context.Context) (v uint8, err error) { if !m.op.Is(OpUpdateOne) { @@ -2506,7 +2556,9 @@ func (m *FieldTypeMutation) OptionalUint16() (r uint16, exists bool) { return *v, true } -// OldOptionalUint16 returns the old optional_uint16 value, if exists. +// OldOptionalUint16 returns the old optional_uint16 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldOptionalUint16(ctx context.Context) (v uint16, err error) { if !m.op.Is(OpUpdateOne) { @@ -2575,7 +2627,9 @@ func (m *FieldTypeMutation) OptionalUint32() (r uint32, exists bool) { return *v, true } -// OldOptionalUint32 returns the old optional_uint32 value, if exists. +// OldOptionalUint32 returns the old optional_uint32 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldOptionalUint32(ctx context.Context) (v uint32, err error) { if !m.op.Is(OpUpdateOne) { @@ -2644,7 +2698,9 @@ func (m *FieldTypeMutation) OptionalUint64() (r uint64, exists bool) { return *v, true } -// OldOptionalUint64 returns the old optional_uint64 value, if exists. +// OldOptionalUint64 returns the old optional_uint64 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldOptionalUint64(ctx context.Context) (v uint64, err error) { if !m.op.Is(OpUpdateOne) { @@ -2712,7 +2768,9 @@ func (m *FieldTypeMutation) State() (r fieldtype.State, exists bool) { return *v, true } -// OldState returns the old state value, if exists. +// OldState returns the old state value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldState(ctx context.Context) (v fieldtype.State, err error) { if !m.op.Is(OpUpdateOne) { @@ -2761,7 +2819,9 @@ func (m *FieldTypeMutation) OptionalFloat() (r float64, exists bool) { return *v, true } -// OldOptionalFloat returns the old optional_float value, if exists. +// OldOptionalFloat returns the old optional_float value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldOptionalFloat(ctx context.Context) (v float64, err error) { if !m.op.Is(OpUpdateOne) { @@ -2830,7 +2890,9 @@ func (m *FieldTypeMutation) OptionalFloat32() (r float32, exists bool) { return *v, true } -// OldOptionalFloat32 returns the old optional_float32 value, if exists. +// OldOptionalFloat32 returns the old optional_float32 value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldOptionalFloat32(ctx context.Context) (v float32, err error) { if !m.op.Is(OpUpdateOne) { @@ -2898,7 +2960,9 @@ func (m *FieldTypeMutation) Datetime() (r time.Time, exists bool) { return *v, true } -// OldDatetime returns the old datetime value, if exists. +// OldDatetime returns the old datetime value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldDatetime(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { @@ -2947,7 +3011,9 @@ func (m *FieldTypeMutation) Decimal() (r float64, exists bool) { return *v, true } -// OldDecimal returns the old decimal value, if exists. +// OldDecimal returns the old decimal value of the FieldType. +// If the FieldType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FieldTypeMutation) OldDecimal(ctx context.Context) (v float64, err error) { if !m.op.Is(OpUpdateOne) { @@ -4127,7 +4193,9 @@ func (m *FileMutation) Size() (r int, exists bool) { return *v, true } -// OldSize returns the old size value, if exists. +// OldSize returns the old size value of the File. +// If the File object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FileMutation) OldSize(ctx context.Context) (v int, err error) { if !m.op.Is(OpUpdateOne) { @@ -4181,7 +4249,9 @@ func (m *FileMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the File. +// If the File object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FileMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -4216,7 +4286,9 @@ func (m *FileMutation) User() (r string, exists bool) { return *v, true } -// OldUser returns the old user value, if exists. +// OldUser returns the old user value of the File. +// If the File object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FileMutation) OldUser(ctx context.Context) (v *string, err error) { if !m.op.Is(OpUpdateOne) { @@ -4264,7 +4336,9 @@ func (m *FileMutation) Group() (r string, exists bool) { return *v, true } -// OldGroup returns the old group value, if exists. +// OldGroup returns the old group value of the File. +// If the File object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FileMutation) OldGroup(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -4838,7 +4912,9 @@ func (m *FileTypeMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the FileType. +// If the FileType object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *FileTypeMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -5215,7 +5291,9 @@ func (m *GroupMutation) Active() (r bool, exists bool) { return *v, true } -// OldActive returns the old active value, if exists. +// OldActive returns the old active value of the Group. +// If the Group object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *GroupMutation) OldActive(ctx context.Context) (v bool, err error) { if !m.op.Is(OpUpdateOne) { @@ -5250,7 +5328,9 @@ func (m *GroupMutation) Expire() (r time.Time, exists bool) { return *v, true } -// OldExpire returns the old expire value, if exists. +// OldExpire returns the old expire value of the Group. +// If the Group object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *GroupMutation) OldExpire(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { @@ -5285,7 +5365,9 @@ func (m *GroupMutation) GetType() (r string, exists bool) { return *v, true } -// OldType returns the old type value, if exists. +// OldType returns the old type value of the Group. +// If the Group object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *GroupMutation) OldType(ctx context.Context) (v *string, err error) { if !m.op.Is(OpUpdateOne) { @@ -5334,7 +5416,9 @@ func (m *GroupMutation) MaxUsers() (r int, exists bool) { return *v, true } -// OldMaxUsers returns the old max_users value, if exists. +// OldMaxUsers returns the old max_users value of the Group. +// If the Group object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *GroupMutation) OldMaxUsers(ctx context.Context) (v int, err error) { if !m.op.Is(OpUpdateOne) { @@ -5402,7 +5486,9 @@ func (m *GroupMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the Group. +// If the Group object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *GroupMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -6051,7 +6137,9 @@ func (m *GroupInfoMutation) Desc() (r string, exists bool) { return *v, true } -// OldDesc returns the old desc value, if exists. +// OldDesc returns the old desc value of the GroupInfo. +// If the GroupInfo object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *GroupInfoMutation) OldDesc(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -6087,7 +6175,9 @@ func (m *GroupInfoMutation) MaxUsers() (r int, exists bool) { return *v, true } -// OldMaxUsers returns the old max_users value, if exists. +// OldMaxUsers returns the old max_users value of the GroupInfo. +// If the GroupInfo object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *GroupInfoMutation) OldMaxUsers(ctx context.Context) (v int, err error) { if !m.op.Is(OpUpdateOne) { @@ -6738,7 +6828,9 @@ func (m *NodeMutation) Value() (r int, exists bool) { return *v, true } -// OldValue returns the old value value, if exists. +// OldValue returns the old value value of the Node. +// If the Node object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *NodeMutation) OldValue(ctx context.Context) (v int, err error) { if !m.op.Is(OpUpdateOne) { @@ -7214,7 +7306,9 @@ func (m *PetMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the Pet. +// If the Pet object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *PetMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -7967,7 +8061,9 @@ func (m *UserMutation) OptionalInt() (r int, exists bool) { return *v, true } -// OldOptionalInt returns the old optional_int value, if exists. +// OldOptionalInt returns the old optional_int value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldOptionalInt(ctx context.Context) (v int, err error) { if !m.op.Is(OpUpdateOne) { @@ -8036,7 +8132,9 @@ func (m *UserMutation) Age() (r int, exists bool) { return *v, true } -// OldAge returns the old age value, if exists. +// OldAge returns the old age value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldAge(ctx context.Context) (v int, err error) { if !m.op.Is(OpUpdateOne) { @@ -8090,7 +8188,9 @@ func (m *UserMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -8125,7 +8225,9 @@ func (m *UserMutation) Last() (r string, exists bool) { return *v, true } -// OldLast returns the old last value, if exists. +// OldLast returns the old last value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldLast(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -8160,7 +8262,9 @@ func (m *UserMutation) Nickname() (r string, exists bool) { return *v, true } -// OldNickname returns the old nickname value, if exists. +// OldNickname returns the old nickname value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldNickname(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -8208,7 +8312,9 @@ func (m *UserMutation) Phone() (r string, exists bool) { return *v, true } -// OldPhone returns the old phone value, if exists. +// OldPhone returns the old phone value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldPhone(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -8256,7 +8362,9 @@ func (m *UserMutation) Password() (r string, exists bool) { return *v, true } -// OldPassword returns the old password value, if exists. +// OldPassword returns the old password value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldPassword(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -8304,7 +8412,9 @@ func (m *UserMutation) Role() (r user.Role, exists bool) { return *v, true } -// OldRole returns the old role value, if exists. +// OldRole returns the old role value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldRole(ctx context.Context) (v user.Role, err error) { if !m.op.Is(OpUpdateOne) { @@ -8339,7 +8449,9 @@ func (m *UserMutation) SSOCert() (r string, exists bool) { return *v, true } -// OldSSOCert returns the old SSOCert value, if exists. +// OldSSOCert returns the old SSOCert value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldSSOCert(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { diff --git a/entc/integration/hooks/ent/mutation.go b/entc/integration/hooks/ent/mutation.go index 952415d6a..06f52061c 100644 --- a/entc/integration/hooks/ent/mutation.go +++ b/entc/integration/hooks/ent/mutation.go @@ -141,7 +141,9 @@ func (m *CardMutation) Number() (r string, exists bool) { return *v, true } -// OldNumber returns the old number value, if exists. +// OldNumber returns the old number value of the Card. +// If the Card object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *CardMutation) OldNumber(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -176,7 +178,9 @@ func (m *CardMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the Card. +// If the Card object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *CardMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -224,7 +228,9 @@ func (m *CardMutation) CreatedAt() (r time.Time, exists bool) { return *v, true } -// OldCreatedAt returns the old created_at value, if exists. +// OldCreatedAt returns the old created_at value of the Card. +// If the Card object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *CardMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { @@ -631,7 +637,9 @@ func (m *UserMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { diff --git a/entc/integration/idtype/ent/mutation.go b/entc/integration/idtype/ent/mutation.go index 7afb873b8..446c299d5 100644 --- a/entc/integration/idtype/ent/mutation.go +++ b/entc/integration/idtype/ent/mutation.go @@ -140,7 +140,9 @@ func (m *UserMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { diff --git a/entc/integration/json/ent/mutation.go b/entc/integration/json/ent/mutation.go index c202f9f70..9a90dd85b 100644 --- a/entc/integration/json/ent/mutation.go +++ b/entc/integration/json/ent/mutation.go @@ -142,7 +142,9 @@ func (m *UserMutation) URL() (r *url.URL, exists bool) { return *v, true } -// OldURL returns the old url value, if exists. +// OldURL returns the old url value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldURL(ctx context.Context) (v *url.URL, err error) { if !m.op.Is(OpUpdateOne) { @@ -190,7 +192,9 @@ func (m *UserMutation) Raw() (r json.RawMessage, exists bool) { return *v, true } -// OldRaw returns the old raw value, if exists. +// OldRaw returns the old raw value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldRaw(ctx context.Context) (v json.RawMessage, err error) { if !m.op.Is(OpUpdateOne) { @@ -238,7 +242,9 @@ func (m *UserMutation) Dirs() (r []http.Dir, exists bool) { return *v, true } -// OldDirs returns the old dirs value, if exists. +// OldDirs returns the old dirs value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldDirs(ctx context.Context) (v []http.Dir, err error) { if !m.op.Is(OpUpdateOne) { @@ -286,7 +292,9 @@ func (m *UserMutation) Ints() (r []int, exists bool) { return *v, true } -// OldInts returns the old ints value, if exists. +// OldInts returns the old ints value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldInts(ctx context.Context) (v []int, err error) { if !m.op.Is(OpUpdateOne) { @@ -334,7 +342,9 @@ func (m *UserMutation) Floats() (r []float64, exists bool) { return *v, true } -// OldFloats returns the old floats value, if exists. +// OldFloats returns the old floats value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldFloats(ctx context.Context) (v []float64, err error) { if !m.op.Is(OpUpdateOne) { @@ -382,7 +392,9 @@ func (m *UserMutation) Strings() (r []string, exists bool) { return *v, true } -// OldStrings returns the old strings value, if exists. +// OldStrings returns the old strings value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldStrings(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { diff --git a/entc/integration/migrate/entv1/mutation.go b/entc/integration/migrate/entv1/mutation.go index 86a315a6e..a7356b1dc 100644 --- a/entc/integration/migrate/entv1/mutation.go +++ b/entc/integration/migrate/entv1/mutation.go @@ -457,7 +457,9 @@ func (m *UserMutation) Age() (r int32, exists bool) { return *v, true } -// OldAge returns the old age value, if exists. +// OldAge returns the old age value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldAge(ctx context.Context) (v int32, err error) { if !m.op.Is(OpUpdateOne) { @@ -511,7 +513,9 @@ func (m *UserMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -546,7 +550,9 @@ func (m *UserMutation) Nickname() (r string, exists bool) { return *v, true } -// OldNickname returns the old nickname value, if exists. +// OldNickname returns the old nickname value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldNickname(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -581,7 +587,9 @@ func (m *UserMutation) Address() (r string, exists bool) { return *v, true } -// OldAddress returns the old address value, if exists. +// OldAddress returns the old address value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldAddress(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -629,7 +637,9 @@ func (m *UserMutation) Renamed() (r string, exists bool) { return *v, true } -// OldRenamed returns the old renamed value, if exists. +// OldRenamed returns the old renamed value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldRenamed(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -677,7 +687,9 @@ func (m *UserMutation) Blob() (r []byte, exists bool) { return *v, true } -// OldBlob returns the old blob value, if exists. +// OldBlob returns the old blob value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldBlob(ctx context.Context) (v []byte, err error) { if !m.op.Is(OpUpdateOne) { @@ -725,7 +737,9 @@ func (m *UserMutation) State() (r user.State, exists bool) { return *v, true } -// OldState returns the old state value, if exists. +// OldState returns the old state value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldState(ctx context.Context) (v user.State, err error) { if !m.op.Is(OpUpdateOne) { diff --git a/entc/integration/migrate/entv2/mutation.go b/entc/integration/migrate/entv2/mutation.go index 67ce345e0..6779e2a48 100644 --- a/entc/integration/migrate/entv2/mutation.go +++ b/entc/integration/migrate/entv2/mutation.go @@ -917,7 +917,9 @@ func (m *UserMutation) Age() (r int, exists bool) { return *v, true } -// OldAge returns the old age value, if exists. +// OldAge returns the old age value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldAge(ctx context.Context) (v int, err error) { if !m.op.Is(OpUpdateOne) { @@ -971,7 +973,9 @@ func (m *UserMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -1006,7 +1010,9 @@ func (m *UserMutation) Nickname() (r string, exists bool) { return *v, true } -// OldNickname returns the old nickname value, if exists. +// OldNickname returns the old nickname value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldNickname(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -1041,7 +1047,9 @@ func (m *UserMutation) Phone() (r string, exists bool) { return *v, true } -// OldPhone returns the old phone value, if exists. +// OldPhone returns the old phone value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldPhone(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -1076,7 +1084,9 @@ func (m *UserMutation) Buffer() (r []byte, exists bool) { return *v, true } -// OldBuffer returns the old buffer value, if exists. +// OldBuffer returns the old buffer value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldBuffer(ctx context.Context) (v []byte, err error) { if !m.op.Is(OpUpdateOne) { @@ -1124,7 +1134,9 @@ func (m *UserMutation) Title() (r string, exists bool) { return *v, true } -// OldTitle returns the old title value, if exists. +// OldTitle returns the old title value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldTitle(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -1159,7 +1171,9 @@ func (m *UserMutation) NewName() (r string, exists bool) { return *v, true } -// OldNewName returns the old new_name value, if exists. +// OldNewName returns the old new_name value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldNewName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -1207,7 +1221,9 @@ func (m *UserMutation) Blob() (r []byte, exists bool) { return *v, true } -// OldBlob returns the old blob value, if exists. +// OldBlob returns the old blob value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldBlob(ctx context.Context) (v []byte, err error) { if !m.op.Is(OpUpdateOne) { @@ -1255,7 +1271,9 @@ func (m *UserMutation) State() (r user.State, exists bool) { return *v, true } -// OldState returns the old state value, if exists. +// OldState returns the old state value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldState(ctx context.Context) (v user.State, err error) { if !m.op.Is(OpUpdateOne) { diff --git a/entc/integration/privacy/ent/mutation.go b/entc/integration/privacy/ent/mutation.go index 2e2ce8582..5fb416762 100644 --- a/entc/integration/privacy/ent/mutation.go +++ b/entc/integration/privacy/ent/mutation.go @@ -139,7 +139,9 @@ func (m *GalaxyMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the Galaxy. +// If the Galaxy object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *GalaxyMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -174,7 +176,9 @@ func (m *GalaxyMutation) GetType() (r galaxy.Type, exists bool) { return *v, true } -// OldType returns the old type value, if exists. +// OldType returns the old type value of the Galaxy. +// If the Galaxy object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *GalaxyMutation) OldType(ctx context.Context) (v galaxy.Type, err error) { if !m.op.Is(OpUpdateOne) { @@ -559,7 +563,9 @@ func (m *PlanetMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the Planet. +// If the Planet object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *PlanetMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -595,7 +601,9 @@ func (m *PlanetMutation) Age() (r uint, exists bool) { return *v, true } -// OldAge returns the old age value, if exists. +// OldAge returns the old age value of the Planet. +// If the Planet object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *PlanetMutation) OldAge(ctx context.Context) (v uint, err error) { if !m.op.Is(OpUpdateOne) { diff --git a/entc/integration/template/ent/mutation.go b/entc/integration/template/ent/mutation.go index 2ce2e2f5b..40082bc22 100644 --- a/entc/integration/template/ent/mutation.go +++ b/entc/integration/template/ent/mutation.go @@ -141,7 +141,9 @@ func (m *GroupMutation) MaxUsers() (r int, exists bool) { return *v, true } -// OldMaxUsers returns the old max_users value, if exists. +// OldMaxUsers returns the old max_users value of the Group. +// If the Group object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *GroupMutation) OldMaxUsers(ctx context.Context) (v int, err error) { if !m.op.Is(OpUpdateOne) { @@ -471,7 +473,9 @@ func (m *PetMutation) Age() (r int, exists bool) { return *v, true } -// OldAge returns the old age value, if exists. +// OldAge returns the old age value of the Pet. +// If the Pet object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *PetMutation) OldAge(ctx context.Context) (v int, err error) { if !m.op.Is(OpUpdateOne) { @@ -525,7 +529,9 @@ func (m *PetMutation) LicensedAt() (r time.Time, exists bool) { return *v, true } -// OldLicensedAt returns the old licensed_at value, if exists. +// OldLicensedAt returns the old licensed_at value of the Pet. +// If the Pet object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *PetMutation) OldLicensedAt(ctx context.Context) (v *time.Time, err error) { if !m.op.Is(OpUpdateOne) { @@ -941,7 +947,9 @@ func (m *UserMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { diff --git a/examples/edgeindex/ent/mutation.go b/examples/edgeindex/ent/mutation.go index d2236a140..5adc94ef4 100644 --- a/examples/edgeindex/ent/mutation.go +++ b/examples/edgeindex/ent/mutation.go @@ -138,7 +138,9 @@ func (m *CityMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the City. +// If the City object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *CityMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -504,7 +506,9 @@ func (m *StreetMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the Street. +// If the Street object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *StreetMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { diff --git a/examples/m2m2types/ent/mutation.go b/examples/m2m2types/ent/mutation.go index 56fca7ab2..c6893311d 100644 --- a/examples/m2m2types/ent/mutation.go +++ b/examples/m2m2types/ent/mutation.go @@ -138,7 +138,9 @@ func (m *GroupMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the Group. +// If the Group object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *GroupMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -507,7 +509,9 @@ func (m *UserMutation) Age() (r int, exists bool) { return *v, true } -// OldAge returns the old age value, if exists. +// OldAge returns the old age value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldAge(ctx context.Context) (v int, err error) { if !m.op.Is(OpUpdateOne) { @@ -561,7 +565,9 @@ func (m *UserMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { diff --git a/examples/m2mbidi/ent/mutation.go b/examples/m2mbidi/ent/mutation.go index fc98dab92..6ff63dfee 100644 --- a/examples/m2mbidi/ent/mutation.go +++ b/examples/m2mbidi/ent/mutation.go @@ -139,7 +139,9 @@ func (m *UserMutation) Age() (r int, exists bool) { return *v, true } -// OldAge returns the old age value, if exists. +// OldAge returns the old age value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldAge(ctx context.Context) (v int, err error) { if !m.op.Is(OpUpdateOne) { @@ -193,7 +195,9 @@ func (m *UserMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { diff --git a/examples/m2mrecur/ent/mutation.go b/examples/m2mrecur/ent/mutation.go index 2b92ad31c..cb97a4e53 100644 --- a/examples/m2mrecur/ent/mutation.go +++ b/examples/m2mrecur/ent/mutation.go @@ -141,7 +141,9 @@ func (m *UserMutation) Age() (r int, exists bool) { return *v, true } -// OldAge returns the old age value, if exists. +// OldAge returns the old age value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldAge(ctx context.Context) (v int, err error) { if !m.op.Is(OpUpdateOne) { @@ -195,7 +197,9 @@ func (m *UserMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { diff --git a/examples/o2m2types/ent/mutation.go b/examples/o2m2types/ent/mutation.go index 98c774739..488dc4025 100644 --- a/examples/o2m2types/ent/mutation.go +++ b/examples/o2m2types/ent/mutation.go @@ -138,7 +138,9 @@ func (m *PetMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the Pet. +// If the Pet object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *PetMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -501,7 +503,9 @@ func (m *UserMutation) Age() (r int, exists bool) { return *v, true } -// OldAge returns the old age value, if exists. +// OldAge returns the old age value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldAge(ctx context.Context) (v int, err error) { if !m.op.Is(OpUpdateOne) { @@ -555,7 +559,9 @@ func (m *UserMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { diff --git a/examples/o2mrecur/ent/mutation.go b/examples/o2mrecur/ent/mutation.go index d55703d80..6468d6994 100644 --- a/examples/o2mrecur/ent/mutation.go +++ b/examples/o2mrecur/ent/mutation.go @@ -140,7 +140,9 @@ func (m *NodeMutation) Value() (r int, exists bool) { return *v, true } -// OldValue returns the old value value, if exists. +// OldValue returns the old value value of the Node. +// If the Node object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *NodeMutation) OldValue(ctx context.Context) (v int, err error) { if !m.op.Is(OpUpdateOne) { diff --git a/examples/o2o2types/ent/mutation.go b/examples/o2o2types/ent/mutation.go index d8cc2f4fe..9a3eed5cc 100644 --- a/examples/o2o2types/ent/mutation.go +++ b/examples/o2o2types/ent/mutation.go @@ -140,7 +140,9 @@ func (m *CardMutation) Expired() (r time.Time, exists bool) { return *v, true } -// OldExpired returns the old expired value, if exists. +// OldExpired returns the old expired value of the Card. +// If the Card object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *CardMutation) OldExpired(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { @@ -175,7 +177,9 @@ func (m *CardMutation) Number() (r string, exists bool) { return *v, true } -// OldNumber returns the old number value, if exists. +// OldNumber returns the old number value of the Card. +// If the Card object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *CardMutation) OldNumber(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -555,7 +559,9 @@ func (m *UserMutation) Age() (r int, exists bool) { return *v, true } -// OldAge returns the old age value, if exists. +// OldAge returns the old age value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldAge(ctx context.Context) (v int, err error) { if !m.op.Is(OpUpdateOne) { @@ -609,7 +615,9 @@ func (m *UserMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { diff --git a/examples/o2obidi/ent/mutation.go b/examples/o2obidi/ent/mutation.go index d1ec97a01..67b1bbaec 100644 --- a/examples/o2obidi/ent/mutation.go +++ b/examples/o2obidi/ent/mutation.go @@ -139,7 +139,9 @@ func (m *UserMutation) Age() (r int, exists bool) { return *v, true } -// OldAge returns the old age value, if exists. +// OldAge returns the old age value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldAge(ctx context.Context) (v int, err error) { if !m.op.Is(OpUpdateOne) { @@ -193,7 +195,9 @@ func (m *UserMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { diff --git a/examples/o2orecur/ent/mutation.go b/examples/o2orecur/ent/mutation.go index 2731f9410..52a0c06f0 100644 --- a/examples/o2orecur/ent/mutation.go +++ b/examples/o2orecur/ent/mutation.go @@ -140,7 +140,9 @@ func (m *NodeMutation) Value() (r int, exists bool) { return *v, true } -// OldValue returns the old value value, if exists. +// OldValue returns the old value value of the Node. +// If the Node object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *NodeMutation) OldValue(ctx context.Context) (v int, err error) { if !m.op.Is(OpUpdateOne) { diff --git a/examples/start/ent/mutation.go b/examples/start/ent/mutation.go index bad77f325..02af4b138 100644 --- a/examples/start/ent/mutation.go +++ b/examples/start/ent/mutation.go @@ -142,7 +142,9 @@ func (m *CarMutation) Model() (r string, exists bool) { return *v, true } -// OldModel returns the old model value, if exists. +// OldModel returns the old model value of the Car. +// If the Car object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *CarMutation) OldModel(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -177,7 +179,9 @@ func (m *CarMutation) RegisteredAt() (r time.Time, exists bool) { return *v, true } -// OldRegisteredAt returns the old registered_at value, if exists. +// OldRegisteredAt returns the old registered_at value of the Car. +// If the Car object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *CarMutation) OldRegisteredAt(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { @@ -554,7 +558,9 @@ func (m *GroupMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the Group. +// If the Group object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *GroupMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -925,7 +931,9 @@ func (m *UserMutation) Age() (r int, exists bool) { return *v, true } -// OldAge returns the old age value, if exists. +// OldAge returns the old age value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldAge(ctx context.Context) (v int, err error) { if !m.op.Is(OpUpdateOne) { @@ -979,7 +987,9 @@ func (m *UserMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { diff --git a/examples/traversal/ent/mutation.go b/examples/traversal/ent/mutation.go index 63949d6cd..0f59b6ce0 100644 --- a/examples/traversal/ent/mutation.go +++ b/examples/traversal/ent/mutation.go @@ -142,7 +142,9 @@ func (m *GroupMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the Group. +// If the Group object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *GroupMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -567,7 +569,9 @@ func (m *PetMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the Pet. +// If the Pet object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *PetMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { @@ -999,7 +1003,9 @@ func (m *UserMutation) Age() (r int, exists bool) { return *v, true } -// OldAge returns the old age value, if exists. +// OldAge returns the old age value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldAge(ctx context.Context) (v int, err error) { if !m.op.Is(OpUpdateOne) { @@ -1053,7 +1059,9 @@ func (m *UserMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old name value, if exists. +// OldName returns the old name value of the User. +// If the User object wasn't provided to the builder, the object is fetched +// from the database. // An error is returned if the mutation operation is not UpdateOne, or database query fails. func (m *UserMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) {