From 11567a3926bb8c847523d3d17115cc56fcab9d7a Mon Sep 17 00:00:00 2001 From: Ariel Mashraki Date: Mon, 31 May 2021 20:18:55 +0300 Subject: [PATCH] entc/gen: update mutation-id on post mutation --- entc/gen/internal/bindata.go | 12 ++-- entc/gen/template/builder/create.tmpl | 1 + entc/gen/template/builder/mutation.tmpl | 4 +- entc/gen/template/dialect/sql/create.tmpl | 1 + .../cascadelete/ent/comment_create.go | 2 + entc/integration/cascadelete/ent/mutation.go | 12 ++-- .../cascadelete/ent/post_create.go | 2 + .../cascadelete/ent/user_create.go | 2 + entc/integration/config/ent/mutation.go | 4 +- entc/integration/config/ent/user_create.go | 2 + entc/integration/customid/ent/blob_create.go | 2 + entc/integration/customid/ent/car_create.go | 2 + entc/integration/customid/ent/doc_create.go | 2 + entc/integration/customid/ent/group_create.go | 2 + .../customid/ent/mixinid_create.go | 2 + entc/integration/customid/ent/mutation.go | 32 +++++------ entc/integration/customid/ent/note_create.go | 2 + entc/integration/customid/ent/pet_create.go | 2 + entc/integration/customid/ent/user_create.go | 2 + entc/integration/edgefield/ent/car_create.go | 2 + entc/integration/edgefield/ent/card_create.go | 2 + entc/integration/edgefield/ent/info_create.go | 2 + .../edgefield/ent/metadata_create.go | 2 + entc/integration/edgefield/ent/mutation.go | 32 +++++------ entc/integration/edgefield/ent/pet_create.go | 2 + entc/integration/edgefield/ent/post_create.go | 2 + .../edgefield/ent/rental_create.go | 2 + entc/integration/edgefield/ent/user_create.go | 2 + entc/integration/ent/card_create.go | 2 + entc/integration/ent/comment_create.go | 2 + entc/integration/ent/fieldtype_create.go | 2 + entc/integration/ent/file_create.go | 2 + entc/integration/ent/filetype_create.go | 2 + entc/integration/ent/goods_create.go | 2 + entc/integration/ent/group_create.go | 2 + entc/integration/ent/groupinfo_create.go | 2 + entc/integration/ent/item_create.go | 2 + entc/integration/ent/mutation.go | 56 +++++++++---------- entc/integration/ent/node_create.go | 2 + entc/integration/ent/pet_create.go | 2 + entc/integration/ent/spec_create.go | 2 + entc/integration/ent/task_create.go | 2 + entc/integration/ent/user_create.go | 2 + entc/integration/gremlin/ent/card_create.go | 1 + .../integration/gremlin/ent/comment_create.go | 1 + .../gremlin/ent/fieldtype_create.go | 1 + entc/integration/gremlin/ent/file_create.go | 1 + .../gremlin/ent/filetype_create.go | 1 + entc/integration/gremlin/ent/goods_create.go | 1 + entc/integration/gremlin/ent/group_create.go | 1 + .../gremlin/ent/groupinfo_create.go | 1 + entc/integration/gremlin/ent/item_create.go | 1 + entc/integration/gremlin/ent/mutation.go | 56 +++++++++---------- entc/integration/gremlin/ent/node_create.go | 1 + entc/integration/gremlin/ent/pet_create.go | 1 + entc/integration/gremlin/ent/spec_create.go | 1 + entc/integration/gremlin/ent/task_create.go | 1 + entc/integration/gremlin/ent/user_create.go | 1 + entc/integration/hooks/ent/card_create.go | 2 + entc/integration/hooks/ent/mutation.go | 8 +-- entc/integration/hooks/ent/user_create.go | 2 + entc/integration/hooks/hooks_test.go | 24 ++++++++ entc/integration/idtype/ent/mutation.go | 4 +- entc/integration/idtype/ent/user_create.go | 2 + entc/integration/json/ent/mutation.go | 4 +- entc/integration/json/ent/user_create.go | 2 + entc/integration/migrate/entv1/car_create.go | 2 + .../migrate/entv1/conversion_create.go | 2 + .../migrate/entv1/customtype_create.go | 2 + entc/integration/migrate/entv1/mutation.go | 16 +++--- entc/integration/migrate/entv1/user_create.go | 2 + entc/integration/migrate/entv2/car_create.go | 2 + .../migrate/entv2/conversion_create.go | 2 + .../migrate/entv2/customtype_create.go | 2 + .../integration/migrate/entv2/group_create.go | 2 + .../integration/migrate/entv2/media_create.go | 2 + entc/integration/migrate/entv2/mutation.go | 28 +++++----- entc/integration/migrate/entv2/pet_create.go | 2 + entc/integration/migrate/entv2/user_create.go | 2 + .../multischema/ent/group_create.go | 2 + entc/integration/multischema/ent/mutation.go | 12 ++-- .../integration/multischema/ent/pet_create.go | 2 + .../multischema/ent/user_create.go | 2 + entc/integration/privacy/ent/mutation.go | 12 ++-- entc/integration/privacy/ent/task_create.go | 2 + entc/integration/privacy/ent/team_create.go | 2 + entc/integration/privacy/ent/user_create.go | 2 + entc/integration/template/ent/group_create.go | 2 + entc/integration/template/ent/mutation.go | 12 ++-- entc/integration/template/ent/pet_create.go | 2 + entc/integration/template/ent/user_create.go | 2 + examples/edgeindex/ent/city_create.go | 2 + examples/edgeindex/ent/mutation.go | 8 +-- examples/edgeindex/ent/street_create.go | 2 + examples/entcpkg/ent/mutation.go | 4 +- examples/entcpkg/ent/user_create.go | 2 + examples/fs/ent/file_create.go | 2 + examples/fs/ent/mutation.go | 4 +- examples/m2m2types/ent/group_create.go | 2 + examples/m2m2types/ent/mutation.go | 8 +-- examples/m2m2types/ent/user_create.go | 2 + examples/m2mbidi/ent/mutation.go | 4 +- examples/m2mbidi/ent/user_create.go | 2 + examples/m2mrecur/ent/mutation.go | 4 +- examples/m2mrecur/ent/user_create.go | 2 + examples/o2m2types/ent/mutation.go | 8 +-- examples/o2m2types/ent/pet_create.go | 2 + examples/o2m2types/ent/user_create.go | 2 + examples/o2mrecur/ent/mutation.go | 4 +- examples/o2mrecur/ent/node_create.go | 2 + examples/o2o2types/ent/card_create.go | 2 + examples/o2o2types/ent/mutation.go | 8 +-- examples/o2o2types/ent/user_create.go | 2 + examples/o2obidi/ent/mutation.go | 4 +- examples/o2obidi/ent/user_create.go | 2 + examples/o2orecur/ent/mutation.go | 4 +- examples/o2orecur/ent/node_create.go | 2 + examples/privacyadmin/ent/mutation.go | 4 +- examples/privacyadmin/ent/user_create.go | 2 + examples/privacytenant/ent/group_create.go | 2 + examples/privacytenant/ent/mutation.go | 12 ++-- examples/privacytenant/ent/tenant_create.go | 2 + examples/privacytenant/ent/user_create.go | 2 + examples/start/ent/car_create.go | 2 + examples/start/ent/group_create.go | 2 + examples/start/ent/mutation.go | 12 ++-- examples/start/ent/user_create.go | 2 + examples/traversal/ent/group_create.go | 2 + examples/traversal/ent/mutation.go | 12 ++-- examples/traversal/ent/pet_create.go | 2 + examples/traversal/ent/user_create.go | 2 + 131 files changed, 408 insertions(+), 202 deletions(-) diff --git a/entc/gen/internal/bindata.go b/entc/gen/internal/bindata.go index 683a4b444..cbf409957 100644 --- a/entc/gen/internal/bindata.go +++ b/entc/gen/internal/bindata.go @@ -152,7 +152,7 @@ func templateBaseTmpl() (*asset, error) { return a, nil } -var _templateBuilderCreateTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xa4\x58\xe1\x6f\xdb\x3a\x0e\xff\x6c\xff\x15\x9c\x91\x1e\xec\xa2\x75\xba\x7d\xbb\x0e\x39\x60\x6b\xbb\x5b\x81\xbb\xdd\xe1\xb5\x1b\x06\x6c\xc3\xa0\xd8\x74\x22\xc4\x96\x3c\x49\xce\x5a\x04\xfe\xdf\x1f\x28\xc9\x8e\xed\xe6\x75\xed\xde\x87\xa2\xb2\x24\x52\xe4\x8f\x3f\x52\x62\x76\xbb\xf9\x71\x78\x21\xeb\x7b\xc5\x57\x6b\x03\xaf\xce\x5e\xfe\xf3\xb4\x56\xa8\x51\x18\x78\xc7\x32\x5c\x4a\xb9\x81\x6b\x91\xa5\xf0\xa6\x2c\xc1\x6e\xd2\x40\xeb\x6a\x8b\x79\x1a\xde\xae\xb9\x06\x2d\x1b\x95\x21\x64\x32\x47\xe0\x1a\x4a\x9e\xa1\xd0\x98\x43\x23\x72\x54\x60\xd6\x08\x6f\x6a\x96\xad\x11\x5e\xa5\x67\xdd\x2a\x14\xb2\x11\x79\xc8\x85\x5d\xff\xcf\xf5\xc5\xd5\x87\x9b\x2b\x28\x78\x89\xe0\xe7\x94\x94\x06\x72\xae\x30\x33\x52\xdd\x83\x2c\xc0\x0c\x0e\x33\x0a\x31\x0d\x8f\xe7\x6d\x1b\x86\xe4\x03\xac\xa4\xb9\xaf\xf1\x1c\x50\x98\x95\x4c\xb9\x9c\xa3\x30\xf4\x97\xcd\x57\x28\xd2\xdb\xfb\x1a\xa1\xdb\x0d\x39\x16\x5c\x20\x44\x99\x42\x66\x30\x82\xb6\xa5\xd9\x59\xbd\x59\xc1\xf9\x02\x96\x4c\x23\xcc\xd2\x0b\x29\x0a\xbe\x4a\xff\xcf\xb2\x0d\x5b\x21\x78\x51\x83\x55\x5d\x32\x83\x10\xad\x91\xe5\xa8\x22\x98\x3d\x5c\xe2\x55\x2d\x95\xe9\x96\xdc\x17\xc4\x61\xb0\xdb\x9d\x82\x62\x62\x85\x30\xab\x99\x59\xd3\x61\xb3\xf4\x86\x2f\x4b\x2e\x56\xd7\x76\x97\x26\x89\x20\x88\xac\x39\xb4\xa5\x6d\x23\x27\x87\x22\xa7\xb5\xc4\x1e\x35\x5b\x36\xbc\x24\x70\xad\x86\x0b\xeb\xc6\x07\x56\x61\xe7\x89\xc2\x0c\xf9\xd6\xad\xf7\xe3\x5e\xc8\x6f\xaa\x1a\xc3\x0c\x97\x82\x36\xd5\x8a\x0b\x33\x90\x8b\xd2\x6e\xd5\xa2\x13\xce\xe7\x30\x3c\xb6\x6d\x29\xd0\x14\xa5\x6e\xa6\x90\x0a\x2c\x9c\x5c\xac\x80\xd9\xcd\xa9\xb7\x88\x42\xc2\xcd\x7d\x1a\x52\x80\xa6\x6a\xb4\x51\x4d\x66\x60\x17\x06\x99\xc5\x3b\x0c\x7a\xb3\x8e\x77\x3b\x80\x59\xfa\x5f\xff\xdd\xf9\x17\xac\xa5\xdc\x68\xf8\xf2\xed\xbd\x94\x9b\xd0\x41\xff\x93\x9b\x35\xe0\x9d\x21\x90\x66\x10\xbd\x75\xfa\xa3\x91\xcb\xc1\x28\x44\x1a\x8d\xa1\x1d\xa9\x47\xc3\xc3\x4b\x8e\xde\xb0\x2d\x3a\x5f\xd0\xf9\x38\x72\xc6\xb3\x33\x67\x86\x11\x51\xd2\xb0\x68\x44\x06\xf1\x08\xf5\xb6\xb5\xc6\x0f\x4e\x4f\xac\xd6\x38\x33\x77\x90\x49\x61\xf0\xce\x10\xbf\xe8\x7f\x02\xf1\xf1\xf0\x80\x13\x40\xa5\xa4\x4a\x08\x92\x2d\x53\x44\x9b\x00\x95\x72\xb3\x61\x10\x08\xca\xb2\x91\x44\x18\x24\x8e\x22\xbc\x80\x59\xfa\x9e\xe9\x4b\x2c\x58\x53\x1a\x47\xa5\x89\x61\x69\xee\x16\x75\x9c\x8c\x78\x15\xf0\x02\x4a\x14\x53\x3f\x52\x0b\x76\x02\x8b\x05\x9c\x91\x45\xb4\x8d\xac\x59\xc0\x74\x63\xb6\xc6\x6c\x13\x27\xaf\xed\xf2\x8b\x05\x08\x5e\x5a\x81\x40\xa1\x69\x94\xa0\x6f\xeb\x5a\x18\x04\xad\x77\xe3\xe4\x2f\x54\x59\xe7\x6e\x8c\x54\x2e\xef\x3a\xe4\x92\x30\x68\x01\x4b\x8d\x56\x2f\x61\x53\x35\x06\x2c\x3d\x24\xa9\xb1\x23\x7c\xd7\x88\x2c\xa6\x98\x1c\x02\xfb\x04\x2a\xe8\xf8\x94\x40\xfc\x89\x95\x0d\x0e\x01\x0f\x7a\xf6\x9d\x80\xdc\x50\x62\x54\xa9\x0f\xcf\x84\x86\x09\x6d\xe6\x05\xbc\x90\x1b\x27\x38\xf2\xb3\xa8\x4c\x7a\x45\x5a\x8b\x38\x6a\x04\xde\xd5\x98\x19\xcc\xa1\xa7\xb6\xcd\x84\xa3\xdb\xe8\x04\x2a\xab\xa8\xf5\xda\x9e\x09\xed\x01\x6c\x9d\xaa\x51\x7a\xb7\x2d\x2c\xfa\xa3\x69\xf5\xf7\xb0\xdf\x63\x93\xe6\x52\x20\x2c\xc0\xa8\x06\x87\x11\xee\xd4\x52\x88\x49\x80\x6a\x02\x27\x10\x1f\x21\xd6\x29\xbc\x7c\x0d\x1c\xfe\xb5\x80\xb3\xd7\xc0\x4f\x4f\xfb\x28\x1c\xb0\xcd\x8a\x7c\xe1\xdf\xe2\xaa\x31\x89\xe7\x11\x2f\xe0\xbb\xf3\xe5\xdc\x3a\xe9\xe2\x64\x6d\x3e\x81\x09\x0c\x4f\x25\x67\x1b\x3e\x74\x69\x5f\x1a\x3e\x43\xc6\xca\x52\xbb\x32\xc1\x44\x0e\x35\x13\x3c\xd3\x94\x7d\x76\xca\x89\x6a\x60\xc2\x11\xeb\x59\x15\xe2\xf3\xe1\x12\x31\xca\x77\x5b\x19\x7a\x9f\xa7\x20\x0d\x22\xe6\x09\x35\xf0\xd7\x9a\x1a\xa3\x52\xc9\xd0\xcb\xad\xab\xa2\xa7\x30\x2b\x38\x96\xb9\x76\xb7\xca\x3b\x37\x6e\xdb\xdd\xce\x55\x96\xeb\xcb\xf4\xa3\x46\x75\x69\x2f\xcf\xdc\x2d\x74\x12\x0b\x60\x75\x6d\xab\xaf\x9f\xa0\xed\x6e\x8b\x2f\x30\x9d\x96\x49\x7d\x9a\xcf\xa1\xab\x48\xa0\xd1\xb8\x82\xeb\x67\x60\x4b\xf9\xa9\xdd\xd5\xbf\xbf\x6a\x96\x58\x48\x85\xa0\xd9\x16\xd3\x30\x78\x22\xb8\xfb\xb2\x67\x81\x18\xdc\xc4\x85\x75\xb7\xe8\xbc\x75\xe9\x63\x8b\xa9\x54\x30\x2b\xd2\x51\x35\xed\x08\xe7\x8a\xc3\x84\x5f\x36\x79\x8a\xbe\x52\xfc\x1b\x49\x88\xf2\x76\x5f\x24\x82\x6d\x27\x37\x78\x58\x78\x39\x7f\x90\x8f\xb2\xc7\xab\x9f\xa6\xba\x66\xd5\xed\x21\xb5\x0a\xa7\x36\xdc\xa0\x71\xea\x6e\xec\xcd\x6a\xa3\x48\x72\x5b\x9b\xc2\x41\xef\x5f\xaf\x63\xf8\x31\xbd\x0a\x6d\xe5\x01\xd5\x10\x9d\xcb\xd2\x7d\x6a\x4b\xfa\x46\xa3\x3a\xcd\x3d\x15\xb6\xac\xe4\x39\x55\x61\x0d\x52\x0c\x63\xf5\x64\xee\xfb\x12\xe7\x32\x86\xb0\x7a\x34\x40\x3e\x3e\x64\x47\x2c\xa4\x21\x6f\xff\x57\x13\x00\xac\x4c\x20\x16\x24\xe3\x92\xc5\x92\x96\x46\x89\xc7\xeb\xef\x45\xcf\xe7\xcb\x3f\x3e\x39\x7f\xb9\x14\xb6\xc8\xef\xe8\x84\x73\x88\x9c\x02\x1f\xbf\xc8\x66\xe8\xb9\xf3\x48\xa7\x1f\xf0\x67\x1c\x75\x8f\xcc\xb6\x3d\x87\x8a\x6b\x4d\x6f\x25\x85\x3f\x1a\xae\x30\x07\xeb\x20\x7c\x1d\x6b\xf9\x1a\x45\x49\xdb\x95\xf5\x07\x61\xb3\xcf\x1e\xc7\xd2\x4f\xfb\x10\xcc\x8a\xf4\x5a\x5f\x89\xa6\xda\xfb\xbc\x7d\xae\xcf\xbd\xcb\xb6\x2c\x2c\x99\xe6\x99\x8b\x42\xfa\x96\xc6\xf6\x39\x1d\x6d\xa3\x41\x52\x0c\xca\xd1\x43\x6a\xf7\xd6\x91\x7a\x1b\x7b\xab\xf1\x60\x49\xfe\x3d\x98\x87\x37\xee\x10\xe6\x9e\x9a\x50\x30\x5e\x12\xcc\x34\x3c\x0c\xf5\x39\x1c\xfd\x74\xfa\x1c\xe6\xc1\x41\xe4\xa7\x63\xcf\x52\x74\x55\xf3\x2a\x5f\xe1\x98\xa5\x96\xa0\xd8\x13\x74\x5c\x62\x66\x98\x7e\x14\xfc\x47\x83\x4f\x2d\x2f\x38\xc9\xeb\xeb\xcb\x11\x45\xad\x71\xf4\x44\xda\xab\xeb\x2e\xdf\x5f\x6b\xd2\x71\x32\x78\xe9\x8d\xe9\xf6\xa4\xa8\xe0\x6f\x93\x1f\xf3\x15\xfa\x80\xe0\x2f\xb9\x3f\x1c\xef\x2f\xf0\x67\xb6\x02\x33\x53\xd5\x65\xdf\xfa\x14\x10\xe5\x9c\x95\x98\x99\xf9\x91\x9e\x77\x7d\xe1\xf0\x25\x64\x85\xee\xfa\x06\xc2\x89\x4f\xbb\x07\xb2\x6c\x7e\x0c\x37\x4d\x6d\x5b\x3e\x96\xe7\xe4\xa5\x53\x07\x15\x9a\xb5\xcc\x35\x2c\xef\x61\x55\xca\x25\x2b\xfb\x76\x44\xa7\xae\x37\xed\x73\xda\x6a\xb7\xf7\x70\xc5\x4c\xb6\xbe\xed\xdb\x16\xa7\x6a\x4e\x8a\x1d\x9d\xe6\xc7\xd1\x94\x89\x9d\x63\x5e\x49\xd7\x05\x4c\x6d\x9f\x4d\xb1\x1c\x0c\x7d\x8f\x59\x6e\x86\x00\x1d\x69\xd7\x68\xbe\x6d\xca\x4d\x04\x71\xcd\x74\xc6\x4a\xff\x2c\x49\x1e\x74\x9e\xe3\xc6\xb3\xdc\x8c\xdb\x48\xfb\xfd\x68\x0f\x59\x31\x71\x7f\xa0\x8d\xe4\xa8\xa9\x05\x23\x0d\xa3\x86\xd2\x29\x7c\xd8\x4d\x7a\xdd\xd4\x2f\xba\x7e\x72\x40\x83\xee\xa7\x83\x6b\xf7\xbe\xd0\x3e\xd6\xb9\xb2\x56\x6b\x17\x44\x6d\xcf\xf2\x76\x51\x57\x3a\xf7\x9e\xfe\x92\x3f\xdf\x97\x16\xa8\x11\x89\xdc\xad\xbe\x66\xfa\x76\x1c\x0c\xcf\xaf\x47\xc8\x5b\x6e\x20\xfa\xc3\x23\x1a\x8d\x6e\xd3\xc3\xe1\x4d\x3b\x9d\xfb\xf7\xd7\x83\xd1\x9f\x01\x00\x00\xff\xff\x7e\xf6\x7f\xb0\xfd\x11\x00\x00") +var _templateBuilderCreateTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xa4\x58\xdf\x6f\xdb\x38\x12\x7e\x96\xfe\x8a\x59\xc1\x59\x48\x41\x22\x67\xf7\xed\x52\xf8\x80\x6d\x7e\xdc\x1a\xb8\xeb\x1d\x2e\x69\x51\xa0\x2d\x0a\x5a\x1a\xd9\x84\x25\x52\x25\x29\x37\x81\xa1\xff\xfd\x30\x24\x25\x4b\x8a\x2f\x4d\xba\x0f\x45\x69\x91\xfc\x38\xf3\xcd\x37\x43\x4e\xf6\xfb\xf9\x69\x78\x25\xeb\x47\xc5\xd7\x1b\x03\xbf\x5f\xfc\xf6\xb7\xf3\x5a\xa1\x46\x61\xe0\x96\x65\xb8\x92\x72\x0b\x4b\x91\xa5\xf0\x47\x59\x82\x5d\xa4\x81\xe6\xd5\x0e\xf3\x34\xbc\xdf\x70\x0d\x5a\x36\x2a\x43\xc8\x64\x8e\xc0\x35\x94\x3c\x43\xa1\x31\x87\x46\xe4\xa8\xc0\x6c\x10\xfe\xa8\x59\xb6\x41\xf8\x3d\xbd\xe8\x66\xa1\x90\x8d\xc8\x43\x2e\xec\xfc\x3f\x97\x57\x37\xef\xee\x6e\xa0\xe0\x25\x82\xff\xa6\xa4\x34\x90\x73\x85\x99\x91\xea\x11\x64\x01\x66\x70\x98\x51\x88\x69\x78\x3a\x6f\xdb\x30\x24\x1f\x60\x2d\xcd\x63\x8d\x97\x80\xc2\xac\x65\xca\xe5\x1c\x85\xa1\x7f\xd9\x7c\x8d\x22\xbd\x7f\xac\x11\xba\xd5\x90\x63\xc1\x05\x42\x94\x29\x64\x06\x23\x68\x5b\xfa\x3a\xab\xb7\x6b\xb8\x5c\xc0\x8a\x69\x84\x59\x7a\x25\x45\xc1\xd7\xe9\x7f\x58\xb6\x65\x6b\x04\xbf\xd5\x60\x55\x97\xcc\x20\x44\x1b\x64\x39\xaa\x08\x66\x4f\xa7\x78\x55\x4b\x65\xba\x29\xf7\x0b\xe2\x30\xd8\xef\xcf\x41\x31\xb1\x46\x98\xd5\xcc\x6c\xe8\xb0\x59\x7a\xc7\x57\x25\x17\xeb\xa5\x5d\xa5\x69\x47\x10\x44\xd6\x1c\x5a\xd2\xb6\x91\xdb\x87\x22\xa7\xb9\xc4\x1e\x35\x5b\x35\xbc\x24\x72\x2d\xc2\x95\x75\xe3\x1d\xab\xb0\xf3\x44\x61\x86\x7c\xe7\xe6\xfb\x71\xbf\xc9\x2f\xaa\x1a\xc3\x0c\x97\x82\x16\xd5\x8a\x0b\x33\xd8\x17\xa5\xdd\xac\x65\x27\x9c\xcf\x61\x78\x6c\xdb\x52\xa0\x29\x4a\xdd\x97\x42\x2a\xb0\x74\x72\xb1\x06\x66\x17\xa7\xde\x22\x0a\x09\x37\x8f\x69\x48\x01\x9a\xc2\x68\xa3\x9a\xcc\xc0\x3e\x0c\x32\xcb\x77\x18\xf4\x66\x9d\xee\xf7\x00\xb3\xf4\x5f\xfe\x77\xe7\x5f\xb0\x91\x72\xab\xe1\xd3\x97\x3f\xa5\xdc\x86\x8e\xfa\xef\xdc\x6c\x00\x1f\x0c\x91\x34\x83\xe8\xad\xc3\x8f\x46\x2e\x07\xa3\x10\x69\x34\x86\x56\xa4\x9e\x0d\x4f\x2f\x39\x7a\xc7\x76\xe8\x7c\x41\xe7\xe3\xc8\x19\xaf\xce\x9c\x19\x46\x42\x49\xc3\xa2\x11\x19\xc4\x23\xd6\xdb\xd6\x1a\x3f\x38\x3d\xb1\xa8\x71\x66\x1e\x20\x93\xc2\xe0\x83\x21\x7d\xd1\xff\x09\xc4\xa7\xc3\x03\xce\x00\x95\x92\x2a\x21\x4a\x76\x4c\x91\x6c\x02\x54\xca\x7d\x0d\x83\x40\x50\x96\x8d\x76\x84\x41\xe2\x24\xc2\x0b\x98\xa5\x7f\x32\x7d\x8d\x05\x6b\x4a\xe3\xa4\x34\x31\x2c\xcd\xdd\xa4\x8e\x93\x91\xae\x02\x5e\x40\x89\x62\xea\x47\x6a\xc9\x4e\x60\xb1\x80\x0b\xb2\x88\x96\x91\x35\x0b\x98\x2e\xcc\x36\x98\x6d\xe3\xe4\x8d\x9d\xfe\x65\x01\x82\x97\x76\x43\xa0\xd0\x34\x4a\xd0\x6f\xeb\x5a\x18\x04\xad\x77\xe3\xec\xff\x40\x59\xe7\xee\x8c\x54\x2e\xef\x3a\xe6\x92\x30\x68\x01\x4b\x8d\x16\x97\xb8\xa9\x1a\x03\x56\x1e\x92\x60\xec\x08\x6f\x1b\x91\xc5\x14\x93\x63\x64\x9f\x41\x05\x9d\x9e\x12\x88\x3f\xb0\xb2\xc1\x21\xe1\x41\xaf\xbe\x33\x90\x5b\x4a\x8c\x2a\xf5\xe1\x99\xc8\x30\xa1\xc5\xbc\x80\x5f\xe4\xd6\x6d\x1c\xf9\x59\x54\x26\xbd\x21\xd4\x22\x8e\x1a\x81\x0f\x35\x66\x06\x73\xe8\xa5\x6d\x33\xe1\xe4\x3e\x3a\x83\xca\x02\xb5\x1e\xed\x95\xd4\x1e\xe1\xd6\x41\x8d\xd2\xbb\x6d\x61\xd1\x1f\x4d\xb3\x3f\xc7\xfd\x81\x1b\xb7\x68\x79\x9d\xfa\x3c\xbb\xe5\x58\xe6\xee\x98\x5f\x09\xbb\x9f\xbf\xb3\xc9\xdd\x4d\x8f\x20\x72\x29\x10\x16\x60\x54\x83\x43\x91\x74\x96\x91\x4a\xe8\x4c\x2a\x2b\x9c\xe2\xf0\x8c\x36\xcf\xe1\xb7\x37\xc0\xe1\xef\x0b\xb8\x78\x03\xfc\xfc\xbc\x0f\xe4\x11\xf7\xec\x96\x4f\xfc\x4b\x5c\x35\x26\xf1\x52\xe4\x05\x7c\x75\x74\x5c\x5a\x9e\x5c\xa8\xad\xdb\x67\x30\x61\xf2\xa5\xfa\x6e\xc3\xa7\x2e\x1d\xaa\xcb\x47\xc8\x58\x59\x6a\x57\x69\x98\xc8\xa1\x66\x82\x67\x9a\x12\xd8\x7e\x72\x5b\x35\x30\xe1\xb4\xf9\xaa\x22\xf3\xf1\x78\x95\x19\x95\x0c\x5b\x5c\x7a\x9f\xa7\x24\x0d\x82\xee\x35\x39\xf0\xd7\x9a\x1a\xa3\x52\xc9\xd0\xcb\x9d\x2b\xc4\xe7\x30\x2b\x28\xda\xda\x5d\x4c\xb7\x6e\xdc\xb6\xfb\xbd\x2b\x4e\xcb\xeb\xf4\xbd\x46\x75\x6d\xef\xdf\xdc\x4d\x74\x3b\x16\xc0\xea\xda\x16\x70\xff\x81\x96\xbb\x25\xbe\x46\x75\x28\x93\x12\x37\x9f\x43\x57\xd4\x40\xa3\x71\x35\xdb\x7f\x81\x1d\xa5\xb8\x76\xaf\x87\xc3\x6d\xb5\xc2\x42\x2a\x04\xcd\x76\x98\x86\xc1\x0b\xc9\x3d\x54\x4e\x4b\xc4\xe0\x32\x2f\xac\xbb\x45\xe7\xad\xcb\x40\x5b\x8f\xa5\x82\x59\x91\x8e\x0a\x72\x27\x38\x57\x5f\x26\xfa\xb2\xa9\x53\xf4\xc5\xe6\x1f\x48\x9b\x28\xf5\x0f\x75\x26\xd8\x75\xfb\x06\x6f\x13\xbf\xcf\x1f\xe4\xa3\xec\xf9\xea\x3f\x53\x69\xb4\x70\x07\x4a\x2d\xe0\xd4\x86\x3b\x34\x0e\x6e\x9c\xbf\xf1\xce\x56\x81\xa0\xf7\xaf\xc7\x18\xfe\x98\xde\xa6\xb6\x78\x81\x6a\x48\xce\x65\xe9\x7e\x6a\x2b\xfa\x46\xa3\x3a\xcf\xbd\x14\x76\xac\xe4\x39\x15\x72\x0d\x52\x0c\x63\xf5\x62\xed\xfb\x2a\xe9\x32\x86\xb8\x7a\x36\x40\x3e\x3e\x64\x47\x2c\xa4\x21\x6f\xff\x5d\x13\x01\xac\x4c\x20\x16\xb4\xc7\x25\x8b\x15\x2d\x8d\x12\xcf\xd7\x5f\x8b\x9e\xcf\x97\x5f\x3f\x38\x7f\xb9\x14\xf6\x9e\xd8\xd3\x09\x97\x10\x39\x00\x1f\xbf\xc8\x66\xe8\xa5\xf3\x48\xa7\xef\xf0\x7b\x1c\x75\xef\xd4\xb6\xbd\x84\x8a\x6b\x4d\xcf\x2d\x85\xdf\x1a\xae\x30\x07\xeb\x20\x7c\x1e\xa3\x7c\x8e\xa2\xa4\xed\x6e\x86\x27\x61\xb3\x2f\x27\xa7\xd2\x0f\x87\x10\xcc\x8a\x74\xa9\x6f\x44\x53\x1d\x7c\xde\xbd\xd6\xe7\xde\x65\x5b\x16\x56\x4c\xf3\xcc\x45\x21\x7d\x4b\x63\xfb\x22\x8f\x76\xd1\x20\x29\x06\xe5\xe8\xa9\xb4\x7b\xeb\x08\xde\xc6\xde\x22\x1e\x2d\xc9\x3f\x47\xf3\xf0\xd2\x1e\xd2\xdc\x4b\x13\x0a\xc6\x4b\xa2\x99\x86\xc7\xa9\xbe\x84\x93\xef\x0e\xcf\x71\x1e\x1c\x65\x7e\x3a\xf6\x2a\x45\x57\x35\x6f\xf2\x35\x8e\x55\x6a\x05\x8a\xbd\x40\xc7\x25\x66\x86\xe9\x7b\xc1\xbf\x35\xf8\xd2\xf2\x82\x93\xbc\x5e\x5e\x8f\x24\x6a\x8d\xa3\x57\xd6\x01\xae\xbb\x7c\x7f\x8c\xa4\xe3\x64\xf0\x58\x1c\xcb\xed\x45\x51\xc1\x9f\x16\x3f\xe6\x6b\xf4\x01\xc1\x1f\x6a\x7f\x38\x3e\x5c\xe0\xaf\xec\x26\x66\xa6\xaa\xcb\xbe\x7b\x2a\x20\xca\x39\x2b\x31\x33\xf3\x13\x3d\xef\x5a\xcb\xe1\x63\xca\x6e\x7a\xe8\x7b\x10\xb7\x7d\xda\x80\x90\x65\xf3\x53\xb8\x6b\x6a\xdb\x35\xb2\x3c\x27\x2f\x1d\x1c\x54\x68\x36\x32\xd7\xb0\x7a\x84\x75\x29\x57\xac\xec\x3b\x1a\x9d\xba\xf6\xb6\xcf\x69\x8b\x6e\xef\xe1\x8a\x99\x6c\x73\xdf\x77\x3e\x0e\x6a\x4e\xc0\x4e\x4e\xf3\xd3\x68\xaa\xc4\xce\x31\x0f\xd2\x35\x12\x53\xdb\x67\x53\x2e\x07\x43\xdf\xa6\x96\xdb\x21\x41\x27\xda\xf5\xaa\x6f\x9b\x72\x1b\x41\x5c\x33\x9d\xb1\xd2\x3f\x4b\x92\x27\xcd\xeb\xb8\x77\x2d\xb7\xe3\x4e\xd4\xfe\x7e\xb6\x0d\xad\x98\x78\x3c\xd2\x89\x72\xd4\xd4\xc5\x11\xc2\xa8\x27\x75\x80\x4f\x1b\x52\x8f\x4d\x2d\xa7\x6b\x49\x07\x32\xe8\xfe\xfa\xb0\x74\xef\x0b\xed\x63\x9d\x2b\x6b\xb5\x76\x41\xd4\xf6\x2c\x6f\x17\x35\xb6\x73\xef\xe9\x0f\xf5\xf3\x75\x65\x89\x1a\x89\xc8\xdd\xea\x1b\xa6\xef\xc7\xc1\xf0\xfa\x7a\x46\xbc\xe5\x16\xa2\xff\x7a\x46\xa3\xd1\x6d\x7a\x3c\xbc\x69\x87\x79\x78\x7f\x3d\x19\xfd\x2f\x00\x00\xff\xff\x19\x26\x6d\x6d\x40\x12\x00\x00") func templateBuilderCreateTmplBytes() ([]byte, error) { return bindataRead( @@ -167,7 +167,7 @@ func templateBuilderCreateTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/builder/create.tmpl", size: 4605, mode: os.FileMode(420), modTime: time.Unix(1, 0)} + info := bindataFileInfo{name: "template/builder/create.tmpl", size: 4672, mode: os.FileMode(420), modTime: time.Unix(1, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -212,7 +212,7 @@ func templateBuilderEntqlTmpl() (*asset, error) { return a, nil } -var _templateBuilderMutationTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xcc\x5c\x5b\x93\xdb\xb6\x92\x7e\x16\x7f\x45\x87\x35\xc9\x21\x67\x65\x2a\x39\x6f\xeb\xac\x1e\x7c\x3c\x49\x8e\xaa\x76\x3d\x5b\x3b\x93\x7d\x99\x72\x9d\xd0\x24\x24\x61\x87\x17\x85\x80\x34\x33\xa5\xe8\xbf\x6f\x75\x03\x20\x01\xde\x74\xf1\x38\xb1\xab\x62\x4b\x24\xd0\x68\x74\x7f\x7d\x43\x43\xd9\xef\x67\xd7\xde\xfb\x72\xf3\x52\xf1\xd5\x5a\xc2\xdf\xbf\xff\xe1\xdf\xdf\x6c\x2a\x26\x58\x21\xe1\xe7\x38\x61\x9f\xca\xf2\x11\x16\x45\x12\xc1\xbb\x2c\x03\x1a\x24\x00\xdf\x57\x3b\x96\x46\xde\xfd\x9a\x0b\x10\xe5\xb6\x4a\x18\x24\x65\xca\x80\x0b\xc8\x78\xc2\x0a\xc1\x52\xd8\x16\x29\xab\x40\xae\x19\xbc\xdb\xc4\xc9\x9a\xc1\xdf\xa3\xef\xcd\x5b\x58\x96\xdb\x22\xf5\x78\x41\xef\xff\x73\xf1\xfe\xa7\x0f\x77\x3f\xc1\x92\x67\x0c\xf4\xb3\xaa\x2c\x25\xa4\xbc\x62\x89\x2c\xab\x17\x28\x97\x20\xad\xc5\x64\xc5\x58\xe4\x5d\xcf\x0e\x07\xcf\xc3\x3d\xc0\xaa\x94\x2f\x1b\xf6\x16\x58\x21\x57\x65\xc4\xcb\x19\x2b\x24\xfe\x97\xcc\x56\xac\x88\x7e\xa9\xe2\xcd\x1a\xcc\x70\x48\xd9\x92\x17\x0c\xfc\x7c\x2b\x63\xc9\xcb\xc2\x07\xfd\xe2\x6a\xf3\xb8\x82\xb7\x73\xf8\x14\x0b\x06\x57\xd1\xfb\xb2\x58\xf2\x55\xf4\xdf\x71\xf2\x18\xaf\x18\x0e\xda\xef\x41\xb2\x7c\x93\xc5\x92\x81\xbf\x66\x71\xca\x2a\x1f\xae\x68\x3a\xcf\x37\x65\x25\x21\xf0\x26\x7e\x52\x16\x92\x3d\x4b\xdf\x9b\xf8\xcb\x9c\xfe\x11\x2f\x45\xe2\x7b\xde\x64\xbf\x7f\x03\x55\x5c\xac\x18\x5c\x15\xb8\xd0\x55\xf4\xa1\x4c\x99\x40\x02\x93\x89\x8f\x1c\x74\x17\x9d\xe1\xe3\xc2\x7a\xe0\x7b\x13\x22\xd4\x70\xa2\xd6\x9e\xa1\x08\x84\x8f\xa4\x91\x1e\x0e\x61\x45\x4a\xcc\x4d\x7c\x5b\x30\xbe\x17\x7a\x5e\x52\x16\x82\xd8\x9d\xcd\xe0\x76\xc3\x2a\x92\x04\x10\x89\xc8\x9b\xdc\x6e\xde\x57\x0c\x69\x03\xc0\x1c\xa5\x1a\x99\x27\xf8\xee\x86\x65\xcc\x7d\xa7\x9e\x34\xef\x6e\x0b\xd6\x7a\x77\x5b\xd0\xeb\x5f\x37\x69\x8b\xac\x7a\xd2\xbc\xb3\xa7\xd6\x4f\x3c\xe2\x13\x85\x55\xb3\x38\x2a\xcb\xfb\x97\x0d\x53\x72\xfb\x10\xe7\x28\x34\x98\x83\xef\x3c\xf0\x1d\x09\x85\xa4\xff\x01\x72\x04\x0d\x03\x16\x7a\x57\x44\xff\xa5\xbf\x6a\x6a\xde\x6c\x06\xce\xa8\xc3\x01\x2a\xa6\x4d\x49\x40\x5c\x40\xd9\xc8\x78\x1d\x4b\xa0\x81\x4c\x10\xd6\x5d\x46\x0b\x5a\x56\x9b\xc1\x0a\x91\x1b\x79\xb8\xe7\x0e\x7d\x21\xab\x6d\x22\x61\xef\x4d\x12\xc2\x8c\x37\x29\x37\x70\xbb\xf1\x26\xf2\x65\x83\x2f\x79\xb1\xc2\x3d\x22\xed\xc5\x4d\xf4\x8f\x2d\xcf\x52\x56\xfd\xcc\x59\x86\x3b\x86\xeb\xfa\x0d\xca\xaa\x46\x8c\x16\xc1\xb2\xb5\x4d\x9a\xa6\x65\x8b\x13\x97\xfd\xf4\x96\x0d\x31\xa2\xc6\x97\x10\x17\xa9\x79\x1e\x7d\xd8\xe6\xac\xe2\x09\x7e\x7f\x5f\x16\x3b\x56\x49\x96\xde\x97\xff\x88\x05\x4f\xd4\x9c\x49\x9c\xa6\x67\x90\xd7\xca\x73\x3e\x27\x19\x8b\x2b\x96\x6a\x86\xf3\x78\xf3\xa0\x44\xf1\x51\x89\x6b\xef\xee\x93\xe9\x7d\xfe\x94\xae\x98\x70\xf8\xbe\x62\xd1\xaf\x05\xff\x7d\xab\x97\xa3\x5d\xb3\x7e\xb6\x98\xda\x9d\x2d\x4a\xc5\x52\x26\xc6\x67\x23\x77\xbd\x04\x2c\x66\x27\x93\x8a\xe5\xe5\x8e\xa5\x9f\x41\xc2\x96\x8f\x11\x50\x3f\xb9\x4f\x65\x99\xb9\xf2\x4c\xcb\x82\xe9\xc7\x65\x96\xfe\x6f\x9c\x6d\x19\x2c\xb7\x45\x12\x68\x2f\x87\x9a\xc4\x7f\x43\x08\xae\x1d\x20\x4f\x81\x55\x55\x59\x85\xde\x64\x53\xb1\x94\x27\x04\xf7\x87\x8f\xf5\x97\xc8\x19\xed\x1d\x3c\x6f\x17\x57\xf0\x2f\xb2\x7c\x03\x3b\x98\x6b\xaa\x16\xee\xc3\xa0\xe0\x59\xe8\x1a\xe5\xed\xc6\x98\xe6\xa6\xe2\x85\x84\x20\x89\x73\x96\x19\xf2\x21\xf8\x6a\x80\xdf\x63\xa9\x7a\xea\xe1\x00\x71\x96\x95\x4f\x08\x99\x22\x5e\xb1\x1c\x43\x20\x45\x1d\x06\xf5\xe2\xca\xce\xb6\xda\x8e\xb7\x82\x17\x2b\x92\x05\x7e\x8d\x33\x28\x89\x94\xe8\x31\xd7\x66\x11\x12\x5d\x67\x4b\x1e\x72\x55\xb0\xa7\xb6\x89\x27\xe4\x72\x05\xbe\x6a\xb8\x58\x96\x55\x8f\xdb\x60\x85\xe4\xf2\x25\xf2\x70\x81\x1e\x52\x41\xa2\xb9\x9f\x02\x79\x09\xfc\x47\x0a\x88\xa2\xa8\x97\xcf\x10\xda\x3c\xa2\x9f\xc9\x51\xc2\xdf\xb5\x5e\xec\x11\x53\x44\xfa\x2d\xe8\x3f\xc9\xd4\x9b\x4c\xca\x4d\xfd\x1d\xff\x94\x1b\x7c\x28\x5f\x9c\xa7\x1d\x37\x3d\x6d\x00\xaa\x2c\xf8\x2d\xe4\xf1\x23\x0b\x7a\xec\x38\x9c\x7a\x93\x83\x37\x41\x69\xfc\x8b\x76\x83\xcc\x29\xb3\xa6\xad\xed\x89\x07\x19\xe4\x21\x8d\xab\x98\xdc\x56\x05\xe4\x9e\xf6\xe7\x7a\x82\xc2\x8b\xff\xc4\xe5\xda\xaf\xf9\xf0\x17\x37\x36\x54\x70\x28\xfa\x5b\x26\x95\xbf\x5e\xdc\xc0\x92\x0c\xa6\x85\x0f\x2d\xfc\x66\x4a\xc0\x53\x68\xbb\xd9\x70\x00\x18\xfb\x9a\x45\x82\x48\xde\x51\x40\x48\x3b\x42\x1b\x09\xd0\x2b\xb0\xaa\x52\x06\x86\x5f\xca\x22\x61\x80\x49\x46\x74\x5b\x24\x0c\x9f\xec\xc8\x50\x5d\x8b\xf4\x26\x93\xd0\x9b\x4c\xf2\xa8\x36\xe4\xb9\x36\x65\xf9\x0c\xa7\x9a\x33\x71\x41\x0b\x46\x37\x65\x40\xd3\xf5\xb3\x09\x5f\x42\x1e\x91\xbf\x50\xdf\x89\xc7\x39\x2c\x73\x19\xfd\x84\x73\x97\x81\xff\xfb\x96\x55\x2f\x68\x36\x65\x96\x02\xf1\x28\x60\x53\x0a\xd9\xa0\x9b\x0b\x28\x4a\xa9\x8c\x91\xa5\x7e\x48\x94\x0e\xca\x97\x6a\xb2\x34\x8f\xf8\x81\x39\xe4\xd1\xfb\x8c\xb3\x42\x06\xa1\xeb\x50\xa2\x5f\x98\xc4\x8d\x4d\x81\xa7\x9a\x08\xfe\x7d\x08\x95\x4b\x25\x49\x37\x84\x3c\xf5\x3a\x8f\x06\xe3\xe5\x1c\xbe\xe3\x29\x22\xc9\xc2\xcf\x00\x7c\x86\x91\x83\xbb\x76\xcd\xf6\x28\x84\x30\x1d\x68\xe9\xf1\x33\x21\xd4\xa3\xff\xb3\x74\xaf\xd7\x40\xc6\xa6\x50\xf0\xec\x24\xd9\xe1\xe8\x68\x71\xa3\x05\x38\x9b\x81\xd2\x1a\x28\x62\x02\x62\xf2\x71\xbf\xa1\xf3\x57\x6f\x7e\x83\x65\x55\xe6\xae\x70\x60\xd1\x72\xc8\x4f\xb1\x40\x5a\xec\x99\x25\x5b\xc9\x52\xcc\x9a\x62\x90\x55\x5c\x88\x98\x9c\x32\x04\x48\xf0\xfe\x39\x9c\xba\xcf\xe3\x0c\x12\xb5\x3e\x17\x9a\x05\xac\x67\x48\xf6\x41\xde\xce\xb4\x42\x30\x10\x83\x6b\xcd\x36\x26\x5d\xea\x13\x7a\x44\xf5\x70\x6f\xbc\x60\x1e\xa9\x4f\x07\x33\x28\xe2\x05\x97\x41\x58\xab\x47\x3d\xd5\x82\xb8\x7f\x6e\x84\x50\x28\x09\xdc\x3f\xff\x46\x5e\xde\xf0\x20\x54\xce\xf8\xc4\x2a\xe6\xec\xd5\xda\x91\xf8\x11\x69\x71\x69\xd3\x22\xa5\x41\x29\xd7\xac\x7a\xe2\x82\x8d\xec\xef\xfe\x39\x40\xa5\xdf\x3f\xdb\x9a\xe6\x4b\x98\xa0\x67\x7d\xc4\x3d\xe6\x51\x5a\xf1\x1d\xab\xa2\xe0\x5a\x3e\xdf\xd0\xc7\xf0\x47\xf8\xa6\x7c\x24\x4c\x18\x48\xf0\x6c\xea\x98\xbb\xa9\xa9\x0e\x87\xb7\x1d\x0b\xaf\xb6\x45\x81\x9e\xa0\xad\x33\x5f\xf9\x6b\xf9\x4c\xa2\xbd\x7f\xee\x13\xab\x7c\x6e\x8b\x14\x0d\x1d\xb1\x48\xd6\xa9\x12\x38\x82\xe2\xaf\x82\x55\x37\x54\xef\xa9\x74\x66\x36\x83\x3b\x26\x17\x37\x8d\x4d\x2a\x4f\xa9\xed\x90\xa7\xca\xb5\x47\xf0\xa1\x94\x4c\x89\x1d\x0b\x4f\x9a\xd8\xa4\xf0\x5c\x40\x59\x64\x2f\x10\x27\x09\xdb\xa0\x32\x30\x39\xc0\x58\x8d\x2f\xcb\x65\x5f\x68\xe6\x54\xb4\x18\x0d\x74\x2d\x93\xb8\x1a\x08\x18\x27\x7a\x26\xbb\xe2\x9b\xcd\x30\x4c\x19\x30\xe8\xa8\xa5\xb6\xaa\x4b\x8b\xc6\xaa\xec\xad\xe2\x38\x42\x92\xd9\xe1\x2e\xe6\x59\xfc\x09\x0b\xf3\x25\xc2\xeb\x29\x16\xb0\xa9\xca\x1d\x4f\x59\x0a\xb2\xa4\x19\x9f\x14\x43\x0d\xbe\xba\xbb\x5b\xdc\x20\xc0\x7a\x76\x37\x05\xf6\xcc\x85\x14\x94\x62\x1a\xd8\x8d\x6d\x76\x8e\x6a\xb6\x40\x67\x07\xf7\xeb\xe1\x89\x53\x90\xd5\x96\x69\xe7\xdd\x2a\x72\xac\xe2\x06\xa7\xab\xca\xb8\xce\x0d\xac\xda\xdb\x8f\x7c\x5d\xbb\x08\x19\x17\xb2\x9e\xb1\xa1\xd4\x83\x25\x0c\xcd\xa2\xae\x76\xee\x28\x5f\xc1\x0c\x69\x8f\xc2\x63\xbf\xe3\x40\x3f\xf7\xc9\x55\xd3\xac\x39\xf8\xa4\x12\xf3\xa8\xa9\x67\xe0\x8a\x64\x89\xfc\x2d\xeb\x6c\xf8\x8e\x49\x83\xe1\x7a\x84\x1d\x5d\x7c\x55\x23\x99\x02\x57\x23\x79\x0c\x74\x16\x99\x40\xb1\xa4\x79\x5b\xf6\xa1\xaf\x5b\x95\xe9\x6c\x70\xd3\xd4\x3c\xb3\x6b\xe4\x47\xe2\xc6\x0b\x5d\xed\x51\x36\x5c\xee\x58\x55\xf1\x94\xc1\xa6\x62\x3b\x5e\x6e\x05\x24\x71\x96\x09\x84\xd0\xbb\x34\x8d\xd4\xe1\xcc\xd9\x45\x63\x80\x8e\xe4\x6a\x19\x2d\x04\x16\x70\xc4\x56\xa8\x2b\xae\x3c\x1a\xac\x25\xe7\x3a\x6a\xd9\x65\xce\xc1\x6b\xe4\x5a\x0b\xfc\x17\x12\xb8\x63\x45\x8e\xb7\xe8\x15\x78\xc7\xbe\x8e\x2a\xa0\xb5\x1e\x5a\x4a\xe5\x6a\xa1\x6b\x25\x93\x9d\xf2\xca\xbd\x3b\xf4\x28\x17\xdb\xd9\xc6\x52\x5b\x0b\xc5\x6a\x63\x2f\x3b\x6d\x16\x83\xdb\xbf\x55\x12\xb3\x25\x80\x39\x4c\xef\xc6\xff\x26\x5c\xe9\xf4\xd7\x27\xb8\xcc\xa2\x6f\x40\xf9\xe9\xff\x58\x42\x0e\xa6\xf8\x9b\x1c\xf2\x31\x53\xc5\x82\x1a\xca\x05\x2c\x99\x4c\xd6\x2c\x6d\x72\x85\x34\x96\xf1\xa7\x18\x83\x1d\x2e\xf4\xce\x04\x41\x2b\xcc\x23\xbe\x9c\x24\xc2\x71\xeb\x08\xa8\xfa\xd4\x69\x0a\xba\xd4\x32\x54\x81\xf2\x57\x58\xc6\x3c\x1b\xf7\xe6\x03\x82\x1c\xc8\xb4\x77\xa0\x5c\x04\x8a\x94\x67\xe4\x6e\x55\x7e\x76\x38\x5c\xd7\x6e\xa1\x0d\x08\x93\xff\x2b\x38\xf0\x25\x7c\x93\x47\xe5\x26\x5a\x88\xc0\x3a\x37\x73\x53\xb6\x5d\x37\x3a\xf7\x69\xbb\xf6\xfd\x2a\x07\xc7\xe0\xd6\x1c\xcd\xd5\xd2\x12\x94\x9b\x6b\xac\x1d\xf7\xd8\x7f\xfc\x01\x76\xe2\xd9\x41\xe6\xa9\xcc\x55\xec\xf7\x2d\xaf\x18\x25\x38\x75\x21\xd6\x32\xb9\x9a\x33\xb3\x9e\x12\x17\x19\x8c\x79\x84\xaa\x08\x15\xf3\xf8\xee\x9b\xa3\x0c\x75\x4b\x17\xca\xd1\x06\xf8\x7c\x0b\xdf\x3e\xf9\xb4\x6c\xe8\xda\x9c\x59\x5f\x5b\xee\x1d\x55\xb3\x4d\x94\x22\xcf\x74\xa0\xa3\xe2\xd7\x71\x84\x76\x2c\xd1\xd5\xca\xbb\x34\xf5\xbb\x6b\x7b\x93\x76\x60\x89\xd3\x54\x40\x1d\x16\xb4\x21\x0e\x05\x99\x57\x88\x32\x0a\x48\x83\x6e\xdb\x56\xd1\xe4\x7a\x64\xe0\xbf\xcd\xc1\x8a\x4a\x6e\xf1\x38\x1a\x16\xbe\x73\xa6\x91\xde\x94\x54\xde\xa5\x29\x4b\xfb\x14\xd6\x13\x1b\x54\xaa\x1e\x0b\x14\x5f\xe3\xbf\x46\x42\x05\x17\x76\xac\x18\x91\xe3\x20\x17\xa7\x45\x0c\x13\x32\x86\x04\xa0\x35\xe0\x86\x8d\x26\x6e\x4c\x0e\x96\x6d\x34\x91\x63\xa2\xf2\x95\xba\xd3\x50\x7b\x32\x55\x97\xc6\x59\x17\x86\x96\xbd\xbc\xcf\x58\x5c\xf5\x82\x8f\x4e\x81\x4e\x8d\xb9\xa7\xe3\x4f\x8b\x62\x38\xa1\x51\xa9\xc1\x2b\x26\x22\xa7\x64\x22\xee\x09\xed\x24\x8f\x9c\x33\xb0\x87\x26\x2b\x3d\x1c\x3e\xc2\x1c\xcc\x11\xd8\xbe\xc6\x68\xbd\xc5\xae\x74\x59\xbf\x71\x1b\xe0\xf2\xb1\x54\x06\x61\xac\x59\x39\x13\xab\xae\xcc\x11\x84\x4a\xf0\x56\x41\x39\xb2\x47\x0b\x69\xe5\x63\x2f\xc6\x7a\x76\xfb\x3f\x4c\xf4\x27\xc8\x15\xa3\x14\x39\xce\x32\x48\xd6\x98\xfa\x8b\x63\xce\xec\x1c\x2c\x1d\x83\xd2\x5f\x96\xd2\xd6\x9d\x8c\xb6\x2d\x4e\x52\xea\xc8\x05\x2d\x15\x4c\xc1\xd6\x41\xd8\x49\x90\x2d\x0d\x58\x45\x54\xb7\x83\xa2\x0e\xaf\xf0\xb1\x1f\x63\xa4\x51\xa9\x0b\x4f\xc5\xcf\xc6\xfe\x59\xad\xb3\x77\x69\x5a\x17\x48\x76\xc7\x45\xd3\x98\x83\x2f\x98\x6c\x93\x70\x28\xa8\xa2\xc8\x29\x9e\x66\xd7\xf0\x7e\xcd\x92\x47\x85\x6d\x2e\xa8\x22\x61\x95\x72\xca\x59\xc5\xe2\xf4\x45\xf7\x80\x53\xf8\xf4\x42\x40\x20\xc5\xbf\x51\xe3\x04\x04\x2c\x5a\x45\xc0\xd2\x15\x7b\xa3\xed\x80\xcb\x35\x8d\x13\x88\x94\x22\xce\x59\x68\x4a\x16\x64\x0c\x5f\xdf\x31\x89\xe9\xfb\xdb\x39\xa5\x90\x57\x2c\xfa\x67\x2c\x48\xae\x77\x6a\x71\x3d\x16\xf7\x69\x0d\xb7\x2d\xd3\x6c\x4f\x07\xc7\x12\x03\x91\x55\xd8\xb1\x06\xa6\xc8\x99\x81\xb0\xd5\xfc\x71\x53\x6d\xdc\x1a\x4f\xd5\x92\x9a\xa5\x5a\xbc\xa2\x96\xd7\x71\x2b\x6e\xd8\x0a\xba\x7a\xa2\x05\x74\x9f\x8b\xa7\xa6\x9f\xa0\x48\xdb\xac\xb5\x8f\x33\x86\xba\x6c\xda\x9a\xba\x8d\x29\x7d\xc8\xd1\x69\xac\x35\xc9\x67\xcf\x1c\x3b\x8e\x8d\x50\xae\x3b\x0c\xbd\x0c\x37\x0d\x87\xe6\x14\x99\xba\x0e\xbc\x69\x38\xe0\xd6\xc7\x97\x79\xe0\xa9\x78\xe0\x1f\x3b\xde\x5b\x13\x74\xec\x76\xc8\xdb\xb9\xa6\xd3\x84\xce\xe1\xc8\x79\x11\x70\xce\xf6\x7f\xa3\x1d\xc5\xb9\x55\x61\xda\x7e\x9b\xf5\x46\xa9\x8e\xe7\xde\x94\x95\x74\x83\xd4\xd9\x76\x60\x05\xb1\x33\xb6\x56\x87\x2c\x1d\x87\xf6\x7b\xe5\x05\xae\x58\x64\xf6\xa6\xcc\xc1\x76\xae\xa4\xfc\x9e\x8d\x05\x21\xd6\x3f\x76\x29\xa7\x3e\x8c\xcb\xce\x2e\x04\xda\x16\xac\x63\x3e\xb9\x59\xac\xd2\x2a\x08\x28\xbb\x5f\x82\xff\x6d\xf4\x83\xf0\x1d\x61\x84\x8e\x9f\x61\x56\xc4\xcc\xcb\x1d\x53\x82\xc6\x4f\x9f\xe9\x6d\x16\x37\xe2\xb8\x3b\xe9\x59\x3d\x68\x3c\xc7\xa0\xbf\x20\x33\x1f\xed\x84\x3b\xd6\x7e\x6c\xec\x59\x36\x7f\x18\x77\x58\x63\x2b\x3d\xf0\xb4\x6b\xf2\x6d\x17\x36\xe6\x4c\x8e\x10\x3f\xc3\xa7\xf4\xd7\x82\x4a\x09\x29\xe1\xe5\x58\x3d\x68\xd7\x3a\x9a\x2f\xd4\xb9\x93\x99\x5f\xe0\x6c\x4e\x33\xc9\xc5\x8d\x50\x47\xc8\x02\x1e\x3e\x8e\x21\x85\xa4\x99\x36\xe2\x3c\x02\x05\xdd\xba\x4c\x05\xcc\x21\xde\x6c\x58\x91\xe2\x1a\x75\xd7\xf0\xd0\x3e\x3b\x33\xf1\xce\xa4\x74\x35\x1e\x86\xc2\x7a\x5b\xae\xad\x63\xf9\x5e\xa9\x2d\x6e\x7a\x4e\x11\x8f\x1a\x56\x7b\x1d\xeb\xc8\xbd\x23\xac\xbe\xfa\x70\x24\x94\x7e\xd3\x2d\x09\xcd\x69\x7b\x67\x70\x5d\x19\xf6\x0b\xcf\x84\xb5\x41\xf1\x88\x53\xe4\x23\xba\x02\x02\x18\x30\x52\xba\x39\x66\x5a\x1c\x38\x35\xce\x9e\xe2\x97\x66\x99\x8c\x15\xc1\xe2\x46\x84\xf0\x1f\x73\xf8\x81\x0e\x75\xb6\x6a\x36\xae\x25\xa6\xa4\xe7\x97\x72\x0b\x62\x5d\x6e\xb3\x14\xb6\x82\x8d\x6a\x97\x17\x42\xb2\x38\x8d\x60\x21\x8d\x90\xe9\x38\x8d\x80\x59\x48\x56\x61\xac\xd8\x8a\x78\xc5\x4c\xf6\xa9\x0f\x37\xcd\xad\x36\x63\xb4\xe7\xea\xfb\x14\x03\x01\x18\x14\x13\xea\x5f\x19\xce\x80\x62\x7f\xc4\xd7\x0e\x12\xba\x66\x73\x6d\xd9\x4d\xcb\xcf\x75\x0d\xf3\x62\x8b\xd4\x52\x3a\x1c\x9c\x36\xd0\x60\x86\x71\x69\x65\xd8\x82\xdd\x45\x85\x61\x5f\xf0\x51\xb5\xda\xd1\xc4\x69\x19\x67\x04\x35\xad\xae\x9e\x14\xe0\x78\x9c\xeb\xeb\x74\xd8\x85\x1c\xdd\xfe\x74\xcf\xf7\xeb\xe3\x70\xac\x73\xc6\x9a\x7a\xb7\x9b\x00\xff\xb2\xee\x1d\xe4\x51\xb9\x31\x6d\x6d\xc4\x9c\x4d\xb7\x30\x97\x37\xeb\xcb\xbc\x35\xb1\xc0\xe9\x04\x84\x63\x6b\x22\xd9\x20\xd4\xd7\x1b\x9d\x95\xe5\x8b\x59\x5a\xf7\xf3\xea\x4e\x78\x96\xa9\xfa\xce\x6e\xa3\x2b\x75\xa7\x90\x6e\x89\x90\x7b\xb2\x61\xb9\x0b\x5e\x20\xc5\xb2\xa2\xbb\xcc\x25\xac\x18\x5d\x4d\xa9\x7b\x5b\x1d\xba\xbc\x48\x2a\xba\x3c\xc6\xd2\x59\xca\xea\xcf\x53\x6a\x77\x79\xe6\x28\x51\x71\x18\x8c\xee\xd4\x8c\x81\x87\x8f\xcd\x6e\xf5\x7a\x6f\x75\x02\x63\x5e\x4d\xe1\x7b\xaa\xde\x33\x56\x38\x0d\xcd\xb0\xf7\x52\xa7\x7b\x99\xf3\xcd\xb9\x1d\xcf\x26\x4e\x8c\x9f\xd1\x6a\x5e\x6b\x23\x5e\x0e\x9c\x32\xb4\x2e\x70\x9a\x2b\x2c\x34\xda\xd6\x68\x7f\x1f\x2e\x86\x56\x89\xbe\xe2\x3b\xa6\xb1\x0b\xf7\x58\xb2\xb3\xa4\x2c\x52\x8a\x73\x2c\x26\x6d\xda\xb7\x7f\x80\x17\xe6\x6e\x62\xdd\xec\xb7\x0e\xbf\xd0\xe6\x04\x93\xd4\x08\x32\xdf\xcd\xd1\x81\x0a\x40\x48\x50\x24\x6b\x96\xc7\x47\x95\x19\x20\x53\x1a\xba\xa1\xba\x9a\xa2\xbb\x13\x75\x10\x46\x41\xa8\x32\xc3\x55\x93\x78\xe2\x32\x59\xd3\xae\x48\xb8\x47\xb4\x7a\x91\x5a\x27\x49\x2c\x98\xa3\x9d\xb7\x76\xb8\xaf\x75\xde\xee\x56\xb6\x8f\x9d\xfa\xf5\xa9\xee\x86\x90\x47\x33\x7e\x27\x4b\xbb\x7a\x6d\x9a\x2b\x3a\xab\x54\xba\xe8\xf6\xf7\xec\xde\x5e\xa3\xd4\xcb\xda\x7b\xaa\xab\xa7\x3c\x3f\xd2\xaa\xdb\x7d\xcb\x98\x67\xf6\xc5\xa0\x1e\x1f\xa8\x37\xd1\xd7\xd9\x9b\xc2\xa0\xc2\x9b\xce\xdd\xa5\x1a\x8f\xfe\x5c\x4d\x37\xfd\xcb\xb3\xf4\x6d\xf5\xcf\xb6\xc5\x63\x51\x3e\x15\xad\xae\xaf\x52\xef\xb7\xc2\x57\xc2\x0a\xb5\xc1\xdf\x31\x9d\xd7\x74\xaf\xe9\x8c\x1a\xfc\xa2\xe7\x02\x14\x5f\x22\xc5\x06\x4b\xbc\xcf\x8c\xb5\x0d\x13\x24\x34\x82\x28\x56\xe5\x5c\xe4\xb1\xea\x31\xd7\x14\x88\x1c\xa6\x56\x23\xb8\x30\x1b\xb0\x6d\x7e\xaa\x37\x51\xe3\x20\xd4\x1c\xee\xbd\xb6\xba\xbf\x80\xd7\xee\xd7\xf9\xce\x9c\xc7\x13\x6b\x51\xe0\xb6\xe5\x74\x56\x68\xae\x79\xd5\x08\x71\xf5\xca\x9e\x37\x2c\x91\x28\x21\x9c\xf6\xed\x3d\x65\xba\x96\x62\xf5\x35\x4b\xa5\x5f\x53\x16\xe4\xd1\x1d\x93\xbd\xcd\xac\x9d\x7d\x45\x93\xf2\x17\x37\x7d\xe9\x67\xe2\x0c\x70\x59\x21\xd8\x49\x12\xce\x0d\xea\x3a\x79\x50\xe8\x72\x3a\x23\x47\x7a\x78\xbd\xa1\xbd\xb9\xb6\xf6\xcf\x58\x98\x0e\x01\x69\x6e\x17\x57\x86\x27\x33\xe1\xc4\x10\xf0\x4a\x1d\xac\x8b\x7c\xcc\x39\xdd\xdc\x93\x73\x85\xbe\xa3\x0d\xe7\x8b\x9b\x3d\xb4\x4a\x90\x01\x4c\xb5\x51\xe1\xa6\xad\x5a\x66\xad\xe6\xee\x10\x24\xca\xc2\x38\x28\xa4\x79\x62\x52\x72\x62\x46\x42\x14\x4f\x4a\x4a\x4e\xc8\x48\x9a\xed\x9e\x98\x96\xf4\x63\xf3\x92\xc4\xe4\x2f\x45\xe5\x40\xe8\x6b\xea\x88\x91\x2e\xfb\x38\xf4\x4e\xc9\x7b\x14\xce\x14\x45\xba\x5e\x61\xdd\x1b\x28\xad\x18\xf5\x75\x07\x37\xb3\x85\x53\x83\xdb\x6b\x66\xb5\x5f\x25\x78\x8e\x47\xd1\x56\x1c\x7d\xa5\x48\x6a\xda\x51\x13\x82\xed\x48\x34\x75\x7d\xdf\xf9\x28\x3e\x1e\x6b\x9d\xe0\xd9\x8d\xb9\xef\x9d\x9f\xe5\xb9\x51\x57\xdd\x78\xeb\xa9\xd1\x75\xff\xc4\xaa\xd1\x91\xd4\x29\x61\xd6\x59\x6e\x2c\xd0\xba\x9d\xf1\xcf\x8a\xb4\xdd\x3e\xfb\xe7\x04\x4e\x5a\x41\x6f\x23\x70\xc2\xe0\x57\x14\x33\x6d\x26\xad\x9f\x72\x98\xb0\xa6\x23\x19\xdd\xf2\x1f\x4d\xdc\xcd\x0f\x39\x86\xef\x9a\x1c\x29\xad\x8d\xa0\x9c\x50\x66\x5a\x78\x83\x77\x4e\x70\xf4\x47\xcf\xba\x69\x62\x61\x55\x19\xd0\xd0\x2d\xa4\x53\xbd\x34\xfd\x3a\x45\x3b\xea\x13\xbd\xf4\x51\x58\xf7\x04\x6d\xc7\xd3\x0e\x60\xfb\x42\x67\xfb\x6a\xa8\x1e\xf2\x9d\x79\x44\xbb\x1a\x8e\xb8\x7f\x86\xef\xb2\x5d\x50\xcb\x79\xa1\x0a\xe9\x00\xd9\xe4\x86\x9d\x23\xe3\x56\x27\xa2\xfe\x81\xe6\x30\x48\xe8\xe7\x19\xbd\xd1\xfc\x15\x40\xd2\x30\x3b\x02\x92\xaf\xed\x90\xa9\x7d\xe4\x60\x8e\xec\x35\x04\x1c\x04\xbc\x8a\xce\xc7\x6a\x43\x75\x97\xc9\x0e\x52\xd4\x75\xc2\x71\x76\x7c\x12\x4c\xce\xd4\x25\xcf\x73\xfc\x55\xb3\x42\x2b\x2e\x51\xb7\xe9\xd8\xd1\xae\xb9\x66\x15\x1e\xfb\x19\xfb\x89\xcd\xbc\x53\x74\xc8\xda\x3a\x54\x9c\xd6\x81\x47\xb7\xc9\x4e\x3b\xd7\xa5\xc1\xb6\xb0\xed\x86\x1f\x8a\x1a\xbf\x07\xb2\x54\xbf\x5b\x53\xff\x37\x84\xd0\x12\xba\x12\xb8\x31\x31\x65\x53\x48\x93\x7e\x41\x8d\xba\x3d\x5b\x17\x8b\x1b\xe1\x1a\xca\xc3\xc7\x3a\x89\x6d\x9b\x8b\x25\xe0\x11\x6b\xe9\x51\xc7\x65\x82\x1e\x30\x96\xa1\xbb\x08\x17\x74\xf0\x6a\xd3\xb2\x36\xbd\xbf\xe6\xe9\xc1\x4e\x2f\xdb\x17\x16\xa8\x39\xd7\x00\xd5\xaa\x18\xbf\x9f\x52\x37\x75\x60\xf9\x50\xfb\xf3\xf3\x3a\x81\x23\xbd\xc0\x3a\xff\xd5\x9b\xe0\x98\xbf\x5c\x56\xa4\x69\x48\xea\xfb\x10\x27\x7a\x00\x73\x0b\xe2\x1c\xcc\xd9\x2b\x7c\x51\x0f\x30\xd2\x36\x3c\x7e\x9b\xc6\x01\xc9\x45\xd8\x3d\xd1\x4b\x4c\xda\x2a\x3a\xe2\x33\xb4\xf8\xce\xf4\x1a\x46\x51\xc6\x6f\x90\x36\xd1\xa8\x4d\xf5\x6c\xe5\xa2\x17\x28\xf3\xcf\x73\x21\x03\x0a\xbd\x50\x45\x43\x39\xd9\x71\xfb\x1e\x03\xcf\xb0\x99\x9f\x70\x13\xe7\x7c\x6b\xbf\xdc\xd8\x75\xd5\x70\xa2\xb1\x5f\x52\x9c\xd8\x2b\x7c\xf9\x70\x3f\x7a\x9f\xe0\xaf\x0f\xf7\xc8\xee\x70\xb1\xf8\xb4\xe6\xc9\xda\x3a\xfc\xd4\xb9\x70\x6d\xa9\x2d\x33\x35\x87\xa1\x97\x68\xc5\x62\xa4\xbf\x62\xfc\xfa\x42\x7e\x7d\x3c\x39\x7e\x61\xf4\xa4\xdc\xd8\x3a\x8c\x24\x29\x20\xcf\x83\x95\xee\x90\xfc\x7b\x8f\x23\xe9\x97\xe3\x4b\x65\x33\x34\xf1\xb3\x0a\x5d\xe4\xeb\x84\x12\xe6\xb3\x1d\xea\x17\x76\xa6\x26\xbb\x69\x5f\xdc\xfe\xb3\xaa\x5b\xeb\x32\x5b\xb7\xde\xa1\x3a\x8b\x00\x30\x7c\x17\x6a\x08\x02\x3d\x36\x37\x5e\xd7\x7e\x16\x24\x6a\x4e\xbf\x38\x24\x5e\xcb\x66\xdb\x8a\xff\xe2\x35\x6d\x57\xc5\xd6\x55\xaf\xe6\xe3\xff\x07\x00\x00\xff\xff\x66\xd7\x76\x92\xf6\x51\x00\x00") +var _templateBuilderMutationTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xcc\x5c\x5b\x93\xdb\xb6\x92\x7e\x16\x7f\x45\x87\x35\xc9\x21\x67\x65\x2a\x39\x6f\xeb\xac\x1e\x7c\x3c\x49\x8e\xaa\x76\x3d\x5b\x3b\x93\x7d\x99\x72\x9d\xd0\x24\x24\x61\x87\x17\x85\x80\x34\x33\xa5\xe8\xbf\x6f\x75\x03\x20\x01\xde\x74\xf1\x38\xb1\xab\x62\x4b\x24\xd0\x68\x74\x7f\x7d\x43\x43\xd9\xef\x67\xd7\xde\xfb\x72\xf3\x52\xf1\xd5\x5a\xc2\xdf\xbf\xff\xe1\xdf\xdf\x6c\x2a\x26\x58\x21\xe1\xe7\x38\x61\x9f\xca\xf2\x11\x16\x45\x12\xc1\xbb\x2c\x03\x1a\x24\x00\xdf\x57\x3b\x96\x46\xde\xfd\x9a\x0b\x10\xe5\xb6\x4a\x18\x24\x65\xca\x80\x0b\xc8\x78\xc2\x0a\xc1\x52\xd8\x16\x29\xab\x40\xae\x19\xbc\xdb\xc4\xc9\x9a\xc1\xdf\xa3\xef\xcd\x5b\x58\x96\xdb\x22\xf5\x78\x41\xef\xff\x73\xf1\xfe\xa7\x0f\x77\x3f\xc1\x92\x67\x0c\xf4\xb3\xaa\x2c\x25\xa4\xbc\x62\x89\x2c\xab\x17\x28\x97\x20\xad\xc5\x64\xc5\x58\xe4\x5d\xcf\x0e\x07\xcf\xc3\x3d\xc0\xaa\x94\x2f\x1b\xf6\x16\x58\x21\x57\x65\xc4\xcb\x19\x2b\x24\xfe\x97\xcc\x56\xac\x88\x7e\xa9\xe2\xcd\x1a\xcc\x70\x48\xd9\x92\x17\x0c\xfc\x7c\x2b\x63\xc9\xcb\xc2\x07\xfd\xe2\x6a\xf3\xb8\x82\xb7\x73\xf8\x14\x0b\x06\x57\xd1\xfb\xb2\x58\xf2\x55\xf4\xdf\x71\xf2\x18\xaf\x18\x0e\xda\xef\x41\xb2\x7c\x93\xc5\x92\x81\xbf\x66\x71\xca\x2a\x1f\xae\x68\x3a\xcf\x37\x65\x25\x21\xf0\x26\x7e\x52\x16\x92\x3d\x4b\xdf\x9b\xf8\xcb\x9c\xfe\x11\x2f\x45\xe2\x7b\xde\x64\xbf\x7f\x03\x55\x5c\xac\x18\x5c\x15\xb8\xd0\x55\xf4\xa1\x4c\x99\x40\x02\x93\x89\x8f\x1c\x74\x17\x9d\xe1\xe3\xc2\x7a\xe0\x7b\x13\x22\xd4\x70\xa2\xd6\x9e\xa1\x08\x84\x8f\xa4\x91\x1e\x0e\x61\x45\x4a\xcc\x4d\x7c\x5b\x30\xbe\x17\x7a\x5e\x52\x16\x82\xd8\x9d\xcd\xe0\x76\xc3\x2a\x92\x04\x10\x89\xc8\x9b\xdc\x6e\xde\x57\x0c\x69\x03\xc0\x1c\xa5\x1a\x99\x27\xf8\xee\x86\x65\xcc\x7d\xa7\x9e\x34\xef\x6e\x0b\xd6\x7a\x77\x5b\xd0\xeb\x5f\x37\x69\x8b\xac\x7a\xd2\xbc\xb3\xa7\xd6\x4f\x3c\xe2\x13\x85\x55\xb3\x38\x2a\xcb\xfb\x97\x0d\x53\x72\xfb\x10\xe7\x28\x34\x98\x83\xef\x3c\xf0\x1d\x09\x85\xa4\xff\x01\x72\x04\x0d\x03\x16\x7a\x57\x44\xff\xa5\xbf\x6a\x6a\xde\x6c\x06\xce\xa8\xc3\x01\x2a\xa6\x4d\x49\x40\x5c\x40\xd9\xc8\x78\x1d\x4b\xa0\x81\x4c\x10\xd6\x5d\x46\x0b\x5a\x56\x9b\xc1\x0a\x91\x1b\x79\xb8\xe7\x0e\x7d\x21\xab\x6d\x22\x61\xef\x4d\x12\xc2\x8c\x37\x29\x37\x70\xbb\xf1\x26\xf2\x65\x83\x2f\x79\xb1\xc2\x3d\x22\xed\xc5\x4d\xf4\x8f\x2d\xcf\x52\x56\xfd\xcc\x59\x86\x3b\x86\xeb\xfa\x0d\xca\xaa\x46\x8c\x16\xc1\xb2\xb5\x4d\x9a\xa6\x65\x8b\x13\x97\xfd\xf4\x96\x0d\x31\xa2\xc6\x97\x10\x17\xa9\x79\x1e\x7d\xd8\xe6\xac\xe2\x09\x7e\x7f\x5f\x16\x3b\x56\x49\x96\xde\x97\xff\x88\x05\x4f\xd4\x9c\x49\x9c\xa6\x67\x90\xd7\xca\x73\x3e\x27\x19\x8b\x2b\x96\x6a\x86\xf3\x78\xf3\xa0\x44\xf1\x51\x89\x6b\xef\xee\x93\xe9\x7d\xfe\x94\xae\x98\x70\xf8\xbe\x62\xd1\xaf\x05\xff\x7d\xab\x97\xa3\x5d\xb3\x7e\xb6\x98\xda\x9d\x2d\x4a\xc5\x52\x26\xc6\x67\x23\x77\xbd\x04\x2c\x66\x27\x93\x8a\xe5\xe5\x8e\xa5\x9f\x41\xc2\x96\x8f\x11\x50\x3f\xb9\x4f\x65\x99\xb9\xf2\x4c\xcb\x82\xe9\xc7\x65\x96\xfe\x6f\x9c\x6d\x19\x2c\xb7\x45\x12\x68\x2f\x87\x9a\xc4\x7f\x43\x08\xae\x1d\x20\x4f\x81\x55\x55\x59\x85\xde\x64\x53\xb1\x94\x27\x04\xf7\x87\x8f\xf5\x97\xc8\x19\xed\x1d\x3c\x6f\x17\x57\xf0\x2f\xb2\x7c\x03\x3b\x98\x6b\xaa\x16\xee\xc3\xa0\xe0\x59\xe8\x1a\xe5\xed\xc6\x98\xe6\xa6\xe2\x85\x84\x20\x89\x73\x96\x19\xf2\x21\xf8\x6a\x80\xdf\x63\xa9\x7a\xea\xe1\x00\x71\x96\x95\x4f\x08\x99\x22\x5e\xb1\x1c\x43\x20\x45\x1d\x06\xf5\xe2\xca\xce\xb6\xda\x8e\xb7\x82\x17\x2b\x92\x05\x7e\x8d\x33\x28\x89\x94\xe8\x31\xd7\x66\x11\x12\x5d\x67\x4b\x1e\x72\x55\xb0\xa7\xb6\x89\x27\xe4\x72\x05\xbe\x6a\xb8\x58\x96\x55\x8f\xdb\x60\x85\xe4\xf2\x25\xf2\x70\x81\x1e\x52\x41\xa2\xb9\x9f\x02\x79\x09\xfc\x47\x0a\x88\xa2\xa8\x97\xcf\x10\xda\x3c\xa2\x9f\xc9\x51\xc2\xdf\xb5\x5e\xec\x11\x53\x44\xfa\x2d\xe8\x3f\xc9\xd4\x9b\x4c\xca\x4d\xfd\x1d\xff\x94\x1b\x7c\x28\x5f\x9c\xa7\x1d\x37\x3d\x6d\x00\xaa\x2c\xf8\x2d\xe4\xf1\x23\x0b\x7a\xec\x38\x9c\x7a\x93\x83\x37\x41\x69\xfc\x8b\x76\x83\xcc\x29\xb3\xa6\xad\xed\x89\x07\x19\xe4\x21\x8d\xab\x98\xdc\x56\x05\xe4\x9e\xf6\xe7\x7a\x82\xc2\x8b\xff\xc4\xe5\xda\xaf\xf9\xf0\x17\x37\x36\x54\x70\x28\xfa\x5b\x26\x95\xbf\x5e\xdc\xc0\x92\x0c\xa6\x85\x0f\x2d\xfc\x66\x4a\xc0\x53\x68\xbb\xd9\x70\x00\x18\xfb\x9a\x45\x82\x48\xde\x51\x40\x48\x3b\x42\x1b\x09\xd0\x2b\xb0\xaa\x52\x06\x86\x5f\xca\x22\x61\x80\x49\x46\x74\x5b\x24\x0c\x9f\xec\xc8\x50\x5d\x8b\xf4\x26\x93\xd0\x9b\x4c\xf2\xa8\x36\xe4\xb9\x36\x65\xf9\x0c\xa7\x9a\x33\x71\x41\x0b\x46\x37\x65\x40\xd3\xf5\xb3\x09\x5f\x42\x1e\x91\xbf\x50\xdf\x89\xc7\x39\x2c\x73\x19\xfd\x84\x73\x97\x81\xff\xfb\x96\x55\x2f\x68\x36\x65\x96\x02\xf1\x28\x60\x53\x0a\xd9\xa0\x9b\x0b\x28\x4a\xa9\x8c\x91\xa5\x7e\x48\x94\x0e\xca\x97\x6a\xb2\x34\x8f\xf8\x81\x39\xe4\xd1\xfb\x8c\xb3\x42\x06\xa1\xeb\x50\xa2\x5f\x98\xc4\x8d\x4d\x81\xa7\x9a\x08\xfe\x7d\x08\x95\x4b\x25\x49\x37\x84\x3c\xf5\x3a\x8f\x06\xe3\xe5\x1c\xbe\xe3\x29\x22\xc9\xc2\xcf\x00\x7c\x86\x91\x83\xbb\x76\xcd\xf6\x28\x84\x30\x1d\x68\xe9\xf1\x33\x21\xd4\xa3\xff\xb3\x74\xaf\xd7\x40\xc6\xa6\x50\xf0\xec\x24\xd9\xe1\xe8\x68\x71\xa3\x05\x38\x9b\x81\xd2\x1a\x28\x62\x02\x62\xf2\x71\xbf\xa1\xf3\x57\x6f\x7e\x83\x65\x55\xe6\xae\x70\x60\xd1\x72\xc8\x4f\xb1\x40\x5a\xec\x99\x25\x5b\xc9\x52\xcc\x9a\x62\x90\x55\x5c\x88\x98\x9c\x32\x04\x48\xf0\xfe\x39\x9c\xba\xcf\xe3\x0c\x12\xb5\x3e\x17\x9a\x05\xac\x67\x48\xf6\x41\xde\xce\xb4\x42\x30\x10\x83\x6b\xcd\x36\x26\x5d\xea\x13\x7a\x44\xf5\x70\x6f\xbc\x60\x1e\xa9\x4f\x07\x33\x28\xe2\x05\x97\x41\x58\xab\x47\x3d\xd5\x82\xb8\x7f\x6e\x84\x50\x28\x09\xdc\x3f\xff\x46\x5e\xde\xf0\x20\x54\xce\xf8\xc4\x2a\xe6\xec\xd5\xda\x91\xf8\x11\x69\x71\x69\xd3\x22\xa5\x41\x29\xd7\xac\x7a\xe2\x82\x8d\xec\xef\xfe\x39\x40\xa5\xdf\x3f\xdb\x9a\xe6\x4b\x98\xa0\x67\x7d\xc4\x3d\xe6\x51\x5a\xf1\x1d\xab\xa2\xe0\x5a\x3e\xdf\xd0\xc7\xf0\x47\xf8\xa6\x7c\x24\x4c\x18\x48\xf0\x6c\xea\x98\xbb\xa9\xa9\x0e\x87\xb7\x1d\x0b\xaf\xb6\x45\x81\x9e\xa0\xad\x33\x5f\xf9\x6b\xf9\x4c\xa2\xbd\x7f\xee\x13\xab\x7c\x6e\x8b\x14\x0d\x1d\xb1\x48\xd6\xa9\x12\x38\x82\xe2\xaf\x82\x55\x37\x54\xef\xa9\x74\x66\x36\x83\x3b\x26\x17\x37\x8d\x4d\x2a\x4f\xa9\xed\x90\xa7\xca\xb5\x47\xf0\xa1\x94\x4c\x89\x1d\x0b\x4f\x9a\xd8\xa4\xf0\x5c\x40\x59\x64\x2f\x10\x27\x09\xdb\xa0\x32\x30\x39\xc0\x58\x8d\x2f\xcb\x65\x5f\x68\xe6\x54\xb4\x18\x0d\x74\x2d\x93\xb8\x1a\x08\x18\x27\x7a\x26\xbb\xe2\x9b\xcd\x30\x4c\x19\x30\xe8\xa8\xa5\xb6\xaa\x4b\x8b\xc6\xaa\xec\xad\xd2\xb8\x7a\x7b\xbb\x98\x67\xf1\xa7\x8c\x11\xb6\x96\x08\xaf\xa7\x58\xc0\xa6\x2a\x77\x3c\x65\x29\xc8\x92\x66\x7c\x52\x0c\x41\x59\x41\xbc\x94\xac\x32\xe3\x8c\x61\x35\x96\x9c\xc6\x32\xc6\xe2\xba\x81\x62\x57\x10\x8b\x1b\xc4\x62\x8f\x20\xa6\xc0\x9e\xb9\x90\x82\xb2\x51\x83\xd0\x31\xb9\xcc\x11\x11\x16\x3e\xed\x3c\xe0\x7a\x78\xe2\x14\x64\xb5\x65\xda\xcf\xb7\xea\x21\xab\x0e\xc2\xe9\xaa\x88\xae\xd3\x08\xab\x4c\xf7\x23\x5f\x97\x39\x42\xc6\x85\xac\x67\x6c\x28\x4b\x61\x09\x43\x0b\xaa\x0b\xa3\x3b\x4a\x6d\x30\x99\xda\xa3\x9c\xd9\xef\x38\xd0\xcf\x7d\xf2\xea\x34\x6b\x0e\x3e\x69\xcf\x3c\x6a\x4a\x1f\xb8\x22\x59\x22\x7f\xcb\x3a\x71\xbe\x63\xd2\xc0\xbd\x1e\x61\x07\x22\x5f\x95\x53\xa6\x16\xd6\xa0\x1f\xc3\xa7\x45\x26\x50\x2c\x69\xde\x96\x7d\x40\xed\x16\x70\x3a\x71\xdc\x34\xe5\xd1\xec\x1a\xf9\x91\xb8\xf1\x42\x17\x86\x94\x38\x97\x3b\x56\x55\x3c\x65\xb0\xa9\xd8\x8e\x97\x5b\x01\x49\x9c\x65\x02\xd1\xf6\x2e\x4d\x23\x75\x8e\x73\x76\x7d\x19\xa0\xcf\xb9\x5a\x46\x0b\x81\xb5\x1e\xb1\x15\xea\xe2\x2c\x8f\x06\xcb\xce\xb9\x0e\x70\x76\x45\x74\xf0\x1a\xb9\xd6\x02\xff\x85\x04\xee\x18\x9c\xe3\x58\x7a\x05\xde\x31\xc5\xa3\x0a\x68\xad\x87\x96\x52\xb9\x5a\xe8\x5a\xc9\x64\xa7\x1c\x78\xef\x0e\x3d\x4a\xdb\x76\xb6\xb1\xd4\xd6\x42\x61\xdd\xd8\xcb\x4e\x9b\xc5\xe0\xf6\x6f\x95\xc4\x6c\x09\x60\xba\xd3\xbb\xf1\xbf\x09\x57\x3a\xfd\xa5\x0c\x2e\xb3\xe8\x1b\x50\x7e\xfa\x3f\x96\x90\x8f\x29\xfe\x26\x87\xdc\xd1\x54\xb1\xa0\x86\x72\x01\x4b\x26\x93\x75\xbf\x33\xc2\x85\xde\x99\x78\x69\x65\x04\x88\x2f\x27\xdf\x70\x22\x00\x02\xaa\x3e\xa0\x9a\x82\xae\xca\x0c\x55\xa0\x54\x17\x96\x31\xcf\xc6\x1d\xff\x80\x20\x07\x92\xf2\x1d\x28\x17\x81\x22\xe5\x19\x39\x67\x95\xca\x1d\x0e\xd7\xb5\x5b\x68\x03\xc2\x94\x0a\x0a\x0e\x7c\x09\xdf\xe4\x51\xb9\x89\x16\x22\xb0\x8e\xd8\xdc\xec\x6e\xd7\x0d\xe4\x7d\xda\xae\x23\x85\x4a\xd7\x31\x0e\x36\xa7\x78\xb5\xb4\x04\xa5\xf1\x1a\x6b\xc7\x3d\xf6\x1f\x7f\x80\x9d\xa3\x76\x90\x79\x2a\x73\x15\xfb\x7d\xcb\x2b\x46\xb9\x50\x5d\xb3\xb5\x4c\xae\xe6\xcc\xac\xa7\xc4\x45\x06\x63\x1e\xa1\x2a\x42\xc5\x3c\xbe\xfb\xe6\x28\x43\xdd\x2a\x87\xd2\xb9\x01\x3e\xdf\xc2\xb7\x4f\x3e\x2d\x1b\xba\x36\x67\xd6\xd7\x96\x7b\x47\x85\x6f\x13\xa5\xc8\x33\x1d\xe8\x54\xf9\x75\x1c\xa1\x1d\x4b\x74\x61\xf3\x2e\x4d\xfd\xee\xda\xde\xa4\x1d\x58\xe2\x34\x15\x50\x87\x05\x6d\x88\x43\x41\xe6\x15\xa2\x8c\x02\xd2\xa0\xdb\xb6\x55\x34\xb9\x1e\x19\xf8\x6f\x73\xb0\xa2\x92\x5b\x67\x8e\x86\x85\xef\x9c\x69\xa4\x37\x25\x95\x77\x69\xca\xd2\x3e\x85\xf5\xc4\x06\x95\xd5\xc7\x02\xc5\xd7\xf8\xaf\x91\x50\xc1\x85\x1d\x2b\x46\xe4\x38\xc8\xc5\x69\x11\xc3\x84\x8c\x21\x01\x68\x0d\xb8\x61\xa3\x89\x1b\x93\x83\x65\x1b\x4d\xe4\x98\xa8\x7c\xa5\x6e\x4a\xd4\x9e\x4c\x95\xb0\x71\xd6\x85\xa1\x65\x2f\xef\x33\x16\x57\xbd\xe0\xa3\x03\xa3\x53\x63\xee\xe9\xf8\xd3\xa2\x18\x4e\x68\x54\x6a\xf0\x8a\x89\xc8\x29\x99\x88\x7b\x98\x3b\xc9\x23\xe7\xb8\xec\xa1\xc9\x4a\x0f\x87\x8f\x30\x07\x73\x5a\xb6\xaf\x31\x5a\x6f\xb1\x2b\x5d\xd6\x6f\xdc\x06\xb8\x7c\x2c\x95\x41\x18\x6b\x56\xce\xc4\xaa\x2b\x73\x04\xa1\x12\xbc\x55\x7b\x8e\xec\xd1\x42\x5a\xf9\xd8\x8b\xb1\x9e\xdd\xfe\x0f\x13\xfd\x09\x72\xc5\x28\x45\x8e\xb3\x0c\x92\x35\xa6\xfe\xe2\x98\x33\x3b\x07\x4b\xc7\xa0\xf4\x97\xa5\xb4\x75\xd3\xa3\x6d\x8b\x93\x94\x9a\x77\x41\x4b\x05\x53\xb0\x75\x10\x76\x12\x64\x4b\x03\x56\x11\xd5\x6d\xb6\xa8\x73\x2e\x7c\xec\xc7\x18\x69\x54\xea\xc2\x53\xf1\xb3\xb1\x7f\x56\xeb\xec\x5d\x9a\xd6\x05\x92\xdd\x9c\xd1\x34\xe6\xe0\x0b\x26\xdb\x24\x1c\x0a\xaa\x28\x72\x8a\xa7\xd9\x35\xbc\x5f\xb3\xe4\x51\x61\x9b\x0b\xaa\x48\x58\xa5\x9c\x72\x56\xb1\x38\x7d\xd1\xed\xe2\x14\x3e\xbd\x10\x10\x48\xf1\x6f\xd4\x38\x01\x01\x8b\x56\x11\xb0\x74\xc5\xde\x68\x3b\xe0\x72\x4d\xe3\x04\x22\xa5\x88\x73\x16\x9a\x92\x05\x19\xc3\xd7\x77\x4c\x62\xfa\xfe\x76\x4e\x29\xe4\x15\x8b\xfe\x19\x0b\x92\xeb\x9d\x5a\x5c\x8f\xc5\x7d\x5a\xc3\x6d\xcb\x34\xdb\xd3\xc1\xb1\xc4\x40\x64\x15\x76\xac\x81\x29\x72\x66\x20\x6c\xf5\x89\xdc\x54\x1b\xb7\xc6\x53\xb5\xa4\x66\xa9\x16\xaf\xa8\xe5\x75\xdc\x8a\x1b\xb6\x82\xae\x9e\x68\x01\xdd\x12\xe3\xa9\x69\x3d\x28\xd2\x36\x6b\xed\x93\x8f\xa1\x86\x9c\xb6\xa6\x6e\x0f\x4b\x9f\x87\x74\x7a\x70\x4d\xf2\xd9\x33\xc7\x8e\x63\x23\x94\xeb\x66\x44\x2f\xc3\x4d\x6f\xa2\x39\x70\xa6\x06\x05\x6f\x7a\x13\xb8\xf5\xf1\x65\x1e\x78\x2a\x1e\xf8\xc7\x8e\xf7\xd6\x04\x1d\xbb\x1d\xf2\x76\xae\xe9\x34\xa1\x73\x38\x72\x5e\x04\x9c\xb3\xfd\xdf\x68\xf3\x71\x6e\x55\x98\xb6\xdf\x66\xbd\x51\xaa\xe3\xb9\x37\x65\x25\xdd\x20\x75\xb6\x1d\x58\x41\xec\x8c\xad\xd5\x21\x4b\xc7\xa1\xfd\x5e\x79\x81\x2b\x16\x99\xbd\x29\x73\xb0\x9d\x2b\x29\xbf\x67\x63\x41\x88\xf5\x8f\x5d\xca\xa9\x0f\xe3\xb2\xb3\x0b\x81\xb6\x05\xeb\x98\x4f\x6e\x16\xab\xb4\x0a\x02\xca\xee\x97\xe0\x7f\x1b\xfd\x20\x7c\x47\x18\xa1\xe3\x67\x98\x15\x31\xf3\x72\xc7\x94\xa0\xf1\xd3\x67\x7a\x9b\xc5\x8d\x38\xee\x4e\x7a\x56\x0f\x1a\xcf\x31\xe8\x2f\xc8\xcc\x47\x9b\xe6\x8e\xb5\x1f\x1b\x7b\x96\xcd\x1f\xc6\x1d\xd6\xd8\x4a\x0f\x3c\xed\x9a\x7c\xdb\x85\x8d\x39\x93\x23\xc4\xcf\xf0\x29\xfd\xb5\xa0\x52\x42\x4a\x78\x39\x56\x0f\xda\xb5\x8e\xe6\x0b\x75\xee\x64\xe6\x17\x38\x9b\xd3\x4c\x72\x71\x23\xd4\x11\xb2\x80\x87\x8f\x63\x48\x21\x69\xa6\x8d\x38\x8f\x40\x41\x77\x39\x53\x01\x73\x88\x37\x1b\x56\xa4\xb8\x46\xdd\x60\x3c\xb4\xcf\xce\x4c\xbc\x33\x29\x5d\x8d\x87\xa1\xb0\xde\x96\x6b\xeb\x04\xbf\x57\x6a\x8b\x9b\x9e\x53\xc4\xa3\x86\xd5\x5e\xc7\x3a\x72\xef\x08\xab\xaf\x3e\x1c\x09\xa5\xdf\x74\x4b\x42\x73\xda\xde\x19\x5c\x57\x86\xfd\xc2\x33\x61\x6d\x50\x3c\xe2\x14\xf9\x88\xae\x80\x00\x06\x8c\x94\x2e\x99\x99\x6e\x08\x4e\x8d\xb3\xa7\xf8\xa5\x59\x26\x63\x45\xb0\xb8\x11\x21\xfc\xc7\x1c\x7e\xa0\x43\x9d\xad\x9a\x8d\x6b\x89\x29\xe9\xf9\xa5\xdc\x82\x58\x97\xdb\x2c\x85\xad\x60\xa3\xda\xe5\x85\x90\x2c\x4e\x23\x58\x48\x23\x64\x3a\x4e\x23\x60\x16\x92\x55\x18\x2b\xb6\x22\x5e\x31\x93\x7d\xea\xc3\x4d\x73\x01\xce\x18\xed\xb9\xfa\x3e\xc5\x40\x00\x06\xc5\x84\xfa\x57\x86\x33\xa0\xd8\x1f\xf1\xb5\x83\x84\xae\xd9\x5c\x5b\x76\xd3\xf2\x73\x5d\xc3\xbc\xd8\x22\xb5\x94\x0e\x07\xa7\x0d\x34\x98\x61\x5c\x5a\x19\xb6\x60\x77\x51\x61\xd8\x17\x7c\x54\xad\x76\x34\x71\x5a\xc6\x19\x41\x4d\xab\xab\x27\x05\x38\x1e\xe7\xfa\x3a\x1d\x76\x21\x47\x17\x45\xdd\xf3\xfd\xfa\x38\x1c\xeb\x9c\xb1\xa6\xde\xed\x26\xc0\xbf\xac\x2b\x0a\x79\x54\x6e\x4c\x07\x1c\x31\x67\xd3\x2d\xcc\x3d\xcf\xfa\xde\x6f\x4d\x2c\x70\x3a\x01\xe1\xd8\x9a\x48\x36\x08\xf5\x4d\x48\x67\x65\xf9\x62\x96\xd6\xfd\xbc\xba\x69\x9e\x65\xaa\xbe\xb3\x3b\xee\x4a\xdd\x29\xa4\x5b\x22\xe4\x9e\x6c\x58\xee\x82\x17\x48\xb1\xac\xe8\xda\x73\x09\x2b\x46\xb7\x58\xea\xde\x56\x87\x2e\x2f\x92\x8a\xee\x99\xb1\x74\x96\xb2\xfa\xf3\x94\xda\x5d\x9e\x39\x4a\x54\x1c\x06\xa3\x3b\x35\x63\xe0\xe1\x63\xb3\x5b\xbd\xde\x5b\x9d\xc0\x98\x57\x53\xf8\x9e\xaa\xf7\x8c\x15\x4e\x43\x33\xec\xbd\xff\xe9\xde\xfb\x7c\x73\x6e\xc7\xb3\x89\x13\xe3\x67\xb4\x9a\xd7\xda\x88\x97\x03\xa7\x0c\xad\xbb\x9e\xe6\xb6\x0b\x8d\xb6\x35\xda\xdf\x87\x8b\xa1\x55\xa2\xaf\xf8\x8e\x69\xec\xc2\x3d\x96\xec\x2c\x29\x8b\x94\xe2\x1c\x8b\x49\x9b\xf6\x45\x21\xe0\x85\xb9\xc6\x58\xdf\x0b\xb0\x0e\xbf\xd0\xe6\x04\x93\xd4\x08\x32\xdf\xcd\xd1\x81\x0a\x40\x48\x50\x24\x6b\x96\xc7\x47\x95\x19\x20\x53\x1a\xba\xa1\xba\xc5\xa2\xbb\x13\x75\x10\x46\x41\xa8\x32\xc3\x55\x93\x78\xe2\x32\x59\xd3\xae\x48\xb8\x47\xb4\x7a\x91\x5a\x27\x49\x2c\x98\xa3\x9d\xb7\x76\xb8\xaf\x75\xde\xee\x56\xb6\x8f\x9d\xfa\xf5\xa9\xae\x91\x90\x47\x33\x7e\x27\x4b\xbb\x7a\x6d\x9a\x2b\x3a\xab\x54\xba\xe8\xf6\xf7\xec\xde\x5e\xa3\xd4\xcb\xda\x7b\xaa\xab\xa7\x3c\x3f\xd2\xaa\xdb\x7d\xcb\x98\x67\xf6\x1d\xa2\x1e\x1f\xa8\x37\xd1\xd7\xd9\x9b\xc2\xa0\xc2\x9b\xce\xdd\xa5\x1a\x8f\xfe\x5c\x4d\x37\xfd\xcb\xb3\xf4\x6d\xf5\xcf\xb6\xc5\x63\x51\x3e\x15\xad\xae\xaf\x52\xef\xb7\xc2\x57\xc2\x0a\xb5\xc1\xdf\x31\x9d\xd7\x74\x6f\xf4\x8c\x1a\xfc\xa2\xe7\xae\x14\x5f\x22\xc5\x06\x4b\xbc\xcf\x8c\xb5\x0d\x13\x24\x34\x82\x28\x56\xe5\x5c\xe4\xb1\xea\x31\xd7\x14\x88\x1c\xa6\x56\x23\xb8\x30\x1b\xb0\x6d\x7e\xaa\x37\x51\xe3\x20\xd4\x1c\xee\xbd\xb6\xba\xbf\x80\xd7\xee\xd7\xf9\xce\x9c\xc7\x13\x6b\x51\xe0\xb6\xe5\x74\x56\x68\x6e\x84\xd5\x08\x71\xf5\xca\x9e\x37\x2c\x91\x28\x21\x9c\xf6\xed\x3d\x65\xba\x96\x62\xf5\x8d\x4c\xa5\x5f\x53\x16\xe4\xd1\x1d\x93\xbd\xcd\xac\x9d\x7d\x9b\x93\xf2\x17\x37\x7d\xe9\x67\xe2\x0c\x70\x59\x21\xd8\x49\x12\xce\x0d\xea\x3a\x79\x50\xe8\x72\x3a\x23\x47\x7a\x78\xbd\xa1\xbd\xb9\xe1\xf6\xcf\x58\x98\x0e\x01\x69\x6e\x17\x57\x86\x27\x33\xe1\xc4\x10\xf0\x4a\x1d\xac\x8b\x7c\xcc\x39\xdd\xdc\x93\x73\x85\xbe\xa3\x0d\xe7\x8b\x9b\x3d\xb4\x4a\x90\x01\x4c\xb5\x51\xe1\xa6\xad\x5a\x66\xad\xe6\xee\x10\x24\xca\xc2\x38\x28\xa4\x79\x62\x52\x72\x62\x46\x42\x14\x4f\x4a\x4a\x4e\xc8\x48\x9a\xed\x9e\x98\x96\xf4\x63\xf3\x92\xc4\xe4\x2f\x45\xe5\x40\xe8\x6b\xea\x88\x91\x2e\xfb\x38\xf4\x4e\xc9\x7b\x14\xce\x14\x45\xba\x5e\x61\xdd\x1b\x28\xad\x18\xf5\x75\x07\x37\xb3\x85\x53\x83\xdb\x6b\x66\xb5\x5f\x25\x78\x8e\x47\xd1\x56\x1c\x7d\xa5\x48\x6a\xda\x51\x13\x82\xed\x48\x34\x75\x7d\xdf\xf9\x28\x3e\x1e\x6b\x9d\xe0\xd9\x8d\xb9\xef\x9d\x5f\xf0\xb9\x51\x57\xdd\x78\xeb\xa9\xd1\x75\xff\xc4\xaa\xd1\x91\xd4\x29\x61\xd6\x59\x6e\x2c\xd0\xba\x9d\xf1\xcf\x8a\xb4\xdd\x3e\xfb\xe7\x04\x4e\x5a\x41\x6f\x23\x70\xc2\xe0\x57\x14\x33\x6d\x26\xad\x5f\x7d\x98\xb0\xa6\x23\x19\xfd\x20\x60\x34\x71\x37\xbf\xf9\x18\xbe\x6b\x72\xa4\xb4\x36\x82\x72\x42\x99\x69\xe1\x0d\xde\x39\xc1\xd1\x1f\x3d\xeb\xa6\x89\x85\x55\x65\x40\x43\xb7\x90\x4e\xf5\xd2\xf4\x43\x16\xed\xa8\x4f\xf4\xd2\x47\x61\xdd\x13\xb4\x1d\x4f\x3b\x80\xed\x0b\x9d\xed\xab\xa1\x7a\xc8\x77\xe6\x11\xed\x6a\x38\xe2\xfe\x19\xbe\xcb\x76\x41\x2d\xe7\x85\x2a\xa4\x03\x64\x93\x1b\x76\x8e\x8c\x5b\x9d\x88\xfa\xb7\x9c\xc3\x20\xa1\x5f\x72\xf4\x46\xf3\x57\x00\x49\xc3\xec\x08\x48\xbe\xb6\x43\xa6\xf6\x91\x83\x39\xb2\xd7\x10\x70\x10\xf0\x2a\x3a\x1f\xab\x0d\xd5\x5d\x26\x3b\x48\x51\xd7\x09\xc7\xd9\xf1\x49\x30\x39\x53\x97\x3c\xcf\xf1\x57\xcd\x0a\xad\xb8\x44\xdd\xa6\x63\x47\xbb\xe6\x9a\x55\x78\xec\x17\xef\x27\x36\xf3\x4e\xd1\x21\x6b\xeb\x50\x71\x5a\x07\x1e\xdd\x26\x3b\xed\x5c\x97\x06\xdb\xc2\xb6\x1b\x7e\x28\x6a\xfc\x1e\xc8\x52\xfd\xc4\x4d\xfd\x8f\x13\x42\x4b\xe8\x4a\xe0\xc6\xc4\x94\x4d\x21\x4d\xfa\xb1\x35\xea\xf6\x6c\x5d\x2c\x6e\x84\x6b\x28\x0f\x1f\xeb\x24\xb6\x6d\x2e\x96\x80\x47\xac\xa5\x47\x1d\x97\x09\x7a\xc0\x58\x86\xee\x22\x5c\xd0\xc1\xab\x4d\xcb\xda\xf4\xfe\x9a\xa7\x07\x3b\xbd\x6c\x5f\x58\xa0\xe6\x5c\x03\x54\xab\x62\xfc\x7e\x4a\xdd\xd4\x81\xe5\x43\xed\xcf\xcf\xeb\x04\x8e\xf4\x02\xeb\xfc\x57\x6f\x82\x63\xfe\x72\x59\x91\xa6\x21\xa9\xef\x43\x9c\xe8\x01\xcc\x2d\x88\x73\x30\x67\xaf\xf0\x45\x3d\xc0\x48\xdb\xf0\xf8\x6d\x1a\x07\x24\x17\x61\xf7\x44\x2f\x31\x69\xab\xe8\x88\xcf\xd0\xe2\x3b\xd3\x6b\x18\x45\x19\xbf\x41\xda\x44\xa3\x36\xd5\xb3\x95\x8b\x5e\xa0\xcc\x3f\xcf\x85\x0c\x28\xf4\x42\x15\x0d\xe5\x64\xc7\xed\x7b\x0c\x3c\xc3\x66\x7e\xc2\x4d\x9c\xf3\xad\xfd\x72\x63\xd7\x55\xc3\x89\xc6\x7e\x49\x71\x62\xaf\xf0\xe5\xc3\xfd\xe8\x7d\x82\xbf\x3e\xdc\x23\xbb\xc3\xc5\xe2\xd3\x9a\x27\x6b\xeb\xf0\x53\xe7\xc2\xb5\xa5\xb6\xcc\xd4\x1c\x86\x5e\xa2\x15\x8b\x91\xfe\x8a\xf1\xeb\x0b\xf9\xf5\xf1\xe4\xf8\x85\xd1\x93\x72\x63\xeb\x30\x92\xa4\x80\x3c\x0f\x56\xba\x43\xf2\xef\x3d\x8e\xd4\x3f\x29\x27\x9b\xa1\x89\x9f\x55\xe8\x22\x5f\x27\x94\x30\x9f\xed\x50\xbf\xb0\x33\x35\xd9\x4d\xfb\xe2\xf6\x9f\x55\xdd\x5a\x97\xd9\xba\xf5\x0e\xd5\x59\x04\x80\xe1\xbb\x50\x43\x10\xe8\xb1\xb9\xf1\xba\xf6\xb3\x20\x51\x73\xfa\xc5\x21\xf1\x5a\x36\xdb\x56\xfc\x17\xaf\x69\xbb\x2a\xb6\xae\x7a\x35\x1f\xff\x3f\x00\x00\xff\xff\xfb\x90\x90\xae\x21\x52\x00\x00") func templateBuilderMutationTmplBytes() ([]byte, error) { return bindataRead( @@ -227,7 +227,7 @@ func templateBuilderMutationTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/builder/mutation.tmpl", size: 20982, mode: os.FileMode(420), modTime: time.Unix(1, 0)} + info := bindataFileInfo{name: "template/builder/mutation.tmpl", size: 21025, mode: os.FileMode(420), modTime: time.Unix(1, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -632,7 +632,7 @@ func templateDialectSqlByTmpl() (*asset, error) { return a, nil } -var _templateDialectSqlCreateTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x58\x6d\x6f\xdb\xc8\x11\xfe\x4c\xfe\x8a\x39\xc1\x0d\x48\x57\xa6\x9c\xa0\x28\x50\xa7\x3a\x20\x67\xc7\xad\x71\x77\x69\x0b\x3b\x87\xa0\x86\x11\x50\xe4\x50\x5a\x88\xda\x65\x76\x97\x8e\x0d\x83\xff\xbd\x98\xd9\x5d\x8a\x7a\xb1\xec\xbe\x7d\x48\x2c\xed\xce\xdb\xce\x3e\xcf\xec\x8c\x9e\x9e\x26\xc7\xf1\xb9\x6a\x1e\xb5\x98\x2f\x2c\xbc\x3b\x7d\xfb\xa7\x93\x46\xa3\x41\x69\xe1\x32\x2f\x70\xa6\xd4\x12\xae\x64\x91\xc1\x87\xba\x06\x16\x32\x40\xfb\xfa\x1e\xcb\x2c\xbe\x59\x08\x03\x46\xb5\xba\x40\x28\x54\x89\x20\x0c\xd4\xa2\x40\x69\xb0\x84\x56\x96\xa8\xc1\x2e\x10\x3e\x34\x79\xb1\x40\x78\x97\x9d\x86\x5d\xa8\x54\x2b\xcb\x58\x48\xde\xff\xe5\xea\xfc\xe3\xa7\xeb\x8f\x50\x89\x1a\xc1\xaf\x69\xa5\x2c\x94\x42\x63\x61\x95\x7e\x04\x55\x81\x1d\x38\xb3\x1a\x31\x8b\x8f\x27\x5d\x17\xc7\x74\x06\x98\x2b\xfb\xd8\xe0\x19\xa0\xb4\x73\x95\x09\x35\x41\x69\xe9\x5f\x31\x99\xa3\xcc\x68\xef\xba\x50\x0d\x42\x50\x81\x12\x2b\x21\x11\x46\xa5\xc8\x6b\x2c\xec\xc4\x7c\xab\x27\x85\xc6\xdc\xe2\x08\xba\x8e\x24\x8e\x66\xad\xa8\xe9\x08\x67\x53\x68\x72\x53\xe4\x35\x1c\x65\x6c\x25\xfb\xc9\xef\x78\x41\x8d\x05\x8a\x7b\x27\xd9\x7f\xee\xd5\xbd\xd0\xaa\xb5\xb9\x15\x4a\xb2\x39\x2d\xa4\x1d\xe8\x8d\xb2\xb0\x3b\x02\x92\x8f\xab\x56\x16\x90\x6c\xd8\xee\x3a\x38\x1e\x46\xd5\x75\x29\x98\x6f\xf5\x75\x7e\x8f\x49\x61\x1f\xa0\x50\xd2\xe2\x83\xcd\xce\xdd\xdf\x14\x12\x16\xcf\x3e\xe5\x2b\x84\xae\x1b\x03\x6a\xad\x74\x0a\x4f\x71\xf4\x55\xaa\x12\xc7\xf0\xd5\x34\x58\x50\x38\x5b\x7e\x32\x97\x87\xeb\x06\x8b\x24\x8d\x23\x51\x91\x2a\xc9\x99\x6f\xf5\x5c\xe7\xcd\x22\x3b\x67\x81\x4f\xaa\x64\xd7\xe3\x1d\x03\xa5\xa6\x4f\xde\x43\xfa\x9e\xf5\x7f\x98\x82\x14\x35\xb9\x27\x8b\x05\x6a\x3d\x06\xb5\x24\xb3\xc2\x5c\xff\xe3\x97\x73\x25\x8d\xd5\xb9\x90\xf6\x23\xc5\x99\xa0\xd6\xe9\x7b\x12\x20\x85\x88\x0c\x4c\x59\x29\x8e\xa2\x2e\x8e\x22\x8d\xb6\xd5\x92\x2c\xf2\xc1\x62\x5a\x7c\x7a\x3a\x01\x51\x41\x2e\x4b\x38\xca\xae\x2e\xb2\xcf\x06\xf5\x05\x5f\x73\x09\x89\xd2\x6e\xf1\xca\x5c\x5b\x2d\xe4\x3c\x7c\xfb\xfc\xf9\xea\x22\xa5\x9c\x47\xac\x3f\x39\x86\x0b\x05\x52\xd9\x85\x90\xf3\x31\xcc\xb0\xc8\x5b\x83\x84\x48\x83\xf0\x0e\x08\x48\x06\x56\xad\xb1\x30\x43\x30\x6d\xd3\xd4\x02\x4b\x98\x3d\x32\x66\x5b\x83\x3a\x83\xe3\x09\x9c\x74\x3e\x1c\xac\x0d\xae\x8d\x8b\x6a\x37\x30\xde\xa4\x8c\xf0\xa5\x64\x57\x17\x30\x9d\xc2\x29\x9f\x9a\x0d\xc8\x5e\xa4\xa4\x5c\x71\x46\xc9\xc6\x6f\x79\xdd\x62\x96\x08\x69\xff\xf8\x87\x94\xf6\xd7\xfa\x7c\x1d\x24\x73\xf3\xd8\x90\xf7\x44\x94\xe9\x8b\x11\x74\x5b\x0e\x87\x9f\x7d\xb2\x3d\x6c\xa4\xa8\xe3\xd7\x43\x74\x88\xa5\x1d\x48\x1e\x6f\x21\x8a\xc4\x18\xa1\xf7\xb9\x86\x24\xf6\x87\x82\x29\xbc\x19\xea\x3d\x15\x4a\x56\x62\x7e\xb6\x8b\x5b\x5e\xa7\x93\x38\x68\x4f\xe1\xcd\x1e\x07\x0c\xa8\x9b\x7c\x56\xa3\xb3\x90\xfd\x3d\x2f\x96\xf9\x9c\x2c\x67\xbc\x3c\x26\x81\xab\x8b\xb3\x81\xf6\xa5\xc0\xba\xec\x95\xa3\x1b\xae\x35\x15\x2d\x66\xc3\x64\x67\x8c\xe2\x70\x3c\x16\x3d\x57\x75\xbb\x92\xbb\x9e\x82\x1a\x6b\xe4\xd2\x06\x05\xfe\xbf\x8b\xa3\x34\x0e\x78\xfc\x50\xd7\xea\x3b\xb8\x02\x21\xe7\x0c\xb4\x3d\xa7\x22\x0c\x52\xd5\xc6\x07\x8b\xd2\x08\x25\x0d\x28\xcd\x88\x04\x8b\xab\xa6\xce\x2d\x9a\x8c\xab\x1f\xdb\xfd\x2e\xec\x02\x8e\xec\xaa\xa9\x0d\xc1\x6a\x95\xdb\x62\x71\xe3\xe5\xf6\x15\xc5\x09\x25\x74\x72\x3c\x5a\x83\x59\xe7\x72\x8e\xce\x04\x59\xf0\xb6\x1c\x98\x68\xff\x21\xb8\xf5\x32\x47\x6b\xd5\x7d\x18\x3b\x88\x4e\x51\x81\x28\x43\xb9\xd8\x28\xa6\x83\x4c\xfe\xea\xd7\xfe\x82\x94\xcc\x64\x50\x3d\x06\xd4\x10\x25\x2f\x6c\xb0\x28\x2c\xef\x89\xc8\x1f\xb2\xe2\x13\xf6\x1e\x18\x0d\xa6\x0f\xed\x9e\x8c\x1c\x8a\xae\x3a\x14\x1b\x87\xe2\x2d\x4e\x21\x6f\x1a\x94\x65\x32\x5c\x1d\xbf\x1e\x87\xd5\x73\x28\xe4\x73\x9e\xf9\x48\x5f\xc4\x65\xb5\x8b\xca\x41\x89\x71\x12\xd7\x56\xb7\x85\xe5\x78\x88\xf7\x7c\x70\xba\xbf\x2a\xfb\x24\xea\x9a\x68\xe4\x72\xdb\x75\xc4\x5d\x97\x53\x76\x7f\x30\xd1\xe8\x12\xfd\xb1\x9c\xe3\x3a\xbf\xe4\xd5\x3c\x97\x5b\xdc\x8a\xe4\xea\xc2\x50\x7a\x6b\x94\x09\xeb\xa5\xf0\xa3\x2f\xa7\x6b\xdc\x33\x47\x4a\x38\x82\x11\x39\x1a\x91\xdb\x11\x3d\x66\x66\x04\x56\xb7\x08\xa3\x7f\xa2\x56\x23\x18\x49\x51\x7b\xc0\x93\x72\xcf\xa3\x4d\x7e\x94\x58\x21\x5b\xc9\xa8\x34\x51\x2f\x52\x7a\xe8\x0a\x49\x44\x9d\xb4\x4d\x99\x5b\xcc\x98\x04\x8e\x80\xdb\xa5\x3d\x60\x1f\xb3\xbf\x7d\x97\x97\x3f\xaf\x5d\x9e\xc0\x51\xc5\xa8\x3a\xc2\xec\x52\x69\x14\x73\xf9\x33\x3e\x86\xfd\xc1\x75\x2c\x9f\xbf\x8f\xa5\x03\xcd\x81\x6b\xe1\x3c\xdd\x9e\xde\xed\x06\xe6\x60\xe8\x6e\x63\x0b\x9b\xbc\x38\x06\x3a\x7a\xba\x7b\xa5\x9b\x2f\x06\x6b\xc4\xae\xef\xf2\x12\x87\x5b\xb0\xaf\xb3\xb6\x5e\xfe\x1f\xfa\xb0\x78\x32\x01\x6a\x98\xfc\xab\x64\xb8\x98\x0e\x9f\x16\x2a\xa1\xc2\x0a\x34\xa1\x0d\x2d\x73\x9b\xcf\x72\x83\xd9\x6b\xdf\xbb\x03\xfd\xd8\xed\xdd\xb3\x1d\x19\x25\xc8\x17\xe2\x25\x92\xe0\x9e\x0a\x3f\x66\x50\x6f\xbf\x79\xde\xb7\x49\xd3\x38\xea\x89\x12\xac\x6c\xba\x7b\x49\x9d\xa9\xa5\xf4\xd0\xc2\xaf\x6e\xe9\x65\xdd\x4a\x69\x10\x9c\x77\x26\xf2\x73\xa2\x4c\x44\xca\x64\x22\x40\x48\x3b\x76\x6d\xfe\x4e\xaa\x98\xae\x83\x6b\x7f\xce\xdc\xad\xb8\x1b\xf2\x27\xfb\x6b\x6e\x2e\xb0\xca\xdb\xda\x06\x8e\x78\xc9\xac\x74\xcb\x26\x49\x77\x51\x4e\xcd\xc6\xaa\xb5\xe0\x0f\x0b\x53\xf7\x09\x2f\x29\x4e\x0e\x76\xcf\x7d\x8e\x61\x05\xa1\xaa\xa7\x90\xfc\xe6\xde\x80\xf5\x8d\x46\x51\x14\x4a\x55\x78\x1a\x56\x99\xef\x7f\x82\x9e\xbf\x19\x0e\x89\x0a\xdd\x0f\xe1\x51\xd8\xec\x6f\xab\x95\xcd\xb8\x29\xae\x92\x51\x2b\xf1\xa1\xc1\xc2\x62\x09\x7d\x25\xa4\xa6\x14\x7e\x77\x33\x1a\xc3\xca\x99\xea\x82\x41\xdf\xb7\x87\x24\x14\x0b\x2c\x96\xc9\x6e\x3f\x1e\xed\xe9\xa7\x7b\x33\x41\xb9\x77\x37\xed\x3d\xf3\xbe\xab\x1e\xe2\x6e\x0c\x0c\xe2\x5b\x71\x07\x03\x8f\x1b\x93\x84\xcf\x35\x79\xe7\x44\x85\x30\x05\xfc\x99\x01\x16\x00\x98\x9e\xbc\x0d\x71\x7d\xe5\x70\x82\x4f\x45\x57\xfe\xfb\xb7\x77\x2e\x83\x98\x10\x7a\x76\xa7\x8f\x35\x3a\x48\x34\x04\xeb\x53\xe3\x5a\x72\x6f\x7d\x32\x81\x2b\x79\xaf\x96\xdc\xe0\x43\x5e\xd8\x36\xaf\x41\x35\xa8\xdd\x49\x95\xab\x01\xdc\x3b\xd9\x75\xbe\x7d\x69\x28\x16\xb9\x90\x99\x33\xe4\x73\x3d\x18\x91\x7e\xa2\x8e\xca\x91\xf7\xf0\x8c\xf4\x66\x9f\x0a\x3f\xf1\xfc\x24\x9d\xb9\xb4\x76\x7b\x6f\xed\x3f\x98\xa4\xa2\xed\x69\x6a\x7d\xd3\xfe\x4f\xb7\x01\xde\xac\x54\x92\x3a\x24\x7a\x18\x87\xb0\x7a\x2d\x7c\xfe\xdb\xa1\x2c\xfa\x9f\xcf\x65\x81\xff\xfd\x68\x16\xbd\x34\x1b\x45\xeb\x36\xe4\x56\xdc\x6d\xcc\x68\x3b\xc5\xa4\x9f\xd4\x02\x1b\xf6\x0e\x6b\x03\xde\x1c\x1a\xd9\x5e\x13\x59\xb7\x37\x8a\xad\xaf\xe1\x7e\x7a\xae\xd2\x10\xd7\xf7\x75\x7d\xf1\x26\x12\x06\xea\x2e\x94\x5a\x9a\x14\x4e\xe0\xed\x7b\x10\xf0\xe3\x14\x4e\xdf\x83\x38\x39\x59\xd7\xb6\x01\xcd\x59\xf6\x56\xdc\x11\x83\xd3\x30\x4d\x46\x6b\xca\xde\x39\x02\x53\x9f\x90\x88\x31\x14\xf6\x21\xe5\x89\x5d\x54\x9b\xbc\xef\x7b\x35\x9a\x87\xc7\xa1\x7c\xf5\x76\x4e\x7b\xe2\xef\x65\x54\xcf\xfb\xd3\x01\xeb\x77\x69\xb3\x8b\xd5\x8e\x83\x19\xe6\xa8\x9f\x72\x7d\xc3\xf0\xc5\xfd\xb2\xb5\x44\xfe\x36\x86\x59\x6b\xa1\xc9\xa5\x28\x8c\x03\xb7\xab\x67\xa0\x8a\xa2\xd5\xe6\xdf\xea\x15\xbe\xec\x6f\x16\xb6\x1e\x6f\x9e\x89\xfb\x84\x6c\x1f\x3c\xf4\x1c\xeb\x1f\x6b\x06\xe7\xe5\x30\xb9\x08\x0c\x4f\x79\x1f\x77\x83\x6e\xec\x5f\x01\x00\x00\xff\xff\xd9\x40\x0b\x39\x07\x14\x00\x00") +var _templateDialectSqlCreateTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x58\x6d\x6f\xdb\xc8\x11\xfe\x4c\xfe\x8a\x39\xc1\x0d\x48\x57\xa6\x9c\xa0\x28\x50\xa7\x3a\x20\x67\xc7\xad\x71\x77\x69\x0b\x3b\x87\xa0\x86\x11\x50\xe4\x50\x5a\x88\xda\x65\x76\x97\x8e\x0d\x83\xff\xbd\x98\xd9\x5d\x8a\x7a\xb1\xec\xbe\x7d\x48\x2c\xed\xce\xdb\xce\x3e\xf3\xec\x8c\x9e\x9e\x26\xc7\xf1\xb9\x6a\x1e\xb5\x98\x2f\x2c\xbc\x3b\x7d\xfb\xa7\x93\x46\xa3\x41\x69\xe1\x32\x2f\x70\xa6\xd4\x12\xae\x64\x91\xc1\x87\xba\x06\x16\x32\x40\xfb\xfa\x1e\xcb\x2c\xbe\x59\x08\x03\x46\xb5\xba\x40\x28\x54\x89\x20\x0c\xd4\xa2\x40\x69\xb0\x84\x56\x96\xa8\xc1\x2e\x10\x3e\x34\x79\xb1\x40\x78\x97\x9d\x86\x5d\xa8\x54\x2b\xcb\x58\x48\xde\xff\xe5\xea\xfc\xe3\xa7\xeb\x8f\x50\x89\x1a\xc1\xaf\x69\xa5\x2c\x94\x42\x63\x61\x95\x7e\x04\x55\x81\x1d\x38\xb3\x1a\x31\x8b\x8f\x27\x5d\x17\xc7\x74\x06\x98\x2b\xfb\xd8\xe0\x19\xa0\xb4\x73\x95\x09\x35\x41\x69\xe9\x5f\x31\x99\xa3\xcc\x68\xef\xba\x50\x0d\x42\x50\x81\x12\x2b\x21\x11\x46\xa5\xc8\x6b\x2c\xec\xc4\x7c\xab\x27\x85\xc6\xdc\xe2\x08\xba\x8e\x24\x8e\x66\xad\xa8\xe9\x08\x67\x53\x68\x72\x53\xe4\x35\x1c\x65\x6c\x25\xfb\xc9\xef\x78\x41\x8d\x05\x8a\x7b\x27\xd9\x7f\xee\xd5\xbd\xd0\xaa\xb5\xb9\x15\x4a\xb2\x39\x2d\xa4\x1d\xe8\x8d\xb2\xb0\x3b\x02\x92\x8f\xab\x56\x16\x90\x6c\xd8\xee\x3a\x38\x1e\x46\xd5\x75\x29\x98\x6f\xf5\x75\x7e\x8f\x49\x61\x1f\xa0\x50\xd2\xe2\x83\xcd\xce\xdd\xdf\x14\x12\x16\xcf\x3e\xe5\x2b\x84\xae\x1b\x03\x6a\xad\x74\x0a\x4f\x71\xf4\x55\xaa\x12\xc7\xf0\xd5\x34\x58\x50\x38\x5b\x7e\x32\x97\x87\xeb\x06\x8b\x24\x8d\x23\x51\x91\x2a\xc9\x99\x6f\xf5\x5c\xe7\xcd\x22\x3b\x67\x81\x4f\xaa\x64\xd7\xe3\x1d\x03\xa5\xa6\x4f\xde\x43\xfa\x9e\xf5\x7f\x98\x82\x14\x35\xb9\x27\x8b\x05\x6a\x3d\x06\xb5\x24\xb3\xc2\x5c\xff\xe3\x97\x73\x25\x8d\xd5\xb9\x90\xf6\x23\xc5\x99\xa0\xd6\xe9\x7b\x12\x20\x85\x88\x0c\x4c\x59\x29\x8e\xa2\x2e\x8e\x22\x8d\xb6\xd5\x92\x2c\xf2\xc1\x62\x5a\x7c\x7a\x3a\x01\x51\x41\x2e\x4b\x38\xca\xae\x2e\xb2\xcf\x06\xf5\x05\x5f\x73\x09\x89\xd2\x6e\xf1\xca\x5c\x5b\x2d\xe4\x3c\x7c\xfb\xfc\xf9\xea\x22\xa5\x9c\x47\xac\x3f\x39\x86\x0b\x05\x52\xd9\x85\x90\xf3\x31\xcc\xb0\xc8\x5b\x83\x84\x48\x83\xf0\x0e\x08\x48\x06\x56\xad\xb1\x30\x43\x30\x6d\xd3\xd4\x02\x4b\x98\x3d\x32\x66\x5b\x83\x3a\x83\xe3\x09\x9c\x74\x3e\x1c\xac\x0d\xae\x8d\x8b\x6a\x37\x30\xde\xa4\x8c\xf0\xa5\x64\x57\x17\x30\x9d\xc2\x29\x9f\x9a\x0d\xc8\x5e\xa4\xa4\x5c\x71\x46\xc9\xc6\x6f\x79\xdd\x62\x96\x08\x69\xff\xf8\x87\x94\xf6\xd7\xfa\x7c\x1d\x24\x73\xf3\xd8\x90\xf7\x44\x94\xe9\x8b\x11\x74\x5b\x0e\x87\x9f\x7d\xb2\x3d\x6c\xa4\xa8\xe3\xd7\x43\x74\x88\xa5\x1d\x48\x1e\x6f\x21\x8a\xc4\x18\xa1\xf7\xb9\x86\x24\xf6\x87\x82\x29\xbc\x19\xea\x3d\x15\x4a\x56\x62\x7e\xb6\x8b\x5b\x5e\xa7\x93\x38\x68\x4f\xe1\xcd\x1e\x07\x0c\xa8\x9b\x7c\x56\xa3\xb3\x90\xfd\x3d\x2f\x96\xf9\x9c\x2c\x67\xbc\x3c\x26\x81\xab\x8b\xb3\x81\xf6\xa5\xc0\xba\xec\x95\xa3\x1b\xe6\x9a\x8a\x16\xb3\x61\xb2\x33\x46\x71\x38\x1e\x8b\x9e\xab\xba\x5d\xc9\x5d\x4f\x41\x8d\x35\x72\x69\x83\x02\xff\xdf\xc5\x51\x1a\x07\x3c\x7e\xa8\x6b\xf5\x1d\x1c\x41\xc8\x39\x03\x6d\xcf\xa9\x08\x83\xc4\xda\xf8\x60\x51\x1a\xa1\xa4\x01\xa5\x19\x91\x60\x71\xd5\xd4\xb9\x45\x93\x31\xfb\xb1\xdd\xef\xc2\x2e\xe0\xc8\xae\x9a\xda\x10\xac\x56\xb9\x2d\x16\x37\x5e\x6e\x1f\x29\x4e\x28\xa1\x93\xe3\xd1\x1a\xcc\x3a\x97\x73\x74\x26\xc8\x82\xb7\xe5\xc0\x44\xfb\x0f\xc1\xad\x97\x39\x5a\xab\xee\xc3\xd8\x41\x74\x8a\x0a\x44\x19\xe8\x62\x83\x4c\x07\x99\xfc\xd5\xaf\xfd\x05\x29\x99\xc9\x80\x3d\x06\xa5\x21\x4a\x5e\xd8\xa8\xa2\xb0\xbc\x27\x22\x7f\xc8\x8a\x4f\xd8\x7b\x60\x34\x98\x3e\xb4\x7b\x32\x72\x28\xba\xea\x50\x6c\x1c\x8a\xb7\x38\x85\xbc\x69\x50\x96\xc9\x70\x75\xfc\x7a\x1c\x56\xcf\xa1\x90\xcf\x79\xe6\x23\x7d\x11\x97\xd5\x2e\x2a\x07\x14\xe3\x24\xae\xad\x6e\x0b\xcb\xf1\x50\xdd\xf3\xc1\xe9\xfe\xaa\xec\x93\xa8\x6b\x2a\x23\x97\xdb\xae\xa3\xda\x75\x39\x65\xf7\x07\x13\x8d\x2e\xd1\x1f\xcb\x39\xae\xf3\x4b\x5e\xcd\x73\xb9\xc5\xad\x48\xae\x2e\x0c\xa5\xb7\x46\x99\xb0\x5e\x0a\x3f\x7a\x3a\x5d\xe3\x9e\x6b\xa4\x84\x23\x18\x91\xa3\x11\xb9\x1d\xd1\x63\x66\x46\x60\x75\x8b\x30\xfa\x27\x6a\x35\x82\x91\x14\xb5\x07\x3c\x29\xf7\x75\xb4\x59\x1f\x25\x56\xc8\x56\x32\xa2\x26\xea\x45\x4a\x0f\x5d\x21\xa9\x50\x27\x6d\x53\xe6\x16\x33\x2e\x02\x57\x80\xdb\xd4\x1e\xb0\x8f\xd9\xdf\xbe\xcb\xcb\x9f\xd7\x2e\x4f\xe0\xa8\x62\x54\x1d\x61\x76\xa9\x34\x8a\xb9\xfc\x19\x1f\xc3\xfe\xe0\x3a\x96\xcf\xdf\xc7\xd2\x81\xe6\xc0\xb5\x70\x9e\x6e\x4f\xef\x76\x03\x73\x30\x74\xb7\xb1\x85\x4d\x5e\x1c\x03\x1d\x3d\xdd\xbd\xd2\xcd\x17\x83\x35\x62\xd7\x77\x79\x89\xc3\x2d\xd8\xd7\x59\x5b\x2f\xff\x0f\x7d\x58\x3c\x99\x00\x35\x4c\xfe\x55\x32\x4c\xa6\xc3\xa7\x85\x28\x54\x58\x81\x26\xb4\xa1\x65\x6e\xf3\x59\x6e\x30\x7b\xed\x7b\x77\xa0\x1f\xbb\xbd\x7b\xb6\x23\xa3\x04\x79\x22\x5e\x22\x09\xee\x61\xf8\x31\x83\x7a\xfb\xcd\xf3\xbe\x4d\x9a\xc6\x51\x5f\x28\xc1\xca\xa6\xbb\x97\xd4\xb9\xb4\x94\x1e\x5a\xf8\xd5\x2d\xbd\xac\x5b\x29\x0d\x82\xf3\xce\x85\xfc\x9c\x28\x17\x22\x65\x32\x11\x20\xa4\x1d\xbb\x36\x7f\x27\x55\x5c\xae\x83\x6b\x7f\xce\xdc\xad\xb8\x1b\xd6\x4f\xf6\xd7\xdc\x5c\x60\x95\xb7\xb5\x0d\x35\xe2\x25\xb3\xd2\x2d\x9b\x24\xdd\x45\x39\x35\x1b\xab\xd6\x82\x3f\x2c\x4c\xdd\x27\xbc\xa4\x38\x39\xd8\x3d\xf7\x39\x86\x15\x04\x56\x4f\x21\xf9\xcd\xbd\x01\xeb\x1b\x8d\xa2\x28\x50\x55\x78\x1a\x56\x99\xef\x7f\x82\x9e\xbf\x19\x0e\x89\x88\xee\x87\xf0\x28\x6c\xf6\xb7\xd5\xca\x66\xdc\x14\x57\xc9\xa8\x95\xf8\xd0\x60\x61\xb1\x84\x9e\x09\xa9\x29\x85\xdf\xdd\x8c\xc6\xb0\x72\xa6\xba\x60\xd0\xf7\xed\x21\x09\xc5\x02\x8b\x65\xb2\xdb\x8f\x47\x7b\xfa\xe9\xde\x4c\x50\xee\xdd\x4d\x7b\xcf\xbc\xef\xd8\x43\xdc\x8d\x81\x41\x7c\x2b\xee\x60\xe0\x71\x63\x92\xf0\xb9\x26\xef\x9c\xa8\x10\xa6\x80\x3f\x33\xc0\x02\x00\xd3\x93\xb7\x21\xae\xaf\x1c\x4e\xf0\xa9\xe8\xca\x7f\xff\xf6\xce\x65\x10\x13\x42\xcf\xee\xf4\xb1\x46\x07\x89\x86\x60\x7d\x6a\x5c\x4b\xee\xad\x4f\x26\x70\x25\xef\xd5\x92\x1b\x7c\xc8\x0b\xdb\xe6\x35\xa8\x06\xb5\x3b\xa9\x72\x1c\xc0\xbd\x93\x5d\xe7\xdb\x53\x43\xb1\xc8\x85\xcc\x9c\x21\x9f\xeb\xc1\x88\xf4\x13\x75\x54\xae\x78\x0f\xcf\x48\x6f\xf6\xa9\xf0\x13\xcf\x4f\xd2\x99\x4b\x6b\xb7\xf7\xd6\xfe\x83\x49\x2a\xda\x9e\xa6\xd6\x37\xed\xff\x74\x1b\xe0\xed\xdb\x2b\xcf\xb5\x83\x17\xe6\x4d\xb8\xfa\x5e\x66\xf3\x11\xda\xb4\x53\x2a\x49\x9d\x16\x3d\xb0\x43\x78\xbe\x16\x86\xff\xed\x70\x17\xfd\xcf\xe7\xbb\xc0\x23\xfd\x88\x17\xbd\x34\x63\x45\xeb\x76\x86\xb2\x36\x9c\xf5\x76\x48\xa9\x9f\xf8\x42\x55\xed\x1d\xfa\x06\xf5\x77\x68\xf4\x7b\x4d\x64\xdd\xde\x28\xb6\xbe\x86\xfb\xe9\x6b\x9e\x86\xc1\xbe\x3f\xec\x1f\x01\x2a\xe6\x40\x01\x0b\xa5\x96\x26\x85\x13\x78\xfb\x1e\x04\xfc\x38\x85\xd3\xf7\x20\x4e\x4e\xd6\x1c\x39\xa0\x0b\x96\xbd\x15\x77\xc4\x04\x69\x98\x4a\xa3\x75\xe9\xdf\x39\x22\xa0\x7e\x23\x11\x63\x28\xec\x43\xca\x93\xbf\xa8\x36\xf9\xa3\xef\xf9\x68\xae\x1e\x07\x1a\xec\xed\x9c\xf6\x04\xb2\xb7\x32\x7b\xfe\x38\x1d\xb0\xc7\x6e\xf9\xed\x62\xb5\xe3\x60\x86\x39\xea\xa7\x65\xdf\x78\x7c\x71\xbf\x90\x2d\x91\xbf\x8d\x61\xd6\x5a\x68\x72\x29\x0a\xe3\xc0\xed\x78\x11\x54\x51\xb4\xda\xfc\x5b\x3d\xc7\x97\xfd\x4d\xc7\x56\x13\xc0\xb3\x75\x9f\x90\xed\x83\x87\xde\x65\xfd\xa3\xcf\xe0\xbc\x1c\x26\x93\xc9\xf0\x94\xf7\x71\x37\xe8\xea\xfe\x15\x00\x00\xff\xff\xd5\x19\x47\xe0\x4f\x14\x00\x00") func templateDialectSqlCreateTmplBytes() ([]byte, error) { return bindataRead( @@ -647,7 +647,7 @@ func templateDialectSqlCreateTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/sql/create.tmpl", size: 5127, mode: os.FileMode(420), modTime: time.Unix(1, 0)} + info := bindataFileInfo{name: "template/dialect/sql/create.tmpl", size: 5199, 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/create.tmpl b/entc/gen/template/builder/create.tmpl index 93e95e1a4..b9e3c980d 100644 --- a/entc/gen/template/builder/create.tmpl +++ b/entc/gen/template/builder/create.tmpl @@ -59,6 +59,7 @@ func ({{ $receiver }} *{{ $builder }}) Save(ctx context.Context) (*{{ $.Name }}, } {{ $mutation }} = mutation node, err = {{ $receiver }}.{{ $.Storage }}Save(ctx) + mutation.{{ $.ID.BuilderField }} = &node.{{ $.ID.StructField }} mutation.done = true return node, err }) diff --git a/entc/gen/template/builder/mutation.tmpl b/entc/gen/template/builder/mutation.tmpl index 61102eb76..7e928c99c 100644 --- a/entc/gen/template/builder/mutation.tmpl +++ b/entc/gen/template/builder/mutation.tmpl @@ -149,8 +149,8 @@ func (m {{ $mutation }}) Tx() (*Tx, error) { } {{- end }} -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *{{ $mutation }}) ID() (id {{ $n.ID.Type }}, exists bool) { if m.{{ $n.ID.BuilderField }} == nil { return diff --git a/entc/gen/template/dialect/sql/create.tmpl b/entc/gen/template/dialect/sql/create.tmpl index ef9b0d2ad..435930e0c 100644 --- a/entc/gen/template/dialect/sql/create.tmpl +++ b/entc/gen/template/dialect/sql/create.tmpl @@ -120,6 +120,7 @@ func ({{ $receiver }} *{{ $builder }}) Save(ctx context.Context) ([]*{{ $.Name } } } } + mutation.{{ $.ID.BuilderField }} = &nodes[i].{{ $.ID.StructField }} mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/cascadelete/ent/comment_create.go b/entc/integration/cascadelete/ent/comment_create.go index 8bac40aaf..889c295a6 100644 --- a/entc/integration/cascadelete/ent/comment_create.go +++ b/entc/integration/cascadelete/ent/comment_create.go @@ -68,6 +68,7 @@ func (cc *CommentCreate) Save(ctx context.Context) (*Comment, error) { } cc.mutation = mutation node, err = cc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -194,6 +195,7 @@ func (ccb *CommentCreateBulk) Save(ctx context.Context) ([]*Comment, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/cascadelete/ent/mutation.go b/entc/integration/cascadelete/ent/mutation.go index 87bbc4d2f..55868288c 100644 --- a/entc/integration/cascadelete/ent/mutation.go +++ b/entc/integration/cascadelete/ent/mutation.go @@ -118,8 +118,8 @@ func (m CommentMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *CommentMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -520,8 +520,8 @@ func (m PostMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *PostMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -1021,8 +1021,8 @@ func (m UserMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *UserMutation) ID() (id int, exists bool) { if m.id == nil { return diff --git a/entc/integration/cascadelete/ent/post_create.go b/entc/integration/cascadelete/ent/post_create.go index 4311102ad..4518e2c5b 100644 --- a/entc/integration/cascadelete/ent/post_create.go +++ b/entc/integration/cascadelete/ent/post_create.go @@ -101,6 +101,7 @@ func (pc *PostCreate) Save(ctx context.Context) (*Post, error) { } pc.mutation = mutation node, err = pc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -249,6 +250,7 @@ func (pcb *PostCreateBulk) Save(ctx context.Context) ([]*Post, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/cascadelete/ent/user_create.go b/entc/integration/cascadelete/ent/user_create.go index 8bf458b6a..f8dc9bdf6 100644 --- a/entc/integration/cascadelete/ent/user_create.go +++ b/entc/integration/cascadelete/ent/user_create.go @@ -81,6 +81,7 @@ func (uc *UserCreate) Save(ctx context.Context) (*User, error) { } uc.mutation = mutation node, err = uc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -209,6 +210,7 @@ func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/config/ent/mutation.go b/entc/integration/config/ent/mutation.go index 2bbffd937..1707f9355 100644 --- a/entc/integration/config/ent/mutation.go +++ b/entc/integration/config/ent/mutation.go @@ -119,8 +119,8 @@ func (m *UserMutation) SetID(id int) { m.id = &id } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *UserMutation) ID() (id int, exists bool) { if m.id == nil { return diff --git a/entc/integration/config/ent/user_create.go b/entc/integration/config/ent/user_create.go index bb3b67867..bb469abbd 100644 --- a/entc/integration/config/ent/user_create.go +++ b/entc/integration/config/ent/user_create.go @@ -83,6 +83,7 @@ func (uc *UserCreate) Save(ctx context.Context) (*User, error) { } uc.mutation = mutation node, err = uc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -194,6 +195,7 @@ func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/customid/ent/blob_create.go b/entc/integration/customid/ent/blob_create.go index f960b03f7..cdc632483 100644 --- a/entc/integration/customid/ent/blob_create.go +++ b/entc/integration/customid/ent/blob_create.go @@ -98,6 +98,7 @@ func (bc *BlobCreate) Save(ctx context.Context) (*Blob, error) { } bc.mutation = mutation node, err = bc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -252,6 +253,7 @@ func (bcb *BlobCreateBulk) Save(ctx context.Context) ([]*Blob, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/customid/ent/car_create.go b/entc/integration/customid/ent/car_create.go index 738e86a18..2b9b10ac8 100644 --- a/entc/integration/customid/ent/car_create.go +++ b/entc/integration/customid/ent/car_create.go @@ -110,6 +110,7 @@ func (cc *CarCreate) Save(ctx context.Context) (*Car, error) { } cc.mutation = mutation node, err = cc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -267,6 +268,7 @@ func (ccb *CarCreateBulk) Save(ctx context.Context) ([]*Car, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/customid/ent/doc_create.go b/entc/integration/customid/ent/doc_create.go index a325c31d0..ba785eeb4 100644 --- a/entc/integration/customid/ent/doc_create.go +++ b/entc/integration/customid/ent/doc_create.go @@ -113,6 +113,7 @@ func (dc *DocCreate) Save(ctx context.Context) (*Doc, error) { } dc.mutation = mutation node, err = dc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -265,6 +266,7 @@ func (dcb *DocCreateBulk) Save(ctx context.Context) ([]*Doc, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/customid/ent/group_create.go b/entc/integration/customid/ent/group_create.go index 52d44e1fc..5b40553e6 100644 --- a/entc/integration/customid/ent/group_create.go +++ b/entc/integration/customid/ent/group_create.go @@ -71,6 +71,7 @@ func (gc *GroupCreate) Save(ctx context.Context) (*Group, error) { } gc.mutation = mutation node, err = gc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -185,6 +186,7 @@ func (gcb *GroupCreateBulk) Save(ctx context.Context) ([]*Group, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/customid/ent/mixinid_create.go b/entc/integration/customid/ent/mixinid_create.go index fcb59a3fb..fdac639ee 100644 --- a/entc/integration/customid/ent/mixinid_create.go +++ b/entc/integration/customid/ent/mixinid_create.go @@ -70,6 +70,7 @@ func (mic *MixinIDCreate) Save(ctx context.Context) (*MixinID, error) { } mic.mutation = mutation node, err = mic.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -192,6 +193,7 @@ func (micb *MixinIDCreateBulk) Save(ctx context.Context) ([]*MixinID, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/customid/ent/mutation.go b/entc/integration/customid/ent/mutation.go index 6baa49ac0..7201cd522 100644 --- a/entc/integration/customid/ent/mutation.go +++ b/entc/integration/customid/ent/mutation.go @@ -139,8 +139,8 @@ func (m *BlobMutation) SetID(id uuid.UUID) { m.id = &id } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *BlobMutation) ID() (id uuid.UUID, exists bool) { if m.id == nil { return @@ -584,8 +584,8 @@ func (m *CarMutation) SetID(id int) { m.id = &id } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *CarMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -1165,8 +1165,8 @@ func (m *DocMutation) SetID(id schema.DocID) { m.id = &id } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *DocMutation) ID() (id schema.DocID, exists bool) { if m.id == nil { return @@ -1628,8 +1628,8 @@ func (m *GroupMutation) SetID(id int) { m.id = &id } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *GroupMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -1950,8 +1950,8 @@ func (m *MixinIDMutation) SetID(id uuid.UUID) { m.id = &id } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *MixinIDMutation) ID() (id uuid.UUID, exists bool) { if m.id == nil { return @@ -2301,8 +2301,8 @@ func (m *NoteMutation) SetID(id schema.NoteID) { m.id = &id } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *NoteMutation) ID() (id schema.NoteID, exists bool) { if m.id == nil { return @@ -2771,8 +2771,8 @@ func (m *PetMutation) SetID(id string) { m.id = &id } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *PetMutation) ID() (id string, exists bool) { if m.id == nil { return @@ -3295,8 +3295,8 @@ func (m *UserMutation) SetID(id int) { m.id = &id } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *UserMutation) ID() (id int, exists bool) { if m.id == nil { return diff --git a/entc/integration/customid/ent/note_create.go b/entc/integration/customid/ent/note_create.go index a414a8181..87290f30d 100644 --- a/entc/integration/customid/ent/note_create.go +++ b/entc/integration/customid/ent/note_create.go @@ -113,6 +113,7 @@ func (nc *NoteCreate) Save(ctx context.Context) (*Note, error) { } nc.mutation = mutation node, err = nc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -265,6 +266,7 @@ func (ncb *NoteCreateBulk) Save(ctx context.Context) ([]*Note, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/customid/ent/pet_create.go b/entc/integration/customid/ent/pet_create.go index e29d00fb0..0ea3bc4f9 100644 --- a/entc/integration/customid/ent/pet_create.go +++ b/entc/integration/customid/ent/pet_create.go @@ -134,6 +134,7 @@ func (pc *PetCreate) Save(ctx context.Context) (*Pet, error) { } pc.mutation = mutation node, err = pc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -317,6 +318,7 @@ func (pcb *PetCreateBulk) Save(ctx context.Context) ([]*Pet, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/customid/ent/user_create.go b/entc/integration/customid/ent/user_create.go index 2894f0530..80bd46215 100644 --- a/entc/integration/customid/ent/user_create.go +++ b/entc/integration/customid/ent/user_create.go @@ -121,6 +121,7 @@ func (uc *UserCreate) Save(ctx context.Context) (*User, error) { } uc.mutation = mutation node, err = uc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -293,6 +294,7 @@ func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/edgefield/ent/car_create.go b/entc/integration/edgefield/ent/car_create.go index 745851925..c70295303 100644 --- a/entc/integration/edgefield/ent/car_create.go +++ b/entc/integration/edgefield/ent/car_create.go @@ -79,6 +79,7 @@ func (cc *CarCreate) Save(ctx context.Context) (*Car, error) { } cc.mutation = mutation node, err = cc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -195,6 +196,7 @@ func (ccb *CarCreateBulk) Save(ctx context.Context) ([]*Car, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/edgefield/ent/card_create.go b/entc/integration/edgefield/ent/card_create.go index 7386b7240..9a68549ff 100644 --- a/entc/integration/edgefield/ent/card_create.go +++ b/entc/integration/edgefield/ent/card_create.go @@ -83,6 +83,7 @@ func (cc *CardCreate) Save(ctx context.Context) (*Card, error) { } cc.mutation = mutation node, err = cc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -200,6 +201,7 @@ func (ccb *CardCreateBulk) Save(ctx context.Context) ([]*Card, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/edgefield/ent/info_create.go b/entc/integration/edgefield/ent/info_create.go index d48f5404a..cb99ec102 100644 --- a/entc/integration/edgefield/ent/info_create.go +++ b/entc/integration/edgefield/ent/info_create.go @@ -83,6 +83,7 @@ func (ic *InfoCreate) Save(ctx context.Context) (*Info, error) { } ic.mutation = mutation node, err = ic.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -209,6 +210,7 @@ func (icb *InfoCreateBulk) Save(ctx context.Context) ([]*Info, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/edgefield/ent/metadata_create.go b/entc/integration/edgefield/ent/metadata_create.go index aee734759..e053b401a 100644 --- a/entc/integration/edgefield/ent/metadata_create.go +++ b/entc/integration/edgefield/ent/metadata_create.go @@ -91,6 +91,7 @@ func (mc *MetadataCreate) Save(ctx context.Context) (*Metadata, error) { } mc.mutation = mutation node, err = mc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -226,6 +227,7 @@ func (mcb *MetadataCreateBulk) Save(ctx context.Context) ([]*Metadata, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/edgefield/ent/mutation.go b/entc/integration/edgefield/ent/mutation.go index 7447686c3..3af16c6be 100644 --- a/entc/integration/edgefield/ent/mutation.go +++ b/entc/integration/edgefield/ent/mutation.go @@ -131,8 +131,8 @@ func (m CarMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *CarMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -531,8 +531,8 @@ func (m CardMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *CardMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -977,8 +977,8 @@ func (m *InfoMutation) SetID(id int) { m.id = &id } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *InfoMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -1340,8 +1340,8 @@ func (m *MetadataMutation) SetID(id int) { m.id = &id } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *MetadataMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -1730,8 +1730,8 @@ func (m PetMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *PetMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -2098,8 +2098,8 @@ func (m PostMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *PostMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -2521,8 +2521,8 @@ func (m RentalMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *RentalMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -3034,8 +3034,8 @@ func (m UserMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *UserMutation) ID() (id int, exists bool) { if m.id == nil { return diff --git a/entc/integration/edgefield/ent/pet_create.go b/entc/integration/edgefield/ent/pet_create.go index 6b7cc4c0a..044cd0e7f 100644 --- a/entc/integration/edgefield/ent/pet_create.go +++ b/entc/integration/edgefield/ent/pet_create.go @@ -69,6 +69,7 @@ func (pc *PetCreate) Save(ctx context.Context) (*Pet, error) { } pc.mutation = mutation node, err = pc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -178,6 +179,7 @@ func (pcb *PetCreateBulk) Save(ctx context.Context) ([]*Pet, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/edgefield/ent/post_create.go b/entc/integration/edgefield/ent/post_create.go index 2fc46588d..833284c41 100644 --- a/entc/integration/edgefield/ent/post_create.go +++ b/entc/integration/edgefield/ent/post_create.go @@ -76,6 +76,7 @@ func (pc *PostCreate) Save(ctx context.Context) (*Post, error) { } pc.mutation = mutation node, err = pc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -196,6 +197,7 @@ func (pcb *PostCreateBulk) Save(ctx context.Context) ([]*Post, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/edgefield/ent/rental_create.go b/entc/integration/edgefield/ent/rental_create.go index 8357e8744..19d05c406 100644 --- a/entc/integration/edgefield/ent/rental_create.go +++ b/entc/integration/edgefield/ent/rental_create.go @@ -90,6 +90,7 @@ func (rc *RentalCreate) Save(ctx context.Context) (*Rental, error) { } rc.mutation = mutation node, err = rc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -251,6 +252,7 @@ func (rcb *RentalCreateBulk) Save(ctx context.Context) ([]*Rental, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/edgefield/ent/user_create.go b/entc/integration/edgefield/ent/user_create.go index 4045abb4d..fa692d290 100644 --- a/entc/integration/edgefield/ent/user_create.go +++ b/entc/integration/edgefield/ent/user_create.go @@ -190,6 +190,7 @@ func (uc *UserCreate) Save(ctx context.Context) (*User, error) { } uc.mutation = mutation node, err = uc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -433,6 +434,7 @@ func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/ent/card_create.go b/entc/integration/ent/card_create.go index 7af76ec72..ccad957af 100644 --- a/entc/integration/ent/card_create.go +++ b/entc/integration/ent/card_create.go @@ -150,6 +150,7 @@ func (cc *CardCreate) Save(ctx context.Context) (*Card, error) { } cc.mutation = mutation node, err = cc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -357,6 +358,7 @@ func (ccb *CardCreateBulk) Save(ctx context.Context) ([]*Card, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/ent/comment_create.go b/entc/integration/ent/comment_create.go index bd12d2794..05e8438e5 100644 --- a/entc/integration/ent/comment_create.go +++ b/entc/integration/ent/comment_create.go @@ -76,6 +76,7 @@ func (cc *CommentCreate) Save(ctx context.Context) (*Comment, error) { } cc.mutation = mutation node, err = cc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -195,6 +196,7 @@ func (ccb *CommentCreateBulk) Save(ctx context.Context) ([]*Comment, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/ent/fieldtype_create.go b/entc/integration/ent/fieldtype_create.go index 9b12aa0b2..fcc7a4bec 100644 --- a/entc/integration/ent/fieldtype_create.go +++ b/entc/integration/ent/fieldtype_create.go @@ -726,6 +726,7 @@ func (ftc *FieldTypeCreate) Save(ctx context.Context) (*FieldType, error) { } ftc.mutation = mutation node, err = ftc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -1381,6 +1382,7 @@ func (ftcb *FieldTypeCreateBulk) Save(ctx context.Context) ([]*FieldType, error) } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/ent/file_create.go b/entc/integration/ent/file_create.go index af0a35847..93b23a8b4 100644 --- a/entc/integration/ent/file_create.go +++ b/entc/integration/ent/file_create.go @@ -169,6 +169,7 @@ func (fc *FileCreate) Save(ctx context.Context) (*File, error) { } fc.mutation = mutation node, err = fc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -377,6 +378,7 @@ func (fcb *FileCreateBulk) Save(ctx context.Context) ([]*File, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/ent/filetype_create.go b/entc/integration/ent/filetype_create.go index 596e3a140..6962d1f39 100644 --- a/entc/integration/ent/filetype_create.go +++ b/entc/integration/ent/filetype_create.go @@ -101,6 +101,7 @@ func (ftc *FileTypeCreate) Save(ctx context.Context) (*FileType, error) { } ftc.mutation = mutation node, err = ftc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -265,6 +266,7 @@ func (ftcb *FileTypeCreateBulk) Save(ctx context.Context) ([]*FileType, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/ent/goods_create.go b/entc/integration/ent/goods_create.go index a66700e28..911b1c31b 100644 --- a/entc/integration/ent/goods_create.go +++ b/entc/integration/ent/goods_create.go @@ -49,6 +49,7 @@ func (gc *GoodsCreate) Save(ctx context.Context) (*Goods, error) { } gc.mutation = mutation node, err = gc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -138,6 +139,7 @@ func (gcb *GoodsCreateBulk) Save(ctx context.Context) ([]*Goods, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/ent/group_create.go b/entc/integration/ent/group_create.go index 027593fe3..cc2f86485 100644 --- a/entc/integration/ent/group_create.go +++ b/entc/integration/ent/group_create.go @@ -165,6 +165,7 @@ func (gc *GroupCreate) Save(ctx context.Context) (*Group, error) { } gc.mutation = mutation node, err = gc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -411,6 +412,7 @@ func (gcb *GroupCreateBulk) Save(ctx context.Context) ([]*Group, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/ent/groupinfo_create.go b/entc/integration/ent/groupinfo_create.go index 1a955ac55..59b1627eb 100644 --- a/entc/integration/ent/groupinfo_create.go +++ b/entc/integration/ent/groupinfo_create.go @@ -87,6 +87,7 @@ func (gic *GroupInfoCreate) Save(ctx context.Context) (*GroupInfo, error) { } gic.mutation = mutation node, err = gic.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -226,6 +227,7 @@ func (gicb *GroupInfoCreateBulk) Save(ctx context.Context) ([]*GroupInfo, error) } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/ent/item_create.go b/entc/integration/ent/item_create.go index 43cc8725e..5c6b71ba2 100644 --- a/entc/integration/ent/item_create.go +++ b/entc/integration/ent/item_create.go @@ -49,6 +49,7 @@ func (ic *ItemCreate) Save(ctx context.Context) (*Item, error) { } ic.mutation = mutation node, err = ic.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -138,6 +139,7 @@ func (icb *ItemCreateBulk) Save(ctx context.Context) ([]*Item, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/ent/mutation.go b/entc/integration/ent/mutation.go index 4cdde21c5..f70fa724d 100644 --- a/entc/integration/ent/mutation.go +++ b/entc/integration/ent/mutation.go @@ -153,8 +153,8 @@ func (m CardMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *CardMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -860,8 +860,8 @@ func (m CommentMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *CommentMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -1462,8 +1462,8 @@ func (m FieldTypeMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *FieldTypeMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -6685,8 +6685,8 @@ func (m FileMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *FileMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -7487,8 +7487,8 @@ func (m FileTypeMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *FileTypeMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -7968,8 +7968,8 @@ func (m GoodsMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *GoodsMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -8210,8 +8210,8 @@ func (m GroupMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *GroupMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -9095,8 +9095,8 @@ func (m GroupInfoMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *GroupInfoMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -9558,8 +9558,8 @@ func (m ItemMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *ItemMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -9789,8 +9789,8 @@ func (m NodeMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *NodeMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -10265,8 +10265,8 @@ func (m PetMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *PetMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -10841,8 +10841,8 @@ func (m SpecMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *SpecMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -11157,8 +11157,8 @@ func (m TaskMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *TaskMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -11519,8 +11519,8 @@ func (m UserMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *UserMutation) ID() (id int, exists bool) { if m.id == nil { return diff --git a/entc/integration/ent/node_create.go b/entc/integration/ent/node_create.go index a7f393e38..db19938fc 100644 --- a/entc/integration/ent/node_create.go +++ b/entc/integration/ent/node_create.go @@ -101,6 +101,7 @@ func (nc *NodeCreate) Save(ctx context.Context) (*Node, error) { } nc.mutation = mutation node, err = nc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -237,6 +238,7 @@ func (ncb *NodeCreateBulk) Save(ctx context.Context) ([]*Node, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/ent/pet_create.go b/entc/integration/ent/pet_create.go index ab1721183..6dee6be95 100644 --- a/entc/integration/ent/pet_create.go +++ b/entc/integration/ent/pet_create.go @@ -117,6 +117,7 @@ func (pc *PetCreate) Save(ctx context.Context) (*Pet, error) { } pc.mutation = mutation node, err = pc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -285,6 +286,7 @@ func (pcb *PetCreateBulk) Save(ctx context.Context) ([]*Pet, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/ent/spec_create.go b/entc/integration/ent/spec_create.go index 71cdd3015..7fb12f18e 100644 --- a/entc/integration/ent/spec_create.go +++ b/entc/integration/ent/spec_create.go @@ -65,6 +65,7 @@ func (sc *SpecCreate) Save(ctx context.Context) (*Spec, error) { } sc.mutation = mutation node, err = sc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -173,6 +174,7 @@ func (scb *SpecCreateBulk) Save(ctx context.Context) ([]*Spec, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/ent/task_create.go b/entc/integration/ent/task_create.go index 995e3492a..2a5b81b95 100644 --- a/entc/integration/ent/task_create.go +++ b/entc/integration/ent/task_create.go @@ -66,6 +66,7 @@ func (tc *TaskCreate) Save(ctx context.Context) (*Task, error) { } tc.mutation = mutation node, err = tc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -180,6 +181,7 @@ func (tcb *TaskCreateBulk) Save(ctx context.Context) ([]*Task, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/ent/user_create.go b/entc/integration/ent/user_create.go index 88be6b793..55ca71f71 100644 --- a/entc/integration/ent/user_create.go +++ b/entc/integration/ent/user_create.go @@ -360,6 +360,7 @@ func (uc *UserCreate) Save(ctx context.Context) (*User, error) { } uc.mutation = mutation node, err = uc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -779,6 +780,7 @@ func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/gremlin/ent/card_create.go b/entc/integration/gremlin/ent/card_create.go index 9f746e6d1..cfd04b239 100644 --- a/entc/integration/gremlin/ent/card_create.go +++ b/entc/integration/gremlin/ent/card_create.go @@ -153,6 +153,7 @@ func (cc *CardCreate) Save(ctx context.Context) (*Card, error) { } cc.mutation = mutation node, err = cc.gremlinSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) diff --git a/entc/integration/gremlin/ent/comment_create.go b/entc/integration/gremlin/ent/comment_create.go index 56df4800a..39dca2b8c 100644 --- a/entc/integration/gremlin/ent/comment_create.go +++ b/entc/integration/gremlin/ent/comment_create.go @@ -79,6 +79,7 @@ func (cc *CommentCreate) Save(ctx context.Context) (*Comment, error) { } cc.mutation = mutation node, err = cc.gremlinSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) diff --git a/entc/integration/gremlin/ent/fieldtype_create.go b/entc/integration/gremlin/ent/fieldtype_create.go index b9ae95283..4daa901b9 100644 --- a/entc/integration/gremlin/ent/fieldtype_create.go +++ b/entc/integration/gremlin/ent/fieldtype_create.go @@ -727,6 +727,7 @@ func (ftc *FieldTypeCreate) Save(ctx context.Context) (*FieldType, error) { } ftc.mutation = mutation node, err = ftc.gremlinSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) diff --git a/entc/integration/gremlin/ent/file_create.go b/entc/integration/gremlin/ent/file_create.go index 91ef48fea..2b76f97d4 100644 --- a/entc/integration/gremlin/ent/file_create.go +++ b/entc/integration/gremlin/ent/file_create.go @@ -171,6 +171,7 @@ func (fc *FileCreate) Save(ctx context.Context) (*File, error) { } fc.mutation = mutation node, err = fc.gremlinSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) diff --git a/entc/integration/gremlin/ent/filetype_create.go b/entc/integration/gremlin/ent/filetype_create.go index a2cefc869..36f707344 100644 --- a/entc/integration/gremlin/ent/filetype_create.go +++ b/entc/integration/gremlin/ent/filetype_create.go @@ -103,6 +103,7 @@ func (ftc *FileTypeCreate) Save(ctx context.Context) (*FileType, error) { } ftc.mutation = mutation node, err = ftc.gremlinSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) diff --git a/entc/integration/gremlin/ent/goods_create.go b/entc/integration/gremlin/ent/goods_create.go index 192c5e29d..73527cfe7 100644 --- a/entc/integration/gremlin/ent/goods_create.go +++ b/entc/integration/gremlin/ent/goods_create.go @@ -50,6 +50,7 @@ func (gc *GoodsCreate) Save(ctx context.Context) (*Goods, error) { } gc.mutation = mutation node, err = gc.gremlinSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) diff --git a/entc/integration/gremlin/ent/group_create.go b/entc/integration/gremlin/ent/group_create.go index 182fb8573..46e042119 100644 --- a/entc/integration/gremlin/ent/group_create.go +++ b/entc/integration/gremlin/ent/group_create.go @@ -166,6 +166,7 @@ func (gc *GroupCreate) Save(ctx context.Context) (*Group, error) { } gc.mutation = mutation node, err = gc.gremlinSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) diff --git a/entc/integration/gremlin/ent/groupinfo_create.go b/entc/integration/gremlin/ent/groupinfo_create.go index 8c7381a00..fe891b7da 100644 --- a/entc/integration/gremlin/ent/groupinfo_create.go +++ b/entc/integration/gremlin/ent/groupinfo_create.go @@ -90,6 +90,7 @@ func (gic *GroupInfoCreate) Save(ctx context.Context) (*GroupInfo, error) { } gic.mutation = mutation node, err = gic.gremlinSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) diff --git a/entc/integration/gremlin/ent/item_create.go b/entc/integration/gremlin/ent/item_create.go index 5ae328891..fc2b21be1 100644 --- a/entc/integration/gremlin/ent/item_create.go +++ b/entc/integration/gremlin/ent/item_create.go @@ -50,6 +50,7 @@ func (ic *ItemCreate) Save(ctx context.Context) (*Item, error) { } ic.mutation = mutation node, err = ic.gremlinSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) diff --git a/entc/integration/gremlin/ent/mutation.go b/entc/integration/gremlin/ent/mutation.go index 78685b2fc..466b43cc4 100644 --- a/entc/integration/gremlin/ent/mutation.go +++ b/entc/integration/gremlin/ent/mutation.go @@ -153,8 +153,8 @@ func (m CardMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *CardMutation) ID() (id string, exists bool) { if m.id == nil { return @@ -860,8 +860,8 @@ func (m CommentMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *CommentMutation) ID() (id string, exists bool) { if m.id == nil { return @@ -1462,8 +1462,8 @@ func (m FieldTypeMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *FieldTypeMutation) ID() (id string, exists bool) { if m.id == nil { return @@ -6685,8 +6685,8 @@ func (m FileMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *FileMutation) ID() (id string, exists bool) { if m.id == nil { return @@ -7487,8 +7487,8 @@ func (m FileTypeMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *FileTypeMutation) ID() (id string, exists bool) { if m.id == nil { return @@ -7968,8 +7968,8 @@ func (m GoodsMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *GoodsMutation) ID() (id string, exists bool) { if m.id == nil { return @@ -8210,8 +8210,8 @@ func (m GroupMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *GroupMutation) ID() (id string, exists bool) { if m.id == nil { return @@ -9095,8 +9095,8 @@ func (m GroupInfoMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *GroupInfoMutation) ID() (id string, exists bool) { if m.id == nil { return @@ -9558,8 +9558,8 @@ func (m ItemMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *ItemMutation) ID() (id string, exists bool) { if m.id == nil { return @@ -9789,8 +9789,8 @@ func (m NodeMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *NodeMutation) ID() (id string, exists bool) { if m.id == nil { return @@ -10265,8 +10265,8 @@ func (m PetMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *PetMutation) ID() (id string, exists bool) { if m.id == nil { return @@ -10841,8 +10841,8 @@ func (m SpecMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *SpecMutation) ID() (id string, exists bool) { if m.id == nil { return @@ -11157,8 +11157,8 @@ func (m TaskMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *TaskMutation) ID() (id string, exists bool) { if m.id == nil { return @@ -11519,8 +11519,8 @@ func (m UserMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *UserMutation) ID() (id string, exists bool) { if m.id == nil { return diff --git a/entc/integration/gremlin/ent/node_create.go b/entc/integration/gremlin/ent/node_create.go index 9a31f4c7e..52e609c7e 100644 --- a/entc/integration/gremlin/ent/node_create.go +++ b/entc/integration/gremlin/ent/node_create.go @@ -104,6 +104,7 @@ func (nc *NodeCreate) Save(ctx context.Context) (*Node, error) { } nc.mutation = mutation node, err = nc.gremlinSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) diff --git a/entc/integration/gremlin/ent/pet_create.go b/entc/integration/gremlin/ent/pet_create.go index d474235c6..960065faf 100644 --- a/entc/integration/gremlin/ent/pet_create.go +++ b/entc/integration/gremlin/ent/pet_create.go @@ -120,6 +120,7 @@ func (pc *PetCreate) Save(ctx context.Context) (*Pet, error) { } pc.mutation = mutation node, err = pc.gremlinSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) diff --git a/entc/integration/gremlin/ent/spec_create.go b/entc/integration/gremlin/ent/spec_create.go index 9d8e17378..ba7e47ceb 100644 --- a/entc/integration/gremlin/ent/spec_create.go +++ b/entc/integration/gremlin/ent/spec_create.go @@ -65,6 +65,7 @@ func (sc *SpecCreate) Save(ctx context.Context) (*Spec, error) { } sc.mutation = mutation node, err = sc.gremlinSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) diff --git a/entc/integration/gremlin/ent/task_create.go b/entc/integration/gremlin/ent/task_create.go index 1c3cc14f4..22e37a434 100644 --- a/entc/integration/gremlin/ent/task_create.go +++ b/entc/integration/gremlin/ent/task_create.go @@ -67,6 +67,7 @@ func (tc *TaskCreate) Save(ctx context.Context) (*Task, error) { } tc.mutation = mutation node, err = tc.gremlinSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) diff --git a/entc/integration/gremlin/ent/user_create.go b/entc/integration/gremlin/ent/user_create.go index d7faaa2f2..052e880ee 100644 --- a/entc/integration/gremlin/ent/user_create.go +++ b/entc/integration/gremlin/ent/user_create.go @@ -359,6 +359,7 @@ func (uc *UserCreate) Save(ctx context.Context) (*User, error) { } uc.mutation = mutation node, err = uc.gremlinSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) diff --git a/entc/integration/hooks/ent/card_create.go b/entc/integration/hooks/ent/card_create.go index 6c38c6de3..86b41293a 100644 --- a/entc/integration/hooks/ent/card_create.go +++ b/entc/integration/hooks/ent/card_create.go @@ -120,6 +120,7 @@ func (cc *CardCreate) Save(ctx context.Context) (*Card, error) { } cc.mutation = mutation node, err = cc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -288,6 +289,7 @@ func (ccb *CardCreateBulk) Save(ctx context.Context) ([]*Card, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/hooks/ent/mutation.go b/entc/integration/hooks/ent/mutation.go index b29abcd55..f86441732 100644 --- a/entc/integration/hooks/ent/mutation.go +++ b/entc/integration/hooks/ent/mutation.go @@ -120,8 +120,8 @@ func (m CardMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *CardMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -667,8 +667,8 @@ func (m UserMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *UserMutation) ID() (id int, exists bool) { if m.id == nil { return diff --git a/entc/integration/hooks/ent/user_create.go b/entc/integration/hooks/ent/user_create.go index 17ba6ead2..2e2f4b41e 100644 --- a/entc/integration/hooks/ent/user_create.go +++ b/entc/integration/hooks/ent/user_create.go @@ -135,6 +135,7 @@ func (uc *UserCreate) Save(ctx context.Context) (*User, error) { } uc.mutation = mutation node, err = uc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -321,6 +322,7 @@ func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/hooks/hooks_test.go b/entc/integration/hooks/hooks_test.go index 7494d3d8c..9361eb0e5 100644 --- a/entc/integration/hooks/hooks_test.go +++ b/entc/integration/hooks/hooks_test.go @@ -152,6 +152,30 @@ func TestDeletion(t *testing.T) { require.Zero(t, client.Card.Query().CountX(ctx)) } +func TestPostCreation(t *testing.T) { + ctx := context.Background() + client := enttest.Open(t, "sqlite3", "file:ent?mode=memory&cache=shared&_fk=1") + defer client.Close() + client.Card.Use(hook.On(func(next ent.Mutator) ent.Mutator { + return hook.CardFunc(func(ctx context.Context, m *ent.CardMutation) (ent.Value, error) { + id, exists := m.ID() + require.False(t, exists, "id should not exist pre mutation") + require.Zero(t, id) + value, err := next.Mutate(ctx, m) + if err != nil { + return nil, err + } + id, exists = m.ID() + require.True(t, exists, "id should exist post mutation") + require.NotZero(t, id) + require.True(t, id == value.(*ent.Card).ID) + return value, nil + }) + }, ent.OpCreate)) + client.Card.Create().SetNumber("12345").SetName("a8m").SaveX(ctx) + client.Card.CreateBulk(client.Card.Create().SetNumber("12345")).SaveX(ctx) +} + func TestOldValues(t *testing.T) { ctx := context.Background() client := enttest.Open(t, "sqlite3", "file:ent?mode=memory&cache=shared&_fk=1", enttest.WithMigrateOptions(migrate.WithGlobalUniqueID(true))) diff --git a/entc/integration/idtype/ent/mutation.go b/entc/integration/idtype/ent/mutation.go index e4d91fca1..e45b17a56 100644 --- a/entc/integration/idtype/ent/mutation.go +++ b/entc/integration/idtype/ent/mutation.go @@ -120,8 +120,8 @@ func (m UserMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *UserMutation) ID() (id uint64, exists bool) { if m.id == nil { return diff --git a/entc/integration/idtype/ent/user_create.go b/entc/integration/idtype/ent/user_create.go index e77b60804..5bd9655a8 100644 --- a/entc/integration/idtype/ent/user_create.go +++ b/entc/integration/idtype/ent/user_create.go @@ -105,6 +105,7 @@ func (uc *UserCreate) Save(ctx context.Context) (*User, error) { } uc.mutation = mutation node, err = uc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -263,6 +264,7 @@ func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/json/ent/mutation.go b/entc/integration/json/ent/mutation.go index 4b20c2502..36773a6cc 100644 --- a/entc/integration/json/ent/mutation.go +++ b/entc/integration/json/ent/mutation.go @@ -122,8 +122,8 @@ func (m UserMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *UserMutation) ID() (id int, exists bool) { if m.id == nil { return diff --git a/entc/integration/json/ent/user_create.go b/entc/integration/json/ent/user_create.go index a72c9d681..f8ce312ed 100644 --- a/entc/integration/json/ent/user_create.go +++ b/entc/integration/json/ent/user_create.go @@ -95,6 +95,7 @@ func (uc *UserCreate) Save(ctx context.Context) (*User, error) { } uc.mutation = mutation node, err = uc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -240,6 +241,7 @@ func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/migrate/entv1/car_create.go b/entc/integration/migrate/entv1/car_create.go index 7edb5f0f9..9c6551d15 100644 --- a/entc/integration/migrate/entv1/car_create.go +++ b/entc/integration/migrate/entv1/car_create.go @@ -69,6 +69,7 @@ func (cc *CarCreate) Save(ctx context.Context) (*Car, error) { } cc.mutation = mutation node, err = cc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -178,6 +179,7 @@ func (ccb *CarCreateBulk) Save(ctx context.Context) ([]*Car, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/migrate/entv1/conversion_create.go b/entc/integration/migrate/entv1/conversion_create.go index 1374cf374..62045ab0b 100644 --- a/entc/integration/migrate/entv1/conversion_create.go +++ b/entc/integration/migrate/entv1/conversion_create.go @@ -175,6 +175,7 @@ func (cc *ConversionCreate) Save(ctx context.Context) (*Conversion, error) { } cc.mutation = mutation node, err = cc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -336,6 +337,7 @@ func (ccb *ConversionCreateBulk) Save(ctx context.Context) ([]*Conversion, error } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/migrate/entv1/customtype_create.go b/entc/integration/migrate/entv1/customtype_create.go index 7b914a348..b52e2a5c7 100644 --- a/entc/integration/migrate/entv1/customtype_create.go +++ b/entc/integration/migrate/entv1/customtype_create.go @@ -63,6 +63,7 @@ func (ctc *CustomTypeCreate) Save(ctx context.Context) (*CustomType, error) { } ctc.mutation = mutation node, err = ctc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -160,6 +161,7 @@ func (ctcb *CustomTypeCreateBulk) Save(ctx context.Context) ([]*CustomType, erro } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/migrate/entv1/mutation.go b/entc/integration/migrate/entv1/mutation.go index f8a7d3a16..864e2377a 100644 --- a/entc/integration/migrate/entv1/mutation.go +++ b/entc/integration/migrate/entv1/mutation.go @@ -119,8 +119,8 @@ func (m CarMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *CarMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -428,8 +428,8 @@ func (m ConversionMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *ConversionMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -1580,8 +1580,8 @@ func (m CustomTypeMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *CustomTypeMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -1913,8 +1913,8 @@ func (m *UserMutation) SetID(id int) { m.id = &id } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *UserMutation) ID() (id int, exists bool) { if m.id == nil { return diff --git a/entc/integration/migrate/entv1/user_create.go b/entc/integration/migrate/entv1/user_create.go index fcaaf308a..12e877f97 100644 --- a/entc/integration/migrate/entv1/user_create.go +++ b/entc/integration/migrate/entv1/user_create.go @@ -223,6 +223,7 @@ func (uc *UserCreate) Save(ctx context.Context) (*User, error) { } uc.mutation = mutation node, err = uc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -492,6 +493,7 @@ func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/migrate/entv2/car_create.go b/entc/integration/migrate/entv2/car_create.go index edf4368b7..0d541e0d9 100644 --- a/entc/integration/migrate/entv2/car_create.go +++ b/entc/integration/migrate/entv2/car_create.go @@ -69,6 +69,7 @@ func (cc *CarCreate) Save(ctx context.Context) (*Car, error) { } cc.mutation = mutation node, err = cc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -178,6 +179,7 @@ func (ccb *CarCreateBulk) Save(ctx context.Context) ([]*Car, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/migrate/entv2/conversion_create.go b/entc/integration/migrate/entv2/conversion_create.go index f1edfbbc8..ec8243223 100644 --- a/entc/integration/migrate/entv2/conversion_create.go +++ b/entc/integration/migrate/entv2/conversion_create.go @@ -175,6 +175,7 @@ func (cc *ConversionCreate) Save(ctx context.Context) (*Conversion, error) { } cc.mutation = mutation node, err = cc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -336,6 +337,7 @@ func (ccb *ConversionCreateBulk) Save(ctx context.Context) ([]*Conversion, error } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/migrate/entv2/customtype_create.go b/entc/integration/migrate/entv2/customtype_create.go index 788c28651..447876d0d 100644 --- a/entc/integration/migrate/entv2/customtype_create.go +++ b/entc/integration/migrate/entv2/customtype_create.go @@ -63,6 +63,7 @@ func (ctc *CustomTypeCreate) Save(ctx context.Context) (*CustomType, error) { } ctc.mutation = mutation node, err = ctc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -160,6 +161,7 @@ func (ctcb *CustomTypeCreateBulk) Save(ctx context.Context) ([]*CustomType, erro } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/migrate/entv2/group_create.go b/entc/integration/migrate/entv2/group_create.go index 75a388339..1c642ea96 100644 --- a/entc/integration/migrate/entv2/group_create.go +++ b/entc/integration/migrate/entv2/group_create.go @@ -49,6 +49,7 @@ func (gc *GroupCreate) Save(ctx context.Context) (*Group, error) { } gc.mutation = mutation node, err = gc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -138,6 +139,7 @@ func (gcb *GroupCreateBulk) Save(ctx context.Context) ([]*Group, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/migrate/entv2/media_create.go b/entc/integration/migrate/entv2/media_create.go index 9fb1c8cfb..8f2a5dbaf 100644 --- a/entc/integration/migrate/entv2/media_create.go +++ b/entc/integration/migrate/entv2/media_create.go @@ -77,6 +77,7 @@ func (mc *MediaCreate) Save(ctx context.Context) (*Media, error) { } mc.mutation = mutation node, err = mc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -182,6 +183,7 @@ func (mcb *MediaCreateBulk) Save(ctx context.Context) ([]*Media, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/migrate/entv2/mutation.go b/entc/integration/migrate/entv2/mutation.go index 8fa25dbdf..54db0b62a 100644 --- a/entc/integration/migrate/entv2/mutation.go +++ b/entc/integration/migrate/entv2/mutation.go @@ -125,8 +125,8 @@ func (m CarMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *CarMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -426,8 +426,8 @@ func (m ConversionMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *ConversionMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -1311,8 +1311,8 @@ func (m CustomTypeMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *CustomTypeMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -1619,8 +1619,8 @@ func (m GroupMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *GroupMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -1846,8 +1846,8 @@ func (m MediaMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *MediaMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -2228,8 +2228,8 @@ func (m PetMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *PetMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -2549,8 +2549,8 @@ func (m *UserMutation) SetID(id int) { m.id = &id } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *UserMutation) ID() (id int, exists bool) { if m.id == nil { return diff --git a/entc/integration/migrate/entv2/pet_create.go b/entc/integration/migrate/entv2/pet_create.go index f1cab1901..109814fcd 100644 --- a/entc/integration/migrate/entv2/pet_create.go +++ b/entc/integration/migrate/entv2/pet_create.go @@ -69,6 +69,7 @@ func (pc *PetCreate) Save(ctx context.Context) (*Pet, error) { } pc.mutation = mutation node, err = pc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -178,6 +179,7 @@ func (pcb *PetCreateBulk) Save(ctx context.Context) ([]*Pet, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/migrate/entv2/user_create.go b/entc/integration/migrate/entv2/user_create.go index b23bada7a..e35102859 100644 --- a/entc/integration/migrate/entv2/user_create.go +++ b/entc/integration/migrate/entv2/user_create.go @@ -265,6 +265,7 @@ func (uc *UserCreate) Save(ctx context.Context) (*User, error) { } uc.mutation = mutation node, err = uc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -602,6 +603,7 @@ func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/multischema/ent/group_create.go b/entc/integration/multischema/ent/group_create.go index 7ffa54417..1dbb35e39 100644 --- a/entc/integration/multischema/ent/group_create.go +++ b/entc/integration/multischema/ent/group_create.go @@ -81,6 +81,7 @@ func (gc *GroupCreate) Save(ctx context.Context) (*Group, error) { } gc.mutation = mutation node, err = gc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -211,6 +212,7 @@ func (gcb *GroupCreateBulk) Save(ctx context.Context) ([]*Group, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/multischema/ent/mutation.go b/entc/integration/multischema/ent/mutation.go index a2675993e..9ca03a357 100644 --- a/entc/integration/multischema/ent/mutation.go +++ b/entc/integration/multischema/ent/mutation.go @@ -119,8 +119,8 @@ func (m GroupMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *GroupMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -497,8 +497,8 @@ func (m PetMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *PetMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -857,8 +857,8 @@ func (m UserMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *UserMutation) ID() (id int, exists bool) { if m.id == nil { return diff --git a/entc/integration/multischema/ent/pet_create.go b/entc/integration/multischema/ent/pet_create.go index 9a181cf6f..118896c41 100644 --- a/entc/integration/multischema/ent/pet_create.go +++ b/entc/integration/multischema/ent/pet_create.go @@ -85,6 +85,7 @@ func (pc *PetCreate) Save(ctx context.Context) (*Pet, error) { } pc.mutation = mutation node, err = pc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -216,6 +217,7 @@ func (pcb *PetCreateBulk) Save(ctx context.Context) ([]*Pet, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/multischema/ent/user_create.go b/entc/integration/multischema/ent/user_create.go index d7a683fdf..eec38deb5 100644 --- a/entc/integration/multischema/ent/user_create.go +++ b/entc/integration/multischema/ent/user_create.go @@ -97,6 +97,7 @@ func (uc *UserCreate) Save(ctx context.Context) (*User, error) { } uc.mutation = mutation node, err = uc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -247,6 +248,7 @@ func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/privacy/ent/mutation.go b/entc/integration/privacy/ent/mutation.go index 6da9b5ce2..33c4783b8 100644 --- a/entc/integration/privacy/ent/mutation.go +++ b/entc/integration/privacy/ent/mutation.go @@ -125,8 +125,8 @@ func (m TaskMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *TaskMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -764,8 +764,8 @@ func (m TeamMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *TeamMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -1227,8 +1227,8 @@ func (m UserMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *UserMutation) ID() (id int, exists bool) { if m.id == nil { return diff --git a/entc/integration/privacy/ent/task_create.go b/entc/integration/privacy/ent/task_create.go index a031fd829..1a9b7603a 100644 --- a/entc/integration/privacy/ent/task_create.go +++ b/entc/integration/privacy/ent/task_create.go @@ -128,6 +128,7 @@ func (tc *TaskCreate) Save(ctx context.Context) (*Task, error) { } tc.mutation = mutation node, err = tc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -313,6 +314,7 @@ func (tcb *TaskCreateBulk) Save(ctx context.Context) ([]*Task, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/privacy/ent/team_create.go b/entc/integration/privacy/ent/team_create.go index 02b2d4b8e..ce667298f 100644 --- a/entc/integration/privacy/ent/team_create.go +++ b/entc/integration/privacy/ent/team_create.go @@ -88,6 +88,7 @@ func (tc *TeamCreate) Save(ctx context.Context) (*Team, error) { } tc.mutation = mutation node, err = tc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -231,6 +232,7 @@ func (tcb *TeamCreateBulk) Save(ctx context.Context) ([]*Team, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/privacy/ent/user_create.go b/entc/integration/privacy/ent/user_create.go index 921017993..738d9a284 100644 --- a/entc/integration/privacy/ent/user_create.go +++ b/entc/integration/privacy/ent/user_create.go @@ -102,6 +102,7 @@ func (uc *UserCreate) Save(ctx context.Context) (*User, error) { } uc.mutation = mutation node, err = uc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -253,6 +254,7 @@ func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/template/ent/group_create.go b/entc/integration/template/ent/group_create.go index 48b7d792c..c69c6d913 100644 --- a/entc/integration/template/ent/group_create.go +++ b/entc/integration/template/ent/group_create.go @@ -56,6 +56,7 @@ func (gc *GroupCreate) Save(ctx context.Context) (*Group, error) { } gc.mutation = mutation node, err = gc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -156,6 +157,7 @@ func (gcb *GroupCreateBulk) Save(ctx context.Context) ([]*Group, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/template/ent/mutation.go b/entc/integration/template/ent/mutation.go index 83fb6633f..c40c5b365 100644 --- a/entc/integration/template/ent/mutation.go +++ b/entc/integration/template/ent/mutation.go @@ -118,8 +118,8 @@ func (m GroupMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *GroupMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -444,8 +444,8 @@ func (m PetMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *PetMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -914,8 +914,8 @@ func (m UserMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *UserMutation) ID() (id int, exists bool) { if m.id == nil { return diff --git a/entc/integration/template/ent/pet_create.go b/entc/integration/template/ent/pet_create.go index 6baabb728..a529e66ef 100644 --- a/entc/integration/template/ent/pet_create.go +++ b/entc/integration/template/ent/pet_create.go @@ -91,6 +91,7 @@ func (pc *PetCreate) Save(ctx context.Context) (*Pet, error) { } pc.mutation = mutation node, err = pc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -219,6 +220,7 @@ func (pcb *PetCreateBulk) Save(ctx context.Context) ([]*Pet, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/entc/integration/template/ent/user_create.go b/entc/integration/template/ent/user_create.go index 7517ac159..404d90615 100644 --- a/entc/integration/template/ent/user_create.go +++ b/entc/integration/template/ent/user_create.go @@ -87,6 +87,7 @@ func (uc *UserCreate) Save(ctx context.Context) (*User, error) { } uc.mutation = mutation node, err = uc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -225,6 +226,7 @@ func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/examples/edgeindex/ent/city_create.go b/examples/edgeindex/ent/city_create.go index cb03a0ab8..d60928c59 100644 --- a/examples/edgeindex/ent/city_create.go +++ b/examples/edgeindex/ent/city_create.go @@ -72,6 +72,7 @@ func (cc *CityCreate) Save(ctx context.Context) (*City, error) { } cc.mutation = mutation node, err = cc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -191,6 +192,7 @@ func (ccb *CityCreateBulk) Save(ctx context.Context) ([]*City, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/examples/edgeindex/ent/mutation.go b/examples/edgeindex/ent/mutation.go index eee887ce4..aa44255c7 100644 --- a/examples/edgeindex/ent/mutation.go +++ b/examples/edgeindex/ent/mutation.go @@ -117,8 +117,8 @@ func (m CityMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *CityMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -495,8 +495,8 @@ func (m StreetMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *StreetMutation) ID() (id int, exists bool) { if m.id == nil { return diff --git a/examples/edgeindex/ent/street_create.go b/examples/edgeindex/ent/street_create.go index 0a751d6e6..d21d08aca 100644 --- a/examples/edgeindex/ent/street_create.go +++ b/examples/edgeindex/ent/street_create.go @@ -76,6 +76,7 @@ func (sc *StreetCreate) Save(ctx context.Context) (*Street, error) { } sc.mutation = mutation node, err = sc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -196,6 +197,7 @@ func (scb *StreetCreateBulk) Save(ctx context.Context) ([]*Street, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/examples/entcpkg/ent/mutation.go b/examples/entcpkg/ent/mutation.go index 335746cd6..3b9944a1c 100644 --- a/examples/entcpkg/ent/mutation.go +++ b/examples/entcpkg/ent/mutation.go @@ -114,8 +114,8 @@ func (m UserMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *UserMutation) ID() (id int, exists bool) { if m.id == nil { return diff --git a/examples/entcpkg/ent/user_create.go b/examples/entcpkg/ent/user_create.go index 1e5a5e6f6..d19055a38 100644 --- a/examples/entcpkg/ent/user_create.go +++ b/examples/entcpkg/ent/user_create.go @@ -77,6 +77,7 @@ func (uc *UserCreate) Save(ctx context.Context) (*User, error) { } uc.mutation = mutation node, err = uc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -182,6 +183,7 @@ func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/examples/fs/ent/file_create.go b/examples/fs/ent/file_create.go index fa31623d4..99b69de62 100644 --- a/examples/fs/ent/file_create.go +++ b/examples/fs/ent/file_create.go @@ -105,6 +105,7 @@ func (fc *FileCreate) Save(ctx context.Context) (*File, error) { } fc.mutation = mutation node, err = fc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -264,6 +265,7 @@ func (fcb *FileCreateBulk) Save(ctx context.Context) ([]*File, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/examples/fs/ent/mutation.go b/examples/fs/ent/mutation.go index 5529003de..d4cb83c2d 100644 --- a/examples/fs/ent/mutation.go +++ b/examples/fs/ent/mutation.go @@ -118,8 +118,8 @@ func (m FileMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *FileMutation) ID() (id int, exists bool) { if m.id == nil { return diff --git a/examples/m2m2types/ent/group_create.go b/examples/m2m2types/ent/group_create.go index 1f57a1c0b..f303617de 100644 --- a/examples/m2m2types/ent/group_create.go +++ b/examples/m2m2types/ent/group_create.go @@ -72,6 +72,7 @@ func (gc *GroupCreate) Save(ctx context.Context) (*Group, error) { } gc.mutation = mutation node, err = gc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -191,6 +192,7 @@ func (gcb *GroupCreateBulk) Save(ctx context.Context) ([]*Group, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/examples/m2m2types/ent/mutation.go b/examples/m2m2types/ent/mutation.go index 008a95fc6..c45dc2744 100644 --- a/examples/m2m2types/ent/mutation.go +++ b/examples/m2m2types/ent/mutation.go @@ -117,8 +117,8 @@ func (m GroupMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *GroupMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -498,8 +498,8 @@ func (m UserMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *UserMutation) ID() (id int, exists bool) { if m.id == nil { return diff --git a/examples/m2m2types/ent/user_create.go b/examples/m2m2types/ent/user_create.go index dbff20047..7ba26da1b 100644 --- a/examples/m2m2types/ent/user_create.go +++ b/examples/m2m2types/ent/user_create.go @@ -78,6 +78,7 @@ func (uc *UserCreate) Save(ctx context.Context) (*User, error) { } uc.mutation = mutation node, err = uc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -208,6 +209,7 @@ func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/examples/m2mbidi/ent/mutation.go b/examples/m2mbidi/ent/mutation.go index be10fbdd0..fe463c7c6 100644 --- a/examples/m2mbidi/ent/mutation.go +++ b/examples/m2mbidi/ent/mutation.go @@ -117,8 +117,8 @@ func (m UserMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *UserMutation) ID() (id int, exists bool) { if m.id == nil { return diff --git a/examples/m2mbidi/ent/user_create.go b/examples/m2mbidi/ent/user_create.go index b25bf6bfe..4420feb49 100644 --- a/examples/m2mbidi/ent/user_create.go +++ b/examples/m2mbidi/ent/user_create.go @@ -77,6 +77,7 @@ func (uc *UserCreate) Save(ctx context.Context) (*User, error) { } uc.mutation = mutation node, err = uc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -207,6 +208,7 @@ func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/examples/m2mrecur/ent/mutation.go b/examples/m2mrecur/ent/mutation.go index e76a0737b..3854d2c65 100644 --- a/examples/m2mrecur/ent/mutation.go +++ b/examples/m2mrecur/ent/mutation.go @@ -120,8 +120,8 @@ func (m UserMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *UserMutation) ID() (id int, exists bool) { if m.id == nil { return diff --git a/examples/m2mrecur/ent/user_create.go b/examples/m2mrecur/ent/user_create.go index b4c3d3f4a..a1fad6213 100644 --- a/examples/m2mrecur/ent/user_create.go +++ b/examples/m2mrecur/ent/user_create.go @@ -92,6 +92,7 @@ func (uc *UserCreate) Save(ctx context.Context) (*User, error) { } uc.mutation = mutation node, err = uc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -241,6 +242,7 @@ func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/examples/o2m2types/ent/mutation.go b/examples/o2m2types/ent/mutation.go index 5495999f6..3e8cc6312 100644 --- a/examples/o2m2types/ent/mutation.go +++ b/examples/o2m2types/ent/mutation.go @@ -116,8 +116,8 @@ func (m PetMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *PetMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -475,8 +475,8 @@ func (m UserMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *UserMutation) ID() (id int, exists bool) { if m.id == nil { return diff --git a/examples/o2m2types/ent/pet_create.go b/examples/o2m2types/ent/pet_create.go index 325c32df6..3f81bcd80 100644 --- a/examples/o2m2types/ent/pet_create.go +++ b/examples/o2m2types/ent/pet_create.go @@ -76,6 +76,7 @@ func (pc *PetCreate) Save(ctx context.Context) (*Pet, error) { } pc.mutation = mutation node, err = pc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -196,6 +197,7 @@ func (pcb *PetCreateBulk) Save(ctx context.Context) ([]*Pet, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/examples/o2m2types/ent/user_create.go b/examples/o2m2types/ent/user_create.go index 0b42c4850..4fff2681c 100644 --- a/examples/o2m2types/ent/user_create.go +++ b/examples/o2m2types/ent/user_create.go @@ -78,6 +78,7 @@ func (uc *UserCreate) Save(ctx context.Context) (*User, error) { } uc.mutation = mutation node, err = uc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -208,6 +209,7 @@ func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/examples/o2mrecur/ent/mutation.go b/examples/o2mrecur/ent/mutation.go index 54bf307de..1e6bb8863 100644 --- a/examples/o2mrecur/ent/mutation.go +++ b/examples/o2mrecur/ent/mutation.go @@ -118,8 +118,8 @@ func (m NodeMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *NodeMutation) ID() (id int, exists bool) { if m.id == nil { return diff --git a/examples/o2mrecur/ent/node_create.go b/examples/o2mrecur/ent/node_create.go index 3c8e0fb03..3bcbf98b7 100644 --- a/examples/o2mrecur/ent/node_create.go +++ b/examples/o2mrecur/ent/node_create.go @@ -90,6 +90,7 @@ func (nc *NodeCreate) Save(ctx context.Context) (*Node, error) { } nc.mutation = mutation node, err = nc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -229,6 +230,7 @@ func (ncb *NodeCreateBulk) Save(ctx context.Context) ([]*Node, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/examples/o2o2types/ent/card_create.go b/examples/o2o2types/ent/card_create.go index e2e31c70e..f0c1720d0 100644 --- a/examples/o2o2types/ent/card_create.go +++ b/examples/o2o2types/ent/card_create.go @@ -75,6 +75,7 @@ func (cc *CardCreate) Save(ctx context.Context) (*Card, error) { } cc.mutation = mutation node, err = cc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -209,6 +210,7 @@ func (ccb *CardCreateBulk) Save(ctx context.Context) ([]*Card, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/examples/o2o2types/ent/mutation.go b/examples/o2o2types/ent/mutation.go index e6030f727..3f89467b2 100644 --- a/examples/o2o2types/ent/mutation.go +++ b/examples/o2o2types/ent/mutation.go @@ -118,8 +118,8 @@ func (m CardMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *CardMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -529,8 +529,8 @@ func (m UserMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *UserMutation) ID() (id int, exists bool) { if m.id == nil { return diff --git a/examples/o2o2types/ent/user_create.go b/examples/o2o2types/ent/user_create.go index 3f7e1e0c9..8d71d8302 100644 --- a/examples/o2o2types/ent/user_create.go +++ b/examples/o2o2types/ent/user_create.go @@ -82,6 +82,7 @@ func (uc *UserCreate) Save(ctx context.Context) (*User, error) { } uc.mutation = mutation node, err = uc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -212,6 +213,7 @@ func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/examples/o2obidi/ent/mutation.go b/examples/o2obidi/ent/mutation.go index 4f76ed044..79b37c2d8 100644 --- a/examples/o2obidi/ent/mutation.go +++ b/examples/o2obidi/ent/mutation.go @@ -116,8 +116,8 @@ func (m UserMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *UserMutation) ID() (id int, exists bool) { if m.id == nil { return diff --git a/examples/o2obidi/ent/user_create.go b/examples/o2obidi/ent/user_create.go index a8197820c..b94e636da 100644 --- a/examples/o2obidi/ent/user_create.go +++ b/examples/o2obidi/ent/user_create.go @@ -81,6 +81,7 @@ func (uc *UserCreate) Save(ctx context.Context) (*User, error) { } uc.mutation = mutation node, err = uc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -212,6 +213,7 @@ func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/examples/o2orecur/ent/mutation.go b/examples/o2orecur/ent/mutation.go index 765b1087d..366db3ef0 100644 --- a/examples/o2orecur/ent/mutation.go +++ b/examples/o2orecur/ent/mutation.go @@ -117,8 +117,8 @@ func (m NodeMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *NodeMutation) ID() (id int, exists bool) { if m.id == nil { return diff --git a/examples/o2orecur/ent/node_create.go b/examples/o2orecur/ent/node_create.go index 3f1f7e979..863176e8d 100644 --- a/examples/o2orecur/ent/node_create.go +++ b/examples/o2orecur/ent/node_create.go @@ -94,6 +94,7 @@ func (nc *NodeCreate) Save(ctx context.Context) (*Node, error) { } nc.mutation = mutation node, err = nc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -233,6 +234,7 @@ func (ncb *NodeCreateBulk) Save(ctx context.Context) ([]*Node, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/examples/privacyadmin/ent/mutation.go b/examples/privacyadmin/ent/mutation.go index 754322870..bf8a043e3 100644 --- a/examples/privacyadmin/ent/mutation.go +++ b/examples/privacyadmin/ent/mutation.go @@ -112,8 +112,8 @@ func (m UserMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *UserMutation) ID() (id int, exists bool) { if m.id == nil { return diff --git a/examples/privacyadmin/ent/user_create.go b/examples/privacyadmin/ent/user_create.go index 735be7457..ceb6d16ae 100644 --- a/examples/privacyadmin/ent/user_create.go +++ b/examples/privacyadmin/ent/user_create.go @@ -65,6 +65,7 @@ func (uc *UserCreate) Save(ctx context.Context) (*User, error) { } uc.mutation = mutation node, err = uc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -174,6 +175,7 @@ func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/examples/privacytenant/ent/group_create.go b/examples/privacytenant/ent/group_create.go index 650b9bca8..2b711e786 100644 --- a/examples/privacytenant/ent/group_create.go +++ b/examples/privacytenant/ent/group_create.go @@ -93,6 +93,7 @@ func (gc *GroupCreate) Save(ctx context.Context) (*Group, error) { } gc.mutation = mutation node, err = gc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -244,6 +245,7 @@ func (gcb *GroupCreateBulk) Save(ctx context.Context) ([]*Group, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/examples/privacytenant/ent/mutation.go b/examples/privacytenant/ent/mutation.go index db608f278..42d1da372 100644 --- a/examples/privacytenant/ent/mutation.go +++ b/examples/privacytenant/ent/mutation.go @@ -121,8 +121,8 @@ func (m GroupMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *GroupMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -554,8 +554,8 @@ func (m TenantMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *TenantMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -847,8 +847,8 @@ func (m UserMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *UserMutation) ID() (id int, exists bool) { if m.id == nil { return diff --git a/examples/privacytenant/ent/tenant_create.go b/examples/privacytenant/ent/tenant_create.go index ead19e5ef..4b3d714ba 100644 --- a/examples/privacytenant/ent/tenant_create.go +++ b/examples/privacytenant/ent/tenant_create.go @@ -56,6 +56,7 @@ func (tc *TenantCreate) Save(ctx context.Context) (*Tenant, error) { } tc.mutation = mutation node, err = tc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -161,6 +162,7 @@ func (tcb *TenantCreateBulk) Save(ctx context.Context) ([]*Tenant, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/examples/privacytenant/ent/user_create.go b/examples/privacytenant/ent/user_create.go index 81f316a42..f2e660a67 100644 --- a/examples/privacytenant/ent/user_create.go +++ b/examples/privacytenant/ent/user_create.go @@ -99,6 +99,7 @@ func (uc *UserCreate) Save(ctx context.Context) (*User, error) { } uc.mutation = mutation node, err = uc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -258,6 +259,7 @@ func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/examples/start/ent/car_create.go b/examples/start/ent/car_create.go index ed20b35ee..06419125d 100644 --- a/examples/start/ent/car_create.go +++ b/examples/start/ent/car_create.go @@ -83,6 +83,7 @@ func (cc *CarCreate) Save(ctx context.Context) (*Car, error) { } cc.mutation = mutation node, err = cc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -214,6 +215,7 @@ func (ccb *CarCreateBulk) Save(ctx context.Context) ([]*Car, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/examples/start/ent/group_create.go b/examples/start/ent/group_create.go index da9f657ce..bc441c355 100644 --- a/examples/start/ent/group_create.go +++ b/examples/start/ent/group_create.go @@ -72,6 +72,7 @@ func (gc *GroupCreate) Save(ctx context.Context) (*Group, error) { } gc.mutation = mutation node, err = gc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -196,6 +197,7 @@ func (gcb *GroupCreateBulk) Save(ctx context.Context) ([]*Group, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/examples/start/ent/mutation.go b/examples/start/ent/mutation.go index df4d0c7f3..1e177e3cd 100644 --- a/examples/start/ent/mutation.go +++ b/examples/start/ent/mutation.go @@ -120,8 +120,8 @@ func (m CarMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *CarMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -530,8 +530,8 @@ func (m GroupMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *GroupMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -914,8 +914,8 @@ func (m UserMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *UserMutation) ID() (id int, exists bool) { if m.id == nil { return diff --git a/examples/start/ent/user_create.go b/examples/start/ent/user_create.go index b6fe56388..647ba8937 100644 --- a/examples/start/ent/user_create.go +++ b/examples/start/ent/user_create.go @@ -103,6 +103,7 @@ func (uc *UserCreate) Save(ctx context.Context) (*User, error) { } uc.mutation = mutation node, err = uc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -266,6 +267,7 @@ func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/examples/traversal/ent/group_create.go b/examples/traversal/ent/group_create.go index 53da1a0b0..b4b6fb263 100644 --- a/examples/traversal/ent/group_create.go +++ b/examples/traversal/ent/group_create.go @@ -91,6 +91,7 @@ func (gc *GroupCreate) Save(ctx context.Context) (*Group, error) { } gc.mutation = mutation node, err = gc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -230,6 +231,7 @@ func (gcb *GroupCreateBulk) Save(ctx context.Context) ([]*Group, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/examples/traversal/ent/mutation.go b/examples/traversal/ent/mutation.go index 8ca15635b..33459951d 100644 --- a/examples/traversal/ent/mutation.go +++ b/examples/traversal/ent/mutation.go @@ -121,8 +121,8 @@ func (m GroupMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *GroupMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -559,8 +559,8 @@ func (m PetMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *PetMutation) ID() (id int, exists bool) { if m.id == nil { return @@ -1006,8 +1006,8 @@ func (m UserMutation) Tx() (*Tx, error) { return tx, nil } -// ID returns the ID value in the mutation. Note that the ID -// is only available if it was provided to the builder. +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. func (m *UserMutation) ID() (id int, exists bool) { if m.id == nil { return diff --git a/examples/traversal/ent/pet_create.go b/examples/traversal/ent/pet_create.go index c77ccfc09..0dfc13d49 100644 --- a/examples/traversal/ent/pet_create.go +++ b/examples/traversal/ent/pet_create.go @@ -91,6 +91,7 @@ func (pc *PetCreate) Save(ctx context.Context) (*Pet, error) { } pc.mutation = mutation node, err = pc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -230,6 +231,7 @@ func (pcb *PetCreateBulk) Save(ctx context.Context) ([]*Pet, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err diff --git a/examples/traversal/ent/user_create.go b/examples/traversal/ent/user_create.go index d05adc0df..03fb9238d 100644 --- a/examples/traversal/ent/user_create.go +++ b/examples/traversal/ent/user_create.go @@ -124,6 +124,7 @@ func (uc *UserCreate) Save(ctx context.Context) (*User, error) { } uc.mutation = mutation node, err = uc.sqlSave(ctx) + mutation.id = &node.ID mutation.done = true return node, err }) @@ -311,6 +312,7 @@ func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) { } } } + mutation.id = &nodes[i].ID mutation.done = true if err != nil { return nil, err