diff --git a/entc/gen/graph.go b/entc/gen/graph.go index 704d823dc..f8112e02a 100644 --- a/entc/gen/graph.go +++ b/entc/gen/graph.go @@ -262,13 +262,13 @@ func (g *Graph) resolve(t *Type) error { switch { case !e.Unique && e.Type == t: e.Rel.Type = M2M - e.SelfRef = true + e.Bidi = true e.Rel.Table = t.Label() + "_" + e.Name c1, c2 := e.Owner.Label()+"_id", rules.Singularize(e.Name)+"_id" e.Rel.Columns = append(e.Rel.Columns, c1, c2) case e.Unique && e.Type == t: e.Rel.Type = O2O - e.SelfRef = true + e.Bidi = true e.Rel.Table = t.Table() case e.Unique: e.Rel.Type = M2O diff --git a/entc/gen/internal/bindata.go b/entc/gen/internal/bindata.go index 2622b8dac..1a6095aad 100644 --- a/entc/gen/internal/bindata.go +++ b/entc/gen/internal/bindata.go @@ -481,7 +481,7 @@ func templateDialectGremlinOpenTmpl() (*asset, error) { return a, nil } -var _templateDialectGremlinPredicateTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xd4\x56\x5f\x6b\xeb\xb8\x13\x7d\xb6\x3f\xc5\x10\x0a\x3f\x3b\xa4\x4a\x7f\xf7\x6d\x17\xfa\xd0\xed\xe6\xb2\x81\x4b\xc3\x6e\x2f\xdd\x87\x52\x82\x6a\x8d\x13\x51\x55\x32\x23\xd9\xe5\x62\xfc\xdd\x17\x49\x4e\xe2\xa4\xb9\xa4\xdb\xee\x1f\xf6\x29\x41\x33\x9a\x39\x73\xce\xb1\xa4\xb6\x9d\x8e\xd3\x6b\x53\x7d\x23\xb9\x5a\x3b\xf8\x74\xf1\xff\x1f\xce\x2b\x42\x8b\xda\xc1\x67\x5e\xe0\xa3\x31\x4f\x30\xd7\x05\x83\x2b\xa5\x20\x24\x59\xf0\x71\x6a\x50\xb0\xf4\xeb\x5a\x5a\xb0\xa6\xa6\x02\xa1\x30\x02\x41\x5a\x50\xb2\x40\x6d\x51\x40\xad\x05\x12\xb8\x35\xc2\x55\xc5\x8b\x35\xc2\x27\x76\xb1\x89\x42\x69\x6a\x2d\x52\xa9\x43\xfc\xcb\xfc\x7a\x76\x73\x3b\x83\x52\x2a\x84\x7e\x8d\x8c\x71\x20\x24\x61\xe1\x0c\x7d\x03\x53\x82\x1b\x34\x73\x84\xc8\xd2\xf1\xb4\xeb\xd2\xb4\x6d\x41\x60\x29\x35\xc2\x48\x48\xae\xb0\x70\xd3\x15\xe1\xb3\x92\x7a\x5a\x11\x0a\x59\x70\x87\x53\x29\x46\x70\xde\x75\x69\x52\xd6\xba\xc8\x1c\x8c\x85\x55\xec\x2b\xf1\x06\xc9\x72\x95\x43\x9b\x26\x89\x63\xbf\x70\x3b\xff\x39\x93\x22\x4f\x93\x2e\x6d\xdb\x73\x40\x2d\xe0\x4f\xf4\x98\x9a\xca\xf6\x7d\xfc\xee\x33\x53\xc1\x8f\x97\x70\xc6\x6e\x0b\x53\x21\x5b\x54\x83\x10\xa7\xd5\x30\x76\x45\xab\x41\xd0\x3a\x43\x7c\x85\xc3\x84\xdb\x7e\xe9\xd4\x10\x7e\xbf\x2c\x7d\x6b\x76\xc7\x49\x72\x21\x0b\x3f\x41\x92\x24\x8d\x2f\xf7\xcc\x9f\x30\xbb\x7f\x90\xda\x21\x95\xbc\xc0\xb6\x9b\x80\x42\x9d\xb5\x6d\x84\xd4\x75\x79\xee\x93\x4b\x43\x20\xfd\x06\xe2\x7a\x85\xd0\x84\xda\x49\xd2\xdc\xcb\x07\xb8\x84\x5d\xf6\xbd\x7c\xf0\x81\xae\xef\xdc\xf3\xb5\xe3\xb2\x62\x6d\x0b\x05\x57\x6a\x3b\x14\x5b\x54\xd7\xde\x2a\x9e\x9c\xae\xf3\x8d\x5f\xc3\x6d\x18\xf3\xfb\x50\x59\x84\xae\xdb\x75\xf3\x6b\xa1\x43\xfe\x3e\x85\x4a\x89\x4a\x0c\x05\x2a\x87\x14\x7f\xf6\xd1\xb7\xb9\x24\xfb\xc2\x1f\x51\x4d\x02\x11\x25\xbb\x36\xda\x3a\xae\x1d\x74\xdd\x04\x2a\x36\xfb\x35\x6b\x3e\x02\xf0\xd0\x45\xdf\x03\x79\xca\x62\x1f\x77\x91\x36\x2e\x48\x73\x23\xd5\xce\x48\xa7\x09\x38\x21\x79\x73\x54\xf3\x5e\xf2\xad\xbc\xd1\x4f\xd1\x01\x9b\xae\xa1\x69\x6c\x9d\xbf\xc1\x58\xfb\xc8\xf2\x03\x8f\xbe\x43\x1e\x14\x2b\x9c\xae\xf9\x9e\x3a\x7b\xfc\xce\xc4\x86\xdc\x10\x53\x1e\x69\x88\xe3\x0e\xc9\x2e\x1c\x8f\x37\x69\xb4\x4f\x19\x2d\x6a\x37\xa8\xeb\x09\x42\x36\xb7\x73\xed\x75\xe9\x8b\x1e\x6e\xbb\x84\xd1\x5c\x8f\xb6\xb1\xe9\x18\x78\x63\xa4\x80\x42\x52\x51\x2b\x4e\x20\xb0\x42\x2d\xb0\x90\x68\x21\x9c\x96\xc9\x10\x58\xc0\xd5\x37\x78\x0d\xcf\x33\xf3\x16\x9f\x4c\xc7\x1e\xac\x74\xff\xb3\xc0\x35\x78\x8a\xe0\x45\xba\x35\x58\x54\xe5\x39\x61\x89\x84\xba\xc0\x09\x38\xfe\x84\xe1\x68\x77\x2f\x06\x1a\x24\x27\x8b\x7d\x54\x71\xe4\x5b\x54\xe5\x6f\x58\xf6\x87\x96\x63\x3f\x19\xb7\x0e\x62\x46\xcc\x03\x1d\xb7\xde\x48\x9c\x37\xc3\x80\x97\xae\x9b\xed\x6f\x79\x15\xbf\xcb\xfe\x42\x3b\xf8\x71\xff\x01\x4b\x9c\xc9\x28\xd5\x72\x3f\x69\xeb\x80\xf7\xda\xe6\x68\xe5\xbd\xee\xff\x9a\xb7\x0e\x2d\x11\x70\x78\x63\x11\x96\xf0\x8c\x5c\x5b\x90\x0e\xec\xda\xd4\x4a\xc0\xa3\x7f\x17\xd4\xe1\x05\x61\x34\xc6\x27\x03\xc2\x76\xa4\x2d\xca\x44\xea\x09\x98\xda\x79\xf6\x96\x4b\x36\xd7\x77\x59\x3e\xf1\xff\x16\xb5\x8b\xbe\x08\xd7\xdf\x72\x02\xd5\xee\x06\xf4\xaa\xdb\xfe\x16\xac\x32\xa9\xf3\xfe\x9f\xa9\x5d\xbe\xb9\x01\x13\xc7\x7e\x5f\x23\x61\x16\x62\xbe\x20\xc5\xbf\x49\x2c\x7e\x68\xca\x98\x2c\x75\x3e\xd9\x66\xcd\xf5\xf1\x24\xdf\x26\x66\xc5\x9f\x63\x1f\x01\xf5\x03\xf9\xfd\xaf\x05\xdd\x78\xfe\xe4\x6c\x8e\x86\x03\x9d\xfa\xb0\x22\x3c\x47\x7f\xd3\x27\xc6\xf5\xfe\xc3\x8d\x8e\xdf\xc9\x64\xbf\xf7\xb8\xb9\x88\xef\x9b\x6d\x45\x1b\xee\x96\xe3\x1c\xc4\x84\x48\xc4\xc6\x1d\x37\xf8\x12\x69\xab\xb2\x28\xb4\xef\x75\x09\xbc\xf2\xe6\xcf\x1c\xd9\x09\x84\xf5\x70\x47\x51\x4f\xc7\x72\xc9\xae\x62\x94\x31\xf6\xce\xa7\x80\xa1\xff\xe6\xe0\x0b\xfa\xd8\xdc\xda\xb8\xb7\x0c\x7e\x80\xb2\x07\x39\x04\x72\x63\x5c\xe6\x0e\x41\xfc\x11\x00\x00\xff\xff\xa5\xc2\xe7\x43\xf1\x0c\x00\x00") +var _templateDialectGremlinPredicateTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xd4\x56\x5f\x6b\xeb\xb8\x13\x7d\xb6\x3f\xc5\x10\x0a\x3f\x3b\xa4\x4a\x7f\xf7\x6d\x17\xfa\xd0\xdb\xcd\x65\x03\x97\x86\xa5\x97\xee\x43\x29\x41\xb5\xc6\x89\xa8\x2a\x99\x91\xec\x72\x31\xfe\xee\x8b\x24\x27\x71\xd2\x5c\xd2\x6d\xf7\x0f\xfb\x94\xa0\x19\xcd\x9c\x39\xe7\x58\x52\xdb\x4e\xc7\xe9\xb5\xa9\xbe\x93\x5c\xad\x1d\x7c\xba\xf8\xff\x4f\xe7\x15\xa1\x45\xed\xe0\x0b\x2f\xf0\xd1\x98\x27\x98\xeb\x82\xc1\x95\x52\x10\x92\x2c\xf8\x38\x35\x28\x58\xfa\x6d\x2d\x2d\x58\x53\x53\x81\x50\x18\x81\x20\x2d\x28\x59\xa0\xb6\x28\xa0\xd6\x02\x09\xdc\x1a\xe1\xaa\xe2\xc5\x1a\xe1\x13\xbb\xd8\x44\xa1\x34\xb5\x16\xa9\xd4\x21\xfe\x75\x7e\x3d\xbb\xb9\x9d\x41\x29\x15\x42\xbf\x46\xc6\x38\x10\x92\xb0\x70\x86\xbe\x83\x29\xc1\x0d\x9a\x39\x42\x64\xe9\x78\xda\x75\x69\xda\xb6\x20\xb0\x94\x1a\x61\x24\x24\x57\x58\xb8\xe9\x8a\xf0\x59\x49\x3d\xad\x08\x85\x2c\xb8\xc3\xa9\x14\x23\x38\xef\xba\x34\x29\x6b\x5d\x64\x0e\xc6\xc2\x2a\xf6\x8d\x78\x83\x64\xb9\xca\xa1\x4d\x93\xc4\xb1\x5f\xb9\x9d\xff\x92\x49\x91\xa7\x49\x97\xb6\xed\x39\xa0\x16\xf0\x27\x7a\x4c\x4d\x65\xfb\x3e\x7e\xf7\x99\xa9\xe0\xe7\x4b\x38\x63\xb7\x85\xa9\x90\x2d\xaa\x41\x88\xd3\x6a\x18\xbb\xa2\xd5\x20\x68\x9d\x21\xbe\xc2\x61\xc2\x6d\xbf\x74\x6a\x08\xbf\x5f\x96\xbe\x35\xbb\xe3\x24\xb9\x90\x85\x9f\x20\x49\x92\xc6\x97\x7b\xe6\x4f\x98\xdd\x3f\x48\xed\x90\x4a\x5e\x60\xdb\x4d\x40\xa1\xce\xda\x36\x42\xea\xba\x3c\xf7\xc9\xa5\x21\x90\x7e\x03\x71\xbd\x42\x68\x42\xed\x24\x69\xee\xe5\x03\x5c\xc2\x2e\xfb\x5e\x3e\xf8\x40\xd7\x77\xee\xf9\xda\x71\x59\xb1\xb6\x85\x82\x2b\xb5\x1d\x8a\x2d\xaa\x6b\x6f\x15\x4f\x4e\xd7\xf9\xc6\xaf\xe1\x36\x8c\xf9\x7d\xa8\x2c\x42\xd7\xed\xba\xf9\xb5\xd0\x21\x7f\x9f\x42\xa5\x44\x25\x86\x02\x95\x43\x8a\xbf\xf8\xe8\xdb\x5c\x92\x7d\xe5\x8f\xa8\x26\x81\x88\x92\x5d\x1b\x6d\x1d\xd7\x0e\xba\x6e\x02\x15\x9b\xfd\x96\x35\x1f\x01\x78\xe8\xa2\x1f\x81\x3c\x65\xb1\x8f\xbb\x48\x1b\x17\xa4\xb9\x91\x6a\x67\xa4\xd3\x04\x9c\x90\xbc\x39\xaa\x79\x2f\xf9\x56\xde\xe8\xa7\xe8\x80\x4d\xd7\xd0\x34\xb6\xce\xdf\x60\xac\x7d\x64\xf9\x81\x47\xdf\x21\x0f\x8a\x15\x4e\xd7\x7c\x4f\x9d\x3d\x7e\x67\x62\x43\x6e\x88\x29\x8f\x34\xc4\x71\x87\x64\x17\x8e\xc7\x9b\x34\xda\xa7\x8c\x16\xb5\x1b\xd4\xf5\x04\x21\x9b\xdb\xb9\xf6\xba\xf4\x45\x0f\xb7\x5d\xc2\x68\xae\x47\xdb\xd8\x74\x0c\xbc\x31\x52\x40\x21\xa9\xa8\x15\x27\x10\x58\xa1\x16\x58\x48\xb4\x10\x4e\xcb\x64\x08\x2c\xe0\xea\x1b\xbc\x86\xe7\x99\x79\x8b\x4f\xa6\x63\x0f\x56\xba\xff\x59\xe0\x1a\x3c\x45\xf0\x22\xdd\x1a\x2c\xaa\xf2\x9c\xb0\x44\x42\x5d\xe0\x04\x1c\x7f\xc2\x70\xb4\xbb\x17\x03\x0d\x92\x93\xc5\x3e\xaa\x38\xf2\x67\x29\x64\x7f\x62\x39\xf6\xd9\xb8\x75\x50\x32\x02\x1e\x88\xb8\x35\x46\xe2\xbc\x13\x06\xa4\x74\xdd\x6c\x7f\xcb\xab\xf8\x5d\xf6\x17\x7a\xc1\xcf\xfa\x0f\xf8\xe1\x4c\x46\x9d\x96\xfb\x49\x5b\xf9\xdf\xeb\x99\xa3\x95\xf7\xba\xff\x6b\xc6\xda\xf3\x43\x00\xe1\x2d\x45\x58\xc2\x33\x72\x6d\x41\x3a\xb0\x6b\x53\x2b\x01\x8f\xfe\x45\x50\x87\xb7\x83\xd1\x18\x1f\x0b\x08\xdb\x79\xb6\x10\x13\xa9\x27\x60\x6a\xe7\xa9\x5b\x2e\xd9\x5c\xdf\x65\xf9\xc4\xff\x5b\xd4\x2e\x9a\x22\x5c\x7c\xcb\x09\x54\xbb\xbb\xcf\x4b\x6e\xfb\xfb\xaf\xca\xa4\xce\xfb\x7f\xa6\x76\xf9\xe6\xee\x4b\x1c\xfb\x7d\x8d\x84\x59\x88\xf9\x82\x14\xff\x26\xb1\xf8\xa1\x23\x63\xb2\xd4\xf9\x64\x9b\x35\xd7\xc7\x93\x7c\x9b\x98\x15\x7f\x8e\x7d\x01\xd4\x0f\xe4\xf7\xbf\x56\x73\x63\xf8\x93\xb3\x39\x1a\x0e\x74\xea\xab\x8a\xf0\x1c\xfd\x4d\xdf\x17\xd7\xfb\x4f\x36\x3a\x7e\x1b\x93\xfd\xd1\xb3\xe6\x22\xbe\x6c\xb6\x15\x6d\xb8\x55\x8e\x73\x10\x13\x22\x11\x1b\x77\xdc\xe0\x4b\xa4\xad\xca\xa2\xd0\xbe\xd7\x25\xf0\xca\x3b\x3f\x73\x64\x27\x10\xd6\xc3\xed\x44\x3d\x1d\xcb\x25\xbb\x8a\x51\xc6\xd8\x3b\x1f\x01\x86\xfe\x9b\x83\x2f\xe8\x63\x73\x6b\xe3\xde\x32\xf8\x01\xca\x1e\xe4\x10\xc8\x8d\x71\x99\x3b\x04\xf1\x47\x00\x00\x00\xff\xff\xe4\x9f\x80\xd3\xeb\x0c\x00\x00") func templateDialectGremlinPredicateTmplBytes() ([]byte, error) { return bindataRead( @@ -496,12 +496,12 @@ func templateDialectGremlinPredicateTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/gremlin/predicate.tmpl", size: 3313, mode: os.FileMode(420), modTime: time.Unix(1, 0)} + info := bindataFileInfo{name: "template/dialect/gremlin/predicate.tmpl", size: 3307, mode: os.FileMode(420), modTime: time.Unix(1, 0)} a := &asset{bytes: bytes, info: info} return a, nil } -var _templateDialectGremlinQueryTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x56\x5d\x4f\x23\x37\x14\x7d\xce\xfc\x8a\xdb\x15\x42\x33\x69\xd6\xa1\xf4\xa9\x8b\xa8\x04\x6c\x56\x8d\xc4\x42\x0b\x88\x97\xaa\xaa\x8c\x7d\x67\x62\xad\x63\xcf\xda\x9e\x6c\x50\x34\xff\xbd\xf2\xc7\x84\xe1\x23\x90\xad\x16\x9e\x18\xae\x7d\xcf\x39\x3e\x3e\xb6\xb3\x5a\x8d\x87\xd9\x89\xae\x6f\x8d\xa8\x66\x0e\xf6\xf7\x7e\xf9\xed\x7d\x6d\xd0\xa2\x72\xf0\x89\x32\xbc\xd1\xfa\x0b\x4c\x15\x23\x70\x24\x25\x84\x49\x16\xfc\xb8\x59\x20\x27\xd9\xd5\x4c\x58\xb0\xba\x31\x0c\x81\x69\x8e\x20\x2c\x48\xc1\x50\x59\xe4\xd0\x28\x8e\x06\xdc\x0c\xe1\xa8\xa6\x6c\x86\xb0\x4f\xf6\xba\x51\x28\x75\xa3\x78\x26\x54\x18\x3f\x9d\x9e\x4c\xce\x2e\x27\x50\x0a\x89\x90\x6a\x46\x6b\x07\x5c\x18\x64\x4e\x9b\x5b\xd0\x25\xb8\x1e\x99\x33\x88\x24\x1b\x8e\xdb\x36\xcb\x56\x2b\xe0\x58\x0a\x85\xf0\x8e\x0b\x2a\x91\xb9\x71\x65\x70\x2e\x85\x1a\x7f\x6d\xd0\xdc\xbe\x83\xb6\xf5\x93\x76\x6e\x1a\x21\xbd\xa4\x0f\x87\x50\x53\xcb\xa8\x84\x1d\x72\xc9\x74\x8d\xe4\x38\x8d\xa4\x89\x06\x19\x8a\x45\x9c\xb9\xfe\x5e\xb7\x7b\xce\xb2\x51\x0c\xf2\x7b\x73\xdb\x16\x86\x7d\x96\xb6\x2d\x20\xe9\x38\x92\x32\x67\x6e\x09\x4c\x2b\x87\x4b\x47\x4e\xe2\xdf\x02\xf2\xbf\xff\x09\x3d\xe4\x8c\xce\x11\xda\x76\x04\x68\x8c\x36\x05\xac\xb2\x81\x41\xeb\xf9\x77\x13\x06\xb9\x40\x5b\x6b\x65\x71\xd5\x66\x83\xb0\xae\x11\xdc\x08\xc5\x85\xaa\xc2\xbc\x07\x5a\x48\x6a\xfb\xcb\xcf\xcc\x0b\x72\x4d\x65\x83\x9f\x69\x9d\x3b\xd3\x60\x41\x52\x39\x1b\x88\xd2\x53\x3e\x05\xc0\x8d\xff\x22\x93\x25\x32\x2f\x7e\x04\x0f\x48\x47\x3e\x07\xc5\x41\x68\xff\xe9\x10\x94\x90\x5e\xf5\xc0\xa0\x6b\x8c\xf2\xff\x86\xc5\x64\x83\x36\x1b\x2c\xa8\xf1\xf0\xb5\x6c\x4c\x30\xfd\xa2\xe7\x59\xbf\x1e\x5c\xf0\xfe\xde\x97\xf5\x54\x1f\xf9\x64\xf4\xbc\xb3\x24\xdf\x5a\xc9\x26\x34\xa6\x55\x29\xaa\x87\x1b\x9a\xca\x45\xd6\x61\x6d\x68\x1f\x79\x92\xec\xbb\x63\x71\xa2\x1b\xe5\x36\x04\x43\x28\xf7\x7a\x61\x88\xc4\x6f\x90\x82\xbd\x3b\xe7\x53\xc5\xa0\x25\x17\x48\xf9\xd4\x0b\xf8\x7e\xcb\x26\x4b\x61\x37\x59\x76\xa3\xb5\x7c\x3d\xcf\xfe\xa0\xf6\x0c\x97\x6f\xe2\x5a\x49\xa5\xc5\x8d\xce\x1d\x6b\x2d\xff\x8f\x75\x49\x36\x0c\xb9\x95\xe4\xca\xd0\x05\x1a\x4b\x03\xef\xc2\x2f\xa1\x22\xd7\x71\x95\xa7\xf4\x06\x65\x40\x25\x7f\x52\xf6\x85\x56\xfe\x62\x22\xa1\x1a\xd7\xbc\xc1\xa8\xfe\x42\x16\xb0\xd1\x4f\x72\x22\xb5\x42\x6f\x5f\x9b\x0d\x4a\x6d\xe0\xdf\x11\xd4\xe1\xa2\xa5\xaa\xc2\x47\x5d\xb5\x41\x2e\x18\x75\x68\x03\x70\x9d\x2f\x62\xa7\x28\x41\xa2\x7a\x74\x60\xb5\xe1\x68\x0a\xf8\x1d\xf6\xa2\x0e\x72\xee\x0b\x9e\x6d\x0b\xae\xd0\x1c\xfa\x12\x8f\x27\x6a\xb3\x81\xfd\x26\x1c\x9b\x81\x14\x73\xe1\x46\xa0\xcb\xd2\xa2\x7b\x6a\xd7\xd3\x84\x47\xb0\xa1\xe1\xc0\x03\x33\x6a\x31\xe2\x74\x6e\xed\xee\x76\x80\xb1\xf0\x21\xa8\xbe\xf0\xfa\xf2\x61\x1c\x19\x41\xfa\x80\x9f\x61\x18\x9a\x8b\x84\xf4\x72\xe7\x9c\xba\x19\xf9\x4c\x97\x53\xe5\x7e\xdd\x2f\x9e\x10\x10\xbb\x4e\x7d\x25\x5f\x83\x47\x7f\x1b\x25\xbe\x36\xf8\xd4\x42\xe3\xc8\x41\xd8\x81\xf8\x5d\xc0\xe1\xe1\xda\xf3\x8f\xc8\x9b\x3a\xed\x70\x0a\xef\x22\x0b\x2f\x2b\x2a\x0e\xf1\xc9\x1e\x0f\xe3\x99\x18\xd7\xd4\xcd\xd2\xfb\x6d\xc3\xc3\x1f\xca\x50\xa1\x42\x43\x9d\xd0\x0a\xfc\xc6\x85\x59\xba\x04\x0a\x95\x58\xa0\x02\xe4\x15\x12\x08\xef\xff\x4b\xcf\x7f\x60\x08\xbf\x01\x06\xab\xd5\x7b\xd8\x09\x2b\xea\x1e\xfe\x09\x0f\xf1\x86\x20\xc8\xb3\x7b\x60\xf8\x86\xa0\x10\x39\x38\x1d\x74\x54\x86\x3a\x0c\xa3\x41\x86\xd3\x89\x39\xe2\xf5\x7f\x2c\x74\xb0\xbd\xb7\x21\x1b\x74\xe7\xe3\xc5\x3b\x26\x02\x8a\x12\x76\x90\x5c\xa2\x2c\x2f\xb0\x0c\x00\xf1\xb6\x5a\x9f\xb3\xc3\xee\x44\x93\x63\xed\x66\x8f\x4e\xaa\xff\x1f\xfd\xb5\x68\x1d\x55\xce\xdf\x00\x11\x17\xa5\xc5\x04\x3e\xb5\x53\xe5\x8f\x3f\x3e\x0f\x3f\x55\x93\x3c\xa2\x5d\xdd\xd6\xf8\x3c\x07\x39\x6f\xdc\x75\xde\xa7\x7a\x16\xfa\xbc\x71\x93\x2d\x94\x93\xa9\xba\x03\x8d\xd9\xe9\xa5\xa8\x1f\xa3\xd2\xe8\xf9\xcb\x31\xa2\x31\x39\x69\x30\xf4\x74\x89\x52\x9a\x6f\x9d\x28\xdf\xd8\x4b\x54\xd8\xda\x9d\x7b\x31\xf2\x68\x3e\x46\xd6\x51\xe3\x7a\x7a\x7c\xe7\xbd\xf4\xbc\x75\x1a\xb7\xcf\x18\xb9\x7e\x74\xbb\x4e\x3f\x16\x77\x99\x53\x3f\x38\x74\x1b\xf8\x5e\x23\x84\x1b\xa8\xd6\xa1\x7c\x61\x69\xcf\xa6\xf2\xbf\x00\x00\x00\xff\xff\xbf\x92\x09\x36\x52\x0d\x00\x00") +var _templateDialectGremlinQueryTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x56\x5f\x4f\x23\xb7\x17\x7d\x9e\xf9\x14\xf7\xb7\x42\x68\x26\xbf\xac\x43\xe9\x53\x17\x51\x09\xd8\xac\x1a\x89\x85\x96\x45\xbc\x54\x55\x65\xec\x3b\x13\x6b\x1d\x7b\xd6\xf6\x64\x83\xa2\xf9\xee\x95\xff\x4c\x18\xfe\x04\xd8\xaa\xf0\xc4\x70\xed\x7b\xce\xf1\xf1\xb1\x9d\xf5\x7a\x32\xca\x4f\x74\x73\x63\x44\x3d\x77\xb0\xbf\xf7\xd3\x2f\xef\x1b\x83\x16\x95\x83\x4f\x94\xe1\xb5\xd6\x5f\x61\xa6\x18\x81\x23\x29\x21\x4c\xb2\xe0\xc7\xcd\x12\x39\xc9\x2f\xe7\xc2\x82\xd5\xad\x61\x08\x4c\x73\x04\x61\x41\x0a\x86\xca\x22\x87\x56\x71\x34\xe0\xe6\x08\x47\x0d\x65\x73\x84\x7d\xb2\xd7\x8f\x42\xa5\x5b\xc5\x73\xa1\xc2\xf8\xe9\xec\x64\x7a\xf6\x65\x0a\x95\x90\x08\xa9\x66\xb4\x76\xc0\x85\x41\xe6\xb4\xb9\x01\x5d\x81\x1b\x90\x39\x83\x48\xf2\xd1\xa4\xeb\xf2\x7c\xbd\x06\x8e\x95\x50\x08\xef\xb8\xa0\x12\x99\x9b\xd4\x06\x17\x52\xa8\xc9\xb7\x16\xcd\xcd\x3b\xe8\x3a\x3f\x69\xe7\xba\x15\xd2\x4b\xfa\x70\x08\x0d\xb5\x8c\x4a\xd8\x21\x5f\x98\x6e\x90\x1c\xa7\x91\x34\xd1\x20\x43\xb1\x8c\x33\x37\xdf\x9b\x76\xcf\x59\xb5\x8a\x41\x71\x67\x6e\xd7\xc1\x68\xc8\xd2\x75\x25\x24\x1d\x47\x52\x16\xcc\xad\x80\x69\xe5\x70\xe5\xc8\x49\xfc\x5b\x42\xf1\xe7\x5f\xa1\x87\x9c\xd1\x05\x42\xd7\x8d\x01\x8d\xd1\xa6\x84\x75\x9e\x19\xb4\x9e\x7f\x37\x61\x90\x0b\xb4\x8d\x56\x16\xd7\x5d\x9e\x85\x75\x8d\xe1\x5a\x28\x2e\x54\x1d\xe6\xdd\xd3\x42\x52\xdb\x1f\x7e\x66\x51\x92\x2b\x2a\x5b\xfc\x4c\x9b\xc2\x99\x16\x4b\x92\xca\x79\x26\x2a\x4f\xf9\x18\x00\x37\xfe\x8b\x4c\x57\xc8\xbc\xf8\x31\xdc\x23\x1d\xfb\x1c\x94\x07\xa1\xfd\x7f\x87\xa0\x84\xf4\xaa\x33\x83\xae\x35\xca\xff\x1b\x16\x93\x67\x5d\x9e\x2d\xa9\xf1\xf0\x8d\x6c\x4d\x30\xfd\x62\xe0\xd9\xb0\x1e\x5c\xf0\xfe\xde\x95\xf5\x58\x1f\xf9\x64\xf4\xa2\xb7\xa4\x78\xb1\x92\x6d\x68\x4c\xab\x4a\xd4\xf7\x37\x34\x95\xcb\xbc\xc7\xda\xd2\x3e\xf6\x24\xf9\x0f\xc7\xe2\x44\xb7\xca\x6d\x09\x86\x50\xee\xf5\xc2\x10\x89\xdf\x20\x05\x7b\xb7\xce\xa7\x8a\x41\x4b\x2e\x90\xf2\x99\x17\xf0\xe3\x96\x4d\x57\xc2\x6e\xb3\xec\x5a\x6b\xf9\x7a\x9e\xfd\x46\xed\x19\xae\xde\xc4\xb5\x8a\x4a\x8b\x5b\x9d\x3b\xd6\x5a\xfe\x1b\xeb\x92\x6c\x18\x71\x2b\xc9\xa5\xa1\x4b\x34\x96\x06\xde\xa5\x5f\x42\x4d\xae\xe2\x2a\x4f\xe9\x35\xca\x80\x4a\x7e\xa7\xec\x2b\xad\xfd\xc5\x44\x42\x35\xae\x79\x8b\x51\xc3\x85\x2c\x61\xab\x9f\xe4\x44\x6a\x85\xde\xbe\x2e\xcf\x2a\x6d\xe0\xef\x31\x34\xe1\xa2\xa5\xaa\xc6\x07\x5d\x8d\x41\x2e\x18\x75\x68\x03\x70\x53\x2c\x63\xa7\xa8\x40\xa2\x7a\x70\x60\xb5\xe1\x68\x4a\xf8\x15\xf6\xa2\x0e\x72\xee\x0b\x9e\xed\x05\x5c\xa1\x39\xf4\x25\x1e\x4f\xd4\xe5\x99\xfd\x2e\x1c\x9b\x83\x14\x0b\xe1\xc6\xa0\xab\xca\xa2\x7b\x6c\xd7\xd3\x84\x07\xb0\xa1\xe1\xc0\x03\x33\x6a\x31\xe2\xf4\x6e\xed\xee\xf6\x80\xb1\xf0\x21\xa8\xbe\xf0\xfa\x8a\x51\x1c\x19\x43\xfa\x80\xff\xc3\x28\x34\x97\x09\xe9\xf9\xce\x05\x75\x73\xf2\x99\xae\x66\xca\xfd\xbc\x5f\x3e\x22\x20\x76\x9d\xfa\x4a\xb1\x01\x8f\xfe\xb6\x4a\x7c\x6b\xf1\xb1\x85\xc6\x91\x83\xb0\x03\xf1\xbb\x84\xc3\xc3\x8d\xe7\x1f\x91\xb7\x4d\xda\xe1\x14\xde\x65\x1e\x5e\x56\x54\x1c\xe2\x93\x3d\x19\xc5\x33\x31\x69\xa8\x9b\xa7\xf7\xdb\x86\x87\x3f\x94\xa1\x46\x85\x86\x3a\xa1\x15\xf8\x8d\x0b\xb3\x74\x05\x14\x6a\xb1\x44\x05\xc8\x6b\x24\x10\xde\xff\xe7\x9e\xff\xc0\x10\x7e\x03\x64\xeb\xf5\x7b\xd8\x09\x2b\xea\x1f\xfe\x29\x0f\xf1\x86\x20\xc8\xb3\x7b\x60\xf8\x8e\xa0\x10\x39\x38\x1d\x74\xd4\x86\x3a\x0c\xa3\x41\x86\xd3\x89\x39\xe2\x0d\x7f\x2c\xf4\xb0\x83\xb7\x21\xcf\xfa\xf3\xf1\xec\x1d\x13\x01\x45\x05\x3b\x48\x8e\x05\x17\xa1\x3b\x5e\x55\x9b\x43\x76\xd8\x1f\x67\x72\xac\xdd\xfc\xc1\x31\xf5\xff\xa3\xbf\x13\xad\xa3\xca\xf9\xe3\x1f\x41\x51\x5a\x4c\xc8\x33\x3b\x53\xfe\xec\xe3\xd3\xf0\x33\x35\x2d\x22\xda\xe5\x4d\x83\x4f\x73\x90\xf3\xd6\x5d\x15\x43\xaa\x27\xa1\xcf\x5b\x37\x7d\x81\x72\x32\x53\xb7\xa0\x31\x38\x83\x08\x0d\x33\x54\x19\xbd\x78\x3e\x43\x34\xc6\x26\x0d\x86\x9e\x3e\x4e\x4a\xf3\x17\xc7\xc9\x37\x0e\xe2\x14\xf6\x75\xe7\x4e\x86\x3c\x9a\xcf\x90\x75\xd4\xb8\x81\x1e\xdf\x79\x27\x3a\x6f\x1d\xc5\x17\x06\x8c\x5c\x3d\xb8\x57\x67\x1f\xcb\xdb\xc0\xa9\xff\x38\x71\x5b\xf8\x5e\x23\x81\x5b\xa8\x36\x89\x7c\x66\x69\x4f\x46\xf2\x9f\x00\x00\x00\xff\xff\xf2\x3c\x0e\x8a\x4c\x0d\x00\x00") func templateDialectGremlinQueryTmplBytes() ([]byte, error) { return bindataRead( @@ -516,7 +516,7 @@ func templateDialectGremlinQueryTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/gremlin/query.tmpl", size: 3410, mode: os.FileMode(420), modTime: time.Unix(1, 0)} + info := bindataFileInfo{name: "template/dialect/gremlin/query.tmpl", size: 3404, mode: os.FileMode(420), modTime: time.Unix(1, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -541,7 +541,7 @@ func templateDialectGremlinSelectTmpl() (*asset, error) { return a, nil } -var _templateDialectGremlinUpdateTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xc4\x58\xdf\x73\xdb\x36\xf2\x7f\xa6\xfe\x8a\xfd\x6a\x94\x0c\xe9\xaf\x0a\x3b\x7d\x3b\x77\x7c\x33\xa9\xa3\x5c\x75\xd3\xb3\xd3\xc8\xed\x3d\x64\x32\x1a\x98\x5c\x4a\x18\x53\x00\x0b\x80\x8c\x7d\x1a\xfe\xef\x37\xf8\x41\x12\xa4\x64\xc7\x49\x7a\xed\x8b\x2d\x02\xcb\xdd\xfd\xec\x7e\x76\xb1\xc4\x7e\x7f\x7a\x32\xb9\x14\xe5\x83\x64\x9b\xad\x86\xef\xcf\x5e\xfd\xed\xbb\x52\xa2\x42\xae\xe1\x2d\x4d\xf1\x56\x88\x3b\x58\xf2\x94\xc0\xeb\xa2\x00\x2b\xa4\xc0\xec\xcb\x1a\x33\x32\xb9\xd9\x32\x05\x4a\x54\x32\x45\x48\x45\x86\xc0\x14\x14\x2c\x45\xae\x30\x83\x8a\x67\x28\x41\x6f\x11\x5e\x97\x34\xdd\x22\x7c\x4f\xce\xda\x5d\xc8\x45\xc5\xb3\x09\xe3\x76\xff\xe7\xe5\xe5\xe2\x6a\xb5\x80\x9c\x15\x08\x7e\x4d\x0a\xa1\x21\x63\x12\x53\x2d\xe4\x03\x88\x1c\x74\x60\x4c\x4b\x44\x32\x39\x39\x6d\x9a\xc9\x64\xbf\x87\x0c\x73\xc6\x11\xa6\x19\xa3\x05\xa6\xfa\x74\x23\x71\x57\x30\x7e\x5a\x95\x19\xd5\x38\x85\xa6\x31\x52\xb3\xdb\x8a\x15\xc6\xa7\xf3\x0b\x28\xa9\x4a\x69\x01\x33\xb2\x4a\x45\x89\xe4\x47\xbf\xe3\x05\x25\xa6\xc8\x6a\x27\xd9\xfd\xee\x5e\xf7\x42\x82\xa3\xd9\xdf\x52\xb5\xaa\xf2\x9c\xdd\xf7\x02\xd3\x6b\xde\x1b\xfd\x0f\x4a\x61\xe4\xce\xa0\x69\xf6\x7b\x60\xb9\x7b\xd3\x3e\xb8\xcd\x0b\x98\x72\x56\x4c\xdd\x12\xf2\xcc\xbc\x39\xc9\x2b\x9e\x42\x3c\x70\xa6\x69\xe0\x24\x84\xd1\x34\x09\x78\xa4\x2b\x5a\x63\x9c\xea\x7b\x48\x05\xd7\x78\xaf\xc9\xa5\xfb\x9f\x18\x15\xdf\x05\x46\xad\x02\x72\x45\x77\xde\x03\x2c\x94\xf9\xc5\xb8\xee\x6c\xcf\x01\xa5\x14\x32\x81\xfd\x24\x92\xa8\x8c\xef\x2f\xbd\x19\xf2\x1e\x55\x29\xb8\xc2\x7d\x33\x89\x7e\xaf\x50\x3e\xcc\xe1\x96\xf1\x8c\xf1\x8d\x95\x1b\xb9\x4b\xfc\x6b\x23\x1f\xc6\x52\x2c\xeb\x6c\x27\xe4\x17\xa3\x35\x4e\x26\x11\xcb\x8d\x1f\xc7\xb4\x66\xd2\xfc\x22\x8b\x7b\x4c\x0d\xe6\x39\x8c\x3c\x99\x1b\x86\x26\x3f\xd8\xd7\xff\xef\x02\x38\x2b\x0c\x94\x48\xa2\xae\x24\x87\x2e\xec\x1e\xe9\x24\x6a\x5a\x63\x73\x10\x77\xc6\x20\x53\x97\x82\x2b\x4d\xb9\x5e\x98\x48\xc4\x4e\x9d\xb8\xfb\xac\x9a\x21\xce\x49\x64\x17\x66\x16\xc4\x8c\xbc\xef\x21\xd8\x1d\xb3\xd1\x34\x36\xbc\x83\xa4\xa4\x82\xe7\x6c\x73\x7e\x00\xdb\xad\x9b\x77\x47\xa1\x31\x9b\x6f\xa5\xd8\xb5\xc9\x89\x8f\xc2\x6f\x1d\xe7\xac\xf0\x0e\x1b\x8f\x43\x38\xd2\x62\xe1\xac\x70\x40\x3c\x35\x7a\x19\x89\x8a\xbc\x47\x9a\x2d\xb9\x36\x09\xb2\x32\x8e\xad\x5f\xcc\xd7\x78\x50\x09\x2c\xb3\xf6\xc9\xf2\x0d\xb9\x79\x28\x31\x2c\x84\x04\x4e\x32\x55\x90\x1b\x49\x6b\x94\x8a\x5a\x28\xc6\xf0\x27\xa6\xb7\x40\xae\xaa\x9d\xcd\x94\xa4\x8c\x6b\xe7\xab\x36\x0a\xd2\x7e\x51\x69\x59\xa5\xda\x45\xa0\x94\x98\x8d\xf5\x9d\x9e\x86\xd2\x46\x82\xa5\x54\x23\x31\xf2\x1a\x95\x3e\x22\x6f\x97\x77\x54\xa7\x5b\x54\x40\x79\x06\x4c\x2b\xa7\x84\x72\x4d\x7c\x5c\x7b\xa5\xb6\x32\x76\xf4\x0e\xe3\x0f\x1f\x4f\xfa\xe5\x39\x9c\xcd\x0d\x6c\x62\x50\x0e\xa2\x69\x7f\x9f\x9e\x40\x4a\x15\x9a\xc6\xe7\xba\x18\xa8\x12\x53\x96\xb3\x14\x6a\x94\x1a\xef\xc1\x76\xbf\x43\xca\xd5\xc6\xdc\x86\xfc\x16\xb3\x2c\xe9\x54\x6d\x90\xa3\xa4\x45\xab\x2a\x17\x12\xae\xac\x1e\x96\xa2\x0a\x34\xf5\x39\xef\xd4\x24\xe4\x27\xaa\x7e\xa6\xb7\x58\xd8\xec\x92\x77\x34\xbd\xa3\x1b\x23\x45\xec\x6a\x32\x89\x22\xa3\x6f\x3d\x87\xd2\xf6\x4b\xca\x37\x78\x40\xde\x2e\xb0\xca\xa7\x22\xae\x13\x17\xa9\x10\x78\x4d\x25\xc4\xae\x38\x58\x0e\x42\x8e\x33\x1c\x17\xc8\x61\x46\x16\xd9\x06\x55\xe2\xfc\x8c\x64\x0d\x17\x50\x93\xcb\x42\x70\x34\xb4\x8c\xa2\x35\x5c\x80\xac\x9d\x9a\x56\x73\xa4\xa5\x82\x0f\x1f\x87\xc9\x9c\x44\x3e\x42\xce\xe7\xd9\x7a\x0e\xb3\xdc\x15\xeb\x5b\x86\x45\xa6\xfa\x22\x76\xee\xc4\x5c\x68\x98\xe5\x64\xb9\xdb\x55\x9a\xde\x16\x98\x98\xa7\x5f\x6d\x50\xdf\x60\x4e\xab\xc2\xb3\xd0\x94\x68\x4d\x8b\x0a\x8f\xf5\x2f\xf3\x9c\xb7\x47\x8e\x35\x04\x4d\xf3\x83\x97\x0f\x2b\xb6\x4b\x6e\x4e\x7e\xe5\xec\xf7\xca\xa7\x26\x1a\xb2\xeb\x02\x68\x59\x22\xcf\xe2\x60\x71\x0e\x2f\xfb\x27\xa7\xcb\xd1\xff\xbc\xcf\xe9\xf1\x74\xce\x61\xbc\xec\xdc\x6d\x3b\xa2\xed\x11\x27\xd6\xd7\x84\x5c\x8a\xca\xf4\x82\xb9\x37\x60\x0a\xe3\x1c\xd6\x6b\xb2\x54\x71\x49\xae\x16\xbf\xc4\x67\x49\xd2\xbd\x19\x5f\xe1\xa7\x85\x94\x0e\x89\x85\xfd\xed\x1e\xb4\xa6\x9b\xa4\x8b\x57\x97\xf1\x28\xaa\xc9\x3b\x29\x4a\x94\xfa\x21\x36\x79\x5f\x31\xbe\x29\xf0\x4b\xd4\x1b\x2d\x56\x55\x9f\x08\xd3\xa0\x0c\x2b\x51\xb2\xb4\xb5\xf3\x54\xb2\x69\x96\x3d\x3f\xdf\x8f\x27\x3c\xa2\x59\xf6\x5b\x6b\x43\x76\x74\x37\x62\x82\xc7\xeb\x35\xb1\x9b\x87\x39\x3d\xc0\x96\xcc\x4d\x82\xba\x9c\xb4\x71\x24\xab\x6a\x17\x27\xe4\x0a\xef\xb5\x2b\xa2\xaf\x25\xd9\x1f\xc8\xb2\x16\xf2\x01\xcf\xfe\x4c\xa2\xe5\x3b\x4d\x56\xa5\x64\x5c\xe7\xf1\xf4\xff\x2f\xe0\x45\x3d\xed\xd9\xd7\x79\xe4\xf9\x37\x26\xe0\x37\x30\x70\xbd\xfe\x83\x73\xeb\x3c\xec\xd8\xdc\x79\x39\x3e\x78\xc6\x87\x50\x81\x54\x82\x28\x35\x13\x9c\x16\x90\xdb\xbe\x48\x82\x23\xc3\x9e\xc4\x33\x93\xea\xeb\x56\xc8\x1d\x20\x54\x42\xe9\xc0\x33\x34\xbd\x97\x71\x8d\x32\xa7\xa9\x1d\x1e\x9f\xd1\x76\x83\x62\x18\x6a\xb6\x05\x77\x30\x1d\x19\x3f\x8f\x56\x5a\x5b\x5b\x81\x33\x1d\x9b\xfb\xb5\x67\x24\xe5\x39\x11\x34\xae\x15\xc8\x03\xc5\x09\xfc\x1d\xce\x9c\x0f\x35\x59\xb1\x0c\x17\x79\x8e\xa9\x36\x79\x7d\xd7\x09\x05\xf2\x84\x90\x84\xbc\x91\xa2\x74\x29\x3b\x92\x95\x20\x6c\xe8\xc2\x66\x0f\xc4\x60\xe2\x74\xdf\x4d\x4c\x70\xb3\x3d\x5d\xf2\x69\xb0\xc7\xcd\x98\x69\xbe\x80\x2c\xa7\x61\xfa\x42\x91\x17\x6a\x1a\x40\x9f\x61\x08\xba\x3f\xff\x66\x48\x96\x6a\xc9\xcd\xd1\x89\x41\x86\x02\x63\x17\x30\xbd\xae\xf4\x34\xdc\xb4\xd6\x0e\x8d\xa1\xeb\xa3\x4f\x9a\x1c\xc4\xf7\xf4\x04\x24\xee\x44\x8d\x80\x16\xab\xe3\x5f\xe0\x5a\xd8\x2f\x1f\xa3\x07\xda\x56\x8c\x64\x65\x67\xc2\x01\x3f\x86\xc3\x8f\x99\x67\x58\xf6\xf8\x34\xe3\x5c\xf9\x8c\xb6\xd0\x7d\xe7\xe3\x0a\x8b\xfc\x3d\xe6\x3e\x3e\x5a\x8e\x7a\xf9\x8f\x42\x6f\x17\xb6\xca\xb9\xfb\x14\x48\xdc\x1c\x64\x87\x8e\x00\x21\xf9\xf7\x16\x25\x1a\x02\x5d\x4b\xf3\x77\xc9\x7d\xaf\x5d\xbe\x31\x43\x9f\x6d\x02\xd7\x95\x1e\x2c\x26\x49\x37\x0c\x79\x72\x91\xa5\x46\x49\xb5\x9b\x99\x3a\xf8\xc7\xf3\x7c\xe0\xea\x92\x7f\xa1\xa3\x7a\x8b\x72\xe8\xd0\xf3\xfc\x79\xc4\xfe\x75\xa5\xff\x04\x07\xba\x46\x6e\x86\xc7\xae\x67\x68\xa9\xe6\xa0\xa5\x2f\xce\x96\x9d\x7e\xb2\x1e\xb0\xf3\x73\x34\x72\xfc\x39\xd6\xae\x1e\x2f\xb9\x9a\xbc\xce\xb2\x21\x76\xfb\xf1\x17\xfb\x91\x3f\x71\x74\x38\x8c\xe1\xb1\x17\x6f\x44\xff\x9a\x63\xcc\xe3\xe4\xfd\x89\xaa\xf1\xb7\xd6\xa3\xd4\xfe\xaa\xd1\xc1\x0d\x0e\xa3\x7a\x18\xfa\x3b\x9c\x03\xbe\x60\x0a\x30\x0d\xf2\xa9\x21\xc0\x5b\x98\x83\x09\x85\x53\xef\xdb\xfd\xd7\x23\xd9\x90\xc5\xf8\xe3\xa9\x03\xf2\x55\x15\xfc\x17\xc0\x1f\x71\xe8\x7f\x14\x0d\xf3\xd0\x9f\x22\x4d\x33\xc0\xfd\x57\xa1\x3e\x7a\xba\x1f\x9c\xc6\xc1\xb7\x77\xed\xe6\xb4\x7f\xd1\x32\xd6\xb2\xc2\xa4\xbf\x5d\xab\x5b\x0c\xc1\x07\xe9\x93\x97\x18\x7e\x88\x08\x02\x1b\x4c\x11\xbe\xe1\xec\xe8\x1d\x82\xaa\x24\xda\xeb\x52\xdd\x5d\x50\x64\x02\x95\x6d\x84\xa9\xe0\x9a\x32\x0e\x3b\x61\x65\x28\x07\xe3\xa7\xbf\x3c\x60\x39\x7c\x42\xd8\xd2\x7a\x70\x59\xe2\xfb\x56\x5b\xd7\xb6\x9d\x76\x17\x0b\xdf\x5a\xd5\x4f\xa4\xf1\x1f\x37\xf1\xab\x30\x8b\x2f\xfb\x80\xd8\x1b\xb8\xfd\x4e\x6d\xce\x61\xea\x7b\x6c\x8f\xd5\x43\x54\x47\x31\x4e\x9b\xc7\x93\x1a\xd5\x70\x11\x00\x57\x1f\xce\x3e\xda\x2b\x0a\x72\x29\x68\x81\x2a\xc5\x78\xb4\x69\xfc\x9d\x83\xbd\xb3\x68\x6f\x3b\x52\xd9\x77\xf6\x50\xfa\xd5\xf9\x47\x3f\x72\x5a\x23\x72\xac\x58\x0e\x94\x1d\x61\xd5\xe1\x69\x63\x44\xfd\x25\x9c\xf9\x8c\xf8\xa7\x60\xdc\x6c\x98\x51\x71\x62\x6f\x99\xfd\xab\xff\x0d\x00\x00\xff\xff\x5f\x06\x4e\x4e\xcf\x17\x00\x00") +var _templateDialectGremlinUpdateTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xc4\x58\x5f\x6f\xdb\x38\x12\x7f\x96\x3f\xc5\x9c\xe1\x16\x52\xce\xcb\xa4\xfb\x76\x59\xe4\x80\x36\x75\x6f\x7d\xd8\x4b\xba\x75\x77\xef\xa1\x28\x0c\x46\x1a\xd9\x44\x64\x52\x4b\x52\x6a\x72\x86\xbe\xfb\x81\x7f\x24\x51\xb2\x93\xa6\xed\xfe\x79\x49\x2c\x72\x34\x33\xbf\x99\xdf\x0c\x47\xdc\xef\x4f\x4f\x26\x97\xa2\xbc\x97\x6c\xb3\xd5\xf0\xfd\xd9\x8b\x7f\x7c\x57\x4a\x54\xc8\x35\xbc\xa1\x29\xde\x08\x71\x0b\x4b\x9e\x12\x78\x59\x14\x60\x85\x14\x98\x7d\x59\x63\x46\x26\xef\xb7\x4c\x81\x12\x95\x4c\x11\x52\x91\x21\x30\x05\x05\x4b\x91\x2b\xcc\xa0\xe2\x19\x4a\xd0\x5b\x84\x97\x25\x4d\xb7\x08\xdf\x93\xb3\x76\x17\x72\x51\xf1\x6c\xc2\xb8\xdd\xff\x69\x79\xb9\xb8\x5a\x2d\x20\x67\x05\x82\x5f\x93\x42\x68\xc8\x98\xc4\x54\x0b\x79\x0f\x22\x07\x1d\x18\xd3\x12\x91\x4c\x4e\x4e\x9b\x66\x32\xd9\xef\x21\xc3\x9c\x71\x84\x69\xc6\x68\x81\xa9\x3e\xdd\x48\xdc\x15\x8c\x9f\x56\x65\x46\x35\x4e\xa1\x69\x8c\xd4\xec\xa6\x62\x85\xf1\xe9\xfc\x02\x4a\xaa\x52\x5a\xc0\x8c\xac\x52\x51\x22\x79\xe5\x77\xbc\xa0\xc4\x14\x59\xed\x24\xbb\xdf\xdd\xeb\x5e\x48\x70\x34\xfb\x5b\xaa\x56\x55\x9e\xb3\xbb\x5e\x60\x7a\xcd\x7b\xa3\xff\x43\x29\x8c\xdc\x19\x34\xcd\x7e\x0f\x2c\x77\x6f\xda\x07\xb7\x79\x01\x53\xce\x8a\xa9\x5b\x42\x9e\x99\x37\x27\x79\xc5\x53\x88\x07\xce\x34\x0d\x9c\x84\x30\x9a\x26\x01\x8f\x74\x45\x6b\x8c\x53\x7d\x07\xa9\xe0\x1a\xef\x34\xb9\x74\xff\x13\xa3\xe2\xbb\xc0\xa8\x55\x40\xae\xe8\xce\x7b\x80\x85\x32\xbf\x18\xd7\x9d\xed\x39\xa0\x94\x42\x26\xb0\x9f\x44\x12\x95\xf1\xfd\xb9\x37\x43\xde\xa1\x2a\x05\x57\xb8\x6f\x26\xd1\x6f\x15\xca\xfb\x39\xdc\x30\x9e\x31\xbe\xb1\x72\x23\x77\x89\x7f\x6d\xe4\xc3\x58\x8a\x65\x9d\xed\x84\xfc\x6c\xb4\xc6\xc9\x24\x62\xb9\xf1\xe3\x98\xd6\x4c\x9a\x5f\x64\x71\x87\xa9\xc1\x3c\x87\x91\x27\x73\xc3\xd0\xe4\x07\xfb\xfa\xdf\x2e\x80\xb3\xc2\x40\x89\x24\xea\x4a\x72\xe8\xc2\xee\x91\x4e\xa2\xa6\x35\x36\x07\x71\x6b\x0c\x32\x75\x29\xb8\xd2\x94\xeb\x85\x89\x44\xec\xd4\x89\xdb\xcf\xaa\x19\xe2\x9c\x44\x76\x61\x66\x41\xcc\xc8\xbb\x1e\x82\xdd\x31\x1b\x4d\x63\xc3\x3b\x48\x4a\x2a\x78\xce\x36\xe7\x07\xb0\xdd\xba\x79\x77\x14\x1a\xb3\xf9\x46\x8a\x5d\x9b\x9c\xf8\x28\xfc\xd6\x71\xce\x0a\xef\xb0\xf1\x38\x84\x23\x2d\x16\xce\x0a\x07\xc4\x53\xa3\x97\x91\xa8\xc8\x3b\xa4\xd9\x92\x6b\x93\x20\x2b\xe3\xd8\xfa\xc5\x7c\x8d\x07\x95\xc0\x32\x6b\x9f\x2c\x5f\x93\xf7\xf7\x25\x86\x85\x90\xc0\x49\xa6\x0a\xf2\x5e\xd2\x1a\xa5\xa2\x16\x8a\x31\xfc\x89\xe9\x2d\x90\xab\x6a\x67\x33\x25\x29\xe3\xda\xf9\xaa\x8d\x82\xb4\x5f\x54\x5a\x56\xa9\x76\x11\x28\x25\x66\x63\x7d\xa7\xa7\xa1\xb4\x91\x60\x29\xd5\x48\x8c\xbc\x46\xa5\x8f\xc8\xdb\xe5\x1d\xd5\xe9\x16\x15\x50\x9e\x01\xd3\xca\x29\xa1\x5c\x13\x1f\xd7\x5e\xa9\xad\x8c\x1d\xbd\xc5\xf8\xc3\xc7\x93\x7e\x79\x0e\x67\x73\x03\x9b\x18\x94\x83\x68\xda\xdf\xa7\x27\x90\x52\x85\xa6\xf1\xb9\x2e\x06\xaa\xc4\x94\xe5\x2c\x85\x1a\xa5\xc6\x3b\xb0\xdd\xef\x90\x72\xb5\x31\xb7\x21\xbf\xc6\x2c\x4b\x3a\x55\x1b\xe4\x28\x69\xd1\xaa\xca\x85\x84\x2b\xab\x87\xa5\xa8\x02\x4d\x7d\xce\x3b\x35\x09\xf9\x91\xaa\x9f\xe8\x0d\x16\x36\xbb\xe4\x2d\x4d\x6f\xe9\xc6\x48\x11\xbb\x9a\x4c\xa2\xc8\xe8\x5b\xcf\xa1\xb4\xfd\x92\xf2\x0d\x1e\x90\xb7\x0b\xac\xf2\xa9\x88\xeb\xc4\x45\x2a\x04\x5e\x53\x09\xb1\x2b\x0e\x96\x83\x90\xe3\x0c\xc7\x05\x72\x98\x91\x45\xb6\x41\x95\x38\x3f\x23\x59\xc3\x05\xd4\xe4\xb2\x10\x1c\x0d\x2d\xa3\x68\x0d\x17\x20\x6b\xa7\xa6\xd5\x1c\x69\xa9\xe0\xc3\xc7\x61\x32\x27\x91\x8f\x90\xf3\x79\xb6\x9e\xc3\x2c\x77\xc5\xfa\x86\x61\x91\xa9\xbe\x88\x9d\x3b\x31\x17\x1a\x66\x39\x59\xee\x76\x95\xa6\x37\x05\x26\xe6\xe9\x17\x1b\xd4\xd7\x98\xd3\xaa\xf0\x2c\x34\x25\x5a\xd3\xa2\xc2\x63\xfd\xcb\x3c\xe7\xed\x91\x63\x0d\x41\xd3\xfc\xe0\xe5\xc3\x8a\xed\x92\x9b\x93\x5f\x38\xfb\xad\xf2\xa9\x89\x86\xec\xba\x00\x5a\x96\xc8\xb3\x38\x58\x9c\xc3\xf3\xfe\xc9\xe9\x72\xf4\x3f\xef\x73\x7a\x3c\x9d\x73\x18\x2f\x3b\x77\xdb\x8e\x68\x7b\xc4\x89\xf5\x35\x21\x97\xa2\x32\xbd\x60\xee\x0d\x98\xc2\x38\x87\xf5\x9a\x2c\x55\x5c\x92\xab\xc5\xcf\xf1\x59\x92\x74\x6f\xc6\x57\xf8\x69\x21\xa5\x43\x62\x61\x7f\xbb\x07\xad\xe9\x26\xe9\xe2\xd5\x65\x3c\x8a\x6a\xf2\x56\x8a\x12\xa5\xbe\x8f\x4d\xde\x57\x8c\x6f\x0a\xfc\x12\xf5\x46\x8b\x55\xd5\x27\xc2\x34\x28\xc3\x4a\x94\x2c\x6d\xed\x3c\x96\x6c\x9a\x65\x4f\xcf\xf7\xc3\x09\x8f\x68\x96\xfd\xda\xda\x90\x1d\xdd\x8d\x98\xe0\xf1\x7a\x4d\xec\xe6\x61\x4e\x0f\xb0\x25\x73\x93\xa0\x2e\x27\x6d\x1c\xc9\xaa\xda\xc5\x09\xb9\xc2\x3b\xed\x8a\xe8\x6b\x49\xf6\x3b\xb2\xac\x85\x7c\xc0\xb3\x3f\x93\x68\xf9\x4e\x93\x55\x29\x19\xd7\x79\x3c\xfd\xfb\x05\x3c\xab\xa7\x3d\xfb\x3a\x8f\x3c\xff\xc6\x04\xfc\x06\x06\xae\xd7\xbf\x73\x6e\x9d\x87\x1d\x9b\x3b\x2f\xc7\x07\xcf\xf8\x10\x2a\x90\x4a\x10\xa5\x66\x82\xd3\x02\x72\xdb\x17\x49\x70\x64\xd8\x93\x78\x66\x52\x7d\xdd\x0a\xb9\x03\x84\x4a\x28\x1d\x78\x86\xa6\xf7\x32\xae\x51\xe6\x34\xb5\xc3\xe3\x13\xda\x6e\x50\x0c\x43\xcd\xb6\xe0\x0e\xa6\x23\xe3\xe7\xd1\x4a\x6b\x6b\x2b\x70\xa6\x63\x73\xbf\xf6\x84\xa4\x3c\x25\x82\xc6\xb5\x02\x79\xa0\x38\x81\x7f\xc2\x99\xf3\xa1\x26\x2b\x96\xe1\x22\xcf\x31\xd5\x26\xaf\x6f\x3b\xa1\x40\x9e\x10\x92\x90\xd7\x52\x94\x2e\x65\x47\xb2\x12\x84\x0d\x5d\xd8\xec\x81\x18\x4c\x9c\xee\xbb\x89\x09\x6e\xb6\xa7\x4b\x3e\x0d\xf6\xb8\x19\x33\xcd\x17\x90\xe5\x34\x4c\x9f\x29\xf2\x4c\x4d\x03\xe8\x33\x0c\x41\xf7\xe7\xdf\x0c\xc9\x52\x2d\xb9\x39\x3a\x31\xc8\x50\x60\xec\x02\xa6\xd7\x95\x9e\x86\x9b\xd6\xda\xa1\x31\x74\x7d\xf4\x51\x93\x83\xf8\x9e\x9e\x80\xc4\x9d\xa8\x11\xd0\x62\x75\xfc\x0b\x5c\x0b\xfb\xe5\x43\xf4\x40\xdb\x8a\x91\xac\xec\x4c\x38\xe0\xc7\x70\xf8\x31\xf3\x0c\xcb\x1e\x9e\x66\x9c\x2b\x9f\xd1\x16\xba\xef\x7c\x7c\xc5\x32\xe6\x83\xa3\xe5\xa8\x91\xbf\x12\x7a\xbb\xb0\x25\xce\xdd\x77\x40\xe2\x86\x20\x3b\x71\x04\xf0\xc8\x7f\xb7\x28\xd1\xb0\xe7\x5a\x9a\xbf\x4b\xee\x1b\xed\xf2\xb5\x99\xf8\x6c\x07\xb8\xae\xf4\x60\x31\x49\xba\x49\xc8\x33\x8b\x2c\x35\x4a\xaa\xdd\xc0\xd4\x61\x3f\x9e\xe4\x03\x57\x97\xfc\x0b\x1d\xd5\x5b\x94\x43\x87\x9e\xe6\xcf\x03\xf6\xaf\x2b\xfd\x27\x38\xd0\x75\x71\x33\x39\x76\x0d\x43\x4b\x35\x07\x2d\x7d\x65\xb6\xd4\xf4\x63\xf5\x80\x9a\x9f\xe3\x90\x23\xcf\xb1\x5e\xf5\x70\xbd\xd5\xe4\x65\x96\x0d\xb1\xdb\x2f\xbf\xd8\xcf\xfb\x89\xa3\xc3\x61\x0c\x8f\xbd\xf8\x5e\xf4\xaf\x39\xc6\x3c\xcc\xdc\x1f\xa9\x1a\x7f\x68\x1d\xe7\xf5\x57\x0d\x0d\x6e\x64\x18\x15\xc3\xd0\xd9\xe1\x04\xf0\x05\xe7\xbf\x69\x8d\x8f\x1d\xff\xde\xc2\x1c\x4c\x1c\x9c\x7a\xdf\xe8\xbf\x1e\xc9\x86\x2c\xc6\x9f\x4d\x1d\x90\xaf\x2a\xdf\xbf\x00\xfe\x88\x40\x7f\x50\x34\xcc\x43\x7f\x7e\x34\xcd\x00\xf7\x5f\x85\xfa\xe8\xb9\x7e\x70\x0e\x07\x5f\xdd\xb5\x9b\xd0\xfe\x43\xcb\x58\xcb\x0a\x93\xfe\x5e\xad\x6e\x31\x04\x9f\xa2\x8f\x5e\x5f\xf8\xf1\x21\x08\x6c\x30\x3f\xf8\x6e\xb3\xa3\xb7\x08\xaa\x92\x68\x2f\x4a\x75\x77\x35\x91\x09\x54\xb6\x0b\xa6\x82\x6b\xca\x38\xec\x84\x95\xa1\x1c\x8c\x9f\xfe\xda\x80\xe5\xf0\x09\x61\x4b\xeb\xc1\x35\x89\x6f\x5a\x6d\x51\xdb\x5e\xda\x5d\x29\x7c\x6b\x55\x3f\x92\xc6\x7f\xbd\x8f\x5f\x84\x59\x7c\xde\x07\xc4\xde\xbd\xed\x77\x6a\x73\x0e\x53\xdf\x60\x7b\xac\x1e\xa2\x3a\x8a\x71\xda\x3c\x9c\xd4\xa8\x86\x8b\x00\xb8\xfa\x70\xf6\xd1\x5e\x4e\x90\x4b\x41\x0b\x54\x29\xc6\xa3\x4d\xe3\xef\x1c\xec\x6d\x45\x7b\xcf\x91\xca\xbe\xad\x87\xd2\x2f\xce\x3f\xfa\x61\xd3\x1a\x91\x63\xc5\x72\xa0\xec\x08\xab\x0e\x8f\x1a\x23\xea\xaf\xdf\xcc\x07\xc4\xbf\x05\xe3\x66\xc3\x0c\x89\x13\x7b\xbf\xec\x5f\xfd\x7f\x00\x00\x00\xff\xff\x54\x02\x04\x30\xc9\x17\x00\x00") func templateDialectGremlinUpdateTmplBytes() ([]byte, error) { return bindataRead( @@ -556,7 +556,7 @@ func templateDialectGremlinUpdateTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/gremlin/update.tmpl", size: 6095, mode: os.FileMode(420), modTime: time.Unix(1, 0)} + info := bindataFileInfo{name: "template/dialect/gremlin/update.tmpl", size: 6089, mode: os.FileMode(420), modTime: time.Unix(1, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -801,7 +801,7 @@ func templateDialectSqlSelectTmpl() (*asset, error) { return a, nil } -var _templateDialectSqlUpdateTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xc4\x57\x5f\x6f\x1b\x39\x0e\x7f\xb6\x3f\x05\xcf\x08\x0a\x3b\x70\x26\xb9\xbe\x9d\x03\x1f\x90\x26\x29\x60\x5c\x9b\xf6\xe2\x76\x1f\x5a\x14\x85\x32\xe2\xd8\x82\x15\x69\x22\x69\xb2\xe9\x1a\xf3\xdd\x17\xd4\x9f\xf1\xd8\x1e\xa7\xed\x76\x81\x2d\x50\x67\xc4\x3f\x22\xf9\x13\x49\x51\xeb\xf5\xe9\x71\xff\x52\x97\xdf\x8c\x58\x2c\x1d\xbc\x3c\xfb\xf7\x7f\x4e\x4a\x83\x16\x95\x83\xd7\x2c\xc7\x3b\xad\x57\x30\x53\x79\x06\x17\x52\x82\x17\xb2\x40\x7c\xf3\x88\x3c\xeb\x7f\x58\x0a\x0b\x56\x57\x26\x47\xc8\x35\x47\x10\x16\xa4\xc8\x51\x59\xe4\x50\x29\x8e\x06\xdc\x12\xe1\xa2\x64\xf9\x12\xe1\x65\x76\x96\xb8\x50\xe8\x4a\xf1\xbe\x50\x9e\xff\x66\x76\x79\x7d\x33\xbf\x86\x42\x48\x84\x48\x33\x5a\x3b\xe0\xc2\x60\xee\xb4\xf9\x06\xba\x00\xd7\x32\xe6\x0c\x62\xd6\x3f\x3e\xad\xeb\x7e\x7f\xbd\x06\x8e\x85\x50\x08\x03\x2e\x98\xc4\xdc\x9d\xda\x07\x79\x5a\x95\x9c\x39\x1c\x40\x5d\x93\xc4\x51\xb9\x5a\xc0\x64\x0a\x47\xd9\x3c\xd7\x25\x66\xef\x59\xbe\x62\x0b\x4c\xdc\xbb\x4a\x48\xf2\x76\x32\x85\x92\xd9\x9c\xc9\x46\xf0\x55\xe4\x44\x41\x83\x39\x8a\xc7\x20\xd9\x7c\x37\xea\x51\x48\x2b\x24\xfe\x92\xd9\x79\x55\x14\xe2\x69\x23\x30\x78\xa7\x92\x4b\x27\x70\xf4\x07\x1a\x4d\x82\x67\x50\xd7\xeb\x35\x88\x22\xa8\xfa\x45\x60\x4e\x61\xa0\x84\x1c\x04\x12\x2a\xde\xa8\x1a\x74\xa4\x39\x50\x83\x2e\x5d\xe2\x52\xac\xb7\xc9\xc3\xb6\x7e\xbf\xa8\x54\x0e\xc3\xad\x68\xea\x1a\x8e\xdb\x38\xd4\xf5\x08\xec\x83\x9c\xb3\x47\x1c\xe6\xee\x09\x72\xad\x1c\x3e\xb9\xec\x32\xfc\x1d\x25\x75\x47\x9a\x5b\xe6\xfd\x36\xd9\x0d\xbb\x8f\xbe\xa0\xb4\xf4\x25\x94\x6b\x3c\x18\x03\x1a\x43\xff\xb5\x19\xc1\xba\xdf\xb3\x25\xe6\x14\xcc\x0b\xfb\x20\x17\x86\x95\xcb\xec\xa3\x3f\xbb\x79\x89\xf9\xba\xdf\xeb\xdd\x68\x8e\x93\x16\x97\xd6\x89\xd7\xfb\xc0\xee\x24\x4e\xc0\x5b\xdd\x1c\x6a\xe6\xc9\x63\x12\xb8\xd4\xb2\xba\x57\x76\x5f\x24\x32\xbc\xd0\xec\xaa\x6d\xe0\xb5\x40\xc9\x1b\x0b\x3d\x02\x7c\x13\xa0\x27\xf5\x7e\x63\xb2\x8a\x66\x5b\x20\x66\x82\x8f\x1b\x95\x08\x37\x2d\x3f\x7c\x2b\x71\x02\x05\x6d\x9b\x79\x37\x66\x57\x19\xd1\x08\x4f\xeb\x22\x58\x41\x33\x78\xb5\xef\x6d\x52\xf3\x1a\x4c\xb9\xa4\xe0\x7f\xe9\xa7\xee\x27\x47\x95\x76\x2d\x67\x45\x01\xa5\x25\x78\x77\x7d\x2d\x0d\x72\x91\x33\x87\xf6\x1c\x24\xaa\x61\x69\x47\xf0\x5f\x38\x03\x1f\x34\x9d\x49\xf6\x3e\x49\xc0\x14\x28\x69\x86\x16\xa5\xaf\x47\x38\xb6\x0f\x32\x9b\xc7\xd5\x28\xa8\xf4\x0a\x6d\x40\xf8\xc2\x60\x6a\x81\x64\x35\xd0\x7b\xa5\xfd\x2c\xbe\x34\xca\x23\x4f\xf4\xc0\xd0\x4f\xf4\x3b\xa1\x45\xdf\x41\xff\xe8\xeb\x18\x8e\x8a\x50\xb4\xfe\x44\x6c\x84\x33\x86\xa9\x0d\x0c\x7d\xa8\x45\x36\xbb\xbf\xaf\x1c\x9d\xf8\x88\x56\x21\x7b\xae\xb0\x60\x95\x74\xe9\x08\x44\x01\x8f\x74\x66\x5d\x48\xd0\xba\x48\x95\xee\x4d\x41\x5d\x9f\x47\xf9\x7f\x4d\x41\x09\x99\x42\xf1\xb8\x04\x6f\xb2\xb9\xaf\x32\x56\x96\xa8\xf8\x70\x87\x31\x3e\x9c\x4e\xfb\xe9\x50\x1c\x4a\x86\x26\xcf\x8e\xbd\x2f\x89\xf8\x5c\x8e\x14\x7b\x19\xd2\xeb\xd5\x2d\xc8\x9b\x6c\x8e\x46\x6f\xaa\x7b\x34\x22\x6f\x12\xfb\x39\x9c\x18\xe7\x3f\x01\xd5\x16\x56\x17\x9c\x77\x63\x75\xc1\xf9\xb3\x58\xfd\x0c\x58\xdd\x68\xfd\x34\x5c\x09\xaf\x16\x60\x9b\x5a\xde\x5f\x05\x30\xdf\x95\x4e\x68\xc5\x64\x2b\xdf\x76\xe1\xcb\x25\x32\xd3\x09\x60\x57\x76\x5d\x92\x74\x37\x66\x9e\xf5\x77\x65\xd8\xaf\x24\xd3\x6e\xe1\x1e\x28\x62\x0c\x45\x7c\xcd\x17\x18\x6b\x38\xe1\x86\xd9\x47\x25\x1e\xaa\xd4\x57\x0f\x81\x86\x3e\xef\x30\x9b\x3b\x53\xe5\x6e\x07\x35\xda\xeb\x77\xe1\x96\x80\x4f\x8e\x1c\x38\x82\x01\x59\x1a\x90\xdd\x94\xd5\xeb\x35\x38\xbc\x2f\x25\xf5\xb2\xad\x29\x81\x63\x81\x5e\x38\x4b\xb2\x3b\xad\xdb\xe3\xee\x3d\xef\x3c\x91\x16\x67\x0c\xb4\xd3\x28\xf5\x35\xbf\x4f\xb8\xfc\x62\x68\x4a\x73\xec\xec\xc4\x06\xef\xf5\x63\x77\x8c\xa1\x35\x7b\xcd\x56\x77\x7e\x36\xe6\x01\xdd\x8f\x76\x00\xce\x54\x08\x83\x4f\x68\xf4\x20\x4e\x13\xff\x34\x1a\x69\x9f\xe7\xb0\x08\x20\xec\x35\x98\x2e\x14\x7e\x09\x84\x1f\xc7\x60\x1b\x82\x56\x9c\xfb\x3d\xad\xa1\x6f\xa2\xef\xa8\x8c\xad\x59\xa2\x35\x47\x4d\xe1\xc5\xd6\xf0\x94\x6b\x55\x88\xc5\xfe\x90\x11\xe8\xa4\xec\x8d\x5e\x58\x2b\x16\x0a\x12\x94\xce\x77\x6a\x4f\xf3\xed\xd0\x26\xb9\x79\xce\x22\x65\x5b\xd6\x36\xf4\xe1\xe8\x3b\xce\x8a\xc2\x8f\x6e\x53\xd8\x99\xd4\x08\x6c\x9a\x13\xc7\x7b\xbe\x72\x43\x5f\x63\x20\x0f\x46\xe7\x5e\x7b\x73\x4b\x6c\x97\x48\x53\xfc\xae\x99\x11\x3b\x0d\xd9\xbf\x6a\xa9\x95\x7e\x39\x1a\x33\x06\xbd\xa2\x0c\x14\x76\xfe\xff\x37\xbe\xcf\x19\x26\x94\xbb\xa6\xb9\x74\x88\xc6\x8c\xce\x49\xc0\x67\x5a\xf0\x85\x94\xc2\x89\xf6\x0c\xba\xca\x28\x68\xe6\xf4\xe8\xb0\x9f\xc2\x5a\xbc\x14\x8b\x12\xb2\xef\x9f\x06\x69\x04\x3f\xf0\x66\x69\x72\x2f\xa1\x9f\x5a\x67\x78\x8b\x50\x7a\xc1\x09\xf1\x48\x6a\x7b\x64\x26\x5e\xba\x01\x6e\x51\x4e\x36\xc8\x85\x8a\xba\x45\xe9\xef\x80\xd8\xc8\x67\xea\x11\x8d\x8d\x13\x2c\x66\x33\x1b\x09\x91\x7d\x60\xaa\x0e\xc2\x9e\xb9\x73\x31\xb4\xa7\xec\xd0\xd8\xdf\xbe\x7c\x1b\x5f\x23\xfb\x3b\xbc\xff\x5f\x4b\x7d\xf3\x48\xf8\xfc\xc5\x3a\x23\xd4\x62\x7d\xc0\x70\x30\xd2\x52\x85\xcd\xb3\x86\x9c\x78\x25\xb8\x48\x11\xcd\x51\x16\xb7\x58\x34\xf1\x98\x05\xba\xc9\x0e\x5e\x81\xba\x0e\x0f\x00\x02\xef\x99\x47\xc0\xee\x8d\x8a\xe1\x46\xfd\xb1\x41\x3e\x0a\xef\x23\x19\xb7\xf8\xde\x50\xef\xbb\x5c\xca\x02\x5f\x03\x21\x93\x69\xe2\x5e\x8d\xe1\xeb\x66\xe8\x0e\x7d\xb5\x69\x8f\x47\x82\xfb\x04\x6a\x4c\x85\xf4\x09\xcc\xd3\x63\xb8\xd4\x74\xec\x0e\x02\xee\x27\x82\x5b\x70\x4b\xe6\x80\x19\x04\xeb\xb4\x41\x0e\xcc\x82\x50\x2e\x3d\xcb\x39\x73\xec\x8e\x59\x84\xe3\xd3\xf6\x56\xa2\x00\xa6\x78\x9c\xc7\x05\xcf\x3e\x5a\x34\x57\x3e\xc1\xf9\xc8\x13\x66\x76\xee\x4d\xa4\xf6\xbb\x0a\x05\x3e\x99\x92\xe9\x5c\xab\xc7\xec\xc2\x69\x31\x5c\x8d\xd2\xf0\xb4\x5d\xbf\xf4\xaf\x55\x57\x11\x89\x4f\x5b\xa5\xd7\x35\x94\xf4\x7c\xa5\x64\xe1\xa0\x23\x72\x4d\xcb\xde\x63\x8d\x61\xb5\xdf\xb2\x5b\x9f\x7f\x06\x00\x00\xff\xff\x6e\x10\x04\xc3\x2e\x11\x00\x00") +var _templateDialectSqlUpdateTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xc4\x57\x6d\x6f\x1a\xb9\x13\x7f\x0d\x9f\x62\xfe\x08\x55\x80\xc8\x26\xff\xbe\x3b\x22\x4e\x4a\x93\x54\x42\xd7\xa6\xbd\xd2\xde\x8b\x56\x55\xe5\xac\x67\xc1\x62\xb1\x37\xb6\x97\x4b\x0f\xed\x77\x3f\x8d\x1f\x96\x05\x96\xb4\xbd\x9e\x74\x95\x4a\xd6\xf3\xe0\x99\xf9\x79\x66\x3c\xde\x6e\xcf\x47\xdd\x6b\x55\x7c\xd5\x62\xb1\xb4\xf0\xfc\xe2\xff\xbf\x9c\x15\x1a\x0d\x4a\x0b\x2f\x59\x8a\xf7\x4a\xad\x60\x26\xd3\x04\xae\xf2\x1c\x9c\x90\x01\xe2\xeb\x0d\xf2\xa4\xfb\x7e\x29\x0c\x18\x55\xea\x14\x21\x55\x1c\x41\x18\xc8\x45\x8a\xd2\x20\x87\x52\x72\xd4\x60\x97\x08\x57\x05\x4b\x97\x08\xcf\x93\x8b\xc8\x85\x4c\x95\x92\x77\x85\x74\xfc\x57\xb3\xeb\xdb\xbb\xf9\x2d\x64\x22\x47\x08\x34\xad\x94\x05\x2e\x34\xa6\x56\xe9\xaf\xa0\x32\xb0\x0d\x63\x56\x23\x26\xdd\xd1\x79\x55\x75\xbb\xdb\x2d\x70\xcc\x84\x44\xe8\x71\xc1\x72\x4c\xed\xb9\x79\xc8\xcf\xcb\x82\x33\x8b\x3d\xa8\x2a\x92\xe8\x17\xab\x05\x4c\xa6\xd0\x4f\xe6\xa9\x2a\x30\x79\xcb\xd2\x15\x5b\x60\xe4\xde\x97\x22\x27\x6f\x27\x53\x28\x98\x49\x59\x5e\x0b\xbe\x08\x9c\x20\xa8\x31\x45\xb1\xf1\x92\xf5\x77\xad\x1e\x84\x94\x44\xe2\x2f\x99\x99\x97\x59\x26\x1e\x77\x02\xbd\x37\x32\xba\x74\x06\xfd\xbf\x50\x2b\x12\xbc\x80\xaa\xda\x6e\x41\x64\x5e\xd5\x2d\x3c\x73\x0a\x3d\x29\xf2\x9e\x27\xa1\xe4\xb5\xaa\x46\x4b\x9a\x3d\xd9\x6b\xd3\x25\x2e\xc5\xfa\x2e\x7a\xd8\xd4\xef\x66\xa5\x4c\x61\xb0\x17\x4d\x55\xc1\xa8\x89\x43\x55\x0d\xc1\x3c\xe4\x73\xb6\xc1\x41\x6a\x1f\x21\x55\xd2\xe2\xa3\x4d\xae\xfd\xdf\x61\x54\xb7\xa4\xb9\x67\xde\x6d\x93\xdc\xb1\x75\xf0\x05\x73\x43\x5f\x42\xda\xda\x83\x31\xa0\xd6\xf4\x5f\xe9\x21\x6c\xbb\x1d\x53\x60\x4a\xc1\x3c\x33\x0f\xf9\x42\xb3\x62\x99\x7c\x70\x67\x37\x2f\x30\xdd\x76\x3b\x9d\x3b\xc5\x71\xd2\xe0\xd2\x3a\xf2\x3a\xef\xd9\x7d\x8e\x13\x70\x56\x77\x87\x9a\x38\xf2\x98\x04\xae\x55\x5e\xae\xa5\x39\x16\x09\x0c\x27\x34\xbb\x69\x1a\x78\x29\x30\xe7\xb5\x85\x0e\x01\xbe\x0b\xd0\x91\x3a\x7f\xb0\xbc\x0c\x66\x1b\x20\x26\x82\x8f\x6b\x95\x00\x37\x2d\xdf\x7f\x2d\x70\x02\x19\x6d\x9b\x38\x37\x66\x37\x09\xd1\x08\x4f\x63\x03\x58\x5e\xd3\x7b\x75\xec\x6d\x54\x73\x1a\x4c\xda\xa8\xe0\x7e\xe9\xa7\xea\x46\x47\xa5\xb2\x0d\x67\x45\x06\x85\x21\x78\x0f\x7d\x2d\x34\x72\x91\x32\x8b\xe6\x12\x72\x94\x83\xc2\x0c\xe1\x57\xb8\x00\x17\x34\x9d\x49\xf2\x36\x4a\xc0\x14\x28\x69\x06\x06\x73\x57\x8f\x30\x32\x0f\x79\x32\x0f\xab\xa1\x57\xe9\x64\x4a\x83\x70\x85\xc1\xe4\x02\xc9\xaa\xa7\x77\x0a\xf3\x49\x7c\xae\x95\x87\x8e\xe8\x80\xa1\x9f\xe0\x77\x44\x8b\xbe\xbd\x7e\xff\xcb\x18\xfa\x99\x2f\x5a\x77\x22\x26\xc0\x19\xc2\x54\x1a\x06\x2e\xd4\x2c\x99\xad\xd7\xa5\xa5\x13\x1f\xd2\xca\x67\xcf\x0d\x66\xac\xcc\x6d\x3c\x02\x91\xc1\x86\xce\xac\x0d\x09\x5a\x67\xb1\xd2\x9d\x29\xa8\xaa\xcb\x20\xff\xbf\x29\x48\x91\xc7\x50\x1c\x2e\xde\x9b\x64\xee\xaa\x8c\x15\x05\x4a\x3e\x38\x60\x8c\x4f\xa7\xd3\x71\x3a\x64\xa7\x92\xa1\xce\xb3\x91\xf3\x25\x12\x9f\xca\x91\xec\x28\x43\x3a\x9d\xaa\x01\x79\x9d\xcd\xc1\xe8\x5d\xb9\x46\x2d\xd2\x3a\xb1\x9f\xc2\x89\x71\xfe\x03\x50\xed\x61\x75\xc5\x79\x3b\x56\x57\x9c\x3f\x89\xd5\x8f\x80\xd5\x8e\xd6\x0f\xc3\x15\xf1\x6a\x00\xb6\xab\xe5\xe3\x95\x07\xf3\x4d\x61\x85\x92\x2c\x6f\xe4\xdb\x21\x7c\x69\x8e\x4c\xb7\x02\xd8\x96\x5d\xd7\x24\xdd\x8e\x99\x63\xfd\x5b\x19\xf6\x33\xc9\x74\x58\xb8\x27\x8a\x18\x7d\x11\xdf\xf2\x05\x86\x1a\x8e\xb8\x61\xf2\x41\x8a\x87\x32\xf6\xd5\x53\xa0\xa1\xcb\x3b\x4c\xe6\x56\x97\xa9\x3d\x40\x8d\xf6\xfa\x53\xd8\x25\xe0\xa3\x25\x07\xfa\xd0\x23\x4b\x3d\xb2\x1b\xb3\x7a\xbb\x05\x8b\xeb\x22\xa7\x5e\xb6\x37\x25\x70\xcc\xd0\x09\x27\x51\xf6\xa0\x75\x3b\xdc\x9d\xe7\xad\x27\xd2\xe0\x8c\x81\x76\x1a\xc6\xbe\xe6\xf6\xf1\x97\x5f\x08\x4d\x2a\x8e\xad\x9d\x58\xe3\x5a\x6d\xda\x63\xf4\xad\xd9\x69\x36\xba\xf3\x93\x31\xf7\xe8\x7e\x34\x3d\xb0\xba\x44\xe8\x7d\x44\xad\x7a\x61\x9a\xf8\xaf\xd1\x88\xfb\x3c\x85\x85\x07\xe1\xa8\xc1\xb4\xa1\xf0\x53\x20\x7c\x3f\x06\xfb\x10\x34\xe2\x3c\xee\x69\x35\x7d\x17\x7d\x4b\x65\xec\xcd\x12\x8d\x39\x6a\x0a\xcf\xf6\x86\xa7\x54\xc9\x4c\x2c\x8e\x87\x0c\x4f\x27\x65\x67\xf4\xca\x18\xb1\x90\x10\xa1\xb4\xae\x53\x3b\x9a\x6b\x87\x26\xca\xcd\x53\x16\x28\xfb\xb2\xa6\xa6\x0f\x86\xdf\x70\x56\x64\x6e\x74\x9b\xc2\xc1\xa4\x46\x60\xd3\x9c\x38\x3e\xf2\x95\x6b\xfa\x1a\x03\x79\x30\xbc\x74\xda\xbb\x5b\x62\xbf\x44\xea\xe2\xb7\xf5\x8c\xd8\x6a\xc8\xfc\x53\x4b\x8d\xf4\x4b\x51\xeb\x31\xa8\x15\x65\xa0\x30\xf3\xdf\x5f\xb9\x3e\xa7\x99\x90\xf6\x96\xe6\xd2\x01\x6a\x3d\xbc\x24\x01\x97\x69\xde\x17\x52\xf2\x27\xda\xd1\x68\x4b\x2d\xa1\x9e\xd3\x83\xc3\x6e\x0a\x6b\xf0\x62\x2c\x52\xe4\x5d\xf7\x34\x88\x23\xf8\x89\x37\x4b\x9d\x7b\x11\xfd\xd8\x3a\xfd\x5b\x84\xd2\x0b\xce\x88\x47\x52\xfb\x23\x33\xf1\xe2\x0d\xf0\x0e\xf3\xc9\x0e\x39\x5f\x51\xef\x30\x77\x77\x40\x68\xe4\x33\xb9\x41\x6d\xc2\x04\x8b\xc9\xcc\x04\x42\x60\x9f\x98\xaa\xbd\xb0\x63\x1e\x5c\x0c\xcd\x29\xdb\x37\xf6\xd7\xcf\x5f\x87\xd7\xc8\xf1\x0e\x6f\x7f\x6b\xa8\xef\x1e\x09\x9f\x3e\x1b\xab\x85\x5c\x6c\x4f\x18\xf6\x46\x1a\xaa\xb0\x7b\xd6\x90\x13\x2f\x04\x17\x31\x22\xfa\xae\x83\xd1\x0b\xb4\x93\x03\xb0\x3c\x75\xeb\xa7\x7f\x42\xee\x89\x17\xc0\xe1\x75\x8a\xfe\x3a\xfd\xbe\x29\x3e\x08\x1f\xc3\x18\xb6\xf8\xd6\x44\xef\x5a\x5c\x4c\x01\x57\x00\x3e\x8d\x69\xdc\x5e\x8d\xe1\xcb\x6e\xe2\xf6\x4d\xb5\xee\x8d\x7d\xc1\x5d\xf6\xd4\xa6\x7c\xee\x78\xe6\xf9\x08\xae\x15\x9d\xb9\x05\x0f\xfa\x99\xe0\x06\xec\x92\x59\x60\x1a\xc1\x58\xa5\x91\x03\x33\x20\xa4\x8d\x6f\x72\xce\x2c\xbb\x67\x06\x61\x74\xde\xdc\x4a\x64\xc0\x24\x0f\xc3\xb8\xe0\xc9\x07\x83\xfa\xc6\x65\x37\x1f\x3a\xc2\xcc\xcc\x9d\x89\xd8\x7b\x57\xbe\xba\x27\x53\x32\x9d\x2a\xb9\x49\xae\xac\x12\x83\xd5\x30\x4e\x4e\xfb\xc5\x4b\xff\x1a\x45\x15\x90\xf8\xb8\x57\x77\x6d\x13\x49\xc7\x95\x49\xe2\x0f\x3a\x20\x57\xf7\xeb\x23\xd6\x18\x56\xc7\xfd\xba\xf1\xf9\x77\x00\x00\x00\xff\xff\xd1\x6d\xa7\x3c\x2b\x11\x00\x00") func templateDialectSqlUpdateTmplBytes() ([]byte, error) { return bindataRead( @@ -816,7 +816,7 @@ func templateDialectSqlUpdateTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/sql/update.tmpl", size: 4398, mode: os.FileMode(420), modTime: time.Unix(1, 0)} + info := bindataFileInfo{name: "template/dialect/sql/update.tmpl", size: 4395, mode: os.FileMode(420), modTime: time.Unix(1, 0)} a := &asset{bytes: bytes, info: info} return a, nil } diff --git a/entc/gen/template/dialect/gremlin/predicate.tmpl b/entc/gen/template/dialect/gremlin/predicate.tmpl index 13d8e6bbc..783f73c1d 100644 --- a/entc/gen/template/dialect/gremlin/predicate.tmpl +++ b/entc/gen/template/dialect/gremlin/predicate.tmpl @@ -56,7 +56,7 @@ in the LICENSE file in the root directory of this source tree. {{- end -}} func(t *dsl.Traversal) { {{- /* if it's an edge with self-reference, take the two vertices */}} - {{- if $e.SelfRef }} + {{- if $e.Bidi }} t.Both({{ $label }}) {{- else }} t.{{ $direction }}E({{ $label }}).{{ $direction }}V() @@ -76,7 +76,7 @@ in the LICENSE file in the root directory of this source tree. {{- $label = $e.InverseConstant -}} {{- end -}} func(t *dsl.Traversal) { - {{- if $e.SelfRef }}{{/* selfref means it should be true in one of the directions */}} + {{- if $e.Bidi }}{{/* selfref means it should be true in one of the directions */}} in, out := __.InV(), __.OutV() for _, p := range preds { p(in) diff --git a/entc/gen/template/dialect/gremlin/query.tmpl b/entc/gen/template/dialect/gremlin/query.tmpl index 29de81907..e346c6694 100644 --- a/entc/gen/template/dialect/gremlin/query.tmpl +++ b/entc/gen/template/dialect/gremlin/query.tmpl @@ -74,7 +74,7 @@ func ({{ $receiver }} *{{ $builder }}) gremlinQuery() *dsl.Traversal { {{- $e := $.Scope.Edge }} {{/* the edge we need to genegrate the path to. */}} {{- $receiver := $.Scope.Receiver }} gremlin := {{ $receiver }}.gremlinQuery() - {{- if $e.SelfRef }} + {{- if $e.Bidi }} query.gremlin = gremlin.Both({{ $.Package }}.{{ $e.Constant }}) {{- else if $e.IsInverse }} query.gremlin = gremlin.InE({{ $e.Type.Package }}.{{ $e.Constant }}).OutV() @@ -90,7 +90,7 @@ func ({{ $receiver }} *{{ $builder }}) gremlinQuery() *dsl.Traversal { {{- $e := $.Scope.Edge }} {{/* the edge we need to genegrate the path to. */}} {{- $receiver := $.Scope.Receiver }} - {{- if $e.SelfRef }} + {{- if $e.Bidi }} query.gremlin = g.V({{ $receiver }}.ID).Both({{ $n.Package }}.{{ $e.Constant }}) {{- else if $e.IsInverse }} query.gremlin = g.V({{ $receiver }}.ID).InE({{ $e.Type.Package }}.{{ $e.Constant }}).OutV() diff --git a/entc/gen/template/dialect/gremlin/update.tmpl b/entc/gen/template/dialect/gremlin/update.tmpl index 274535cdd..1975afe07 100644 --- a/entc/gen/template/dialect/gremlin/update.tmpl +++ b/entc/gen/template/dialect/gremlin/update.tmpl @@ -108,7 +108,7 @@ func ({{ $receiver }} *{{ $builder }}) gremlin({{ if $one }}id {{ $.ID.Type }}{{ {{- else }} for id := range {{ $receiver }}.removed{{ $e.StructField }} { {{- end }} - {{- if $e.SelfRef }} + {{- if $e.Bidi }} tr := rv.Clone().BothE({{ $name }}){{ if not $e.Unique }}.Where(__.Or(__.InV().HasID(id), __.OutV().HasID(id))){{ end }}.Drop().Iterate() {{- else if $e.IsInverse }} tr := rv.Clone().InE({{ $name }}){{ if not $e.Unique }}.Where(__.OtherV().HasID(id)){{ end }}.Drop().Iterate() @@ -125,7 +125,7 @@ func ({{ $receiver }} *{{ $builder }}) gremlin({{ if $one }}id {{ $.ID.Type }}{{ v.AddE({{ $name }}).To(g.V(id)).OutV() {{- end }} {{- if $e.HasConstraint }} - {{- if $e.SelfRef }} + {{- if $e.Bidi }} constraints = append(constraints, &constraint{ pred: rv.Clone().Both({{ $name }}).Count(), test: __.Is(p.NEQ(0)).Constant(NewErrUniqueEdge({{ $.Package }}.Label, {{ $name }}, id)), diff --git a/entc/gen/template/dialect/sql/update.tmpl b/entc/gen/template/dialect/sql/update.tmpl index 491d8d3ed..5bfe01468 100644 --- a/entc/gen/template/dialect/sql/update.tmpl +++ b/entc/gen/template/dialect/sql/update.tmpl @@ -112,7 +112,7 @@ func ({{ $receiver }} *{{ $builder }}) sqlSave(ctx context.Context) ({{ $ret }} Inverse: {{ $e.IsInverse }}, Table: {{ $.Package }}.{{ $e.TableConstant }}, Columns: {{ if $e.M2M }}{{ $.Package }}.{{ $e.PKConstant }}{{ else }}[]string{ {{ $.Package }}.{{ $e.ColumnConstant }} }{{ end }}, - Bidi: {{ $e.SelfRef }}, + Bidi: {{ $e.Bidi }}, Target: &sqlgraph.EdgeTarget{ IDSpec: &sqlgraph.FieldSpec{ Type: field.{{ $e.Type.ID.Type.ConstName }}, diff --git a/entc/gen/type.go b/entc/gen/type.go index 68ba8ee1c..893fe45ec 100644 --- a/entc/gen/type.go +++ b/entc/gen/type.go @@ -89,14 +89,14 @@ type ( StructTag string // Relation holds the relation info of an edge. Rel Relation - // SelfRef indicates if this edge is a self-reference to the same - // type with the same name (symmetric relation). For example, a User - // type have one of following edges: + // Bidi indicates if this edge is a bidirectional edge. A self-reference + // to the same type with the same name (symmetric relation). For example, + // a User type have one of following edges: // // edge.To("friends", User.Type) // many 2 many. // edge.To("spouse", User.Type).Unique() // one 2 one. // - SelfRef bool + Bidi bool } // Relation holds the relational database information for edges. @@ -384,6 +384,21 @@ func (t *Type) AddIndex(idx *load.Index) error { return nil } +// EdgeFields returns the edges that resides in the type's +// table in SQL as foreign-keys (columns). +func (t Type) EdgeFields() []*Edge { + var fks []*Edge + for _, e := range t.Edges { + switch { + case e.M2O(): + fks = append(fks, e) + case e.O2O() && (e.IsInverse() || e.Bidi): + fks = append(fks, e) + } + } + return fks +} + // Constant returns the constant name of the field. func (f Field) Constant() string { return "Field" + pascal(f.Name) } @@ -596,6 +611,7 @@ func (e Edge) PKConstant() string { return pascal(e.Name) + "PrimaryKey" } // HasConstraint indicates if this edge has a unique constraint check. // We check uniqueness when both-directions are unique or one of them. +// Used by the Gremlin storage-layer. func (e Edge) HasConstraint() bool { return e.Rel.Type == O2O || e.Rel.Type == O2M } diff --git a/entc/integration/config/ent/generate.go b/entc/integration/config/ent/generate.go new file mode 100644 index 000000000..26146318a --- /dev/null +++ b/entc/integration/config/ent/generate.go @@ -0,0 +1,7 @@ +// Copyright 2019-present Facebook Inc. All rights reserved. +// This source code is licensed under the Apache 2.0 license found +// in the LICENSE file in the root directory of this source tree. + +package ent + +//go:generate go run github.com/facebookincubator/ent/cmd/entc generate --header "// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n// This source code is licensed under the Apache 2.0 license found\n// in the LICENSE file in the root directory of this source tree.\n\n// Code generated by entc, DO NOT EDIT." ./schema diff --git a/entc/integration/customid/ent/generate.go b/entc/integration/customid/ent/generate.go new file mode 100644 index 000000000..26146318a --- /dev/null +++ b/entc/integration/customid/ent/generate.go @@ -0,0 +1,7 @@ +// Copyright 2019-present Facebook Inc. All rights reserved. +// This source code is licensed under the Apache 2.0 license found +// in the LICENSE file in the root directory of this source tree. + +package ent + +//go:generate go run github.com/facebookincubator/ent/cmd/entc generate --header "// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n// This source code is licensed under the Apache 2.0 license found\n// in the LICENSE file in the root directory of this source tree.\n\n// Code generated by entc, DO NOT EDIT." ./schema diff --git a/entc/integration/ent/generate.go b/entc/integration/ent/generate.go new file mode 100644 index 000000000..afec3621a --- /dev/null +++ b/entc/integration/ent/generate.go @@ -0,0 +1,7 @@ +// Copyright 2019-present Facebook Inc. All rights reserved. +// This source code is licensed under the Apache 2.0 license found +// in the LICENSE file in the root directory of this source tree. + +package ent + +//go:generate go run github.com/facebookincubator/ent/cmd/entc generate --idtype string --template ./template --header "// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n// This source code is licensed under the Apache 2.0 license found\n// in the LICENSE file in the root directory of this source tree.\n\n// Code generated by entc, DO NOT EDIT." ./schema diff --git a/entc/integration/generate.go b/entc/integration/generate.go deleted file mode 100644 index 1cccfa7f1..000000000 --- a/entc/integration/generate.go +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2019-present Facebook Inc. All rights reserved. -// This source code is licensed under the Apache 2.0 license found -// in the LICENSE file in the root directory of this source tree. - -package integration - -//go:generate go run github.com/facebookincubator/ent/cmd/entc generate --idtype string --template ./ent/template --header "// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n// This source code is licensed under the Apache 2.0 license found\n// in the LICENSE file in the root directory of this source tree.\n\n// Code generated by entc, DO NOT EDIT." ./ent/schema -//go:generate go run github.com/facebookincubator/ent/cmd/entc generate --target ./gremlin/ent --storage=gremlin --idtype string --template ./ent/template --header "// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n// This source code is licensed under the Apache 2.0 license found\n// in the LICENSE file in the root directory of this source tree.\n\n// Code generated by entc, DO NOT EDIT." ./ent/schema -//go:generate go run github.com/facebookincubator/ent/cmd/entc generate --header "// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n// This source code is licensed under the Apache 2.0 license found\n// in the LICENSE file in the root directory of this source tree.\n\n// Code generated by entc, DO NOT EDIT." ./migrate/entv1/schema -//go:generate go run github.com/facebookincubator/ent/cmd/entc generate --header "// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n// This source code is licensed under the Apache 2.0 license found\n// in the LICENSE file in the root directory of this source tree.\n\n// Code generated by entc, DO NOT EDIT." ./migrate/entv2/schema -//go:generate go run github.com/facebookincubator/ent/cmd/entc generate --header "// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n// This source code is licensed under the Apache 2.0 license found\n// in the LICENSE file in the root directory of this source tree.\n\n// Code generated by entc, DO NOT EDIT." ./template/ent/schema --template=template/ent/template -//go:generate go run github.com/facebookincubator/ent/cmd/entc generate --header "// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n// This source code is licensed under the Apache 2.0 license found\n// in the LICENSE file in the root directory of this source tree.\n\n// Code generated by entc, DO NOT EDIT." ./json/ent/schema -//go:generate go run github.com/facebookincubator/ent/cmd/entc generate --header "// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n// This source code is licensed under the Apache 2.0 license found\n// in the LICENSE file in the root directory of this source tree.\n\n// Code generated by entc, DO NOT EDIT." ./config/ent/schema -//go:generate go run github.com/facebookincubator/ent/cmd/entc generate --header "// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n// This source code is licensed under the Apache 2.0 license found\n// in the LICENSE file in the root directory of this source tree.\n\n// Code generated by entc, DO NOT EDIT." --idtype uint64 ./idtype/ent/schema -//go:generate go run github.com/facebookincubator/ent/cmd/entc generate --header "// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n// This source code is licensed under the Apache 2.0 license found\n// in the LICENSE file in the root directory of this source tree.\n\n// Code generated by entc, DO NOT EDIT." ./customid/ent/schema diff --git a/entc/integration/gremlin/ent/generate.go b/entc/integration/gremlin/ent/generate.go new file mode 100644 index 000000000..30dbce44f --- /dev/null +++ b/entc/integration/gremlin/ent/generate.go @@ -0,0 +1,7 @@ +// Copyright 2019-present Facebook Inc. All rights reserved. +// This source code is licensed under the Apache 2.0 license found +// in the LICENSE file in the root directory of this source tree. + +package ent + +//go:generate go run github.com/facebookincubator/ent/cmd/entc generate --target . --storage=gremlin --idtype string --template ../../ent/template --header "// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n// This source code is licensed under the Apache 2.0 license found\n// in the LICENSE file in the root directory of this source tree.\n\n// Code generated by entc, DO NOT EDIT." ../../ent/schema diff --git a/entc/integration/idtype/ent/generate.go b/entc/integration/idtype/ent/generate.go new file mode 100644 index 000000000..238c9e035 --- /dev/null +++ b/entc/integration/idtype/ent/generate.go @@ -0,0 +1,7 @@ +// Copyright 2019-present Facebook Inc. All rights reserved. +// This source code is licensed under the Apache 2.0 license found +// in the LICENSE file in the root directory of this source tree. + +package ent + +//go:generate go run github.com/facebookincubator/ent/cmd/entc generate --header "// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n// This source code is licensed under the Apache 2.0 license found\n// in the LICENSE file in the root directory of this source tree.\n\n// Code generated by entc, DO NOT EDIT." --idtype uint64 ./schema diff --git a/entc/integration/json/ent/generate.go b/entc/integration/json/ent/generate.go new file mode 100644 index 000000000..26146318a --- /dev/null +++ b/entc/integration/json/ent/generate.go @@ -0,0 +1,7 @@ +// Copyright 2019-present Facebook Inc. All rights reserved. +// This source code is licensed under the Apache 2.0 license found +// in the LICENSE file in the root directory of this source tree. + +package ent + +//go:generate go run github.com/facebookincubator/ent/cmd/entc generate --header "// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n// This source code is licensed under the Apache 2.0 license found\n// in the LICENSE file in the root directory of this source tree.\n\n// Code generated by entc, DO NOT EDIT." ./schema diff --git a/entc/integration/migrate/entv1/generate.go b/entc/integration/migrate/entv1/generate.go new file mode 100644 index 000000000..cafcd6349 --- /dev/null +++ b/entc/integration/migrate/entv1/generate.go @@ -0,0 +1,7 @@ +// Copyright 2019-present Facebook Inc. All rights reserved. +// This source code is licensed under the Apache 2.0 license found +// in the LICENSE file in the root directory of this source tree. + +package entv1 + +//go:generate go run github.com/facebookincubator/ent/cmd/entc generate --header "// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n// This source code is licensed under the Apache 2.0 license found\n// in the LICENSE file in the root directory of this source tree.\n\n// Code generated by entc, DO NOT EDIT." ./schema diff --git a/entc/integration/migrate/entv2/generate.go b/entc/integration/migrate/entv2/generate.go new file mode 100644 index 000000000..c3c29f57e --- /dev/null +++ b/entc/integration/migrate/entv2/generate.go @@ -0,0 +1,7 @@ +// Copyright 2019-present Facebook Inc. All rights reserved. +// This source code is licensed under the Apache 2.0 license found +// in the LICENSE file in the root directory of this source tree. + +package entv2 + +//go:generate go run github.com/facebookincubator/ent/cmd/entc generate --header "// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n// This source code is licensed under the Apache 2.0 license found\n// in the LICENSE file in the root directory of this source tree.\n\n// Code generated by entc, DO NOT EDIT." ./schema diff --git a/entc/integration/template/ent/generate.go b/entc/integration/template/ent/generate.go new file mode 100644 index 000000000..25e4b9379 --- /dev/null +++ b/entc/integration/template/ent/generate.go @@ -0,0 +1,7 @@ +// Copyright 2019-present Facebook Inc. All rights reserved. +// This source code is licensed under the Apache 2.0 license found +// in the LICENSE file in the root directory of this source tree. + +package ent + +//go:generate go run github.com/facebookincubator/ent/cmd/entc generate --template=./template --header "// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n// This source code is licensed under the Apache 2.0 license found\n// in the LICENSE file in the root directory of this source tree.\n\n// Code generated by entc, DO NOT EDIT." ./schema