From b64330e47548f8f797992dee5ffb82593a9a806b Mon Sep 17 00:00:00 2001 From: Ariel Mashraki Date: Sat, 5 Oct 2019 11:01:36 -0700 Subject: [PATCH] ent/gen: remove redundant nillable check Summary: nillable must be optional Reviewed By: alexsn Differential Revision: D17763004 fbshipit-source-id: 9c134e1648d1a387d90a5f2353de855a1aa3464f --- entc/gen/func.go | 2 +- entc/gen/internal/bindata.go | 2 +- entc/load/internal/bindata.go | 4 ++-- examples/edgeindex/ent/city.go | 4 ++-- examples/edgeindex/ent/street.go | 4 ++-- examples/m2m2types/ent/group.go | 4 ++-- examples/m2m2types/ent/user.go | 4 ++-- examples/m2mbidi/ent/user.go | 4 ++-- examples/m2mrecur/ent/user.go | 4 ++-- examples/o2m2types/ent/pet.go | 4 ++-- examples/o2m2types/ent/user.go | 4 ++-- examples/o2mrecur/ent/node.go | 4 ++-- examples/o2o2types/ent/card.go | 4 ++-- examples/o2o2types/ent/user.go | 4 ++-- examples/o2obidi/ent/user.go | 4 ++-- examples/o2orecur/ent/node.go | 4 ++-- examples/start/ent/car.go | 4 ++-- examples/start/ent/group.go | 4 ++-- examples/start/ent/user.go | 4 ++-- examples/traversal/ent/group.go | 4 ++-- examples/traversal/ent/pet.go | 4 ++-- examples/traversal/ent/user.go | 4 ++-- 22 files changed, 42 insertions(+), 42 deletions(-) diff --git a/entc/gen/func.go b/entc/gen/func.go index 530063856..526c1a0cb 100644 --- a/entc/gen/func.go +++ b/entc/gen/func.go @@ -67,7 +67,7 @@ func ops(f *Field) (op []Op) { default: op = numericOps } - if f.Nillable || f.Optional { + if f.Optional { op = append(op, nillableOps...) } return op diff --git a/entc/gen/internal/bindata.go b/entc/gen/internal/bindata.go index 3a41fc619..e6ab58e6a 100644 --- a/entc/gen/internal/bindata.go +++ b/entc/gen/internal/bindata.go @@ -594,7 +594,7 @@ func templateDialectSqlDecodeTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/sql/decode.tmpl", size: 2142, mode: os.FileMode(420), modTime: time.Unix(1570172976, 0)} + info := bindataFileInfo{name: "template/dialect/sql/decode.tmpl", size: 2142, mode: os.FileMode(420), modTime: time.Unix(1570187959, 0)} a := &asset{bytes: bytes, info: info} return a, nil } diff --git a/entc/load/internal/bindata.go b/entc/load/internal/bindata.go index 74a465fcf..7964ac293 100644 --- a/entc/load/internal/bindata.go +++ b/entc/load/internal/bindata.go @@ -98,7 +98,7 @@ func templateMainTmpl() (*asset, error) { return a, nil } -var _schemaGo = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x58\xdd\x6f\xe3\x38\x0e\x7f\x8e\xff\x0a\x4e\x80\x19\xd8\x45\xd6\x99\x5b\x1c\x0e\x38\x0f\xf2\xb0\x98\xed\x02\xbd\xbd\xf9\xc0\x4e\xef\x5e\x8a\xa2\xeb\xd8\x54\xa2\xa9\x2d\x7b\x24\xa5\xd3\x6e\xd1\xff\x7d\x41\x4a\xf2\x47\x9c\x74\xe7\x63\xdb\x97\x5a\x14\x49\x91\x3f\x52\x24\x95\xe5\x12\x5e\x37\xed\x9d\x96\x9b\xad\x85\x1f\x5f\xfe\xe3\xdf\x3f\xb4\x1a\x0d\x2a\x0b\xbf\xe4\x05\xae\x9b\xe6\x1a\xce\x54\x91\xc2\x4f\x55\x05\xcc\x64\x80\xf6\xf5\x0d\x96\x69\xb4\x5c\xc2\xf9\x56\x1a\x30\xcd\x4e\x17\x08\x45\x53\x22\x48\x03\x95\x2c\x50\x19\x2c\x61\xa7\x4a\xd4\x60\xb7\x08\x3f\xb5\x79\xb1\x45\xf8\x31\x7d\x19\x76\x41\x34\x3b\x55\x92\x0a\xa9\x98\xe5\xbf\x67\xaf\x4f\xdf\x7e\x38\x05\x21\x2b\x0c\x34\xdd\x34\x16\x4a\xa9\xb1\xb0\x8d\xbe\x83\x46\x80\x1d\x9c\x67\x35\x62\x1a\x45\x6d\x5e\x5c\xe7\x1b\x84\xaa\xc9\xcb\x28\x92\x75\xdb\x68\x0b\x71\x34\x9b\xa3\x2a\x9a\x52\xaa\xcd\xf2\xa3\x69\xd4\x3c\x9a\xcd\x45\x6d\xe9\x9f\x46\x51\x61\x61\xe7\x51\x34\x9b\x6f\xa4\xdd\xee\xd6\x69\xd1\xd4\x4b\xe1\x1d\x96\xaa\xd8\xad\x73\xdb\xe8\x25\x2a\xbb\x34\xc5\x16\xeb\x7c\x89\xe5\x06\xbf\x48\x60\xfe\x15\x4a\x85\xc4\xaa\x9c\x47\x49\x44\x30\x7c\x60\x1a\x68\xf4\x01\x30\x90\x2b\x40\x65\x53\xbf\x61\xb7\xb9\x85\xcf\xb9\x61\x3f\xb1\x04\xa1\x9b\x1a\x72\x28\x9a\xba\xad\x24\x81\x6d\x50\x83\xc7\x22\x8d\xec\x5d\x8b\x41\xa5\xb1\x7a\x57\x58\xb8\x8f\x66\x6f\xf3\x1a\x21\xfc\x19\xab\xa5\xda\x74\xcb\xdf\x09\xa5\x6c\xae\xf2\x1a\x17\x4d\x2d\x2d\xd6\xad\xbd\x9b\xff\x1e\xcd\x5e\x37\x4a\xc8\xc0\x47\x06\x0d\x08\x5e\xa8\x60\xca\x58\xec\xb4\xdc\xa0\x09\xca\x2f\x2e\x4f\x68\xbd\x77\x16\x81\x6a\xc6\x52\xbf\x10\x24\xa6\x97\xe2\xf5\x58\x8a\x51\xdb\x13\x3b\x53\x25\xde\x86\xe3\x2e\x2e\x4f\x78\x3d\x16\x93\x8e\x65\x2c\xf7\x81\xa1\xf1\x87\x5e\x5c\x9e\x0c\xd6\x41\xce\xa1\x77\x75\xe0\xd4\x07\x8e\xdb\xfb\xc6\x48\x2b\x1b\x05\x25\x9a\x42\xcb\x35\x1a\xc8\x81\xb9\xa1\x0d\x5b\x3e\x9d\x5d\xd8\x7d\x70\x3a\xb9\x3e\x3c\x03\xab\xa5\xb2\x00\xcb\xa5\x57\xc4\xb6\x07\x2d\x8e\x54\x49\x63\xd3\x68\xf6\x46\xde\x62\x79\xa6\x48\x64\xdd\x34\x15\xf0\x7d\x2a\x65\x91\x5b\x34\x20\xc5\x40\x80\x52\xa7\x26\xee\x1f\xa4\x72\x82\x52\x9d\x79\xbd\xee\xac\x9a\x48\xe3\xb3\x1c\xc9\x9d\xe5\xdc\x75\xd8\x4c\xb3\xd4\xd1\xbf\x21\x49\x9d\xe0\x91\x1c\xdd\x4f\xd2\xe3\x59\x7a\xa6\x44\xd3\xb3\x9d\xb0\xcf\xe9\xf9\x5d\x8b\xbc\xe1\xc5\xe8\xc0\xb1\xd8\x79\x3e\x50\x7e\xec\x34\x9b\xef\xe5\xf6\x07\xf9\xc7\xc0\xc6\x13\xa9\xec\xbf\xfe\x39\x91\x32\xf2\x8f\xbd\xc3\x4e\xd5\xae\xee\xae\x04\x5c\x5c\x8e\x8f\x0b\x97\x82\x98\xc6\x72\xff\x53\xf2\xd3\xae\x3b\x90\xe3\x0c\x93\xe3\x76\xcc\x34\x16\x7c\x2b\xab\x2a\x5f\x57\xf8\xa8\xa0\xf2\x4c\x63\xd1\x77\x2d\x25\x67\x5e\x3d\x2a\xda\x78\xa6\xb1\xe8\xcf\x28\xf2\x5d\x65\x1f\x37\xb7\x74\x4c\x7b\x8e\xb6\x65\x6e\x31\xc8\x1f\x73\x94\x99\xae\x0e\x2a\x38\xab\xeb\x9d\xed\x3c\x3e\xa2\x40\x06\xa6\xb1\xec\xff\xf3\x4a\x96\x54\xa2\x39\x44\x7c\x29\xa6\xb2\x37\x1d\xd3\x7e\x21\x69\x74\xbe\xc1\x5f\xf1\xee\x91\x3c\x32\x8e\xe9\xea\x1a\xef\xc6\xd2\x5d\x2d\x70\xf9\x34\x5e\x06\xe9\x50\x4d\x0e\xd4\xa0\x61\xd9\xda\xbb\x9a\xb7\x16\x35\x85\xd1\x5f\x30\x57\x0b\x4a\x14\x52\x61\x79\xb0\x2e\x0d\x75\xf5\xb7\xb2\xbb\x27\xde\xb5\x63\x37\xa3\xbb\xbd\x63\xbe\xe9\x7d\xa5\xab\x79\x48\xe1\xe4\x86\xbe\x6e\xea\x9a\xe6\x91\x3d\xc6\xc2\x91\xf7\x70\xbc\xde\xbc\xcf\xed\x76\x9f\xb7\xbd\xde\x5c\xb5\xb9\xdd\xee\xdd\xc6\x7a\x8d\x25\x15\x29\x9f\x26\xe1\xfe\x79\xf2\x01\x98\xb9\x85\x4d\x4b\x1f\x93\xbf\xa1\xf2\xb1\xdc\x81\xc2\xf7\xb7\x41\xf7\xa5\x41\xfb\x0d\x85\x3b\x7c\xcc\xa7\x51\x5c\x4d\x4f\xff\x0d\x85\x4f\x53\xd7\xd1\x7b\xe6\x23\x45\x6b\x0c\xef\xa1\x32\x75\xa6\x6e\x50\x1b\xdc\x67\x95\x8e\xbc\x7f\xfc\xa7\x9d\xd4\x93\xa8\x69\x4f\x3e\x10\x35\xd7\xe4\xa6\x61\x73\xf4\x6f\x88\x9b\x13\xec\x03\xe7\x3d\xed\xaa\xcd\x23\x9e\xfa\xa1\xa8\x2b\xfd\x7f\x39\x08\xed\x73\x1e\x1d\x43\xde\xe2\x67\x8e\x47\xa1\x91\x7b\x7f\xae\x82\x47\xa4\xdc\xb9\xc5\x5f\x6e\x4c\x69\x6d\xa3\xd3\x48\xec\x54\x11\x24\x63\x2c\xe1\x84\x38\xd2\x9f\x3b\x8e\xc4\x07\xf9\x3e\x9a\x29\x84\x6c\x05\x2f\x68\x79\x1f\xcd\x28\xb5\x32\x97\x06\x58\xa6\xe7\xf9\x66\x41\xb4\xbb\x16\xb3\x8e\x46\xd9\x18\xcd\x38\xab\x3b\x22\x2d\x88\xe8\x10\xcb\x1c\xd1\x2d\x88\xec\xf3\x20\x63\xb2\x5f\x10\x3d\xc4\x3c\x23\x7a\x58\xb8\x0d\xe1\xf5\xf3\x86\xf0\xfa\x1f\xa2\x99\x14\xa0\x51\x90\xc9\x6e\xe7\x15\x2f\x9f\xad\x40\xc9\x8a\xdc\x99\x29\x24\x32\xac\x3a\xf7\x35\x8a\x84\x45\x35\xda\x9d\x56\xa0\xb0\x47\xd6\x55\xc3\x29\xb4\xae\x9a\x3e\x8e\x2d\xcb\xc6\xa2\x0c\x33\xc9\x10\xdd\xd8\xcd\xb7\x0b\x40\xad\x69\x7d\x1f\xcd\x0c\x1b\xfd\x82\xe9\xf7\x23\xfc\xf8\x4f\xf4\x20\xd2\x60\x33\xde\x21\xca\x62\x14\x9c\xb0\xe3\x23\xc4\x03\x48\x36\xdc\x60\xca\x38\x24\x61\xab\x8f\x4b\x18\x23\xb2\xde\x86\x30\x33\x44\xb3\x6e\x52\xe8\x77\x03\x85\xad\x0c\xcd\x36\xeb\xac\xec\xda\x6f\x34\x1b\xf4\xcd\xcc\x6f\xf7\x14\xda\xef\x9b\x32\xef\x57\xa8\x62\x51\xa6\x3d\x35\x21\x26\x3f\x30\x64\xbd\xed\x61\x84\x70\x01\x67\xff\x86\xa3\x45\xc6\xfe\x8d\x86\x8d\x8e\xd3\x25\x8f\x11\x8c\x26\xac\xfa\x8c\x09\x79\x21\xab\x05\x88\xda\xa6\xa7\x14\x33\x11\xcf\x6b\x69\x0c\xdd\x50\xae\x0d\x92\x84\x44\xa3\x7d\x6a\x3c\xff\x34\x5f\x90\x2e\x8a\x59\xd2\xe9\xa6\xe9\x31\x5b\x01\x8f\x8d\xe4\x0e\x8d\x93\xc9\x2b\x47\x7f\xb6\x82\x97\x7c\x9c\x11\x4c\x87\x15\xbc\xa0\x8d\x61\x6a\x1a\xb1\x20\x33\x7c\x7e\xbe\xc9\xb5\xd9\xe6\x95\x7f\xec\xf1\xa3\x17\xb9\xad\x0f\x1e\x8f\x52\x59\xd4\xf4\x16\xa5\xaf\x06\x72\xf8\xcf\x87\x77\x6f\x49\x98\xcb\x5f\x91\x2b\x58\x53\xf6\x92\x68\xe9\x58\x48\x81\x17\x6e\xd6\x1f\xb1\xb0\xfe\x9f\x4f\xec\xd1\xa1\xb1\x09\x67\x53\x55\xf5\x27\x25\x10\xaf\xe1\xe2\x72\x7d\x67\x91\xf3\x7b\x98\xe3\x9c\xe2\x4e\x96\x5c\x75\x0f\xca\x2c\xcc\x21\x6e\x19\x27\xc3\xf2\x41\x8f\x1a\x8d\x85\x8d\xfd\xe3\x9d\xeb\xcb\x3b\xe1\x4f\x4e\x12\x46\x98\x45\x1c\xc6\x74\x60\xb6\x02\x93\xd2\x4d\x75\xb5\x34\xf0\xbe\xe2\xcd\x67\x87\x03\x8b\x5a\xb3\x0a\x57\x91\x3b\x35\xb9\x40\x2e\xdd\x41\x47\x77\xc6\x11\x35\xc3\xfc\xf0\xe0\x3c\xff\x94\xc1\xf3\x1b\x4a\x07\x77\x83\x49\xdc\xa5\x04\xa5\xcb\xd5\x02\x38\x27\x74\xae\x36\xc8\xc5\xc4\xb8\x2c\x48\x5d\xcb\x58\x41\xde\xb6\xa8\xca\xd8\x13\x16\x7d\xd9\x1e\x54\x94\x38\x49\x7c\x96\xf9\xc7\xee\xd0\x01\xff\x46\x7e\x4a\x17\x64\x79\xdb\x3b\xe1\x6d\x60\xc5\x7e\x43\x96\xb7\x23\x6b\xd9\xc1\xf0\x76\x1f\xb8\x78\x16\xcc\x7f\xc1\x5f\xa4\xc1\xb5\xce\x0c\x58\x87\x83\x80\xa8\x2e\xb4\x19\x53\xdd\x37\x93\x43\x35\x23\x72\x5f\xc7\x1e\x46\x05\x9e\x1a\x6a\xea\xf3\x38\x36\x89\xbf\x4d\x7d\xbe\xf0\xa7\xf1\x17\xd9\x36\x3e\x3b\x7d\xb5\x1f\x66\xba\xbf\x12\xb1\x81\x13\x97\xd3\x09\x4c\xb2\x6e\xff\x6e\xf0\x65\x20\x68\xf8\x85\x3d\x8a\x13\xbf\xcc\xbf\x20\x4a\x5f\x1d\x20\xb9\x80\x7a\x10\x1f\xf7\xb6\x27\x85\x7e\xa8\x18\x1a\xe1\x8d\xaf\x6f\x29\x46\x53\x13\xbe\xde\x06\x32\x82\xad\xf8\xb8\x00\xd1\x1b\xe1\x8e\x76\x3a\xa9\xac\x79\x13\xfa\xbe\x39\xce\x6e\x62\x3b\x60\xcd\x37\x98\xc3\xf6\x50\x91\xed\x1e\x5b\x2b\x78\x11\xbe\x9d\x52\xce\x3d\xdf\x54\x3e\x72\x5a\x85\x9f\x5b\x98\x68\xb5\xcb\xaa\xd9\xe0\xb7\x94\x0c\xe4\xa2\x57\xee\x33\x72\x98\xd9\x3e\x47\xc1\x08\x8f\x09\xc5\xe6\x28\xfc\x4f\x93\x04\x87\xe1\xff\x32\xf4\xff\xb6\x54\x38\x86\x7c\x80\x91\x79\xfe\x0a\xc0\xc1\xb4\xd6\xb5\xc3\x1e\x3e\xf8\xac\xf3\xd6\x0c\x5f\xb8\x9e\x9e\xab\xd2\x65\x7f\x20\xd4\x68\xb7\x4d\x09\x9f\xa5\xdd\x82\xc6\xa2\xb9\x41\x4d\x37\x1e\x95\xd9\x69\x04\xd5\x40\x9b\x2b\x59\x18\x7a\x2f\xd7\xae\x60\x48\xb5\xf1\xd7\x7e\x10\x2e\x51\xf6\x8d\xf6\x1e\x3c\x31\x81\x8b\xcb\xfe\x07\xb2\x87\x04\x62\x11\x46\xfb\x8e\xbc\xdf\x20\x4b\x14\xa8\x81\xd4\xc7\x89\xab\x9f\x02\x6e\x38\x6a\xce\xb8\x38\x79\x05\x37\xa3\x20\x90\xfc\x6a\x14\x83\xe7\xe7\xc1\x3b\x67\xbc\x0f\x85\x28\x17\x70\xc3\x17\x40\x04\x6c\x09\x3b\x97\x8b\x54\x91\x43\x38\xcb\x34\x38\xb0\xd8\x43\xd7\x75\xa4\x09\xb8\x8e\xfc\xbd\x50\x0e\xdb\xec\x64\xa0\x70\x7d\xd1\x01\x47\x8c\x4f\x81\xdb\xc8\x9b\x11\x74\x0e\x36\xf4\xfd\xf8\x20\x6a\x43\xe1\x29\x70\xa1\xd3\x4d\xa0\x0b\x1b\xdf\x0b\xde\xb8\xc5\x4f\xe0\x0b\x1d\xd9\x01\xc8\xcc\x4f\x88\x60\x70\xea\x00\x86\xb2\x6b\xf9\x8f\xa1\x18\xbc\x99\xe0\xc8\xf5\x76\x8a\xa2\x23\x7f\x2f\x86\xc3\xf6\x3b\x41\xd0\xf5\x4c\x87\xdf\x9b\xbe\x73\x3f\x09\x7e\xce\x9d\x03\xe8\x39\x23\x1e\xc7\xce\x79\xd1\x23\xc7\xee\x75\x43\xb4\x85\xe1\x18\x9d\x8c\x56\x64\x15\x35\x0a\x9b\xfe\x2a\x55\x19\x27\xf4\x04\x0a\xfb\xef\x2d\xcf\x2c\x33\x0b\x2b\xb0\xe9\x69\x85\x75\x3c\xaa\xc2\x36\x7a\x88\xfe\x0c\x00\x00\xff\xff\xd7\x50\x09\x8a\x52\x1c\x00\x00") +var _schemaGo = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x58\x5f\x6f\xe3\x38\x0e\x7f\x8e\x3f\x05\x27\xc0\x14\x71\x91\x75\xe6\x16\x87\x03\xce\x83\x3c\x2c\x66\xbb\x40\x6f\x6f\x3a\x83\x6d\xef\x5e\x8a\xa2\xeb\xd8\x54\xa2\xa9\x2d\x7b\x24\xa5\xd3\x6e\xd1\xef\xbe\x20\x25\xf9\x4f\x9c\x74\xfe\xb6\x2f\xb5\x28\x92\x22\x7f\xa4\x48\x2a\x8b\x05\xbc\xa9\x9b\x7b\x2d\xd7\x1b\x0b\x3f\xbf\xfa\xc7\xbf\x7f\x6a\x34\x1a\x54\x16\x7e\xcb\x72\x5c\xd5\xf5\x0d\x9c\xaa\x3c\x81\x5f\xca\x12\x98\xc9\x00\xed\xeb\x5b\x2c\x92\x68\xb1\x80\x8b\x8d\x34\x60\xea\xad\xce\x11\xf2\xba\x40\x90\x06\x4a\x99\xa3\x32\x58\xc0\x56\x15\xa8\xc1\x6e\x10\x7e\x69\xb2\x7c\x83\xf0\x73\xf2\x2a\xec\x82\xa8\xb7\xaa\x20\x15\x52\x31\xcb\x7f\x4f\xdf\x9c\x9c\x9d\x9f\x80\x90\x25\x06\x9a\xae\x6b\x0b\x85\xd4\x98\xdb\x5a\xdf\x43\x2d\xc0\xf6\xce\xb3\x1a\x31\x89\xa2\x26\xcb\x6f\xb2\x35\x42\x59\x67\x45\x14\xc9\xaa\xa9\xb5\x85\x59\x34\x99\xa2\xca\xeb\x42\xaa\xf5\xe2\x83\xa9\xd5\x34\x9a\x4c\x45\x65\xe9\x9f\x46\x51\x62\x6e\xa7\x51\x34\x99\xae\xa5\xdd\x6c\x57\x49\x5e\x57\x0b\xe1\x1d\x96\x2a\xdf\xae\x32\x5b\xeb\x05\x2a\xe6\xff\x1c\xcf\xc2\xe4\x1b\xac\xb2\x05\x16\x6b\xfc\x1a\x7e\x21\xb1\x2c\xa6\x51\x1c\x11\x0a\xe7\x4c\x03\x8d\x1e\x7f\x03\x99\x02\x54\x36\xf1\x1b\x76\x93\x59\xf8\x94\x19\x76\x13\x0b\x10\xba\xae\x20\x83\xbc\xae\x9a\x52\x12\xd6\x06\x35\x78\x28\x92\xc8\xde\x37\x18\x54\x1a\xab\xb7\xb9\x85\x87\x68\x72\x96\x55\x08\xe1\xcf\x58\x2d\xd5\xba\x5d\xfe\x49\x20\xa5\x53\x95\x55\x38\xaf\x2b\x69\xb1\x6a\xec\xfd\xf4\xcf\x68\xf2\xa6\x56\x42\x06\x3e\x32\xa8\x47\xf0\x42\x39\x53\x86\x62\x27\xc5\x1a\x4d\x50\x7e\x79\x75\x4c\xeb\x9d\xb3\x08\x2f\x33\x94\xfa\x8d\x20\x31\x9d\x14\xaf\x87\x52\x8c\xda\x8e\xd8\xa9\x2a\xf0\x2e\x1c\x77\x79\x75\xcc\xeb\xa1\x98\x74\x2c\x43\xb9\x73\x86\xc6\x1f\x7a\x79\x75\xdc\x5b\x07\x39\x87\xde\xf5\x9e\x53\x1f\x39\x6e\xef\x6b\x23\xad\xac\x15\x14\x68\x72\x2d\x57\x68\x20\x03\xe6\x86\x26\x6c\xf9\x6c\x76\x61\xf7\xc1\x69\xe5\xba\xf0\xf4\xac\x96\xca\x02\x2c\x16\x5e\x11\xdb\x1e\xb4\x38\x52\x29\x8d\x4d\xa2\xc9\x5b\x79\x87\xc5\xa9\x22\x91\x55\x5d\x97\xc0\xd7\xa9\x90\x79\x66\xd1\x80\x14\x3d\x01\x4a\x9d\x8a\xb8\x7f\x92\xca\x09\x4a\x75\xea\xf5\xba\xb3\x2a\x22\x0d\xcf\x72\x24\x77\x96\x73\xd7\x61\x33\xce\x52\x47\xff\x86\x24\x75\x82\x07\x72\x74\x37\x49\x0f\x67\xe9\xa9\x12\x75\xc7\x76\xcc\x3e\x27\x17\xf7\x0d\xf2\x86\x17\xa3\x03\x87\x62\x17\x59\x4f\xf9\xa1\xd3\x6c\xb6\x93\xdb\xe7\xf2\xaf\x9e\x8d\xc7\x52\xd9\x7f\xfd\x73\x24\x65\xe4\x5f\x3b\x87\x9d\xa8\x6d\xd5\x5e\x09\xb8\xbc\x1a\x1e\x17\x2e\x05\x31\x0d\xe5\xfe\xa7\xe4\xc7\x6d\x7b\x20\xc7\x19\x46\xc7\x6d\x99\x69\x28\x78\x26\xcb\x32\x5b\x95\xf8\xa4\xa0\xf2\x4c\x43\xd1\x77\x0d\x25\x67\x56\x3e\x29\x5a\x7b\xa6\xa1\xe8\xaf\x28\xb2\x6d\x69\x9f\x36\xb7\x70\x4c\x3b\x8e\x36\x45\x66\x31\xc8\x1f\x72\x94\x99\xae\xf7\x2a\x38\xad\xaa\xad\x6d\x3d\x3e\xa0\x40\x06\xa6\xa1\xec\xff\xb3\x52\x16\x54\xa2\x39\x44\x7c\x29\xc6\xb2\xb7\x2d\xd3\x6e\x21\xa9\x75\xb6\xc6\xdf\xf1\xfe\x89\x3c\x32\x8e\xe9\xfa\x06\xef\x87\xd2\x6d\x2d\x70\xf9\x34\x5c\x06\xe9\x50\x4d\xf6\xd4\xa0\x7e\xd9\xda\xb9\x9a\x77\x16\x35\x85\xd1\x5f\x30\x57\x0b\x0a\x14\x52\x61\xb1\xb7\x2e\xf5\x75\x75\xb7\xb2\xbd\x27\xde\xb5\x43\x37\xa3\xbd\xbd\x43\xbe\xf1\x7d\xa5\xab\xb9\x4f\xe1\xe8\x86\xbe\xa9\xab\x8a\xc6\x91\x1d\xc6\xdc\x91\x77\x70\xbc\x59\xbf\xcf\xec\x66\x97\xb7\xb9\x59\x5f\x37\x99\xdd\xec\xdc\xc6\x6a\x85\x05\x15\x29\x9f\x26\xe1\xfe\x79\xf2\x1e\x98\xb9\x85\x8d\x4b\x1f\x93\xbf\xa1\xf2\xb1\xdc\x9e\xc2\xf7\xc3\xa0\xfb\xd2\xa0\xfd\x81\xc2\x1d\x3e\xe4\xd3\x28\xae\xc7\xa7\xff\x81\xc2\xa7\xa9\xeb\xe8\x1d\xf3\x81\xa2\x35\x84\x77\x5f\x99\x3a\x55\xb7\xa8\x0d\xee\xb2\x4a\x47\xde\x3d\xfe\xe3\x56\xea\x51\xd4\xb4\x27\xef\x89\x9a\x6b\x72\xe3\xb0\x39\xfa\x37\xc4\xcd\x09\x76\x81\xf3\x9e\xb6\xd5\xe6\x09\x4f\xfd\x50\xd4\x96\xfe\xcf\x0e\x42\xbb\x9c\x07\xc7\x90\x33\xfc\xc4\xf1\xc8\x35\x72\xef\xcf\x54\xf0\x88\x94\x3b\xb7\xf8\xcb\x8d\x29\x8d\xad\x75\x12\x89\xad\xca\x83\xe4\x0c\x0b\x38\x26\x8e\xe4\xd7\x96\x23\xf6\x41\x7e\x88\x26\x0a\x21\x5d\xc2\x11\x2d\x1f\xa2\x09\xa5\x56\xea\xd2\x00\x8b\xe4\x22\x5b\xcf\x89\x76\xdf\x60\xda\xd2\x28\x1b\xa3\x09\x67\x75\x4b\xa4\x05\x11\x1d\x62\xa9\x23\xba\x05\x91\x7d\x1e\xa4\x4c\xf6\x0b\xa2\x87\x98\xa7\x44\x0f\x0b\xb7\x21\xbc\x7e\xde\x10\x5e\xff\x63\x34\x91\x02\x34\x0a\x32\xd9\xed\xbc\xe6\xe5\x8b\x25\x28\x59\x92\x3b\x13\x85\x44\x86\x65\xeb\xbe\x46\x11\xb3\xa8\x46\xbb\xd5\x0a\x14\x76\xc8\xba\x6a\x38\x86\xd6\x55\xd3\xa7\xb1\x65\xd9\x99\x28\xc2\x4c\xd2\x47\x77\xe6\xe6\xdb\x39\xa0\xd6\xb4\x7e\x88\x26\x86\x8d\x3e\x62\xfa\xc3\x00\x3f\xfe\x13\x1d\x88\x34\xd8\x0c\x77\x88\x32\x1f\x04\x27\xec\xf8\x08\xf1\x00\x92\xf6\x37\x98\x32\x0c\x49\xd8\xea\xe2\x12\xc6\x88\xb4\xb3\x21\xcc\x0c\xd1\xa4\x9d\x14\xba\xdd\x40\x61\x2b\x43\xb3\x4d\x5b\x2b\xdb\xf6\x1b\x4d\x7a\x7d\x33\xf5\xdb\x1d\x85\xf6\xbb\xa6\xcc\xfb\x25\xaa\x99\x28\x92\x8e\x1a\x13\x93\x1f\x18\xd2\xce\xf6\x30\x42\xb8\x80\xb3\x7f\xfd\xd1\x22\x65\xff\x06\xc3\x46\xcb\xe9\x92\xc7\x08\x46\x13\x96\x5d\xc6\x84\xbc\x90\xe5\x1c\x44\x65\x93\x13\x8a\x99\x98\x4d\x2b\x69\x0c\xdd\x50\xae\x0d\x92\x84\x44\xad\x7d\x6a\xbc\xfc\x38\x9d\x93\x2e\x8a\x59\xdc\xea\xa6\xe9\x31\x5d\x02\x8f\x8d\xe4\x0e\x8d\x93\xf1\x6b\x47\x7f\xb1\x84\x57\x7c\x9c\x11\x4c\x87\x25\x1c\xd1\x46\x3f\x35\x8d\x98\x93\x19\x3e\x3f\xdf\x66\xda\x6c\xb2\xd2\x3f\xf6\xf8\xcd\x8b\xdc\xd6\x7b\x8f\x47\xa9\x2c\x6a\x7a\x8b\xd2\x57\x0d\x19\xfc\xe7\xfc\xdd\x19\x09\x73\xf9\xcb\x33\x05\x2b\xca\x5e\x12\x2d\x1c\x0b\x29\xf0\xc2\xf5\xea\x03\xe6\xd6\xff\xf3\x89\x3d\x38\x74\x66\xc2\xd9\x54\x55\xfd\x49\x31\xcc\x56\x70\x79\xb5\xba\xb7\xc8\xf9\xdd\xcf\x71\x4e\x71\x27\x4b\xae\xba\x07\x65\x1a\xe6\x10\xb7\x9c\xc5\xfd\xf2\x41\x8f\x1a\x8d\xb9\x9d\xf9\xb7\x3b\xd7\x97\x77\xc2\x9f\x1c\xc7\x8c\x30\x8b\x38\x8c\xe9\xc0\x74\x09\x26\xa1\x9b\xea\x6a\x69\xe0\x7d\xcd\x9b\x2f\xf6\x07\x16\xb5\x66\x15\xae\x22\xb7\x6a\x32\x81\x5c\xba\x83\x8e\xf6\x8c\x03\x6a\xfa\xf9\xe1\xc1\x79\xf9\x31\x85\x97\xb7\x94\x0e\xee\x06\x93\xb8\x4b\x09\x4a\x97\xeb\x39\x70\x4e\xe8\x4c\xad\x91\x8b\x89\x71\x59\x90\xb8\x96\xb1\x84\xac\x69\x50\x15\x33\x4f\x98\x77\x65\xbb\x57\x51\x66\x71\xec\xb3\xcc\x3f\x76\xfb\x0e\xf8\x37\xf2\x73\xba\x20\x8b\xbb\xce\x09\x6f\x03\x2b\xf6\x1b\xb2\xb8\x1b\x58\xcb\x0e\x86\xb7\x7b\xcf\xc5\xd3\x60\xfe\x11\x7f\x91\x06\xd7\x3a\x53\x60\x1d\x0e\x02\xa2\xba\xd0\xa6\x4c\x75\xdf\x4c\x0e\xd5\x8c\xc8\x5d\x1d\x7b\x1c\x14\x78\x6a\xa8\x89\xcf\xe3\x99\x89\xfd\x6d\xea\xf2\x85\x3f\x8d\xbf\xc8\xb6\xf6\xd9\xe9\xab\x7d\x3f\xd3\xfd\x95\x98\x19\x38\x76\x39\x1d\xc3\x28\xeb\x76\xef\x06\x5f\x06\x82\x86\x5f\xd8\x83\x38\xf1\xcb\xfc\x0b\xa2\xf4\xd5\x01\x92\x73\xa8\x7a\xf1\x71\x6f\x7b\x52\xe8\x87\x8a\xbe\x11\xde\xf8\xea\x8e\x62\x34\x36\xe1\xeb\x6d\x20\x23\xd8\x8a\x0f\x73\x10\x9d\x11\xee\x68\xa7\x93\xca\x9a\x37\xa1\xeb\x9b\xc3\xec\x26\xb6\x3d\xd6\x7c\x83\x39\x6c\x0f\x15\xd9\xf6\xb1\xb5\x84\xa3\xf0\xed\x94\x72\xee\xf9\xa6\xf2\x81\xd3\x2a\xfc\xdc\xc2\x44\xab\x5d\x56\x4d\x7a\xbf\xa5\xa4\x20\xe7\x9d\x72\x9f\x91\xfd\xcc\xf6\x39\x0a\x46\x78\x4c\x28\x36\x07\xe1\x7f\x9e\x24\xd8\x0f\xff\x97\xa1\xff\xc3\x52\xe1\x10\xf2\x01\x46\xe6\xf9\x1c\x80\xbd\x69\xad\x6d\x87\x1d\x7c\xf0\x49\x67\x8d\xe9\xbf\x70\x3d\x3d\x53\x85\xcb\xfe\x40\xa8\xd0\x6e\xea\x02\x3e\x49\xbb\x01\x8d\x79\x7d\x8b\x9a\x6e\x3c\x2a\xb3\xd5\x08\xaa\x86\x26\x53\x32\x37\xf4\x5e\xae\x5c\xc1\x90\x6a\xed\xaf\x7d\x2f\x5c\xa2\xe8\x1a\xed\x03\x78\x62\x0c\x97\x57\xdd\x0f\x64\x8f\x31\xcc\x44\x18\xed\x5b\xf2\x6e\x83\x2c\x50\xa0\x06\x52\x3f\x8b\x5d\xfd\x14\x70\xcb\x51\x73\xc6\xcd\xe2\xd7\x70\x3b\x08\x02\xc9\x2f\x07\x31\x78\x79\x11\xbc\x73\xc6\xfb\x50\x88\x62\x0e\xb7\x7c\x01\x44\xc0\x96\xb0\x73\xb9\x48\x15\x39\x84\xb3\x48\x82\x03\xf3\x1d\x74\x5d\x47\x1a\x81\xeb\xc8\xdf\x0b\x65\xbf\xcd\x8e\x06\x0a\xd7\x17\x1d\x70\xc4\xf8\x1c\xb8\x0d\xbc\x19\x40\xe7\x60\x43\xdf\x8f\xf7\xa2\xd6\x17\x1e\x03\x17\x3a\xdd\x08\xba\xb0\xf1\xbd\xe0\x0d\x5b\xfc\x08\xbe\xd0\x91\x1d\x80\xcc\xfc\x8c\x08\x06\xa7\xf6\x60\x28\xdb\x96\xff\x14\x8a\xc1\x9b\x11\x8e\x5c\x6f\xc7\x28\x3a\xf2\xf7\x62\xd8\x6f\xbf\x23\x04\x5d\xcf\x74\xf8\xbd\xed\x3a\xf7\xb3\xe0\xe7\xdc\xd9\x83\x9e\x33\xe2\x69\xec\x9c\x17\x1d\x72\xec\x5e\x3b\x44\x5b\xe8\x8f\xd1\xf1\x60\x45\x56\x51\xa3\xb0\xc9\xef\x52\x15\xb3\x98\x9e\x40\x61\xff\xbd\xe5\x99\x65\x62\x61\x09\x36\x39\x29\xb1\x9a\x0d\xaa\xb0\x8d\x1e\xa3\xbf\x03\x00\x00\xff\xff\x9b\x31\xba\xaf\x51\x1c\x00\x00") func schemaGoBytes() ([]byte, error) { return bindataRead( @@ -113,7 +113,7 @@ func schemaGo() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "schema.go", size: 7250, mode: os.FileMode(420), modTime: time.Unix(1570093680, 0)} + info := bindataFileInfo{name: "schema.go", size: 7249, mode: os.FileMode(420), modTime: time.Unix(1570201210, 0)} a := &asset{bytes: bytes, info: info} return a, nil } diff --git a/examples/edgeindex/ent/city.go b/examples/edgeindex/ent/city.go index fca629cc9..927fa649d 100644 --- a/examples/edgeindex/ent/city.go +++ b/examples/edgeindex/ent/city.go @@ -89,7 +89,7 @@ func (c *Cities) FromRows(rows *sql.Rows) error { } func (c Cities) config(cfg config) { - for i := range c { - c[i].config = cfg + for _i := range c { + c[_i].config = cfg } } diff --git a/examples/edgeindex/ent/street.go b/examples/edgeindex/ent/street.go index 326ebc589..c9c6f64eb 100644 --- a/examples/edgeindex/ent/street.go +++ b/examples/edgeindex/ent/street.go @@ -89,7 +89,7 @@ func (s *Streets) FromRows(rows *sql.Rows) error { } func (s Streets) config(cfg config) { - for i := range s { - s[i].config = cfg + for _i := range s { + s[_i].config = cfg } } diff --git a/examples/m2m2types/ent/group.go b/examples/m2m2types/ent/group.go index 94da730d4..03f7eb285 100644 --- a/examples/m2m2types/ent/group.go +++ b/examples/m2m2types/ent/group.go @@ -89,7 +89,7 @@ func (gr *Groups) FromRows(rows *sql.Rows) error { } func (gr Groups) config(cfg config) { - for i := range gr { - gr[i].config = cfg + for _i := range gr { + gr[_i].config = cfg } } diff --git a/examples/m2m2types/ent/user.go b/examples/m2m2types/ent/user.go index 62303dde7..8eb266207 100644 --- a/examples/m2m2types/ent/user.go +++ b/examples/m2m2types/ent/user.go @@ -95,7 +95,7 @@ func (u *Users) FromRows(rows *sql.Rows) error { } func (u Users) config(cfg config) { - for i := range u { - u[i].config = cfg + for _i := range u { + u[_i].config = cfg } } diff --git a/examples/m2mbidi/ent/user.go b/examples/m2mbidi/ent/user.go index 7dad700be..34ebd9955 100644 --- a/examples/m2mbidi/ent/user.go +++ b/examples/m2mbidi/ent/user.go @@ -95,7 +95,7 @@ func (u *Users) FromRows(rows *sql.Rows) error { } func (u Users) config(cfg config) { - for i := range u { - u[i].config = cfg + for _i := range u { + u[_i].config = cfg } } diff --git a/examples/m2mrecur/ent/user.go b/examples/m2mrecur/ent/user.go index cdc0a95f8..11c8bb5c2 100644 --- a/examples/m2mrecur/ent/user.go +++ b/examples/m2mrecur/ent/user.go @@ -100,7 +100,7 @@ func (u *Users) FromRows(rows *sql.Rows) error { } func (u Users) config(cfg config) { - for i := range u { - u[i].config = cfg + for _i := range u { + u[_i].config = cfg } } diff --git a/examples/o2m2types/ent/pet.go b/examples/o2m2types/ent/pet.go index 2f19ec867..c150305a8 100644 --- a/examples/o2m2types/ent/pet.go +++ b/examples/o2m2types/ent/pet.go @@ -89,7 +89,7 @@ func (pe *Pets) FromRows(rows *sql.Rows) error { } func (pe Pets) config(cfg config) { - for i := range pe { - pe[i].config = cfg + for _i := range pe { + pe[_i].config = cfg } } diff --git a/examples/o2m2types/ent/user.go b/examples/o2m2types/ent/user.go index c8a696615..94c8cd6dd 100644 --- a/examples/o2m2types/ent/user.go +++ b/examples/o2m2types/ent/user.go @@ -95,7 +95,7 @@ func (u *Users) FromRows(rows *sql.Rows) error { } func (u Users) config(cfg config) { - for i := range u { - u[i].config = cfg + for _i := range u { + u[_i].config = cfg } } diff --git a/examples/o2mrecur/ent/node.go b/examples/o2mrecur/ent/node.go index 58d38ea72..536846af0 100644 --- a/examples/o2mrecur/ent/node.go +++ b/examples/o2mrecur/ent/node.go @@ -94,7 +94,7 @@ func (n *Nodes) FromRows(rows *sql.Rows) error { } func (n Nodes) config(cfg config) { - for i := range n { - n[i].config = cfg + for _i := range n { + n[_i].config = cfg } } diff --git a/examples/o2o2types/ent/card.go b/examples/o2o2types/ent/card.go index dd0aa4f6d..1e1dfcd2e 100644 --- a/examples/o2o2types/ent/card.go +++ b/examples/o2o2types/ent/card.go @@ -96,7 +96,7 @@ func (c *Cards) FromRows(rows *sql.Rows) error { } func (c Cards) config(cfg config) { - for i := range c { - c[i].config = cfg + for _i := range c { + c[_i].config = cfg } } diff --git a/examples/o2o2types/ent/user.go b/examples/o2o2types/ent/user.go index 1f129453c..63ba658e1 100644 --- a/examples/o2o2types/ent/user.go +++ b/examples/o2o2types/ent/user.go @@ -95,7 +95,7 @@ func (u *Users) FromRows(rows *sql.Rows) error { } func (u Users) config(cfg config) { - for i := range u { - u[i].config = cfg + for _i := range u { + u[_i].config = cfg } } diff --git a/examples/o2obidi/ent/user.go b/examples/o2obidi/ent/user.go index 3a09cc286..67befccb8 100644 --- a/examples/o2obidi/ent/user.go +++ b/examples/o2obidi/ent/user.go @@ -95,7 +95,7 @@ func (u *Users) FromRows(rows *sql.Rows) error { } func (u Users) config(cfg config) { - for i := range u { - u[i].config = cfg + for _i := range u { + u[_i].config = cfg } } diff --git a/examples/o2orecur/ent/node.go b/examples/o2orecur/ent/node.go index d4ed77ce3..ffb20f13f 100644 --- a/examples/o2orecur/ent/node.go +++ b/examples/o2orecur/ent/node.go @@ -94,7 +94,7 @@ func (n *Nodes) FromRows(rows *sql.Rows) error { } func (n Nodes) config(cfg config) { - for i := range n { - n[i].config = cfg + for _i := range n { + n[_i].config = cfg } } diff --git a/examples/start/ent/car.go b/examples/start/ent/car.go index 6704c6cd6..3614f32c4 100644 --- a/examples/start/ent/car.go +++ b/examples/start/ent/car.go @@ -96,7 +96,7 @@ func (c *Cars) FromRows(rows *sql.Rows) error { } func (c Cars) config(cfg config) { - for i := range c { - c[i].config = cfg + for _i := range c { + c[_i].config = cfg } } diff --git a/examples/start/ent/group.go b/examples/start/ent/group.go index 94da730d4..03f7eb285 100644 --- a/examples/start/ent/group.go +++ b/examples/start/ent/group.go @@ -89,7 +89,7 @@ func (gr *Groups) FromRows(rows *sql.Rows) error { } func (gr Groups) config(cfg config) { - for i := range gr { - gr[i].config = cfg + for _i := range gr { + gr[_i].config = cfg } } diff --git a/examples/start/ent/user.go b/examples/start/ent/user.go index c113447a6..ea6921b57 100644 --- a/examples/start/ent/user.go +++ b/examples/start/ent/user.go @@ -100,7 +100,7 @@ func (u *Users) FromRows(rows *sql.Rows) error { } func (u Users) config(cfg config) { - for i := range u { - u[i].config = cfg + for _i := range u { + u[_i].config = cfg } } diff --git a/examples/traversal/ent/group.go b/examples/traversal/ent/group.go index 79f988c81..1ad5fb182 100644 --- a/examples/traversal/ent/group.go +++ b/examples/traversal/ent/group.go @@ -94,7 +94,7 @@ func (gr *Groups) FromRows(rows *sql.Rows) error { } func (gr Groups) config(cfg config) { - for i := range gr { - gr[i].config = cfg + for _i := range gr { + gr[_i].config = cfg } } diff --git a/examples/traversal/ent/pet.go b/examples/traversal/ent/pet.go index 0adaadf65..fef711de8 100644 --- a/examples/traversal/ent/pet.go +++ b/examples/traversal/ent/pet.go @@ -94,7 +94,7 @@ func (pe *Pets) FromRows(rows *sql.Rows) error { } func (pe Pets) config(cfg config) { - for i := range pe { - pe[i].config = cfg + for _i := range pe { + pe[_i].config = cfg } } diff --git a/examples/traversal/ent/user.go b/examples/traversal/ent/user.go index c4f9338d7..350078fdc 100644 --- a/examples/traversal/ent/user.go +++ b/examples/traversal/ent/user.go @@ -110,7 +110,7 @@ func (u *Users) FromRows(rows *sql.Rows) error { } func (u Users) config(cfg config) { - for i := range u { - u[i].config = cfg + for _i := range u { + u[_i].config = cfg } }