diff --git a/dialect/gremlin/graph/dsl/dsl.go b/dialect/gremlin/graph/dsl/dsl.go index 67cbe53c8..6dd51cfe3 100644 --- a/dialect/gremlin/graph/dsl/dsl.go +++ b/dialect/gremlin/graph/dsl/dsl.go @@ -103,7 +103,7 @@ func (b Bindings) Add(v interface{}) string { k := fmt.Sprintf("$%x", len(b)) switch v := v.(type) { case time.Time: - b[k] = v.Unix() + b[k] = v.UnixNano() default: b[k] = v } diff --git a/entc/gen/bindata.go b/entc/gen/bindata.go index 1e0c95310..ab698ee42 100644 --- a/entc/gen/bindata.go +++ b/entc/gen/bindata.go @@ -124,7 +124,7 @@ func templateBaseTmpl() (*asset, error) { return a, nil } -var _templateBuilderCreateTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x9c\x56\x5f\x8f\x9c\xb6\x17\x7d\x66\x3e\xc5\x0d\x22\x3f\xc1\x6a\x97\xf9\xe5\x75\xaa\xed\x43\xb3\xa9\x9a\x97\xb4\xd2\xa6\x55\xa4\xa6\xaa\xbc\x70\x61\xdc\xf5\x18\x62\x9b\xd9\x59\x21\xbe\x7b\x75\x6d\x03\x86\xfd\xa3\x49\x9f\x06\x79\xec\x73\x8f\xcf\x39\xbe\x76\xdf\x43\x89\x15\x97\x08\x71\xa1\x90\x19\x8c\x61\x18\x36\x7d\x0f\x49\x7b\x5f\xc3\xee\x1a\xee\x98\x46\x48\xf2\xf7\x8d\xac\x78\x9d\xff\xc6\x8a\x7b\x56\x23\xcd\xa1\x49\x06\x0f\xad\x60\x06\x21\xde\x23\x2b\x51\xc5\x90\x3c\xfd\x8b\x1f\xda\x46\x99\xe0\xaf\xe4\xae\xe3\xa2\x44\x45\xf0\xad\xe2\xd2\x40\xda\x32\x5d\x30\x01\x49\xfe\x89\x1d\x30\x83\xf8\xfd\x92\x8b\xc2\x02\xf9\xd1\xad\x98\xbe\x27\x18\x82\xdd\x6e\x21\x44\x1e\x06\xe0\x1a\xcc\x1e\x61\x1c\xa9\x1a\x05\x76\x87\x5c\xd6\xc0\xec\x64\x5b\x8c\xa6\xa2\x34\xdc\x3c\xe6\x1b\xf3\xd8\xe2\x1a\x46\x1b\xd5\x15\x06\xfa\x4d\x54\x58\x09\x36\x51\xdf\x83\x62\xb2\x46\x48\xfe\xbe\x84\xa4\x22\x4e\x49\xfe\x33\x47\x51\x6a\xa2\x12\x45\x7d\x7f\x05\x49\x95\xdf\xda\x95\xf6\x0f\x02\xba\x20\xe0\x2a\xff\x4c\x35\x68\x5a\xdf\x03\xca\xd2\x7f\x5e\x85\x90\xe8\x20\x3f\x94\x35\x86\x88\xb8\x46\x3c\xb0\xf6\x4f\xbb\x8f\x8f\x37\x23\xec\x5f\x8e\x6e\x3f\xe3\x5f\x0d\xc3\xc6\xc9\xfe\xc0\xcd\x1e\xf0\x64\x68\x34\x81\xf8\x27\xb7\xc7\x78\xa1\x63\xb4\x70\x4e\xa3\x31\x34\x23\xf7\x3e\x78\xbe\x24\xf6\x2d\x3b\xa2\xd3\x13\x9d\xce\x0b\x41\xb9\xb4\x63\x25\x33\x8c\xf2\x93\x6f\xaa\x4e\x16\x90\x2e\xac\x1c\x25\x99\xab\x67\x16\x35\x2d\xcc\x09\x8a\x46\x1a\x3c\x19\x8a\x1d\xfd\x66\x90\x5e\x84\x05\x2e\x01\x95\x6a\x54\x46\xb6\xbc\x66\xc7\xd5\xa4\x1e\xaf\xa0\x51\xa4\xff\x2f\x4c\xdf\x60\xc5\x3a\x61\x20\x95\x8d\xa1\xa1\x5f\x5b\xc3\x1b\xc9\x44\xe6\xe7\x47\xbc\x82\x15\xd5\xdc\x99\xb7\x32\xe0\xfa\x1a\x24\x17\x44\x22\xa2\x2a\x54\x64\x59\xc1\xe3\x45\xd1\x91\x68\xd9\x1d\xcc\x27\xc8\x63\xfa\xb9\x7e\x67\x13\xca\x47\xfd\x99\xdb\x91\x34\x0b\x92\xe2\x0b\x9d\x41\x0d\xfe\x77\x1c\x69\xa1\xd0\x38\x53\x51\x68\x3a\x25\x89\xb8\x57\x51\xe7\x9f\xf0\x21\x8d\xc7\x33\x3f\x0c\x3b\x38\x70\xad\xe9\x9c\x28\xfc\xd6\x71\x85\x25\x54\x16\xf7\x6b\xec\x6a\x79\xae\x5f\xe3\x38\x9b\x6a\xf8\xa8\x45\x51\xe4\x24\x0f\x46\xc6\xec\x25\x55\xfe\x07\x13\xbc\x64\xa6\x51\xa3\x37\x51\xdf\x6f\x2f\x80\x95\x25\xc8\x4e\x08\x76\x27\x10\x8a\x3d\x16\xf7\xd0\x48\xf1\x68\x0f\x6d\xe3\xdd\x71\x1c\xb4\x85\x6a\x3a\x43\x6d\xcb\x6a\x7c\x64\xa2\x43\xb8\xd8\xce\x80\x90\x4c\x58\xbb\x6b\x60\x14\xf7\xd9\xe4\xc9\xf5\xd9\xa6\x6c\x5e\x6a\x83\x32\x2f\xa7\x28\x9f\x99\x85\x37\x3e\x0b\xb0\x14\x83\xb2\x84\x4a\xbd\x6c\xff\xa4\x08\x59\x7d\x71\x4e\xa9\xec\x07\x8b\xf8\x26\x0c\xdf\xc2\xd5\xea\x60\xf2\x0f\xe4\x6c\xb5\x74\xf5\x38\x95\xaa\x18\x17\xe4\x2a\x7d\x3e\xef\xec\x0e\xde\x1e\x63\x1b\x10\x67\xf1\x8b\xfa\x0c\x10\xc6\x33\xdc\xfc\xf2\xfb\x8c\x0e\x47\xd0\x98\xff\x2e\xf9\xb7\x0e\x83\xa3\x28\x50\xae\x3b\x87\xd5\x65\xdd\x0f\x33\xf8\x11\xde\x79\x3d\xce\x0a\x79\x27\x0c\x6f\x05\x02\xd3\x9a\xd7\xf2\x80\xd2\x68\x68\x24\x30\xe8\x1c\x05\x2c\x6b\xf4\xca\xe0\x3a\xf3\xcf\x84\xdc\x6e\xc0\x86\x0b\xe7\xb4\xbd\xde\x51\x9e\xb4\xf4\x45\x47\xf9\x4f\x27\xf5\x7b\x48\xaf\x1d\xe2\x15\xd4\x06\x52\x81\x12\x92\xfc\xd6\x34\x8a\xd5\x98\xc1\x3b\xbf\x09\xfd\xc0\x4d\xb1\x7f\xb2\x8f\x52\xd1\x57\x7e\xc3\x99\xc0\xc2\xa4\xb6\x27\xaf\xfd\xd6\x0e\xcb\xb9\xee\x81\x9d\xef\x05\x3d\x2f\xfa\x1e\xfe\x69\xb8\x9c\xe6\x8d\x60\x1a\xe2\x4b\xa0\x47\xc0\x6e\x33\xcb\xf1\x9c\x8e\x7a\x82\x1c\x6f\x90\xcc\x93\x98\x92\xe9\xdb\x45\x88\xf4\xaa\xb0\x9d\xd4\x5d\x4b\x0f\x17\x2c\xa1\x74\x74\xac\x88\x5e\xaa\xa0\xa7\xbe\xcc\x8b\xcb\x12\x4f\xc1\x8e\xff\xbf\x24\x18\xf0\x9b\x2f\xd5\x2f\x50\x30\x21\xb4\xbb\x60\xa9\x77\xb5\x4c\xf2\x42\x93\x37\x76\xc8\x55\xd3\xc0\xa4\xa3\xfe\x5d\x77\xeb\x97\xe7\x2f\xd7\xc5\xdd\x4a\xfe\x1d\x2f\xc3\xa6\x15\xee\x2a\xa0\xef\x3b\x5b\xd0\x87\x2c\xd5\xd4\xf5\x8c\x61\x33\x0a\x73\x74\xef\x8f\xf3\x02\x71\xee\x3b\xc5\xb6\x79\x73\x68\xc5\xf4\x88\xac\x20\xf6\x3e\x6d\xdf\xea\xed\xf8\x98\x0d\xa2\xe1\x16\x9d\xa6\xe7\x8d\x5b\x9e\xaf\x1e\x63\xc1\x33\x67\xfe\xfc\x37\x00\x00\xff\xff\x1e\xd5\x2d\x22\x26\x0b\x00\x00") +var _templateBuilderCreateTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x9c\x56\x4d\x6f\xdc\x36\x10\x3d\x6b\x7f\xc5\x44\x50\x0a\xc9\xb0\xb5\xcd\x75\x0b\xf7\xd0\x38\x05\x72\x49\x0b\x38\x2d\x02\x34\x45\x41\x4b\x23\x2d\x6b\x2e\xa5\x90\xd4\x7a\x0d\x41\xff\xbd\x18\x92\x92\x28\xf9\x03\x9b\x9e\x2c\x73\xc9\x37\x8f\xef\x3d\x0e\xd9\xf7\x50\x62\xc5\x25\x42\x5c\x28\x64\x06\x63\x18\x86\x4d\xdf\x43\xd2\xde\xd7\xb0\xbb\x86\x3b\xa6\x11\x92\xfc\x7d\x23\x2b\x5e\xe7\xbf\xb3\xe2\x9e\xd5\x48\x73\x68\x92\xc1\x43\x2b\x98\x41\x88\xf7\xc8\x4a\x54\x31\x24\x4f\x7f\xe2\x87\xb6\x51\x26\xf8\x29\xb9\xeb\xb8\x28\x51\x11\x7c\xab\xb8\x34\x90\xb6\x4c\x17\x4c\x40\x92\x7f\x62\x07\xcc\x20\x7e\xbf\xe4\xa2\xb0\x40\x7e\x74\x2b\xa6\xef\x09\x86\x60\xb7\x5b\x08\x91\x87\x01\xb8\x06\xb3\x47\x18\x47\xaa\x46\x81\xdd\x21\x97\x35\x30\x3b\xd9\x16\xa3\xa9\x28\x0d\x37\x8f\xf9\xc6\x3c\xb6\xb8\x86\xd1\x46\x75\x85\x81\x7e\x13\x15\x56\x82\x4d\xd4\xf7\xa0\x98\xac\x11\x92\x7f\x2e\x21\xa9\x88\x53\x92\xff\xca\x51\x94\x9a\xa8\x44\x51\xdf\x5f\x41\x52\xe5\xb7\x76\xa5\xfd\x81\x80\x2e\x08\xb8\xca\x3f\x53\x0d\x9a\xd6\xf7\x80\xb2\xf4\x9f\x57\x21\x24\x3a\xc8\x0f\x65\x8d\x21\x22\xae\x11\x0f\xac\xfd\xcb\xee\xe3\xe3\xcd\x08\xfb\xb7\xa3\xdb\xcf\xf8\x57\xc3\xb0\x71\xb2\x3f\x70\xb3\x07\x3c\x19\x1a\x4d\x20\xfe\xc5\xed\x31\x5e\xe8\x18\x2d\x9c\xd3\x68\x0c\xcd\xc8\xbd\x0f\x9e\x2f\x89\x7d\xcb\x8e\xe8\xf4\x44\xa7\xf3\x42\x50\x2e\xed\x58\xc9\x0c\xa3\xfc\xe4\x9b\xaa\x93\x05\xa4\x0b\x2b\x47\x49\xe6\xea\x99\x45\x4d\x0b\x73\x82\xa2\x91\x06\x4f\x86\x62\x47\x7f\x33\x48\x2f\xc2\x02\x97\x80\x4a\x35\x2a\x23\x5b\x5e\xb3\xe3\x6a\x52\x8f\x57\xd0\x28\xd2\xff\x06\x2b\xd6\x09\x03\xa9\x6c\x0c\xfd\xff\x5b\x6b\x78\x23\x99\xc8\xfc\xe4\x88\x57\xb0\xe2\x99\x3b\xe7\x56\xea\x5f\x5f\x83\xe4\x82\x18\x44\x54\x82\x2a\x04\xf0\x1e\x2c\x8a\x8e\x44\xc8\x72\x9f\xcf\x8e\x07\xf4\x73\xfd\x9e\x26\x88\x8f\xfa\x33\xb7\x23\x69\x16\x64\xc4\x57\x39\x83\x17\xfc\x70\x1c\x39\xa1\xd0\x38\x53\x51\x68\x3a\x25\x89\xb5\xd7\x4f\xe7\x9f\xf0\x21\x8d\xc7\xd3\x3e\x0c\x3b\x38\x70\xad\xe9\x84\x28\xfc\xd6\x71\x85\x25\x54\x16\xf7\x6b\xec\x6a\x79\xae\x5f\xe3\x38\x9b\x6a\xf8\x90\x45\x51\xe4\xc4\x0e\x46\xc6\xd4\x25\x55\xfe\x27\x13\xbc\x64\xa6\x51\xa3\x2b\x51\xdf\x6f\x2f\x80\x95\x25\xc8\x4e\x08\x76\x27\x10\x8a\x3d\x16\xf7\xd0\x48\xf1\x68\x8f\x6b\xe3\xad\x71\x1c\xb4\x85\x6a\x3a\x43\x0d\xcb\x6a\x7c\x64\xa2\x43\xb8\xd8\xce\x80\x90\x4c\x58\xbb\x6b\x60\x14\xf4\xd9\xe1\xc9\x72\xaf\x7b\x36\xaf\xb3\xf9\x98\xd7\x52\x82\xcf\x4c\xc1\x1b\x9f\x02\x58\x2a\x41\x29\x42\xa5\x5e\xf6\x7e\x92\x83\x7c\xbe\x38\xa7\x54\xf6\x93\x45\x7c\x13\xc6\x6e\x61\x69\x75\x30\xf9\x07\xb2\xb5\x5a\x5a\x7a\x9c\x4a\x55\x8c\x0b\xb2\x94\x3e\x9f\xb7\x75\x07\x6f\x8f\xb1\x4d\x87\xf3\xf7\x45\x7d\x06\x08\xb3\x19\x6e\x7e\xf9\x7d\x46\x63\x23\x68\xcc\xff\x90\xfc\x5b\x87\xc1\x21\x14\x28\xd7\x0d\xc3\xea\xb2\x6e\x83\x19\xfc\x0c\xef\xbc\x1e\x67\x25\xbc\x13\x86\xb7\x02\x81\x69\xcd\x6b\x79\x40\x69\x34\x34\x12\x18\x74\x8e\x02\x96\x35\x7a\x65\x70\x1d\xf8\x67\x12\x6e\x37\x60\x93\x85\x73\xd4\x5e\xef\x25\x4f\x3a\xf9\xa2\x97\xfc\xaf\x63\xfa\x3d\xa4\xd7\x0e\xf1\x0a\x6a\x03\xa9\x40\x09\x49\x7e\x6b\x1a\xc5\x6a\xcc\xe0\x9d\xdf\x84\x7e\xe0\xa6\xd8\x3f\xd9\x47\xa9\xe8\x2b\xbf\xe1\x4c\x60\x61\x52\xdb\x8a\xd7\x7e\x6b\x87\xe5\x5c\xf7\xc0\xce\xf7\x82\x5e\x15\x7d\x0f\xff\x36\x5c\x4e\xf3\x46\x30\x0d\xf1\x25\xd0\xdd\xbf\xdb\xcc\x72\x3c\xa7\xa3\x9e\x20\xc7\x8b\x23\xf3\x24\xa6\x64\xfa\x5e\x11\x22\xbd\x2a\x6c\x27\x75\xd7\xd2\x7b\x05\x4b\x28\x1d\x1d\x2b\xa2\x97\x2a\x68\xa8\x2f\xf3\xe2\xb2\xc4\x53\xb0\xe3\x1f\x97\x04\x03\x7e\xf3\x5d\xfa\x05\x0a\x26\x84\x76\xf7\x2a\x35\xae\x96\x49\x5e\x68\xf2\xc6\x0e\xb9\x6a\x1a\x98\x74\xd4\xbf\xeb\x4a\xfd\xf2\xfc\x9d\xba\xb8\x52\xc9\xbf\xe3\x65\xd8\xb4\xc2\x5d\x05\xf4\x7d\x67\x0b\xfa\x90\xa5\x9a\xba\x9e\x31\x6c\x46\x61\x8e\xee\xd9\x71\x5e\x20\xce\x7d\x9e\xd8\x1e\x6f\x0e\xad\x98\xde\x8e\x15\xc4\xde\xa7\xed\x5b\xbd\x1d\xdf\xb0\x41\x34\xdc\xa2\xd3\xf4\xaa\x71\xcb\xf3\xd5\x1b\x2c\x78\xdd\xcc\x9f\xff\x05\x00\x00\xff\xff\xe6\x41\x0c\x33\x1d\x0b\x00\x00") func templateBuilderCreateTmplBytes() ([]byte, error) { return bindataRead( @@ -139,7 +139,7 @@ func templateBuilderCreateTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/builder/create.tmpl", size: 2854, mode: os.FileMode(420), modTime: time.Unix(1566214133, 0)} + info := bindataFileInfo{name: "template/builder/create.tmpl", size: 2845, mode: os.FileMode(420), modTime: time.Unix(1566906916, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -184,7 +184,7 @@ func templateBuilderQueryTmpl() (*asset, error) { return a, nil } -var _templateBuilderSetterTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x56\x4d\x8f\xeb\x34\x14\x5d\xa7\xbf\xe2\x12\x15\x94\x54\x6f\x3c\x62\x8b\xd4\x0d\x2a\x4f\x74\x01\x6f\x51\xde\x6a\x54\xa1\x4c\x7d\xdd\x77\x21\xe3\xf4\xc5\x4e\x61\x54\xf2\xdf\x91\xbf\xe2\xd4\x4d\x3b\x1d\x21\x76\x8e\x7d\xbf\x7c\xcf\xb9\x27\x3e\x9d\x80\xa3\x20\x89\x90\x2b\xd4\x1a\xdb\x1c\xfa\x7e\x76\x3a\xc1\xfc\xb9\xa3\x9a\x63\x0b\x3f\x2c\xe1\x50\xa9\x5d\x55\xc3\x9c\x6d\x76\xcd\x01\xd9\x8f\xfe\xc4\x1b\xb6\xb8\x43\x3a\x3a\xcb\x61\x3d\xb8\x7b\x23\x41\x58\x73\x65\x4c\xe6\xec\xa3\x5b\xdb\x93\x07\x20\x01\x4d\x0b\xc5\x97\x4a\x6d\x3a\x21\xe8\xef\xe8\x9a\x7f\x3e\xf0\x4a\x63\x5e\xde\x3a\xfd\x24\x8d\x41\xdf\xcf\xb2\x51\x1a\x93\xe5\x97\x4e\x57\xcf\x35\x9e\x27\x43\xc9\xcd\xd2\x94\xd4\x56\x72\x8f\x30\xff\xfd\x03\xcc\x85\xad\x4b\x0c\x96\x36\xd4\xe1\xfc\x3e\x82\xfd\xf6\x7a\x40\xb6\xd1\x2d\xc9\x7d\xcc\xd7\xc9\x9d\xed\x50\x4b\x52\x43\xbe\x41\x9d\x43\x11\xda\x25\xd8\xaf\xd5\x0b\xba\xe2\x1e\x1f\x61\xb0\xef\x7b\x50\xa8\x15\xe8\x2f\xe8\x36\xad\x9d\xd9\xb6\x25\xb0\x59\x66\xcd\x8a\xb3\xe6\xf6\x3d\x2c\xc6\xb0\xf4\x7d\x39\x8e\x58\xb8\x92\xfb\xde\x47\x34\xc5\x5a\x9b\xc4\x09\x4e\xb3\x2c\x4b\x02\x33\xe7\xb2\xd1\x6d\xb7\xd3\xb6\x5f\xc6\x70\x09\xdf\x85\x98\xb3\x2c\x6b\x51\x77\xad\x84\xc4\x73\x96\xd9\x3e\x3c\x2e\xa0\x3a\x36\xc4\x61\x8f\x12\x5b\x6d\x1a\x24\xa9\xae\x4d\xfb\xc1\xb1\x4a\x81\x68\x5a\x50\x35\xed\x50\xc1\x33\xee\xaa\x4e\xa1\xbd\xbf\xa4\x1a\x8e\x55\xdd\x61\x34\x00\x52\x66\x8b\x38\x2c\x1e\x7d\x9f\x49\x40\x25\x39\x14\xb2\xd1\x11\x09\x63\x5b\x42\xd1\x58\x70\x3e\x1d\x34\x35\xd2\x77\x3d\xe4\x9e\x0b\xf6\x73\xa5\x56\x28\xaa\xae\xd6\x0e\x07\x7b\xf7\x50\xdc\xc7\x0b\xf4\x82\xeb\x15\x14\x03\x8c\x67\x01\xde\x80\xd3\x14\x6f\x8e\xf6\x74\x44\xe9\xef\x4a\x0a\xcc\x55\x24\xd5\x6c\x96\xbd\x07\xed\x24\x71\x44\x7d\x71\x07\xec\x19\x09\x18\x1c\xbe\x59\xda\xde\xdb\xfd\x69\x42\xf8\x14\x8b\xe0\x52\x1a\x53\xd3\x84\xab\x64\x70\x6c\x08\x43\x16\x57\xc9\xb8\xa1\x93\x81\x9f\xf8\x1e\xe3\xb8\x35\x76\xde\xf2\x8a\x73\xa3\x40\x0e\xf3\x39\xb2\xcf\x92\xbe\x76\xe8\x76\x8c\xcd\xd2\xea\x94\x37\xf1\xe1\xad\x3f\x71\x75\x0e\xe7\x00\x60\x73\x28\xa1\x50\x24\xf7\x5d\x5d\xb5\x26\xa6\x85\xe7\x1f\xaf\x6a\x25\xe4\xeb\x95\xba\x9e\x33\xc4\x9d\x0e\x1b\x3e\xd0\x93\x24\x5f\xaf\x92\xda\x3c\x63\x42\x18\x3f\xa0\x8d\x69\x68\xa4\x0c\x0e\x94\x41\xbe\x47\xd0\x8d\xdf\xb5\x44\x0f\x47\xcf\xaf\x40\xdc\x15\x69\xe7\x60\x54\xa8\x1a\x12\xbe\x4f\x3c\x62\x55\xc5\xe5\xed\x6d\x32\xac\x95\x5b\x2b\x60\x8c\x0d\x69\xac\x37\x5b\xaf\x6e\x13\xce\xf3\x2d\x65\x16\x5e\x48\xcd\x88\x8b\xf7\x39\xc0\x4b\xf5\x27\x16\x2f\xd5\xe1\x29\x29\x64\xab\xac\xe5\xc9\xb2\xd5\xcf\xfb\xd9\xbd\x1e\x2c\x51\xef\x4a\xf3\x44\x7c\x0b\x4b\x08\x11\x4f\x2e\xdc\x83\xeb\x89\x8f\x63\x54\x8b\xec\x9f\xc2\xf2\xdb\xf4\xe9\xfa\x48\x4d\x24\x50\x4f\xb4\xbd\x48\x92\x0d\x99\x3c\x89\x6e\xcb\x6f\x90\xc7\x78\xc9\x39\x46\x41\xbc\x50\xbd\xf5\x4a\xdd\x25\x7c\x09\xa7\x2f\xd5\x2f\x04\x4a\x05\xf0\x7e\x36\xff\x2f\xda\x18\xcb\x2a\xcc\x3f\xe4\x2e\xa6\x1a\xaa\x12\xbf\x2e\x8a\x96\x73\x53\x90\x8e\x26\x68\x41\xfc\xbd\x12\x19\x1f\x1a\x75\xf3\x17\xb6\x50\x58\x40\x04\xe4\xdf\xb2\xef\x55\x7e\xd6\xb3\xe1\x8d\x43\x02\xf0\xab\xf1\x3a\xeb\x88\x0b\xb4\x84\xfc\x98\xfb\xcf\x71\x0a\x71\x43\x19\x53\xb8\x27\x5e\x2b\x6f\x2a\xd6\xe9\x94\x8a\xd2\x58\x93\xa6\x19\xf0\xdf\x9f\x39\x13\x42\x38\xd6\xa8\x45\x92\xf3\xc6\x6b\x68\x4a\x21\xa6\x11\x4c\x41\x0f\xf5\xb0\xf5\xaa\x9c\x90\x07\x72\x6f\x5e\xab\x56\x4f\xdb\x84\x8a\x1f\xa0\x46\x39\x44\x28\xcb\xa0\x4b\x56\x4f\x72\x8a\xff\x24\x83\x37\x39\x2b\x77\xbe\x84\xfc\x8f\xd1\x7f\x66\xa4\x45\xee\xbc\xef\xa3\x24\xc5\x8e\x59\x56\x1b\xc9\x09\x46\x5b\x4f\x6a\x73\x1c\x37\xd9\x7a\xf5\x06\x8d\xd3\x26\x10\x57\x8c\xb1\x32\x11\xad\xf1\x0b\x20\xae\xfe\x0d\x00\x00\xff\xff\xb0\x50\x34\xe2\x71\x0c\x00\x00") +var _templateBuilderSetterTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x56\x4d\x6f\xe3\x36\x10\x3d\xcb\xbf\x62\x2a\xb8\x85\x64\x6c\x18\xf4\x5a\xc0\x97\xc2\x5d\xc0\x87\xee\x1e\xdc\x3d\x05\x46\xa1\x98\x43\xef\xb4\x0a\xe5\x15\x29\xb7\x81\xab\xff\x5e\xf0\x4b\x94\x69\xd9\x71\x50\xf4\x46\x91\x6f\x3e\x38\xf3\xe6\x89\xa7\x13\x70\x14\x24\x11\x72\x85\x5a\x63\x9b\x43\xdf\xcf\x4e\x27\x98\x3f\x77\x54\x73\x6c\xe1\xa7\x25\x1c\x2a\xb5\xab\x6a\x98\xb3\xcd\xae\x39\x20\xfb\xd9\x9f\x78\x60\x8b\x3b\xa4\xa3\x43\x0e\xeb\xc1\xdc\x83\x04\x61\xcd\x95\x81\xcc\xd9\x47\xb7\xf6\x27\xdd\x81\x57\xda\x59\x8b\xaa\x56\xe8\xf6\x1f\x80\x04\x34\x2d\x14\x5f\x2b\xb5\xe9\x84\xa0\xbf\xa3\xcb\xfc\x8b\x35\xc9\xcb\x5b\xa7\x9f\xa5\x01\xf4\xfd\x2c\x4b\x82\xe8\xb6\xc3\x61\xdf\xa7\x65\xb2\xfa\xb5\xd3\xd5\x73\x8d\xe3\xe4\x1e\x00\x25\x37\x4b\x93\x68\x5b\xc9\x3d\xc2\xfc\xf7\x0f\x30\x17\xf6\x1e\x62\x40\x5a\x57\x87\xf3\xfb\x0b\xf6\xdb\xeb\x01\xd9\x46\xb7\x24\xf7\x31\x5e\x27\x77\xb6\xa2\x2d\x49\x0d\xf9\x06\x75\x0e\x45\x28\xaf\x60\x9f\xaa\x17\x74\x49\x3f\x3e\xc2\x80\xef\x7b\x50\xa8\x15\xe8\xaf\xe8\x36\x2d\xce\x6c\xdb\x14\xd8\x2c\xb3\xb0\xe2\xac\x19\x7d\x0f\x8b\x71\x1b\xfb\xbe\x1c\x7b\x2c\x5c\xca\x7d\xef\x3d\x9a\x64\x2d\x26\x31\x82\xd3\x2c\xcb\x12\xc7\xcc\x99\x6c\x74\xdb\xed\xb4\xad\x97\x01\x2e\xe1\x87\xe0\x73\x96\x65\x2d\xea\xae\x95\x90\x58\xce\x32\x5b\x87\xc7\x05\x54\xc7\x86\x38\xec\x51\x62\xab\x4d\x81\x24\xd5\xb5\x29\x3f\x38\x16\x2a\x10\x4d\x0b\xaa\xa6\x1d\x2a\x78\xc6\x5d\xd5\x29\xb4\xf7\x97\x54\xc3\xb1\xaa\x3b\x8c\x00\x20\x65\xb6\x88\xc3\xe2\xd1\xd7\x99\x04\x54\x92\x43\x21\x1b\x1d\x3b\x61\xb0\x25\x14\x8d\x6d\xce\xe7\x83\xa6\x46\xba\xaa\xaf\x50\x54\x5d\xad\x4b\x87\x2f\x8c\xe5\x40\x98\xb9\x60\x8e\x4f\x01\xe4\xda\x63\x4b\x12\x72\xfe\x78\xd1\xd4\x4f\xfe\xe4\x4a\x73\x43\x77\xcf\x1c\xbc\xd1\x65\x73\x27\x73\xb4\xa7\x23\x4a\x5f\x02\x52\x60\x32\x96\x54\xb3\x59\xf6\x1e\x12\x24\x81\x23\x19\x16\x77\xb0\x21\x23\x01\x83\xc1\x77\x4b\xdb\x12\xbb\x3f\xcd\x13\x1f\x62\x11\x4c\x4a\x03\x35\x45\xb8\xca\x11\x47\x92\x30\x7b\x71\x95\x4c\x21\x3a\x35\xf9\x85\xef\x31\x4e\x61\x63\xc7\x30\xaf\x38\x37\x42\xe6\xa8\x30\x47\xf6\x45\xd2\x37\x3b\xf6\x1e\xb3\xb4\x72\xe7\x21\xde\xbd\xb5\x27\xae\xce\xdb\x39\x34\xb0\x39\x94\x50\x28\x92\xfb\xae\xae\x5a\xe3\xd3\xb6\xe7\x1f\x2f\x8e\x25\xe4\xeb\x95\xba\x1e\x33\xf8\x9d\x76\x1b\x3e\xd0\x93\x24\x5f\xaf\x92\xdc\x3c\x63\x82\x1b\x3f\xb7\x8d\x29\x68\xa4\x0c\x0e\x94\x41\xbe\x47\xd0\x8d\xdf\xb5\xfc\x0f\x47\xcf\xaf\x40\xdc\x25\x69\xc7\x63\x94\xa8\x1a\x02\xbe\x4f\x53\x62\x56\xc5\xe5\xed\x6d\x30\x74\xc2\x4e\x5c\x01\x63\x6c\x08\x63\xad\xd9\x7a\x75\x9b\x70\x9e\x6f\x29\xb3\xf0\x42\x81\x46\x5c\xbc\xcf\x00\x5e\xaa\x3f\xb1\x78\xa9\x0e\x4f\x49\x22\x5b\x65\x91\x27\xcb\x56\x3f\xef\x67\xf7\x7a\xb0\x44\xbd\x2b\xcc\x13\xf1\x2d\x2c\x21\x78\x3c\x39\x77\x0f\xae\x26\xde\x8f\x11\x33\xb2\x3f\x10\xcb\x6f\x53\xa7\xeb\x23\x35\x11\x40\x3d\xd1\xf6\x22\x48\x36\x44\xf2\x24\xba\xad\xca\x41\x35\xe3\x25\xe7\x18\x75\xf2\x42\xf5\xd6\x2b\x75\x97\xf0\x25\x9c\xbe\x54\xbf\xe0\x28\x15\xc0\xfb\xd9\xfc\xbf\x68\x63\x4c\xab\x30\xbf\x96\xbb\x98\x6a\xa8\x4a\xfc\xba\x28\x5a\xce\x4d\xb5\x74\x34\x41\x0b\xe2\xef\x95\xc8\xf8\xfe\xa8\x9b\xbf\xb0\x85\xc2\x36\x44\x40\xfe\x3d\xfb\x51\xe5\x67\x35\x1b\x9e\x44\x24\x00\xbf\x19\xab\xb3\x8a\x38\x47\x4b\xc8\x8f\xb9\xff\x1c\x87\x10\x37\x94\x31\x6d\xf7\xc4\x23\xe6\x4d\xc5\x3a\x9d\x52\x51\x1a\x6b\xd2\x34\x03\xfe\xfb\xeb\x67\x42\x08\xc7\x1a\xb5\x48\x62\xde\x78\x24\x4d\x29\xc4\x74\x07\xd3\xa6\x87\x7c\xd8\x7a\x55\x4e\xc8\x03\xb9\xa7\xb3\x55\xab\xa7\x6d\x42\xc5\x0f\x50\xa3\x1c\x3c\x94\x65\xd0\x25\xab\x27\x39\xc5\x7f\x92\xe9\x37\x39\x94\x3b\x5f\x42\xfe\xc7\xe8\x3f\x33\xd2\x22\x77\xde\xf7\x51\x92\x62\xc5\x2c\xab\x8d\xe4\x04\xd0\xd6\x93\xda\x1c\xc7\x4d\xb6\x5e\xbd\x41\xe3\xb4\x08\xc4\x15\x63\xac\x4c\x44\x6b\xfc\x02\x88\xab\x7f\x03\x00\x00\xff\xff\xe7\xf0\x70\xaa\xb8\x0c\x00\x00") func templateBuilderSetterTmplBytes() ([]byte, error) { return bindataRead( @@ -199,12 +199,12 @@ func templateBuilderSetterTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/builder/setter.tmpl", size: 3185, mode: os.FileMode(420), modTime: time.Unix(1566293398, 0)} + info := bindataFileInfo{name: "template/builder/setter.tmpl", size: 3256, mode: os.FileMode(420), modTime: time.Unix(1566906796, 0)} a := &asset{bytes: bytes, info: info} return a, nil } -var _templateBuilderUpdateTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xdc\x59\x5b\x6f\xe3\xc6\x15\x7e\xa6\x7e\xc5\x29\xa1\x0d\x24\xc3\xa6\x76\x5f\x5d\xa8\x0f\xc9\x6e\x80\x7d\x68\x52\xec\x36\x69\x50\xc7\x08\x46\xe4\xa1\x3c\x31\x35\xe4\xce\x0c\x7d\x29\xcb\xff\x5e\x9c\xb9\x69\x48\x51\xb2\x1d\xb8\x08\x92\x27\x8b\x73\x39\x73\xce\x77\x6e\xdf\x8c\xbb\x0e\x0a\x2c\xb9\x40\x48\xdb\xa6\x60\x1a\x53\xe8\xfb\x59\xd7\xc1\xbc\xb9\xdd\xc2\xe5\x1a\x36\x4c\x21\xcc\xb3\x6f\x6a\x51\xf2\x6d\xf6\x0f\x96\xdf\xb2\x2d\xd2\x1a\x5a\xa4\x71\xd7\x54\x4c\x23\xa4\x37\xc8\x0a\x94\x29\xcc\x0f\xa7\xf8\xae\xa9\xa5\x8e\xa6\xe6\x9b\x96\x57\x05\x4a\x12\xdf\x48\x2e\x34\x2c\x1a\xa6\x72\x56\xc1\x3c\xfb\x8e\xed\x70\x09\xe9\x0f\x43\x5d\x24\xe6\xc8\xef\xec\x8e\xf0\x3b\x88\x71\x8b\x76\x6d\xa5\xb9\xd2\xb5\x24\x05\x2f\xd7\xb0\xd5\xb0\xa8\x50\xc0\x3c\xfb\x6c\x07\x97\xf0\xce\xa8\xb0\x5a\x41\xac\x45\xdf\x03\x57\xa0\x6f\x10\xfc\x48\x59\x4b\x30\x68\x70\xb1\x35\x4b\x8d\x5a\xb4\x10\x85\xe6\x9a\xa3\xca\x66\xfa\xb1\xc1\xb1\x18\xa5\x65\x9b\x6b\xe8\x66\x49\x6e\xe0\x9a\x25\x5d\x77\x11\x21\x61\x11\x5e\x95\x1c\xab\x42\x11\x20\x17\x7d\x3f\x4b\x1a\x89\x05\xcf\x99\x46\x05\x57\xd7\xe1\x23\x8b\xcf\x9d\x59\xad\xff\x75\x83\x12\x81\x15\x85\x02\x06\x02\xef\x21\xac\x36\x2a\x47\x26\x64\xb3\xb2\x15\x39\x2c\x62\xf0\xfa\x1e\xce\x86\x0a\x2f\xad\xc4\x45\xa3\x20\xcb\xb2\xe9\xa3\x97\xe3\x4d\x64\xde\x50\x6c\x16\x59\xb0\x06\xd6\x34\x28\x8a\xc5\xd1\x25\xe7\xd0\xa8\x2c\xcb\x96\xb3\x44\xa2\x6e\xa5\x80\x81\x83\xad\xad\x5d\x07\xf7\x5c\xdf\x00\x3e\x68\x14\x05\xcc\x21\xfd\xda\x9e\x9f\x0e\xbc\x9e\x0c\xe2\x4c\xa1\xd6\xb4\x22\x73\x01\x41\x3b\xfb\xdf\x2a\xcc\xb9\x0a\x8b\x2d\xaa\x43\x91\xab\x15\x7c\x66\x77\x08\xf8\x80\x79\x4b\x66\x13\xf4\x5f\x5a\x94\x8f\xc0\x44\x01\xd6\x30\x3b\x2a\xda\xdd\x06\x25\xd4\x25\xc8\xfa\x5e\xad\xee\x50\x6a\x9e\xa3\x82\x1d\xd3\xf9\x0d\x16\xb0\x79\x04\x7d\xc3\x15\xd4\x0d\x4a\xa6\x79\x2d\xa6\x5c\x07\x53\xbe\x23\x0d\x16\xb9\x7e\x80\xbc\x16\x1a\x1f\x34\xe5\x28\xfd\x5d\xc2\x82\x0b\x7d\x0e\x28\x65\x2d\x97\xce\x5d\x23\x04\x3e\x39\xc1\x69\x74\x46\xea\x92\x3b\xb5\xb9\x9f\xfe\x1b\x65\xfd\x23\xab\x5a\x4c\xe1\xad\x8d\xd4\x49\x88\xee\x58\xc5\x0b\xa6\x6b\xe9\x71\x32\x41\x4f\xe7\x5c\xf8\x0f\x5e\x8e\xb2\xd3\x4a\x53\xf7\x5c\xe7\x37\x63\xff\x67\x85\xa4\x5f\xd9\x7b\xce\x2a\xcc\xf5\xc2\x58\x60\xc4\x48\x26\xb6\x08\xf3\x5f\xce\x61\x1e\xa5\x79\x48\x6f\x73\x76\x92\x53\xbd\xea\x3a\xf8\xb5\xe6\x22\xac\xf3\xc2\x14\xa4\xe7\x40\x55\xe5\x72\x96\x24\x47\xe2\xcf\x44\xbf\x0a\x22\x3d\xca\x4b\xa7\x84\x0b\x81\x24\x29\xb0\x64\x6d\xa5\x63\x49\x6f\x1d\xe8\x2a\xfb\x0e\xef\x17\xa9\xaf\xa2\x7d\x7f\x09\xad\x50\x6d\x43\x75\x10\x0b\x28\xac\x32\x29\x89\xf4\x70\x55\xca\xa3\x72\x5c\x2b\x2e\x0a\x7c\x88\xec\x7d\x3b\x54\x2f\xd2\x6e\x1f\xa2\x3f\x51\x6d\xab\xf8\x2d\x9a\xaf\x73\xd8\xb4\x1a\x1a\x26\x78\xae\xc8\x2b\x4c\x58\x85\xa1\xce\xf3\x56\xaa\x17\x85\xde\x4f\xd3\xb1\x47\xe5\xbc\x9b\x25\xac\x2c\x31\xd7\x58\x18\x44\xc8\x4d\x63\x7b\x22\xc5\x79\x69\x16\xfd\x65\x0d\x82\x57\xc6\xdb\x46\xc3\x05\x4a\xb9\x9c\x11\x42\x0e\x12\x2f\xd3\x99\xf7\xe1\x01\xf3\x89\x0c\x7c\xb6\x11\xb4\x7f\xda\x06\x8b\x49\x37\x4b\x7e\x79\x8e\xfa\x4e\x3b\x94\x32\x52\x6c\x8f\x3b\x7d\xbd\x16\xee\x46\xf2\xb4\xce\x5d\xc0\x71\x42\x5b\x6f\xea\xf2\xaf\xa7\x91\x36\xd5\xf2\x79\x89\xf6\x9c\xaa\x3a\xaa\x28\xbe\x84\xcc\xf5\xae\xa9\x42\xf3\x2f\x21\x75\x09\xb1\x7a\xa3\x56\x9e\x84\x44\x19\x68\x37\x3d\x84\xc2\x63\xb7\xfb\x52\xe3\x43\x7e\x58\xf0\xe7\xb5\xc0\x31\xcb\x28\x21\x7d\xa3\xbe\x17\x98\x1e\x30\x87\x00\x55\xcc\x2e\x22\x09\x11\x69\x18\x8c\x9e\xe4\x0d\x0c\x14\x17\xdb\x0a\x27\x08\xc4\x63\x44\x1f\x86\x02\x0f\x19\x04\x2f\xac\x80\x8f\xef\xb3\x7f\xd2\x1e\x5f\x53\x4f\xb0\x8a\xa7\x7b\xe8\xd0\xb6\xe7\xb5\xd1\xdf\x2c\xf0\xd5\x5a\xa9\x15\x54\x04\x0c\x4f\x24\xcd\x10\xd5\x93\xbd\xf2\x2c\xf6\xcf\xab\x76\xcd\x54\xf0\x2a\xfd\x7f\x74\xce\x3f\x5d\xe3\x14\xbc\xfa\x33\xb7\xce\x41\x34\x9e\xec\x9e\x83\x60\xf4\x4c\x3b\xfb\xb4\x17\xf8\x9a\xfd\x74\x2c\xfb\x74\x5f\x85\x5a\x98\x8f\x97\x66\xdf\x1f\xa6\xd1\x4e\x68\xfd\x07\xe8\xb5\x91\xd6\xbf\x5f\xbb\xdd\xff\x5c\x9d\x81\xba\x61\x12\x0b\xdf\xca\x6c\x5b\x82\x0d\xea\x7b\x44\x1b\x41\xfa\xbe\x76\xb5\x5c\x2a\x38\x5b\x59\x69\xc3\x57\x08\xdf\xcd\xec\x5c\x84\x51\x69\xd1\xf9\x7b\xab\xd9\xa6\xc2\x6f\xad\x70\x5f\x2d\xe7\x65\xf6\xd9\x9c\x6a\xc6\x83\x63\xcb\xd0\x39\x63\xfd\x07\xd0\x3b\xd0\x3f\x50\x8f\xda\x8b\xc3\xb1\xb8\x1d\x6b\xae\x46\xdd\xf8\xda\xda\xd9\xbd\x58\x78\x43\xa3\xa9\xc4\x5d\x7d\x87\x05\x95\x56\x2a\x53\x25\x1d\xfa\x83\xe0\x5f\x5a\xb4\x23\xf3\x06\xd6\x90\xe6\x15\x12\xa6\x6e\x95\xaf\xa4\x24\xc6\xbe\x9f\xcc\x9b\xfd\x13\x0a\xba\x37\x14\xaa\x1f\x07\x12\x37\x75\x5d\x91\x04\xaa\x99\x7d\x7f\xca\x9c\x03\x57\x5f\x8c\xbd\xbe\x77\xb5\x69\xed\x60\x4c\x61\xd5\x8b\x5d\xed\x88\x81\xe3\x62\x31\x6b\xb3\x16\x65\x9f\xf3\xba\xc1\xec\xeb\x23\x9c\xed\xd8\x93\xd0\x28\x70\x26\x9c\x30\x06\xc7\xa5\x8b\x29\x11\xe1\x69\x2a\xfd\x86\xb0\x4f\xa7\xf0\x9d\x25\x89\x63\x85\x66\x4b\xdf\x83\xf1\x93\xad\x99\x34\x8c\x7b\xda\x57\x6c\x11\x74\xed\x46\x09\x6b\x3f\x95\xcd\x92\xe4\x99\xec\x3f\x3a\x69\x31\xf9\x2c\x93\x24\xe3\x62\xe4\x02\xa7\xeb\x60\xa8\x3e\x6d\x58\x83\x96\x2d\x1e\xef\xe7\xbe\xc5\xfa\x68\x71\xf0\x98\xb8\xad\xea\x7b\x94\xb0\x08\xbc\x3a\x7b\x47\xcc\x33\xb2\x6c\xe9\x37\xac\xce\x08\x66\xf3\x12\x42\xe7\xd6\xf6\x77\xc3\x24\xdb\xa1\x46\x49\xc5\xb5\xac\x38\x31\x0c\x53\xe2\x68\x32\xe8\x60\x76\x98\xa8\x49\x9c\xbb\xf0\x0b\x29\x30\x80\x29\x24\xc9\x5d\xea\x3e\x03\xd3\xa0\x29\x5e\xa8\x6f\x87\x0e\xfd\x64\x52\x2e\x85\x05\xf1\xf3\xb6\x62\x32\x80\xf2\x5f\x87\xd2\x12\xd2\x8f\xef\x6d\x48\x06\x17\x7b\x39\x7d\x6f\x03\x1d\x5f\xe6\x66\xd8\x3c\x02\x2f\xd4\x0b\xbd\xbd\x3f\x74\xc1\x0b\xf3\x48\x37\x4a\xd7\x23\x61\xc0\xcb\x83\xb6\xe4\x0a\xcd\x74\x24\xec\x7b\xd4\x61\x08\x9d\xdc\x08\x3b\x76\x8b\x8b\x53\x75\x84\x98\x1a\xc5\x51\x92\xd0\xed\x88\x9b\x74\x35\x59\x49\x06\xbd\xf8\xc4\x2b\x5e\xa8\x2b\x7e\x7d\x0d\x6b\x08\x85\xaa\x0f\x27\x9c\x8a\xe3\xa9\xd4\x0e\x91\xf0\x9c\xdc\xf6\x5e\x3f\xf4\xb8\x7a\xd5\xcc\xb6\xf1\xdc\xf7\xe4\xed\xb3\x43\xa9\xc7\x3c\x5e\x28\x32\xcc\xb8\xe3\xea\x7a\xe4\x8c\x73\xa8\x50\x04\xc1\xcb\xa5\xaf\x14\xc6\x1b\x29\xdf\x37\x1f\x4a\x2f\x6e\x57\xd9\xf9\x35\xa4\xbf\x46\x5d\xc7\xd2\x6c\xe3\x49\x3b\xdf\xf7\x7b\x87\x06\xc5\xad\x57\xc9\x53\x7e\x11\xf9\xcb\x4f\xef\x07\xb3\x8f\xef\x9f\x70\x5d\x76\x98\x04\xf6\xe9\x38\x39\x42\x46\x8e\x34\x28\x4f\x66\x94\xb9\xa2\xef\xef\x5d\xd9\xb1\x9e\x14\x5f\xcd\x5c\x43\xf7\xff\x10\x71\xed\xc8\xff\x27\xe4\xc2\x4f\xff\x07\x65\x1d\xcd\x87\x7b\x60\xd8\x1f\x77\x2c\xb7\x28\x90\xef\x8b\x43\xd6\xe0\x98\x8e\xa3\x38\x17\x31\x0f\x9c\x97\xd9\x8f\x41\x41\xe7\x94\x89\x94\xb7\xdc\x67\x44\x61\x22\x3e\x3a\x22\xb1\xd1\x3f\x77\xdc\xd6\x70\x08\x61\x7f\xf6\x1c\xf1\x87\xa4\x77\xe0\x5a\x83\x11\xc5\x63\xb9\xd3\xd9\x07\x22\xe6\xe5\xf0\xae\x17\x70\x87\x92\xf1\x0a\x0b\xe3\x2f\xc3\x05\xe1\xe7\xd4\x1e\xe8\xf2\xe0\xe7\xf4\x12\xde\xdc\xa5\xe6\xde\x10\x6a\xcc\x3e\x2a\x2e\xc6\xc4\xe5\x69\x46\x36\x60\x03\x01\x54\x9f\x39\x63\xcb\xc7\xdc\x70\x09\x7f\x83\x77\xd6\xe2\x29\x83\x8f\x5d\x6e\xcd\xe5\xbe\xa9\x10\x98\x52\x7c\x2b\x76\x28\xb4\xa2\x9b\x16\x83\xd6\x2a\x62\x5a\x8a\xb5\x1d\xf7\xb6\xfb\x0b\xb0\x6b\x8b\xa2\xd6\x34\xfd\x7d\xa3\x79\x2d\x58\xe5\xf3\x74\x22\x26\x4e\x11\x82\xaf\xbe\x9a\x0c\xa1\x03\x16\xbc\x7e\xca\xbb\xc7\x8c\x35\x87\xdb\xb7\xb1\xa7\xad\xf3\xe6\x45\xef\x21\xd3\x9e\xf5\x19\xff\xbf\x00\x00\x00\xff\xff\x28\xd2\x69\x77\xcb\x1c\x00\x00") +var _templateBuilderUpdateTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xdc\x59\x5b\x6f\xe3\x36\x16\x7e\x96\x7f\xc5\x59\xc1\x33\x90\x82\x44\x9e\xd9\xc7\x2c\xb2\x0f\x6d\xa6\x40\x5e\xda\xc5\x4c\xdb\x2d\x36\x0d\x0a\x5a\x3a\xb2\xd9\x91\x29\x0d\x49\x39\xc9\x6a\xf5\xdf\x17\xbc\x9a\xba\xd8\x49\x8a\x00\x45\xe7\x29\x16\x2f\x87\xe7\x7c\xe7\xf6\x91\xe9\x3a\x28\xb0\xa4\x0c\x21\x6e\x9b\x82\x48\x8c\xa1\xef\x17\x5d\x07\xcb\xe6\xf3\x06\x2e\xaf\x60\x4d\x04\xc2\x32\xfb\xb6\x66\x25\xdd\x64\xff\x22\xf9\x67\xb2\x41\xb5\x46\x2d\x92\xb8\x6b\x2a\x22\x11\xe2\x2d\x92\x02\x79\x0c\xcb\xe9\x14\xdd\x35\x35\x97\xc1\xd4\x72\xdd\xd2\xaa\x40\xae\xc4\x37\x9c\x32\x09\x49\x43\x44\x4e\x2a\x58\x66\xdf\x93\x1d\xa6\x10\xff\x34\xd4\x85\x63\x8e\x74\x6f\x76\xf8\xdf\x5e\x8c\x5d\xb4\x6b\x2b\x49\x85\xac\xb9\x52\xf0\xf2\x0a\x36\x12\x92\x0a\x19\x2c\xb3\x4f\x66\x30\x85\xf7\x5a\x85\xd5\x0a\x42\x2d\xfa\x1e\xa8\x00\xb9\x45\x70\x23\x65\xcd\x41\xa3\x41\xd9\x46\x2f\xd5\x6a\xa9\x85\xc8\x24\x95\x14\x45\xb6\x90\x8f\x0d\x8e\xc5\x08\xc9\xdb\x5c\x42\xb7\x88\x72\x0d\xd7\x22\xea\xba\x8b\x00\x09\x83\xf0\xaa\xa4\x58\x15\x42\x01\x72\xd1\xf7\x8b\xa8\xe1\x58\xd0\x9c\x48\x14\x70\x7b\xe7\x3f\xb2\xf0\xdc\x85\xd1\xfa\xdf\x5b\xe4\x08\xa4\x28\x04\x10\x60\x78\x0f\x7e\xb5\x56\x39\x30\x21\x5b\x94\x2d\xcb\x21\x09\xc1\xeb\x7b\x38\x1b\x2a\x9c\x1a\x89\x49\x23\x20\xcb\xb2\xf9\xa3\xd3\xf1\x26\x65\xde\x50\x6c\x16\x58\x70\x05\xa4\x69\x90\x15\xc9\xd1\x25\xe7\xd0\x88\x2c\xcb\xd2\x45\xc4\x51\xb6\x9c\xc1\xc0\xc1\xc6\xd6\xae\x83\x7b\x2a\xb7\x80\x0f\x12\x59\x01\x4b\x88\xbf\x31\xe7\xc7\x03\xaf\x47\x83\x38\x13\x28\xa5\x5a\x91\xd9\x80\x50\x3b\xfb\x3f\x2a\xcc\xba\x0a\x8b\x0d\x8a\xa9\xc8\xd5\x0a\x3e\x91\x3d\x02\x3e\x60\xde\x2a\xb3\x15\xf4\x5f\x5a\xe4\x8f\x40\x58\x01\xc6\x30\x33\xca\xda\xdd\x1a\x39\xd4\x25\xf0\xfa\x5e\xac\xf6\xc8\x25\xcd\x51\xc0\x8e\xc8\x7c\x8b\x05\xac\x1f\x41\x6e\xa9\x80\xba\x41\x4e\x24\xad\xd9\x9c\xeb\x60\xce\x77\x4a\x83\x24\x97\x0f\x90\xd7\x4c\xe2\x83\x54\x39\xaa\xfe\xa6\x90\x50\x26\xcf\x01\x39\xaf\x79\x6a\xdd\x35\x42\xe0\xa3\x15\x1c\x07\x67\xc4\x36\xb9\x63\x93\xfb\xf1\x7f\x90\xd7\x3f\x93\xaa\xc5\x18\xde\x99\x48\x9d\x85\x48\x90\x3d\x5a\x84\x74\xb8\xab\x13\x2e\xdc\x07\x2d\x47\x79\x69\xe4\x88\x7b\x2a\xf3\xed\xd8\xf3\x59\xc1\xd5\xaf\xec\x9a\x92\x0a\x73\x99\x68\xdd\xb5\x18\x4e\xd8\x06\x61\xf9\xdb\x39\x2c\x83\x04\xf7\x89\xad\xcf\x8e\x72\x55\xa9\xba\x0e\x7e\xaf\x29\xf3\xeb\x9c\x30\x01\xf1\x39\xa8\x7a\x72\xb9\x88\xa2\x23\x91\xa7\xe3\x5e\x78\x91\x0e\xdf\xd4\x2a\x61\x9d\x1f\x45\x05\x96\xa4\xad\x64\x28\xe9\x9d\x85\x5b\x64\xdf\xe3\x7d\x12\xbb\xfa\xd9\xf7\x97\xd0\x32\xd1\x36\xaa\x02\x62\x01\x85\x51\x26\x56\x22\x1d\x5c\x95\x70\xa8\x1c\xd7\x8a\xb2\x02\x1f\x02\x7b\xdf\x0d\xd5\x0b\xb4\x3b\x04\xe7\x2f\xaa\xaa\x55\xf4\x33\xea\xaf\x73\x58\xb7\x12\x1a\xc2\x68\x2e\x94\x57\x08\x33\x0a\x43\x9d\xe7\x2d\x17\x2f\x0a\xba\x5f\xe6\xa3\x4e\x15\xf2\x6e\x11\x91\xb2\xc4\x5c\x62\xa1\x11\x51\x6e\x1a\xdb\x13\x28\x4e\x4b\xbd\xe8\x6f\x57\xc0\x68\xa5\xbd\xad\x35\x4c\x90\xf3\x74\xa1\x10\xb2\x90\x38\x99\xd6\xbc\x0f\x0f\x98\xcf\xe4\xde\xb3\x8d\x50\xfb\xe7\x6d\x30\x98\x74\x8b\xe8\xb7\xe7\xa8\x6f\xb5\x43\xce\x03\xc5\x0e\xb8\xab\xaf\xd7\xc2\x5d\x4b\x9e\xd7\xb9\xf3\x38\xce\x68\xeb\x4c\x4d\xff\x71\x1a\x69\x5d\x27\x9f\x97\x68\xcf\xa9\xa7\xa3\x5a\xe2\x8a\xc7\x52\xee\x9a\xca\xb7\xfd\x12\x62\x9b\x10\xab\x37\x62\xe5\xe8\x47\x90\x81\x66\xd3\x83\x2f\x39\x66\xbb\x2b\x35\x2e\xe4\x87\xa5\x7e\x59\x33\x1c\xf3\x8b\x12\xe2\x37\xe2\x07\x86\xf1\x84\x33\x78\xa8\x42\x5e\x11\x48\x08\xe8\xc2\x60\xf4\x24\x63\x20\x20\x28\xdb\x54\x38\x43\x1d\x1e\x03\xe2\x30\x14\x38\xe5\x0e\xb4\x30\x02\x6e\xae\xb3\x1f\xd5\x1e\x57\x53\x4f\xf0\x89\xa7\xbb\xe7\xd0\xb6\xe7\x35\xd0\x3f\x2c\xf0\xd5\x9a\xa8\x11\x54\x78\x0c\x4f\x24\xcd\x10\xd5\x93\x5d\xf2\x2c\xf4\xcf\xab\xf6\xcb\x98\xd1\x2a\x7e\xdd\x9e\xf9\xd5\xb5\x4c\x46\xab\xaf\xb9\x69\x0e\xe2\xf0\x64\xdf\x1c\x84\xa1\x63\xd7\xd9\xc7\x83\xc0\xd7\xec\xa4\x63\xd9\xa7\x3b\x2a\xd4\x4c\x7f\xbc\x34\xef\xfe\x32\x2d\x76\x46\xeb\xbf\x40\x97\x0d\xb4\xfe\xf3\x1a\xed\xe1\xe7\xea\x0c\xc4\x96\x70\x2c\x5c\x13\x33\x0d\x09\xd6\x28\xef\x11\x4d\x04\xc9\xfb\xda\x56\x71\x2e\xe0\x6c\x65\xa4\x0d\x5f\x1e\x5c\x1f\x33\x73\x01\x46\xa5\x41\xe7\x3b\x23\x35\x28\x93\x35\x87\x84\xd5\x12\x96\x65\x76\xb3\xdb\xb5\x92\xac\x2b\x4c\xd5\x97\x79\x3e\xb8\x36\x45\xc7\xd9\x77\xa1\x66\x3e\x69\x0d\xb5\x28\x1f\x04\xe5\xb0\xbf\x4e\xac\x1d\xb9\xcc\x3a\xeb\x83\xea\x6a\x7e\xd3\x12\xc7\xa2\x77\xa4\xb9\x1d\xf5\xef\x3b\x83\x4f\xf7\x62\xe1\x8d\x1a\x8d\x39\xee\xea\x3d\x16\xaa\x24\xab\xf2\x56\xaa\x43\x7f\x62\xf4\x4b\x8b\x66\x64\xd9\xc0\x15\xc4\x79\x85\xca\x17\x76\x95\xab\xc0\x4a\x8c\x79\x6b\x59\x36\x87\xe7\x16\xb4\xef\x2d\xaa\xee\x4c\x24\xae\xeb\xba\x52\x12\x54\xad\xed\xfb\x53\xe6\x4c\x42\xe4\x62\x1c\x2d\x87\x10\xd1\x64\x00\xb4\x29\xa4\x7a\x71\x88\x58\x2a\x61\xd9\x5b\xc8\xf3\x8c\x45\xd9\xa7\xbc\x6e\x30\xfb\xe6\x08\xcb\x3b\xf6\x7c\x34\x0a\xb8\x19\x27\x8c\xc1\xb1\x69\xa6\x4b\x8b\x7f\xc6\x8a\xbf\x55\xd8\xc7\x73\xf8\x2e\xa2\xc8\xf2\x48\xbd\xa5\xef\x41\xfb\xc9\xd4\x5a\x35\x8c\x07\xa2\x58\x6c\x10\x64\x6d\x47\x15\xd6\x6e\x2a\x5b\x44\xd1\x33\xef\x0b\xc1\x49\xc9\xec\x13\x4e\x14\x8d\x8b\x98\x0d\x9c\xae\x83\xa1\xfa\x6a\xc3\x15\x48\xde\xe2\x71\x1e\xe0\x5a\xb3\x8b\x16\x0b\x8f\x8e\xdb\xaa\xbe\x47\x0e\x89\x67\xe2\xd9\x7b\xc5\x55\x03\xcb\x52\xb7\x61\x75\xa6\x60\xd6\xaf\x26\xea\xdc\xda\xfc\x6e\x08\x27\x3b\x94\xc8\x55\x51\x2e\x2b\xaa\x98\x89\x2e\x8d\x6a\xd2\xeb\xa0\x77\xe8\xa8\x89\xac\xbb\xf0\x8b\x52\x60\x00\x93\x4f\x92\x7d\x6c\x3f\x3d\x43\x51\x53\xb4\x10\xdf\x0d\x1d\xfa\x51\xa7\x5c\x0c\x89\x62\xf4\x6d\x45\xb8\x07\xe5\x7f\x16\xa5\x14\xe2\x9b\x6b\x13\x92\xde\xc5\x4e\x4e\xdf\x9b\x40\xc7\x97\xb9\x19\xd6\x8f\x40\x0b\xf1\x42\x6f\x1f\x0e\x4d\x68\xa1\x1f\xf4\x46\xe9\x7a\x24\x0c\x68\x39\x69\x67\xb6\xd0\xcc\x47\xc2\xa1\xb7\x4d\x43\xe8\xe4\x46\xd8\x91\xcf\x98\x9c\xaa\x23\x8a\xe1\xa9\x38\x8a\x22\x75\x9f\xa2\x3a\x5d\x75\x56\x2a\x83\x5e\x7c\xe2\x2d\x2d\xc4\x2d\xbd\xbb\x83\x2b\xf0\x85\xaa\xf7\x27\x9c\x8a\xe3\xb9\xd4\xf6\x91\xf0\x9c\xdc\x76\x5e\x9f\x7a\x5c\xbc\x6a\x66\x9b\x78\xee\x7b\xe5\xed\xb3\xa9\xd4\x63\x1e\x2f\x84\x32\x4c\xbb\xe3\xf6\x6e\xe4\x8c\x73\xa8\x90\x79\xc1\x69\xea\x2a\x85\xf6\x46\x4c\x0f\xcd\x47\xa5\x17\x35\xab\xcc\xfc\x15\xc4\xbf\x07\x5d\xc7\xd0\x73\xed\x49\x33\xdf\xf7\x07\x87\x7a\xc5\x8d\x57\x95\xa7\xdc\x22\xe5\x2f\x37\x7d\x18\xcc\x6e\xae\x9f\x70\x5d\x36\x4d\x02\xf3\xcc\x1c\x1d\x21\x31\x47\x1a\x94\x27\x41\xee\x49\x5d\x5d\xd6\x60\x87\x72\x5b\x17\xae\x24\xfd\xdd\x5d\xfc\x8f\x36\x2a\x73\xc3\xb3\xfd\xdd\xfd\x2f\xc5\x76\x27\xf7\x4f\x94\x0b\x37\xfd\x5f\xe4\x75\x30\xef\x2f\x92\x7e\x7f\xd8\xc0\xec\x22\xcf\xe1\x2f\xa6\x24\x62\x48\x98\x06\x17\xcb\x31\x37\x32\x5e\x9a\xa9\x01\x86\x18\x8d\x38\x4d\x98\xfc\x7b\x47\x84\x83\x7f\x0a\xd9\x5d\x83\x23\x6c\x2c\xda\x16\x5a\x66\x37\xe2\x47\xaa\x47\x92\x34\xac\xbf\x93\xcc\x9e\x57\x00\xde\xee\x07\x1e\xbd\x08\xb9\xf2\xb2\xcc\x7e\x26\x15\x2d\x88\xac\xb9\x78\xa1\x69\x01\x67\x1f\x11\xfd\xa9\x7d\xfe\x10\x65\xc5\xd9\x73\xc4\x4f\x2f\x06\x83\x30\xd6\x01\xa0\x72\xaf\xdc\xc9\xec\x83\xba\xbc\x94\xc3\xfb\xf0\xde\x9f\x58\x12\x5a\x61\xa1\x83\x53\xf3\x65\xf8\x35\x36\x07\x5a\x9c\x7f\x8d\x2f\xe1\xcd\x3e\xd6\x77\x2b\x5f\x4f\x87\x78\x0d\x7e\x3e\xcd\x3e\x07\xcc\xc7\x83\xea\xaa\xc4\xd8\xf2\x31\x0f\x4e\xe1\x9f\xf0\xde\x58\x3c\x67\xf0\xb1\x07\x00\xfd\x00\xd2\x54\x08\x44\x08\xba\x61\x3b\x64\x52\xa8\xdb\x28\x81\xd6\x28\xa2\xdb\xa7\xb1\x1d\x0f\xb6\xbb\x47\x02\x4b\x01\xf4\xe5\x00\xb3\x1f\x1a\x49\x6b\x46\x2a\x57\x93\x66\x62\xe2\x14\xf9\x79\xfb\x76\x36\x84\x26\x8c\xff\xea\x29\xef\x1e\x33\x56\x1f\x6e\x5e\x0e\x9f\xb6\xce\x99\x17\x46\xff\xac\x67\x5d\x6e\xfd\x3f\x00\x00\xff\xff\xe9\xfd\xbb\xfc\xe3\x1d\x00\x00") func templateBuilderUpdateTmplBytes() ([]byte, error) { return bindataRead( @@ -219,7 +219,7 @@ func templateBuilderUpdateTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/builder/update.tmpl", size: 7371, mode: os.FileMode(420), modTime: time.Unix(1566293398, 0)} + info := bindataFileInfo{name: "template/builder/update.tmpl", size: 7651, mode: os.FileMode(420), modTime: time.Unix(1566908308, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -324,7 +324,7 @@ func templateDialectGremlinCreateTmpl() (*asset, error) { return a, nil } -var _templateDialectGremlinDecodeTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x94\x41\x6f\x9c\x3c\x10\x86\xcf\xf8\x57\xcc\x87\x50\x04\x11\xeb\xfd\x0e\x55\x0f\x5b\xed\x0d\x45\xe2\xd0\x1c\x92\xb4\x97\xaa\x4a\x5c\x18\x52\x57\xc6\x20\xdb\x8b\x1a\x59\xfe\xef\x95\x0d\xac\xd8\x2d\xca\x56\xed\xa9\x52\x6f\x78\x66\xfc\xce\xcc\x03\x2f\xd6\x42\x8d\x0d\x97\x08\x71\xcd\x99\xc0\xca\x6c\x9f\x15\xb6\x82\xcb\x6d\x8d\x55\x57\xe3\xb6\x93\x18\x83\x73\xc4\x5a\x48\x14\x56\xc8\x07\x54\xb0\xdb\x43\x42\xef\xe6\x93\x73\x84\x6c\xb7\x70\xa3\xba\xf6\x0e\x75\xdf\x49\x8d\xa0\x2b\x26\x35\x98\xaf\x08\x93\x1e\xa8\x39\x55\x33\xc3\x80\x4b\xd3\x81\xd7\xa4\xb7\xac\x45\x70\x8e\x92\xe6\x20\x2b\x48\x4f\xfa\x38\x07\xd7\xcb\xa2\xec\xa4\x49\xaa\x50\xc3\xf5\xa4\x4f\xe7\x68\x06\xa8\x54\xa7\xc0\x92\x68\x68\x59\x9f\xfb\xa3\x1f\x58\xa1\xa6\x77\xc8\xea\x8f\x4c\x1c\xf0\x3d\xeb\xd3\x8c\x44\xbc\x09\xd9\xff\xf6\x20\xb9\xf0\x37\x22\x85\xe6\xa0\xa4\x8f\x92\xc8\x91\xc8\xda\x0d\x24\x7e\x17\xaf\xd0\x2b\x2e\x0d\xc4\x43\x7c\x32\x21\x89\x06\xa6\xc2\x2a\xa1\xce\x39\xd0\x46\x1d\x2a\x13\xe4\xca\x02\x60\x5c\xb3\x2c\xe8\xc3\x4b\xef\x97\x00\x78\xfa\xa6\x3b\xb9\x8b\x79\x9d\x77\x2d\x37\xd8\xf6\xe6\x25\x7e\x22\x51\x64\x2d\x28\x26\x9f\x11\x92\xc7\x1c\x92\x66\xc4\x7c\xc3\x51\xd4\x3a\x34\x8a\xc2\x3c\x3d\xd3\x15\x13\x90\x34\x33\x15\xdf\x80\x37\x3e\x50\xea\x07\x1e\x42\x5c\x9a\xb7\x6f\xac\x05\x14\xda\x1f\x8f\x05\xb7\x5c\x08\xf6\x45\xf8\x98\x07\x8b\xb2\x1e\xb3\x49\x33\x4f\x77\x8c\xce\x53\x8e\xd9\xa9\xd5\xcf\x03\x8f\xc5\x01\xd6\x44\x73\xb7\x07\x0f\x9e\x16\xe1\x03\x4a\xaf\x16\x68\xb2\x77\x17\x79\x9f\xb0\xa5\x65\x01\xfb\x25\x5b\x5a\x16\xe4\x32\xa6\xf0\xd6\x96\x32\xd6\xae\x50\xf3\xc2\x9b\x73\x70\x86\xb7\x48\x3f\x48\xfe\x3d\x5d\x76\x5d\xc5\x9e\xc3\xff\x19\x2c\x19\x6f\x2e\x5c\x58\xd0\x9a\x1e\x37\xfe\x79\x42\x20\xb9\x20\xc1\x66\x53\x0d\xb9\xec\xcd\x96\xc9\x97\x5f\x30\x67\xd8\x44\xf0\x0a\xc7\xd4\x7d\xd5\xf5\x48\xef\x43\xe0\x8f\xac\xab\x27\x89\x57\xad\x3b\x17\xfd\x1d\xd6\xfd\xf4\xf9\x9f\x79\x7f\xdb\xbc\x4d\xa7\xe0\x31\x87\x21\xbc\xb2\x80\x62\x89\xd6\x5f\xb8\x3e\xff\x44\xf6\xc0\xfa\x1e\x65\x9d\x9e\x67\x72\xb8\x5a\xfe\xf8\xfd\xe5\xa8\x2c\x76\x30\xd0\xb2\xc8\x47\x98\x97\x70\xaf\xf3\xde\xbd\xee\xfa\x61\xf5\x5f\x71\x66\xf5\xf5\xa2\x23\xcf\x79\xbe\xa3\xc3\x23\x97\x05\x40\xeb\x4e\xff\x11\x00\x00\xff\xff\xb7\xf1\xab\xf7\x84\x07\x00\x00") +var _templateDialectGremlinDecodeTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x94\xc1\x6e\x9c\x30\x10\x86\xcf\xf8\x29\xa6\x08\x45\x10\xb1\xde\x1c\xaa\x1e\xb6\xda\x1b\x8a\xc4\xa1\x39\x24\x69\x2f\x55\x95\xb8\x30\xa4\xae\x8c\x41\xb6\x17\x35\xb2\xfc\xee\x95\x0d\xac\xd8\x14\x65\xab\xf6\x54\xa9\x37\x3c\x33\xfe\x67\xe6\x83\x1f\x6b\xa1\xc6\x86\x4b\x84\xb8\xe6\x4c\x60\x65\xb6\x4f\x0a\x5b\xc1\xe5\xb6\xc6\xaa\xab\x71\xdb\x49\x8c\xc1\x39\x62\x2d\x24\x0a\x2b\xe4\x03\x2a\xd8\xed\x21\xa1\xb7\xf3\xc9\x39\x42\xb6\x5b\xb8\x56\x5d\x7b\x8b\xba\xef\xa4\x46\xd0\x15\x93\x1a\xcc\x37\x84\x49\x0f\xd4\x9c\xaa\x99\x61\xc0\xa5\xe9\xc0\x6b\xd2\x1b\xd6\x22\x38\x47\x49\x73\x90\x15\xa4\x27\x7d\x9c\x83\xcb\x65\x51\x76\xd2\x24\x55\xa8\xe1\x72\xd2\xa7\x73\x34\x03\x54\xaa\x53\x60\x49\x34\xb4\xac\xcf\xfd\xd1\x0f\xac\x50\xd3\x5b\x64\xf5\x27\x26\x0e\xf8\x81\xf5\x69\x46\x22\xde\x84\xec\x9b\x3d\x48\x2e\xfc\x8d\x48\xa1\x39\x28\xe9\xa3\x24\x72\x24\xb2\x76\x03\x89\xdf\xc5\x2b\xf4\x8a\x4b\x03\xf1\x10\x9f\x4c\x48\xa2\x81\xa9\xb0\x4a\xa8\x73\x0e\xb4\x51\x87\xca\x04\xb9\xb2\x00\x18\xd7\x2c\x0b\x7a\xff\xdc\xfb\x25\x00\x1e\xbf\xeb\x4e\xee\x62\x5e\xe7\x5d\xcb\x0d\xb6\xbd\x79\x8e\x1f\x49\x14\x59\x0b\x8a\xc9\x27\x84\xe4\x21\x87\xa4\x19\x31\x5f\x73\x14\xb5\x0e\x8d\xa2\x30\x4f\xcf\x74\xc5\x04\x24\xcd\x4c\xc5\x37\xe0\x8d\x0f\x94\xfa\x9e\x87\x10\x97\xe6\xdd\x5b\x6b\x01\x85\xf6\xc7\x63\xc1\x0d\x17\x82\x7d\x15\x3e\xe6\xc1\xa2\xac\xc7\x6c\xd2\xcc\xd3\x1d\xa3\xf3\x94\x63\x76\x6a\xf5\xeb\xc0\x63\x71\x80\x35\xd1\xdc\xed\xc1\x83\xa7\x45\xf8\x80\xd2\x8b\x05\x9a\xec\xfd\x59\xde\x27\x6c\x69\x59\xc0\x7e\xc9\x96\x96\x05\x39\x8f\x29\xbc\xb5\xa5\x8c\xb5\x2b\xd4\xbc\xf0\xe6\x25\x38\xc3\x5b\xa4\x1f\x25\xff\x91\x2e\xbb\xae\x62\xcf\xe1\x2a\x83\x25\xe3\xcd\x99\x0b\x0b\x5a\xd3\xe3\xc6\x3f\x4f\x08\x24\x17\x24\xd8\x6c\xaa\x21\xe7\xbd\xd9\x32\xf9\xfc\x1b\xe6\x0c\x9b\x08\x5e\xe1\x98\xba\xab\xba\x1e\xe9\x5d\x08\xfc\x95\x75\xf5\x24\xf1\xaa\x75\xe7\xa2\x7f\xc3\xba\x9f\xbf\xfc\x37\xef\x1f\x9b\xb7\xe9\x14\x3c\xe4\x30\x84\x57\x16\x50\x2c\xd1\xfa\x0b\x97\x2f\x3f\x91\x3d\xb0\xbe\x47\x59\xa7\x2f\x33\x39\x5c\x2c\x7f\xfc\xfe\x72\x54\x16\x3b\x18\x68\x59\xe4\x23\xcc\x73\xb8\xd7\x79\xef\x5e\x77\xfd\x55\x0e\xc3\xea\xef\x62\x69\xf5\xf5\x8a\x23\xcf\x79\xbe\xa3\xc3\x23\x97\x05\x40\xeb\x4e\xff\x19\x00\x00\xff\xff\x5e\x25\x72\x96\x84\x07\x00\x00") func templateDialectGremlinDecodeTmplBytes() ([]byte, error) { return bindataRead( @@ -339,7 +339,7 @@ func templateDialectGremlinDecodeTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/gremlin/decode.tmpl", size: 1924, mode: os.FileMode(420), modTime: time.Unix(1565180189, 0)} + info := bindataFileInfo{name: "template/dialect/gremlin/decode.tmpl", size: 1924, mode: os.FileMode(420), modTime: time.Unix(1566909848, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -464,7 +464,7 @@ func templateDialectGremlinQueryTmpl() (*asset, error) { return a, nil } -var _templateDialectGremlinUpdateTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xc4\x58\x5b\x6f\xdb\xb8\x12\x7e\x96\x7f\xc5\x1c\xc3\x2d\xa4\x40\x87\x49\x5f\x73\x90\x03\x6c\x53\x77\xeb\xc5\x36\x69\x93\x6c\xf7\xa1\x08\x02\x46\x1a\xd9\x44\x64\xca\x25\x29\x35\x5d\x43\xff\x7d\x31\x24\x75\xb5\x93\xde\xb6\xdb\x97\xd6\x22\x87\x33\xdf\x37\x37\x0e\xb3\xdd\x42\x8a\x99\x90\x08\xd3\x54\xf0\x1c\x13\x73\xb8\x54\xb8\xce\x85\x3c\x2c\x37\x29\x37\x38\x85\xba\x9e\x6c\xb7\x30\xbb\x2d\x45\x9e\xa2\x82\xe3\x13\xd8\x70\x9d\xf0\x1c\x66\xec\x32\x29\x36\xc8\x9e\xfb\x1d\x2f\xa8\x30\x41\x51\x39\xc9\xf6\x77\x7b\xdc\x0b\x15\x12\x69\x7f\xc5\xf5\x65\x99\x65\xe2\xbe\x13\x98\x9e\xcb\xce\xe8\x5f\xa8\x0a\x92\x3b\x82\xba\xde\x6e\x41\x64\xee\xa4\xfd\x70\x9b\x27\x30\x95\x22\x9f\xba\x25\x94\x29\x9d\x9c\x64\xa5\x4c\x20\x1c\x80\xa9\x6b\x38\xe8\xd3\xa8\xeb\x08\x3c\xd3\x4b\x5e\x61\x98\x98\x7b\x48\x0a\x69\xf0\xde\xb0\x53\xf7\x7f\x44\x2a\xfe\xdb\x33\x6a\x15\xb0\x33\xbe\xf6\x08\x30\xd7\xf4\x4b\x48\xd3\xda\x8e\x01\x95\x2a\x54\x04\xdb\x49\xa0\x50\x13\xf6\xa7\xde\x0c\xbb\x40\xbd\x29\xa4\xc6\x6d\x3d\x09\x3e\x94\xa8\x3e\xc5\x70\x2b\x64\x2a\xe4\xd2\xca\x8d\xe0\x32\x7f\x6c\x84\x61\x2c\x25\xd2\xd6\x76\xc4\xde\x92\xd6\x30\x9a\x04\x22\x23\x1c\xfb\xb4\xa6\x8a\x7e\xb1\xf9\x3d\x26\xc4\x39\x86\x11\x92\x18\x14\xea\xe8\x7f\xf6\xf8\x7f\x4e\x40\x8a\x9c\xa8\x04\x0a\x4d\xa9\x24\xb4\x6e\xf7\x4c\x27\x41\xdd\x18\x8b\xa1\xb8\x23\x83\x42\x9f\x16\x52\x1b\x2e\xcd\x9c\x3c\x11\x3a\x75\xc5\xdd\x67\xd5\x0c\x79\x4e\x02\xbb\x30\xb3\x24\x66\xec\xa2\xa3\x60\x77\x68\xa3\xae\xad\x7b\x07\x41\x49\x0a\x99\x89\xe5\xf1\x0e\x6d\xb7\x4e\x67\x47\xae\xa1\xcd\x97\xaa\x58\x37\xc1\x09\xf7\xd2\x6f\x80\x4b\x91\x7b\xc0\x84\xb8\x4f\x47\x59\x2e\x52\xe4\x8e\x88\x4f\x8d\x4e\x46\xa1\x66\x17\xc8\xd3\x85\x34\x14\x20\x2b\xe3\xb2\xf5\xab\xf3\x35\x1c\x54\x82\x48\xad\x7d\xb6\x78\xc1\xae\x3e\x6d\xb0\x5f\x08\x11\x1c\xa4\x3a\x67\x57\x8a\x57\xa8\x34\xb7\x54\xc8\xf0\x47\x61\x56\xc0\xce\xca\xb5\x8d\x94\xe2\x42\x1a\x87\xd5\x90\x82\xa4\x5b\xd4\x46\x95\x89\x71\x1e\xd8\x28\x4c\xc7\xfa\x0e\x0f\xfb\xd2\x24\x21\x12\x6e\x90\x91\xbc\x41\x6d\xf6\xc8\xdb\xe5\x35\x37\xc9\x0a\x35\x70\x99\x82\x30\xda\x29\xe1\xd2\x30\xef\xd7\x4e\xa9\xad\x8c\x35\xbf\xc3\xf0\xfd\xf5\x41\xb7\x1c\xc3\x51\x4c\xb4\x19\xb1\x1c\x78\xd3\xfe\x3e\x3c\x80\x84\x6b\x84\x22\x03\xd7\xc5\x40\x6f\x30\x11\x99\x48\xa0\x42\x65\xf0\x1e\x0e\x0e\xeb\x7d\x29\x57\x91\xb9\x25\x7b\x17\x8a\x34\x6a\x55\x2d\x51\xa2\xe2\x79\xa3\x2a\x2b\x14\x9c\x59\x3d\x22\x41\xdd\xd3\xd4\xc5\xbc\x55\x13\xb1\x57\x5c\xff\xce\x6f\x31\xb7\xd1\x65\x6f\x78\x72\xc7\x97\x24\xc5\xec\x6a\x34\x09\x02\xd2\x77\x13\xc3\xc6\xf6\x4b\x2e\x97\xb8\x93\xbc\xad\x63\xb5\x0f\x45\x58\x45\xce\x53\x7d\xe2\x15\x57\x10\xba\xe2\x10\x19\x14\x6a\x1c\xe1\x30\x47\x09\x33\x36\x4f\x97\xa8\x23\x87\x33\x50\x15\x9c\x40\xc5\x4e\xf3\x42\x22\xa5\x65\x10\xdc\xc0\x09\xa8\xca\xa9\x69\x34\x07\x46\x69\x78\x7f\x3d\x0c\xe6\x24\xf0\x1e\x72\x98\x67\x37\x31\xcc\x32\x57\xac\xaf\x4b\xc3\x6f\x73\x7c\x29\x30\x4f\xb5\xd5\x20\xb2\x1d\x52\xf4\x9d\xb1\x4b\x9b\x61\x56\x92\x52\xbe\x57\x72\x4d\x6c\x32\xf6\x87\x14\x1f\x4a\xef\xd9\x41\x6a\x9c\x00\xdf\x6c\x50\xa6\x61\x6f\x31\x86\xa7\xdd\x97\xf5\x96\xcd\xdc\xe3\x2e\x1c\xfb\x23\x11\xc3\x78\xd9\x01\x6c\x9a\x99\x2d\xef\x83\x2f\x21\x11\xb1\xd3\xa2\xa4\x2a\x8f\xad\x75\x4a\xf8\x63\xb8\xb9\x61\x0b\x1d\x6e\xd8\xd9\xfc\x6d\x78\x14\x45\xad\xda\xf0\x0c\x3f\xce\x95\x72\x14\xad\x86\x1f\x0e\xcf\xe1\xa2\xb2\x19\xa4\x4f\x50\xb1\x37\xaa\xd8\xa0\x32\x9f\x42\x0a\xf4\xa5\x90\xcb\x1c\xff\x41\xbb\x93\x71\xc2\x8e\x92\x07\x5d\xf2\xd8\xfc\xec\x5d\x00\xa9\x50\x98\x18\x51\x48\xda\x9e\x2e\xe4\xb4\xb7\x27\xa9\xeb\xd3\x40\xa2\x84\x34\x19\x4c\x9f\x68\xf6\x44\x4f\x7b\x78\x67\xd8\x47\xda\xcb\x2a\x64\x0b\xbd\x90\x94\xc9\x4d\x62\x8d\x8c\x9d\xc0\xf4\xbc\x34\xd3\xfe\xa6\xb5\xb6\x6b\x0c\x6d\xdf\x7d\xdc\x64\xeb\x64\xdf\x52\x14\xae\x8b\x0a\x01\x2d\x57\xd7\x41\x7a\xd0\xfa\x09\xbf\xa7\x72\x92\x1c\xb9\x42\xba\xf7\x9b\x41\x0c\x9b\xfb\xaf\xad\x9c\xae\x17\x51\x7b\x11\xe9\xc3\xcd\xc5\x41\xf9\x8c\xb6\x3e\x7c\x87\xf1\x12\xf3\xec\x02\x33\xef\x1f\xe3\xa6\xbd\xb6\x93\xb0\xe7\x85\x59\xcd\x6d\x2a\x4b\xa7\x2b\x72\x6d\x49\x16\x66\xc0\x90\xfd\xb9\x42\x85\xe1\xcd\x0d\x3b\x57\xf4\xef\x42\xfa\x2a\x5d\xbc\xa0\x1e\x1c\x53\xe1\x9c\x97\x66\xb0\x18\x45\x6d\x6f\x62\x2f\x54\xb1\x09\x23\xb6\x30\xa8\xb8\x71\x2d\xac\xa5\xbf\x3f\xce\x3b\x50\x17\xf2\x2b\x81\x9a\x15\xaa\x21\xa0\x2f\xc3\xf3\x80\xfd\xf3\xd2\xfc\x0b\x00\x9a\x08\xda\x5e\xde\x36\x4e\xa3\x74\x0c\x46\xf9\xdb\xa4\xc9\x4e\x7f\xd1\x0d\xb2\xf3\x73\x69\x44\xdf\x38\x6e\xe7\xdb\x47\x2b\xae\x62\xbf\xa4\xe9\x90\xba\x1d\xc5\x42\x7f\x01\x47\x2e\x1b\x76\x5d\xb8\xef\xe0\x55\xd1\x1d\x73\x09\xf3\x70\xee\xbe\xe2\x7a\x3c\xf9\x3c\x98\xd9\xdf\x72\xe1\xf8\x1b\x67\x54\x0e\x43\xbc\x83\x3b\xe2\x6b\x2e\x09\xea\x8f\x8f\xdd\x11\xde\x42\x0c\xe4\x0a\xa7\xde\xf6\xfa\xef\x61\xb2\x64\xf3\xf1\x28\xd3\x12\xf9\xa6\x02\xfe\x09\xf4\x47\x39\xf4\x83\xbc\x41\x1f\xdd\x25\x52\xd7\x03\xde\x3f\x8b\x75\xbf\x02\xda\x8f\x9d\xcb\xb8\x37\x09\x57\xec\x1d\xcf\x4b\x7c\xcd\x37\xa1\x51\x25\x46\xdd\x5b\xb7\x6a\x38\xf4\xc6\xc3\x47\x9f\x14\x22\x83\x1c\x65\xdf\xb1\x11\xfc\x1f\x8e\xdc\x20\xeb\xfb\x0d\xcd\xf7\xa0\x4b\x85\x60\x56\x08\xa6\x7d\x2e\xa4\x05\x6a\xdb\x07\xe9\x61\xce\x85\x84\x75\x61\x65\xb8\x04\xc2\xe9\x47\x79\x91\xc1\x47\x84\x15\xaf\x06\x4f\x17\xdf\xb6\x9a\xba\xb6\xdd\xb4\x1d\xf3\xbf\xb7\xaa\x1f\x09\xe3\xaf\x57\xe1\xb3\x7e\x14\x9f\xce\x95\xea\x7c\xf2\x92\x8b\x1c\xd3\xed\x5a\x2f\x8f\x61\xea\xdb\x6c\xc7\xd7\xd3\xd4\x7b\x79\x4e\xeb\x87\x03\x1b\xd0\x18\xdf\x43\xff\xfe\xe8\xda\x3e\x1a\xd8\x69\xc1\x73\xd4\x09\x86\xa3\x4d\xc2\x1c\x83\x7d\x45\x34\xef\x8f\x44\x75\xcd\xbd\x2f\xfd\xec\xf8\xda\x05\xcb\x19\x51\x63\xc5\x6a\xa0\x6c\x4f\x66\xed\x5e\x38\x24\xea\x9f\xc5\x34\x69\xfe\x56\x08\x49\x1b\x8c\xb1\x68\x62\xff\xee\xe3\x8f\xfe\x1d\x00\x00\xff\xff\x4e\xe4\xc6\xd4\x9d\x12\x00\x00") +var _templateDialectGremlinUpdateTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xc4\x58\x5b\x6f\xdb\xb8\x12\x7e\x96\x7f\xc5\x1c\xc3\x2d\xa4\x40\x87\x49\x5f\x73\x90\x03\x9c\x26\xee\xa9\x17\xbb\x49\x9b\xa4\xdd\x87\x22\x08\x18\x69\x64\x13\x91\x29\x97\xa4\xd4\x74\x0d\xfd\xf7\xc5\x90\xd4\xd5\x4e\x7a\xd9\xed\xf6\xa5\xb5\xc8\xe1\xcc\xf7\xcd\x95\xcc\x76\x0b\x29\x66\x42\x22\x4c\x53\xc1\x73\x4c\xcc\xe1\x52\xe1\x3a\x17\xf2\xb0\xdc\xa4\xdc\xe0\x14\xea\x7a\xb2\xdd\xc2\xec\xae\x14\x79\x8a\x0a\x8e\x4f\x60\xc3\x75\xc2\x73\x98\xb1\xab\xa4\xd8\x20\x7b\xe9\x77\xbc\xa0\xc2\x04\x45\xe5\x24\xdb\xdf\xed\x71\x2f\x54\x48\xa4\xfd\x15\xd7\x57\x65\x96\x89\x87\x4e\x60\x7a\x21\x3b\xa3\x7f\xa0\x2a\x48\xee\x08\xea\x7a\xbb\x05\x91\xb9\x93\xf6\xc3\x6d\x9e\xc0\x54\x8a\x7c\xea\x96\x50\xa6\x74\x72\x92\x95\x32\x81\x70\x00\xa6\xae\xe1\xa0\x4f\xa3\xae\x23\xf0\x4c\xaf\x78\x85\x61\x62\x1e\x20\x29\xa4\xc1\x07\xc3\x4e\xdd\xff\x11\xa9\xf8\x77\xcf\xa8\x55\xc0\xce\xf9\xda\x23\xc0\x5c\xd3\x2f\x21\x4d\x6b\x3b\x06\x54\xaa\x50\x11\x6c\x27\x81\x42\x4d\xd8\x9f\x7b\x33\xec\x12\xf5\xa6\x90\x1a\xb7\xf5\x24\xf8\x58\xa2\xfa\x1c\xc3\x9d\x90\xa9\x90\x4b\x2b\x37\x82\xcb\xfc\xb1\x11\x86\xb1\x94\x48\x5b\xdb\x11\x7b\x4b\x5a\xc3\x68\x12\x88\x8c\x70\xec\xd3\x9a\x2a\xfa\xc5\xe6\x0f\x98\x10\xe7\x18\x46\x48\x62\x50\xa8\xa3\xff\xd8\xe3\xff\x3a\x01\x29\x72\xa2\x12\x28\x34\xa5\x92\xd0\xba\xdd\x33\x9d\x04\x75\x63\x2c\x86\xe2\x9e\x0c\x0a\x7d\x5a\x48\x6d\xb8\x34\x73\xf2\x44\xe8\xd4\x15\xf7\x5f\x54\x33\xe4\x39\x09\xec\xc2\xcc\x92\x98\xb1\xcb\x8e\x82\xdd\xa1\x8d\xba\xb6\xee\x1d\x04\x25\x29\x64\x26\x96\xc7\x3b\xb4\xdd\x3a\x9d\x1d\xb9\x86\x36\x5f\xa9\x62\xdd\x04\x27\xdc\x4b\xbf\x01\x2e\x45\xee\x01\x13\xe2\x3e\x1d\x65\xb9\x48\x91\x3b\x22\x3e\x35\x3a\x19\x85\x9a\x5d\x22\x4f\x17\xd2\x50\x80\xac\x8c\xcb\xd6\x6f\xce\xd7\x70\x50\x09\x22\xb5\xf6\xd9\xe2\x8c\x5d\x7f\xde\x60\xbf\x10\x22\x38\x48\x75\xce\xae\x15\xaf\x50\x69\x6e\xa9\x90\xe1\x4f\xc2\xac\x80\x9d\x97\x6b\x1b\x29\xc5\x85\x34\x0e\xab\x21\x05\x49\xb7\xa8\x8d\x2a\x13\xe3\x3c\xb0\x51\x98\x8e\xf5\x1d\x1e\xf6\xa5\x49\x42\x24\xdc\x20\x23\x79\x83\xda\xec\x91\xb7\xcb\x6b\x6e\x92\x15\x6a\xe0\x32\x05\x61\xb4\x53\xc2\xa5\x61\xde\xaf\x9d\x52\x5b\x19\x6b\x7e\x8f\xe1\x87\x9b\x83\x6e\x39\x86\xa3\x98\x68\x33\x62\x39\xf0\xa6\xfd\x7d\x78\x00\x09\xd7\x08\x45\x06\xae\x8b\x81\xde\x60\x22\x32\x91\x40\x85\xca\xe0\x03\x1c\x1c\xd6\xfb\x52\xae\x22\x73\x4b\xf6\x3e\x14\x69\xd4\xaa\x5a\xa2\x44\xc5\xf3\x46\x55\x56\x28\x38\xb7\x7a\x44\x82\xba\xa7\xa9\x8b\x79\xab\x26\x62\xaf\xb9\xfe\x95\xdf\x61\x6e\xa3\xcb\xde\xf0\xe4\x9e\x2f\x49\x8a\xd9\xd5\x68\x12\x04\xa4\xef\x36\x86\x8d\xed\x97\x5c\x2e\x71\x27\x79\x5b\xc7\x6a\x1f\x8a\xb0\x8a\x9c\xa7\xfa\xc4\x2b\xae\x20\x74\xc5\x21\x32\x28\xd4\x38\xc2\x61\x8e\x12\x66\x6c\x9e\x2e\x51\x47\x0e\x67\xa0\x2a\x38\x81\x8a\x9d\xe6\x85\x44\x4a\xcb\x20\xb8\x85\x13\x50\x95\x53\xd3\x68\x0e\x8c\xd2\xf0\xe1\x66\x18\xcc\x49\xe0\x3d\xe4\x30\xcf\x6e\x63\x98\x65\xae\x58\x5f\x09\xcc\x53\xdd\x15\xb1\x83\x13\xca\xc2\xc0\x2c\x63\x8b\xf5\xba\x34\xfc\x2e\xc7\x88\xbe\xde\x59\xa7\x9e\x61\xc6\xcb\xdc\x67\x21\x95\xe8\xd8\x05\xf4\x9d\xb1\x2b\x9b\x8f\x56\x3d\x15\x48\xbf\x40\xdb\x58\x66\xec\x9d\x14\x1f\x4b\x1f\x89\x60\x98\x4c\x27\xc0\x37\x1b\x94\x69\xd8\x5b\x8c\xe1\x79\xf7\xe5\x74\xb9\x6c\x3f\xee\x42\xb8\x3f\x7a\x31\x8c\x97\x1d\xcc\xa6\x01\xda\x96\x70\xf0\x35\x54\x22\x76\x5a\x94\xd4\x19\x62\x6f\x9f\xca\xe4\x18\x6e\x6f\xd9\x42\x87\x1b\x76\x3e\x7f\x1b\x1e\x45\x51\xab\x38\x3c\xc7\x4f\x73\xa5\x1c\x51\xab\xe3\x87\x03\x6c\x90\xd5\x51\xeb\xed\x36\x3d\x82\xa0\x62\x6f\x54\xb1\x41\x65\x3e\x87\x94\x24\x57\x42\x2e\x73\xfc\x1b\xad\x93\x91\x26\x9b\xfa\x85\xde\xff\xdd\xcb\x43\x74\x79\x68\x53\xbd\x37\x4b\x52\xa1\x30\x31\xa2\x90\xb4\x3d\x5d\xc8\x69\x6f\x4f\xd2\x00\xa1\xbb\x8d\x12\xd2\x64\x30\x7d\xa6\xd9\x33\x3d\xed\xc1\x9f\x61\x1f\x78\x97\xd9\x33\x64\x0b\xbd\x90\x54\x14\x4d\xce\x8d\x8c\x9d\xc0\xf4\xa2\x34\xd3\xfe\xa6\xb5\xb6\x6b\x0c\x6d\x0b\x7f\xda\x64\xeb\x75\xdf\x9d\x14\xae\x8b\x0a\x01\x2d\x57\xd7\x8c\x7a\xd0\xfa\xb5\xb0\xa7\xac\x92\x1c\xb9\x42\xba\x42\x34\x77\x3a\x6c\x46\xa9\x2d\xab\x61\x5b\xa3\x4e\x25\xd2\xc7\xfb\x94\x83\xf2\x05\x6d\x7d\xf8\x0e\xe3\x15\xe6\xd9\x25\x66\xde\x3f\xc6\x5d\x1c\xdb\xa6\xc4\x5e\x16\x66\x35\xb7\xf9\x2d\x9d\xae\xc8\x75\x38\xdb\x4e\x7a\x0c\xd9\xef\x2b\x54\x18\xde\xde\xb2\x0b\x45\xff\x2e\xa4\x2f\xde\xc5\x19\xb5\xf3\x98\xaa\xe9\xa2\x34\x83\xc5\x28\x6a\xdb\x1c\x3b\x53\xc5\x26\x8c\xd8\xc2\xa0\xe2\xc6\x75\xc3\x96\xfe\xfe\x38\xef\x40\x5d\xc8\x6f\x04\x6a\x56\xa8\x86\x80\xbe\x0e\xcf\x23\xf6\x2f\x4a\xf3\x0f\x00\x68\xcb\x9e\xc6\x42\xdb\x51\x8d\xd2\x31\x18\xe5\x07\x53\x93\x9d\x7e\x66\x0e\xb2\xf3\x4b\x69\x44\xdf\x38\xee\xf5\xdb\x27\x2b\xae\x62\xff\x4b\xd3\x21\x75\x7b\xab\x0b\xfd\x2c\x8f\x5c\x36\xec\xba\x70\xdf\xc1\xeb\xa2\x3b\xe6\x12\xe6\xf1\xdc\x7d\xcd\xf5\xf8\x12\xf5\x68\x66\x7f\xd7\x24\x72\x83\x68\x54\x0e\x43\xbc\xc3\xd1\xf1\x0d\x93\x83\xfa\xe3\x53\x83\xc3\x5b\x88\x81\x5c\xe1\xd4\xfb\xf6\xff\xfd\x4c\x96\x6c\x3e\xbe\x15\xb5\x44\xbe\xab\x80\x7f\x02\xfd\x51\x0e\xfd\x20\x6f\xd0\x47\x37\x44\xea\x7a\xc0\xfb\x67\xb1\xee\x57\x40\xfb\xb1\x33\x8c\x7b\x97\xea\x8a\xbd\xe7\x79\x89\xbf\xf1\x4d\x68\x54\x89\x51\xf7\x6c\xae\x1a\x0e\xbd\x9b\xe6\x93\xaf\x13\x91\x41\x8e\xb2\xef\xd8\x08\xfe\x0b\x47\xee\xfe\xe7\xfb\x0d\x3d\x15\x40\x97\x0a\xc1\xac\x10\x4c\xfb\xf2\x48\x0b\xd4\xb6\x0f\xd2\x1b\x9f\x0b\x09\xeb\xc2\xca\x70\x09\x84\xd3\xbf\x0a\x44\x06\x9f\x10\x56\xbc\x1a\xbc\x82\x7c\xdb\x6a\xea\xda\x76\xd3\xf6\xc5\xf0\x57\xab\xfa\x89\x30\xfe\xff\x3a\x7c\xd1\x8f\xe2\xf3\xb9\x52\x9d\x4f\x5e\x71\x91\x63\xba\x5d\xeb\xe5\x31\x4c\x7d\x9b\xed\xf8\x7a\x9a\x7a\x2f\xcf\x69\xfd\x78\x60\x03\x7a\x11\xf4\xd0\x7f\x38\xba\xb1\xef\x0f\x76\x5a\xf0\x1c\x75\x82\xe1\x68\x93\x30\xc7\x60\x1f\x24\xcd\x53\x26\x51\x5d\x73\xef\x4b\xbf\x38\xbe\xf1\x97\x75\x6b\x44\x8d\x15\xab\x81\xb2\x3d\x99\xb5\x3b\x70\x48\xd4\xbf\xb0\xe9\xe2\xf9\x4b\x21\x24\x6d\x30\xc6\xa2\x89\xfd\x13\x92\x3f\xfa\x67\x00\x00\x00\xff\xff\xda\x89\x7a\xd6\xe8\x12\x00\x00") func templateDialectGremlinUpdateTmplBytes() ([]byte, error) { return bindataRead( @@ -479,7 +479,7 @@ func templateDialectGremlinUpdateTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/gremlin/update.tmpl", size: 4765, mode: os.FileMode(420), modTime: time.Unix(1566293398, 0)} + info := bindataFileInfo{name: "template/dialect/gremlin/update.tmpl", size: 4840, mode: os.FileMode(420), modTime: time.Unix(1566912446, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -664,7 +664,7 @@ func templateDialectSqlQueryTmpl() (*asset, error) { return a, nil } -var _templateDialectSqlUpdateTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x5a\x5d\x6f\xdb\x3a\xd2\xbe\x96\x7f\xc5\xbc\x46\x9a\x23\x05\xae\x92\xf6\x32\xe7\x75\x81\x6e\x93\x02\xc1\xa2\x75\x4f\xdc\xb3\x7b\x91\x13\x14\xb4\x34\x4a\x88\xc8\x94\x43\xd2\x4e\xb2\x86\xfe\xfb\x62\x48\x7d\x50\xb2\x9c\xda\x71\xd0\xe6\xa0\x7b\x11\xc4\x92\x48\xce\xd7\x33\xcf\x0c\x29\x2d\x97\x10\x63\xc2\x05\x42\x3f\xe6\x2c\xc5\x48\x1f\xaa\xdb\xf4\x70\x3e\x8b\x99\xc6\x3e\xe4\x79\x6f\xb9\x84\xbd\xd9\xcd\x15\x1c\x0f\x61\x2f\x1c\x47\xd9\x0c\xc3\x2f\x2c\xba\x61\x57\x58\x3e\x9d\xcc\x79\x1a\xa3\xa4\x11\x33\xa6\x22\x96\x56\x03\xff\x51\x3c\x29\x06\x4a\x8c\x90\x2f\xec\xc8\xea\x77\x35\xbd\x18\x94\x09\xa4\xe7\xd7\x4c\x8d\xe7\x49\xc2\xef\xeb\x01\xfd\x91\x28\x55\x7a\x0d\x7b\xff\x41\x99\xd1\xc0\x23\xc8\xf3\xe5\x12\x78\x62\xa7\x9a\x0b\xfb\x70\x08\x7d\xc1\xd3\xbe\xbd\x85\x22\xae\xa6\x4a\xd4\x34\xb3\x2f\xfa\x5d\x73\xe9\x29\xd9\x7a\x5e\x6a\xe8\xce\xef\x25\x73\x11\x81\xdf\xb0\x26\xcf\xe1\xc0\xf5\x43\x9e\x07\xa0\x6e\xd3\x31\x5b\xa0\x1f\xe9\x7b\x88\x32\xa1\xf1\x5e\x87\x1f\xec\xff\xa0\x9c\xae\x69\x66\x43\xbc\x59\x26\xfc\xcc\xa6\x85\x2e\x98\x2a\xfa\xc5\x85\xae\x34\x18\x00\x4a\x49\x7f\x99\x0c\x60\xd9\xf3\x14\x52\xd0\x32\xe3\x53\x75\x9b\x86\x63\x73\x6d\x24\x38\x71\x0a\x1b\x62\x3e\x64\xe9\x7c\x2a\x54\x18\x86\xb5\x0c\x33\xe1\xec\x84\x94\x54\x9a\x09\xed\x5a\x1d\x84\x1f\x65\x36\xf5\x69\xf9\xaf\x6c\x92\xe2\xca\xea\xe6\x6e\x10\xf4\x3c\x72\x6f\x2d\xa7\xe7\x79\xed\x91\x67\x27\x6d\xdf\x85\x3c\x0e\xfc\xd2\x8a\x62\x89\x42\xa7\x9e\xe7\x25\x99\x84\x6f\x03\x98\x19\xc8\x30\x71\x85\xd0\x9e\x3e\x93\x18\xf3\x88\x69\x54\xe4\x0e\xcf\x9b\xb9\x8b\x79\x79\xb1\xa0\x8d\x9e\x27\xb3\x3b\x45\x4b\xed\x93\x2d\xe7\xd9\x9d\x5a\xe6\x3d\xef\x76\x8e\xf2\x61\x00\x4c\x5e\x99\x67\xe5\xf4\xf0\x0f\xba\xef\x07\x3d\x8f\x27\xc6\xe9\xc3\x15\xd9\xb1\xa4\x5f\xc5\xc0\x48\xdf\x0f\xc0\x59\x6b\x00\x24\x2d\xf8\xdd\xcc\xfd\xbf\x21\x08\x9e\x1a\x0d\x25\xea\xb9\x14\x50\xc1\xb4\x88\x69\x8f\x74\x8d\x31\x41\x69\xe6\x85\x1f\xd2\x4c\x21\x49\x5f\x30\x09\x3c\x56\x70\x71\xc9\x85\xee\x19\x8f\x98\x01\x9f\xf1\x5e\xfb\x06\x03\xc5\x10\x30\xcf\x57\x63\x60\x83\xe0\xc0\x19\x86\xb0\xdf\x40\x5a\x94\x89\x84\x5f\x1d\xaf\xd8\x67\xef\x9b\x35\x0a\x1f\x1c\x5b\x27\xb8\xab\x19\x70\x90\x2f\xfd\x6e\x7b\xbb\x2d\x4e\xa6\x3a\x3c\x25\x14\x27\x7e\xbf\xa4\x98\x3c\x3f\x86\x84\xf1\x14\x63\x50\x11\x13\x82\x8b\x2b\x32\x95\xec\xca\xc0\x55\xf8\x18\x5e\x2d\xfa\xc6\x6b\x14\x63\xcf\x2a\x18\x43\x87\x6e\xa5\x33\x08\xda\x67\x6a\xac\x25\xad\x99\xe7\x3c\xf6\x83\x1a\xfb\x67\x27\x75\x82\x7b\x2d\x00\x3a\x86\x1b\xaf\x8f\x23\x26\xfc\x7d\x1e\x3f\x93\x9d\x12\x59\x4c\x2a\xf1\xb8\xc3\x26\x17\xb9\x1e\x41\x60\x08\x6c\x36\x43\x11\xfb\x3c\x56\x03\xe0\x71\xd0\x2b\x01\xde\x08\xb8\xba\xe3\x3a\xba\x06\x41\x4a\xa7\x28\x68\x74\xf0\xbb\xd1\x31\x62\x0a\x41\xc0\x70\x08\x47\xc7\xbd\x2d\x35\x76\x03\x00\x22\xd3\x90\x64\x73\x11\xc3\x1d\xd7\xd7\xb5\xfa\x1d\xc9\x5d\x8b\x7d\x07\x6f\xb6\x96\x3a\xcd\x24\x82\xbe\x66\x02\xc8\xbc\x86\x0e\x46\xb2\xbe\x46\x50\x74\xe3\x3b\x2a\xe4\x6d\x66\xe1\x49\xe5\x1b\xe3\x0f\x1b\xc3\x2e\xd5\x04\x4f\x57\x99\x64\xb9\x3c\x3c\x20\xaf\xeb\x6b\x94\xf8\x9b\x02\x95\x4d\x51\x5f\x53\x28\x75\x06\xb6\x7c\x0e\x40\x69\x26\x35\x30\xd0\x92\x09\xc5\x22\xcd\x33\x11\xc2\xc1\x21\xcd\x27\xb2\x70\x12\xaa\x83\x55\xbe\xde\x13\xa5\xd4\xf4\xb3\x21\x85\x54\x88\xff\xc8\x31\x8d\x95\x35\x96\x08\xc2\x27\xfb\xac\x66\x30\xc9\xb2\xd4\x9a\xab\x4c\xd5\x38\x47\x35\x4f\x89\x3c\xbc\xb2\x88\xd9\x6a\xf2\xa7\x19\xbe\x86\xef\xc3\x7f\x93\xed\xa6\x2c\x9c\x89\x33\xa1\x55\x57\xd5\x69\x17\x15\x82\x2d\x55\x1e\xaa\x16\x5e\x50\x80\xdc\x32\xfb\xde\xb7\x01\xec\x25\xb6\xd1\xf8\x34\xd7\x24\xc3\xb5\x81\xfc\xd0\x76\x15\x5d\x27\xe1\x58\xcb\x79\xa4\xcd\x58\xc2\x45\x23\x27\x0b\x83\x87\xa0\xe5\x1c\xcd\x9d\xc2\xc2\x70\x8c\x9d\x65\x72\x2f\x69\xaa\x7b\xb0\x89\x4c\x93\xb2\x1d\xcc\x5b\xdf\x4b\xc2\xcf\x3c\x4d\xc9\xa6\xea\xd1\x0a\x2f\xd3\xd2\x65\x07\x95\x54\x30\x5f\x05\x48\x97\x06\xb5\x34\x87\xbb\xb6\x90\xb1\x91\x99\x8e\x10\x51\x5d\x37\x2f\x57\x79\x2b\x29\xd2\xc1\x06\xa4\x55\x6c\xcb\x60\x54\xb5\xd6\x25\x5c\x7d\x1f\x9e\xde\x63\xd4\x51\x59\xf7\x25\x6e\x5c\x69\x64\x96\xa6\x13\x16\xdd\xf8\x45\xca\x55\xf4\xea\x52\x82\xc9\x98\xd3\xf8\x0a\x95\x69\x7c\x0e\x0f\x00\x85\x36\x0c\x93\xcd\x35\x24\x06\x86\x03\x98\xcc\xed\x3d\x40\x33\xd2\x66\xb2\x49\xae\x76\x22\x35\xa9\xa2\x81\x70\xb4\x08\x2f\x85\x39\x15\x1b\xc3\x4f\x6f\x3f\xd5\x60\x27\x7a\x6a\x47\x45\xe2\x34\x5b\x60\xec\x04\x11\xcb\x20\x06\xf0\xae\x64\x31\xb3\xe2\x1e\x73\xda\xe3\xbd\x09\x5d\xbc\xa9\xfb\x5d\x0c\xcf\xd4\x99\x58\xa0\xac\xba\x3f\x06\xd5\x80\xbd\x09\x54\x33\x9d\x48\x23\xd5\xa0\xe3\x21\x4c\xd9\x0d\xfa\xa6\x1d\x19\x6c\xad\xa4\xcd\x14\x6a\x62\x90\xc7\xeb\xbb\xba\x47\x96\x28\x4c\x34\x36\x6a\x9c\xce\x52\xc2\x56\xc7\xee\xe5\x30\xca\xc8\x3e\xcd\xe3\x3e\x39\xfd\x75\x09\x5f\x6c\x54\x52\x34\xa5\x14\x6d\x91\x28\x5a\x89\x95\x8e\xf0\x36\x0d\x4f\x30\xc5\x0e\x26\xa4\x6b\xb4\x7c\xe8\xb0\x46\x10\x5a\x51\x1b\x11\x24\x86\x5f\xfe\xe9\xcc\xbd\xb0\xb1\xc8\xf3\xcb\x9a\x2a\x77\x5d\x6e\x62\x97\xc3\xd6\x7a\x4e\xd2\xed\x94\x75\x9b\xa7\x9d\x97\x37\x88\x12\x69\xbb\x92\x9c\x63\x52\x26\x1d\xe1\xdf\x24\x98\xc2\x34\x01\x49\xdd\x30\x8a\x08\x4d\xa6\x99\x01\x5f\x47\x27\xa3\x63\x98\x2b\x84\xd1\x39\x70\x61\xca\xbf\xe9\x2e\xd8\x24\x5b\x60\x59\x5c\xdb\x31\xdc\x21\x84\x3b\x3b\xbd\xe5\xf3\x9d\x31\xd1\x0e\x62\x23\x8a\x3b\xc6\x71\x9b\x48\xba\xb1\xec\xa0\xff\x92\x54\x31\x1c\x3d\x13\xa7\xfd\xca\xec\xb3\xa6\x0f\x7b\x1c\xba\x63\xd4\x9f\xe7\x69\xba\x66\x96\x3d\x04\x78\x3a\x69\xad\xcc\xdf\x8c\xae\x30\xfc\xfa\xd0\x38\x42\x0a\x9d\xbb\xed\x56\xf1\xa5\x10\x56\x6b\x5b\x68\x98\x68\xf4\x76\x04\x99\x84\x4f\x6f\x47\x15\xe9\x74\x34\xa8\x51\x8a\x4c\x3e\x8a\xa4\x97\x18\xed\xad\x82\xf4\x42\x62\xb4\xbe\xa8\x50\xa4\xd6\x15\x95\x75\xb5\xe2\x49\x21\x78\x6a\x0c\x9e\x2f\xe5\x9a\xc5\x60\xb7\x5a\xb0\x45\x29\xd8\x74\x23\xd0\x45\xd7\xd6\xb4\xd6\x76\xaa\xa6\xfd\x22\xaa\x4c\xc4\x34\xec\x4f\xc1\x6f\xe7\xf8\x94\x18\xf3\xa4\x7d\x1e\x62\xce\x23\x36\x06\xdb\xba\xf3\x89\x88\x89\xdf\x34\xa4\x5c\xdc\x18\x1d\x68\x63\x00\x7f\xf5\xad\x51\x45\xa2\xff\xd5\x07\x9d\xc1\xab\x18\x4c\x3d\x88\x50\x81\xff\x0e\xde\x04\xfd\x01\x88\xc0\x05\xf0\x77\xcb\x52\x97\xab\x76\xad\x47\xcf\x45\x3f\x06\xfc\x9b\xe3\x96\x4a\x5e\x35\xb3\x86\xff\xe9\x1f\x1b\x9f\x21\x5c\x1c\x5d\x06\x41\xf8\x33\xf1\xfe\x6c\xb4\xb1\x9d\xeb\x0a\xdb\xd7\x7b\x6f\xdb\x12\x1b\x84\xef\x45\xec\x07\xe1\x99\xda\x8a\xbc\x7e\xb2\xf3\x59\x92\x60\xa4\x31\xae\x8e\xd1\x24\x2a\x73\xa4\xff\xbe\x78\xd0\x52\x6c\x67\x81\x3c\x01\x2e\xb4\x5f\xca\x0d\xe0\xff\xb7\xe0\xb3\x8d\xc5\xee\x9f\x4a\x69\xbc\x2c\x19\x17\xfa\xa3\x39\x25\x5e\x4e\xd5\xd5\xb1\x61\xa0\xf1\x4c\x72\xa1\x13\xbf\xbf\x4a\x31\xfe\xab\x45\x00\x2c\x95\xc8\xe2\x07\x88\x32\x21\x8c\x96\xc4\x3c\x0c\x62\x9e\x18\x42\xd4\x05\x35\xd5\xd3\xfa\x16\x01\x79\xc3\xd4\xbc\xe7\xad\x74\xf1\xb4\x33\x2b\xcf\x01\x16\x2c\x9d\xa3\xdb\x8b\x17\xdd\xf8\xd1\xa0\xa2\xd7\xba\xd1\xfe\x46\x88\xad\x39\x8d\xda\xdf\xc2\x19\x3b\xf1\xdd\x93\x09\xaf\xd4\xbe\xea\xc1\xed\xf5\xc0\xbe\x5f\x59\xf2\xd8\x78\x24\x1f\x40\x57\x3f\x61\xc7\x20\x0d\xe2\xb1\xf3\x82\xcc\xd4\x20\x2a\x3d\xaf\x25\x26\x10\x49\x34\xef\xa3\x68\x73\x6a\x4f\x8a\xb8\x80\x49\xa6\xaf\xe1\x8e\x3d\x28\x77\x93\x9a\xb7\xfa\x97\xe7\x3f\xb3\x71\x5e\xce\xda\xfe\x42\xa1\x5c\x47\x36\xeb\x08\xaa\x78\x5f\xb8\xed\x4e\x75\xab\x8d\x72\x03\x30\x8b\x1a\x13\x45\xb4\x8a\xa8\x97\xc7\x85\xff\x32\x77\xfd\xc5\xc5\xd1\xe5\x00\x16\x17\x6f\x2e\x1f\xd9\x3f\x75\x1c\x31\xfe\xd0\xc6\x74\x25\x91\x46\x65\x6c\xfe\xde\x05\xff\xc9\xf5\x7e\xb7\xd7\x06\x2f\xa1\xd3\xed\x8a\x6b\x7d\xcc\xf1\x1d\xda\x9b\x95\x6e\xff\x52\x6a\xff\x93\x88\x70\x16\x8e\xa4\x1f\x3c\xb9\x6b\x58\xdb\x0a\xfd\x38\x54\x75\x82\x8a\x9a\x99\xd9\xc0\xb2\xdd\x96\x1d\xcd\x8b\x00\xd7\x2f\xde\xd9\x64\x02\x21\x4b\x3a\xf6\x50\xaf\x16\x4f\x6a\x6f\x6e\xf0\x41\x6d\x66\xca\xa3\x5d\x90\xb3\xcf\xac\xca\xf7\xe3\x79\x5e\xbd\x88\x2d\x33\xc8\xf9\xfe\xa0\xf0\x99\x69\x24\x54\x11\x65\xa5\x25\x65\x6a\xf8\x5e\x67\xdc\xdf\x5c\x6b\xda\x0b\xd4\x67\xbf\xea\x79\x0e\x75\x3b\x5e\x24\x16\x04\xb5\x95\x62\xce\x5a\x22\x5e\x79\x25\xda\x6c\x67\x0a\x31\x7f\xd7\xfd\xe8\x93\x37\x51\xa5\xd0\x06\xe5\xac\xba\xff\x27\xf9\xe5\x51\xb7\xfc\xb0\x8d\xe6\x7a\x1f\x39\xb0\xfa\x1f\x4d\xff\xe2\x34\x5d\x62\xa1\xf5\xa5\x4e\xf5\xf5\x9e\xbe\x0f\x3f\x64\xd3\x29\xd7\xfe\x76\x1f\xe5\xd5\xcf\x9a\x1f\x8a\xb6\xbf\x10\xb5\xf9\x5a\xee\x80\x9d\x2f\x36\x05\x4f\x7b\x79\xaf\xe7\x7c\x45\xfa\xe8\x67\xb7\x6e\xc3\x96\xbb\x5f\xf4\x74\x17\x92\xf5\x45\xa4\xe8\xd2\xba\xca\x82\xf5\x48\x23\xf0\xaa\x04\x5c\x65\xef\xe1\x01\x14\xbf\xb9\x32\x5f\x7c\xdd\x88\xbb\x4c\x00\xd3\xa0\xaf\xb9\x82\x59\xc6\x85\xae\x76\xb3\x4d\xaf\xd7\xb6\xfe\x37\x00\x00\xff\xff\x59\x2f\x48\xd5\x62\x2c\x00\x00") +var _templateDialectSqlUpdateTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x5a\x5d\x6f\xdb\x3a\xd2\xbe\xb6\x7f\xc5\xbc\x86\x9b\x23\x05\xae\x92\xf6\x32\xe7\x75\x81\x6e\x93\x02\xc6\xa2\x75\x4f\xdc\xb3\x7b\x91\x13\x14\xb4\x34\x4a\x88\xc8\x94\x43\xd2\x4e\xb2\x86\xfe\xfb\x62\x48\x7d\x50\xb2\x9c\xda\x71\xd0\xe6\xa0\x7b\x11\xc4\x92\x48\xce\xd7\x33\xcf\x0c\x29\xad\x56\x10\x61\xcc\x05\x42\x2f\xe2\x2c\xc1\x50\x1f\xa9\xdb\xe4\x68\x31\x8f\x98\xc6\x1e\x64\x59\x77\xb5\x82\xfe\xfc\xe6\x0a\x4e\x86\xd0\x0f\x26\x61\x3a\xc7\xe0\x0b\x0b\x6f\xd8\x15\x16\x4f\xa7\x0b\x9e\x44\x28\x69\xc4\x9c\xa9\x90\x25\xe5\xc0\x7f\xe4\x4f\xf2\x81\x12\x43\xe4\x4b\x3b\xb2\xfc\x5d\x4e\xcf\x07\xa5\x02\xe9\xf9\x35\x53\x93\x45\x1c\xf3\xfb\x6a\x40\x6f\x2c\x0a\x95\x5e\x43\xff\x3f\x28\x53\x1a\x78\x0c\x59\xb6\x5a\x01\x8f\xed\x54\x73\x61\x1f\x0e\xa1\x27\x78\xd2\xb3\xb7\x50\x44\xe5\x54\x89\x9a\x66\xf6\x44\xaf\x6d\x2e\x3d\x25\x5b\xcf\x0b\x0d\xdd\xf9\xdd\x78\x21\x42\xf0\x6a\xd6\x64\x19\x1c\xba\x7e\xc8\x32\x1f\xd4\x6d\x32\x61\x4b\xf4\x42\x7d\x0f\x61\x2a\x34\xde\xeb\xe0\x83\xfd\xef\x17\xd3\x35\xcd\xac\x89\x37\xcb\x04\x9f\xd9\x2c\xd7\x05\x13\x45\xbf\xb8\xd0\xa5\x06\x03\x40\x29\xe9\x2f\x95\x3e\xac\xba\x1d\x85\x14\xb4\xd4\xf8\x54\xdd\x26\xc1\xc4\x5c\x1b\x09\x4e\x9c\x82\x9a\x98\x0f\x69\xb2\x98\x09\x15\x04\x41\x25\xc3\x4c\x18\x9d\x92\x92\x4a\x33\xa1\x5d\xab\xfd\xe0\xa3\x4c\x67\x1e\x2d\xff\x95\x4d\x13\x5c\x5b\xdd\xdc\xf5\xfd\x6e\x87\xdc\x5b\xc9\xe9\x76\x3a\xcd\x91\xa3\xd3\xa6\xef\x02\x1e\xf9\x5e\x61\x45\xbe\x44\xae\x53\xb7\xd3\x89\x53\x09\xdf\x06\x30\x37\x90\x61\xe2\x0a\xa1\x39\x7d\x2e\x31\xe2\x21\xd3\xa8\xc8\x1d\x9d\xce\xdc\x5d\xac\x93\xe5\x0b\xda\xe8\x75\x64\x7a\xa7\x68\xa9\x03\xb2\xe5\x3c\xbd\x53\xab\xac\xdb\xb9\x5d\xa0\x7c\x18\x00\x93\x57\xe6\x59\x31\x3d\xf8\x83\xee\x7b\x7e\xb7\xc3\x63\xe3\xf4\xe1\x9a\xec\x48\xd2\xaf\x7c\x60\xa8\xef\x07\xe0\xac\x35\x00\x92\xe6\xff\x6e\xe6\xfe\xdf\x10\x04\x4f\x8c\x86\x12\xf5\x42\x0a\x28\x61\x9a\xc7\xb4\x4b\xba\x46\x18\xa3\x34\xf3\x82\x0f\x49\xaa\x90\xa4\x2f\x99\x04\x1e\x29\xb8\xb8\xe4\x42\x77\x8d\x47\xcc\x80\xcf\x78\xaf\x3d\x83\x81\x7c\x08\x98\xe7\xeb\x31\xb0\x41\x70\xe0\x0c\x43\x38\xa8\x21\x2d\x4c\x45\xcc\xaf\x4e\xd6\xec\xb3\xf7\xcd\x1a\xb9\x0f\x4e\xac\x13\xdc\xd5\x0c\x38\xc8\x97\x5e\xbb\xbd\xed\x16\xc7\x33\x1d\x9c\x11\x8a\x63\xaf\x57\x50\x4c\x96\x9d\x40\xcc\x78\x82\x11\xa8\x90\x09\xc1\xc5\x15\x99\x4a\x76\xa5\xe0\x2a\x7c\x02\xaf\x96\x3d\xe3\x35\x8a\x71\xc7\x2a\x18\x41\x8b\x6e\x85\x33\x08\xda\x23\x35\xd1\x92\xd6\xcc\x32\x1e\x79\x7e\x85\xfd\xd1\x69\x95\xe0\x9d\x06\x00\x1d\xc3\x8d\xd7\x27\x21\x13\xde\x01\x8f\x9e\xc9\x4e\x89\x2c\x22\x95\x78\xd4\x62\x93\x8b\xdc\x0e\x41\x60\x08\x6c\x3e\x47\x11\x79\x3c\x52\x03\xe0\x91\xdf\x2d\x00\x5e\x0b\xb8\xba\xe3\x3a\xbc\x06\x41\x4a\x27\x28\x68\xb4\xff\xbb\xd1\x31\x64\x0a\x41\xc0\x70\x08\xc7\x27\xdd\x1d\x35\x76\x03\x00\x22\xd5\x10\xa7\x0b\x11\xc1\x1d\xd7\xd7\x95\xfa\x2d\xc9\x5d\x89\x7d\x07\x6f\x76\x96\x3a\x4b\x25\x82\xbe\x66\x02\xc8\xbc\x9a\x0e\x46\xb2\xbe\x46\x50\x74\xe3\x3b\x2a\x64\x4d\x66\xe1\x71\xe9\x1b\xe3\x0f\x1b\xc3\x36\xd5\x04\x4f\xd6\x99\x64\xb5\x3a\x3a\x24\xaf\xeb\x6b\x94\xf8\x9b\x02\x95\xce\x50\x5f\x53\x28\x75\x0a\xb6\x7c\x0e\x40\x69\x26\x35\x30\xd0\x92\x09\xc5\x42\xcd\x53\x11\xc0\xe1\x11\xcd\x27\xb2\x70\x12\xaa\x85\x55\xbe\xde\x13\xa5\x54\xf4\xb3\x25\x85\x94\x88\xff\xc8\x31\x89\x94\x35\x96\x08\xc2\x23\xfb\xac\x66\x30\x4d\xd3\xc4\x9a\xab\x4c\xd5\x38\x47\xb5\x48\x88\x3c\x3a\x45\x11\xb3\xd5\xe4\x4f\x33\x7c\x03\xdf\x07\xff\x26\xdb\x4d\x59\x18\x89\x91\xd0\xaa\xad\xea\x34\x8b\x0a\xc1\x96\x2a\x0f\x55\x8b\x8e\x9f\x83\xdc\x32\x7b\xff\xdb\x00\xfa\xb1\x6d\x34\x5c\xe5\x0b\x93\x52\x09\x1e\xe1\xae\x1f\x07\xa3\xd9\x6c\xa1\x8d\x12\x74\x65\xb5\x3c\xc5\x98\x2d\x12\x9d\xcf\x21\xaf\x35\x1d\x4b\xd7\x71\x30\xd1\x72\x11\x6a\x23\x80\x50\x54\xcb\xe0\xc2\x3f\x43\xd0\x72\x81\xf6\x56\xee\x91\x60\x82\xad\x65\xb5\x1f\xd7\xcd\x3b\xdc\x46\xaa\x6f\x97\x5e\xa7\x6a\xe7\x66\x1c\x7c\xe6\x49\x42\x46\x56\xcf\xd6\xa8\x9c\x56\x2f\x9a\xae\xb8\xcc\x8c\x75\x4c\xb5\x29\xe1\xc8\x73\xf8\x6e\x17\x29\x5b\xd9\xea\x8a\x11\xd5\x8d\xc6\x75\x19\xe8\x3a\x0f\x97\xec\x17\xe7\x49\x65\x03\xd5\x28\xd9\x45\x88\xca\x8a\xed\xd2\xb6\xbe\x0f\xce\xee\x31\x6c\xa9\xcf\x07\x12\xb7\xae\x57\x32\x4d\x92\x29\x0b\x6f\xbc\x3c\x71\x4b\x92\x76\x89\xc5\xe4\xdd\x59\x74\x85\xca\xb4\x4f\x47\x87\x80\x42\x1b\x9e\x4a\x17\x1a\x62\x83\xe9\x01\x4c\x17\xf6\x1e\xa0\x19\x69\xf9\xc0\xa4\x68\x33\x1d\xeb\x84\x53\xcb\x13\xb4\x79\x52\x08\x73\xea\x3e\x06\x9f\xde\x7e\xaa\x8a\x17\x91\x5c\x33\x4c\x12\x67\xe9\x12\x23\x27\xaa\x58\x44\xd5\x87\x77\x05\x17\x9a\x15\xfb\xcc\x69\xb2\xfb\x53\xba\x78\x53\x75\xcd\x18\x8c\xd4\x48\x2c\x51\x96\x3d\x24\x83\x72\x40\x7f\x0a\xe5\x4c\x27\xd2\x48\x95\xec\x64\x08\x33\x76\x83\x9e\x69\x6a\x06\x3b\x2b\x69\xf3\x87\x5a\x21\xe4\xd1\xe6\xde\xf0\x91\x25\x8a\x84\x27\x1b\x35\xce\xe6\x09\x61\xab\x65\x0f\x74\x14\xa6\x64\x9f\xe6\x51\x8f\x9c\xfe\xba\x80\x2f\xd6\xea\x31\x9a\x82\x8c\xb6\xd4\xe4\x60\x5e\xeb\x2b\x6f\x93\xe0\x14\x13\x6c\xe1\x53\xba\x46\xcb\xaa\x0e\x97\xf8\x81\x15\xb5\x15\xcd\x62\xf0\xe5\x9f\xce\xdc\x0b\x1b\x8b\x2c\xbb\xac\x08\x77\xdf\xe5\xa6\x76\x39\x6c\xac\xe7\x24\xdd\x5e\x59\xb7\x7d\xda\xe5\xfe\xad\x00\x3f\xc1\x24\x3e\xc7\xb8\x48\x3a\xc2\xbf\x49\x30\x85\x49\x0c\x92\x7a\x6a\x14\x21\x9a\x4c\x33\x03\xbe\x8e\x4f\xc7\x27\xb0\x50\x08\xe3\x73\xe0\xc2\x34\x11\xa6\x47\x61\xd3\x74\x89\x45\x89\x6e\xc6\x70\x8f\x10\xee\xed\xf4\x86\xcf\xf7\xc6\x44\x33\x88\xb5\x28\xee\x19\xc7\x5d\x22\xe9\xc6\xb2\xe2\x88\x5a\x1b\x6e\x43\x3c\x7e\x26\x4e\xfb\x95\xd9\x67\x43\x37\xf7\x38\x74\x27\xa8\x3f\x2f\x92\x64\xc3\x2c\x7b\x94\xf0\x74\xd2\x5a\x9b\xbf\x1d\x5d\x61\xf0\xf5\xa1\x76\x10\x15\x38\x77\x9b\x0d\xe7\x4b\x21\xac\xc6\xe6\xd2\x30\xd1\xf8\xed\x98\xfa\xda\x4f\x6f\xc7\x25\xe9\xb4\x34\xae\x61\x82\x4c\x3e\x8a\xa4\x97\x18\xed\x9d\x82\xf4\x42\x62\xb4\xb9\xa8\x50\xa4\x36\x15\x95\x4d\xb5\xe2\x49\x21\x78\x6a\x0c\x9e\x2f\xe5\xea\xc5\x60\xbf\x5a\xb0\x43\x29\x78\xb4\x12\x38\x1b\x81\x36\xba\xb6\xa6\x35\x36\x59\x15\xed\xe7\x51\x65\x22\xa2\x61\x7f\x0a\x7e\xbb\xc0\xa7\xc4\x98\xc7\xcd\x53\x15\x73\xaa\xb1\x35\xd8\x36\x9d\x72\x84\x4c\xfc\xa6\x21\xe1\xe2\xc6\xe8\x40\x1b\x03\xf8\xab\x67\x8d\xca\x13\xfd\xaf\x1e\xe8\x14\x5e\x45\x60\xea\x41\x88\x0a\xbc\x77\xf0\xc6\xef\x0d\x40\xf8\x2e\x80\xbf\x5b\x96\xda\x5c\xb5\x6f\x3d\x7a\x2e\xfa\x31\xe0\xdf\x1e\xb7\x54\xf2\xca\x99\x15\xfc\xcf\xfe\xd8\xfa\x24\xe2\xe2\xf8\xd2\xf7\x83\x9f\x89\xf7\x67\xa3\x8d\xdd\x5c\x97\xdb\xbe\xd9\x7b\xbb\x96\x58\x3f\x78\x2f\x22\xcf\x0f\x46\x6a\x27\xf2\xfa\xc9\xce\x67\x71\x8c\xa1\xc6\xa8\x3c\x8c\x93\xa8\xcc\x8b\x81\xf7\xf9\x83\x86\x62\x7b\x0b\xe4\x31\x70\xa1\xbd\x42\xae\x0f\xff\xbf\x03\x9f\x6d\x2d\xf6\xe0\x4c\x4a\xe3\x65\xc9\xb8\xd0\x1f\xcd\x59\xf3\x6a\xa6\xae\x4e\x0c\x03\x4d\xe6\x92\x0b\x1d\x7b\xbd\x75\x8a\xf1\x5e\x2d\x7d\x60\x89\x44\x16\x3d\x40\x98\x0a\x61\xb4\x24\xe6\x61\x10\xf1\xd8\x10\xa2\xce\xa9\xa9\x9a\xd6\xb3\x08\xc8\x6a\xa6\x56\x27\x3a\x55\x17\x4f\x3b\xb3\xe2\x1c\x60\xc9\x92\x05\xba\xbd\x78\xde\x8d\x1f\x0f\x4a\x7a\xad\x1a\xed\x6f\x84\xd8\x8a\xd3\xa8\xfd\xcd\x9d\xb1\x17\xdf\x3d\x99\xf0\x0a\xed\xcb\x1e\xdc\x5e\x0f\xec\x5b\x9a\x15\x8f\x8c\x47\xb2\x01\xb4\xf5\x13\x76\x0c\xd2\x20\x1e\x39\xaf\xd9\x4c\x0d\xa2\xd2\xf3\x5a\x62\x0c\xa1\x44\xf3\x56\x8b\x36\xa7\xf6\xa4\x88\x0b\x98\xa6\xfa\x1a\xee\xd8\x83\x72\x37\xa9\x59\xa3\x7f\x79\xfe\x33\x1b\xe7\x15\xaf\xed\x2f\x14\xca\x4d\x64\xb3\x89\xa0\xf2\xb7\x8e\xbb\xee\x54\x77\xda\x28\xd7\x00\xb3\xac\x30\x91\x47\x6b\x55\x3f\xd1\xfd\x97\xb9\xeb\x2d\x2f\x8e\x2f\x07\xb0\xbc\x78\x73\xf9\xc8\xfe\xa9\xe5\x88\xf1\x87\x36\xa6\x6b\x89\x34\x2e\x62\xf3\xf7\x2e\xf8\x4f\xae\xf7\xfb\xbd\x7c\x78\x09\x9d\x6e\x5b\x5c\xab\x63\x8e\xef\xd0\xde\xbc\x70\xfb\x97\x42\xfb\x9f\x44\x84\xf3\x60\x2c\x3d\xff\xc9\x5d\xc3\xc6\x56\xe8\xc7\xa1\xaa\x15\x54\xd4\xcc\xcc\x07\x96\xed\x76\xec\x68\x5e\x04\xb8\x7e\xf1\xce\x26\x15\x08\x69\xdc\xb2\x87\x7a\xb5\x7c\x52\x7b\x73\x83\x0f\x6a\x3b\x53\x1e\xed\x82\x9c\x7d\x66\x59\xbe\x1f\xcf\xf3\xf2\x75\x6e\x91\x41\xce\x57\x0c\xb9\xcf\x4c\x23\xa1\xf2\x28\x2b\x2d\x29\x53\x83\xf7\x3a\xe5\xde\xf6\x5a\xd3\x5e\xa0\x3a\xfb\x55\xcf\x73\xa8\xdb\xf2\x6a\x31\x27\xa8\x9d\x14\x73\xd6\x6a\xbc\x3f\x5c\x6f\x67\x72\x31\x7f\xd7\xfd\xe8\x93\x37\x51\x85\xd0\x1a\xe5\xac\xbb\xff\x27\xf9\xe5\x51\xb7\xfc\xb0\x8d\xe6\x66\x1f\x39\xb0\xfa\x1f\x4d\xff\xe2\x34\x5d\x60\xa1\xf1\xbd\x4f\xf9\x0d\xa0\xbe\x0f\x3e\xa4\xb3\x19\xd7\xde\x6e\x9f\xf6\x55\xcf\xea\x9f\x9b\x36\xbf\x33\xb5\xf9\x5a\xec\x80\x9d\xef\x3e\x05\x4f\xba\x59\xb7\xeb\x7c\x8b\xfa\xe8\xc7\xbb\x6e\xc3\x96\xb9\xdf\x05\xb5\x17\x92\xcd\x45\x24\xef\xd2\xda\xca\x82\xf5\x48\x2d\xf0\xaa\x00\x5c\x69\xef\xd1\x21\xe4\xbf\xb9\x32\xdf\x8d\xdd\x88\xbb\x54\x00\xd3\xa0\xaf\xb9\x82\x79\xca\x85\x2e\x77\xb3\x75\xaf\x57\xb6\xfe\x37\x00\x00\xff\xff\x07\x5f\xc4\xe9\xa8\x2c\x00\x00") func templateDialectSqlUpdateTmplBytes() ([]byte, error) { return bindataRead( @@ -679,7 +679,7 @@ func templateDialectSqlUpdateTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/sql/update.tmpl", size: 11362, mode: os.FileMode(420), modTime: time.Unix(1566293398, 0)} + info := bindataFileInfo{name: "template/dialect/sql/update.tmpl", size: 11432, mode: os.FileMode(420), modTime: time.Unix(1566909124, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -764,7 +764,7 @@ func templateImportTmpl() (*asset, error) { return a, nil } -var _templateMetaTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x8c\x55\x4d\x6f\xe3\x36\x10\x3d\xcb\xbf\x62\x4a\x68\x01\x1b\x48\xe4\xf6\x9a\xc2\xa7\x06\x45\x03\x14\x45\x81\x06\xbd\x04\xc1\x82\x96\x86\x31\x77\x69\x4a\x25\x69\x6f\x02\x81\xff\xbd\x18\x7e\x48\xa2\xeb\x6c\x73\xb2\x48\x0e\xdf\xbc\x37\xf3\x86\x1e\x47\xe8\x50\x48\x8d\xc0\x8e\xe8\x38\x03\xef\x57\xab\x71\xbc\x85\x6f\xd2\x1d\x00\x5f\x1d\xea\x0e\x6a\x60\x7f\xf2\xf6\x2b\x7f\x41\x06\x75\x93\x3e\xe1\xd6\xfb\x55\x35\x8e\xe0\xf0\x38\x28\xee\x10\xd8\x01\x79\x87\x86\x41\x43\x28\xe3\x08\x74\x37\xe2\x2d\x82\xe4\x71\xe8\x8d\x63\x50\x87\xa3\xb6\xd7\xd6\xc1\x7a\x55\x6d\xb7\xf0\x3b\xdf\xa3\x82\x43\xaf\x3a\x0b\xee\x80\x60\x9d\x91\xfa\x05\x54\xd8\xee\x50\xf7\x8e\x96\x74\x32\x8e\xa0\xfa\x6f\x68\xa0\x6e\xfe\xe0\x47\x04\xef\xc1\xbd\x0d\x08\x52\x87\xe3\x8e\x3b\xbe\xe7\x16\x9b\x55\x15\x31\x77\xc0\xc6\x11\xea\x26\xae\xbc\x67\x21\x5f\xd8\x7a\xb8\x6f\x7e\x21\x0e\x5c\x3b\x82\xf9\x4f\xf6\x22\xaf\xec\x40\x48\x54\xdd\x95\x44\xd7\xc0\x62\x5a\xab\xf9\x57\x8c\x87\x89\x2c\x0b\xe1\x86\xeb\x17\x84\xfa\xf3\x0d\xd4\x02\xee\x76\x50\x37\xbf\x12\xb6\xa5\xc2\x12\x5a\xcc\x44\x07\x62\x46\x0d\x45\xcf\xe4\x63\xc4\xff\xb2\x9e\xab\x25\xa6\x72\x9d\xd1\x38\x7c\x85\xc1\xf4\x03\x1a\xf7\x76\x45\x50\x55\x64\x28\xa4\x88\x52\x08\xb5\x39\x9b\x61\x21\xca\xba\xde\x90\x4f\x82\xb4\xbf\xd2\x22\xd0\x27\x64\x77\x1c\x14\x1d\x0d\x46\x6a\x27\x80\x75\x92\x2b\x6c\xdd\xf6\x93\xdd\x92\x11\xb7\x6d\x52\x6c\xd9\x8c\x94\x2f\xbf\x4e\x6e\x8a\x30\xc1\x4a\xd5\x6c\xb8\x4d\xb0\xdc\x47\xa8\x7c\x84\xc9\x99\x1b\xc9\xf7\x0a\x2f\x99\x8c\x23\x48\x01\x07\x6e\x1f\x4b\x36\x1f\x65\x59\x0e\x88\x14\xd0\x93\x9f\x7f\xe3\xf6\x1e\x05\x3f\x29\x17\x17\x7f\x73\x25\x3b\xee\x7a\x63\x29\xf2\xcc\x0d\x0d\x8b\x88\x46\xd9\x51\x6b\xa9\x5d\xa4\xaa\x3d\xe0\x91\x83\xf7\x4d\x70\x62\x6a\xd0\xe8\x93\xa9\xd6\x9b\x65\x7b\xe4\x35\xcf\x05\xd6\xb7\x50\x77\x68\xdb\xa9\x1e\xc0\x68\xc9\x60\x3d\x70\xdb\x72\x95\x7b\xbf\x99\x2e\x64\xe2\xa2\x60\x2e\x9a\x05\xef\x18\x9a\x4d\x1b\xe0\xbd\x07\x99\x0c\x1b\x79\xd3\xae\x91\x83\xeb\x0d\x88\xde\x44\x77\x4f\x66\x0d\x72\xc9\x92\xd5\x12\x60\x17\xf7\xed\x13\x6d\x4a\xf0\xfe\xb9\xb9\x9f\x50\x48\x6f\xe1\xcd\x44\xb5\xe4\x19\x89\x25\xd5\x71\x2b\xce\x5b\x0a\x08\x04\x2e\xe9\xe7\xab\x8b\xa9\xcb\x9b\x67\xae\x4e\x18\x04\xa4\xb9\xfb\x8e\x88\x09\x66\xb7\x2c\x4b\xce\xdc\xac\x27\xbe\x0f\xf6\x51\x06\x08\x71\xd2\xed\x7a\x03\x93\x6f\x22\xfe\x23\x3d\x7c\xde\x5f\xd3\x1b\xde\xf0\xab\xbd\xa0\xab\x9a\x88\x45\xb9\x53\xc0\xf2\x3c\xbc\xa8\x77\x3b\x98\x06\x83\xf2\xc3\xfa\x93\xdd\x00\x1a\xd3\x1b\x36\x65\x2f\x2b\xa4\x93\x60\x69\x81\x53\x45\x12\x72\xae\x0a\x2b\xca\xc2\x52\x5d\xe0\xc1\xd1\x85\x96\x2b\x85\x1d\xec\xdf\x42\xe8\xfe\x24\x55\x87\xc6\xc2\x1e\x45\x6f\x10\x2c\x3f\x63\xae\xa0\x14\x80\xff\x5c\x88\xfb\x29\x33\xa9\x96\x3c\xca\xfa\xce\xe1\x4f\x3f\x3e\x87\x2a\x47\xa1\xb1\x82\xa1\x84\xca\xe2\x3b\x40\x73\x07\xf2\x25\x18\x43\x58\x75\x9e\x59\xdc\xbd\x97\x30\x46\x0a\x1d\x42\x9e\x9a\xa6\x79\x0e\x78\x65\x1b\x63\x6d\x33\x6c\xf0\x66\x1a\xda\x2f\x37\x50\x6b\xba\xfa\x9a\x36\x0a\xed\x89\x6f\x41\x25\x4c\xc6\x97\x30\x19\xeb\x77\x53\x6d\x6e\x16\xa9\xd2\x83\x14\xd6\xe9\xc7\xa0\x3b\x19\x0d\x8b\xfb\xd9\xd1\xdf\x25\x4e\xed\xfe\x7c\x03\x22\x30\x8e\x84\x49\x79\x3e\xae\xa8\x7f\xc6\xd0\xa1\xd0\x25\xee\xe6\xe7\x70\xf2\xc3\x0e\xb4\x54\xf3\x85\x4c\x04\x8d\xc9\x5b\x59\x72\xfe\x4d\x11\x5a\xaa\xa5\x02\xbf\x9e\x3a\xbb\x1c\x8e\xe5\xbf\x56\xfe\xde\x5c\x3c\xca\xf1\xf3\xdf\x00\x00\x00\xff\xff\xd8\x31\x19\x57\x24\x09\x00\x00") +var _templateMetaTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xac\x55\x5d\x6b\x23\x37\x14\x7d\x1e\xff\x8a\x5b\x31\x0b\x36\x24\xe3\xf6\x35\xc5\x4f\x0d\xa5\x81\x52\x0a\x4d\xfb\x12\xc2\x22\xcf\x5c\xc5\xda\x95\x35\x53\x49\xf6\x26\x0c\xfa\xef\xe5\xea\x63\x3c\x72\xed\x6d\x68\xfb\x64\x4b\xba\x1f\xe7\x9c\x7b\xa4\x19\x47\xe8\x50\x48\x8d\xc0\xf6\xe8\x38\x03\xef\x17\x8b\x71\xbc\x85\x2f\xd2\xed\x00\x5f\x1d\xea\x0e\x6a\x60\xbf\xf2\xf6\x33\x7f\x41\x06\x75\x93\xfe\xc2\xad\xf7\x8b\x6a\x1c\xc1\xe1\x7e\x50\xdc\x21\xb0\x1d\xf2\x0e\x0d\x83\x86\xaa\x8c\x23\x50\x6e\xac\x37\x0b\x92\xfb\xa1\x37\x8e\x41\x1d\x8e\xda\x5e\x5b\x07\xcb\x45\xb5\x5e\xc3\xcf\x7c\x8b\x0a\x76\xbd\xea\x2c\xb8\x1d\x82\x75\x46\xea\x17\x50\x61\xbb\x43\xdd\x3b\x5a\xd2\xc9\x38\x82\xea\xbf\xa0\x81\xba\xf9\x85\xef\x11\xbc\x07\xf7\x36\x20\x48\x1d\x8e\x3b\xee\xf8\x96\x5b\x6c\x16\x55\xac\xb9\x01\x36\x8e\x50\x37\x71\xe5\x3d\x0b\xfd\xc2\xd6\xc3\x7d\xf3\x03\x61\xe0\xda\x51\x99\xbf\x75\x2f\xfa\xca\x0e\x84\x44\xd5\x5d\x68\x74\xa9\x58\x6c\x6b\x35\xff\x8c\xf1\x30\x81\x65\x21\xdc\x70\xfd\x82\x50\x7f\xbc\x81\x5a\xc0\xdd\x06\xea\xe6\x47\xaa\x6d\x49\x58\xaa\x16\x3b\xd1\x81\x38\x55\x0d\xa2\x67\xf0\x31\xe2\x1f\x51\x9f\xd4\x12\x93\x5c\x47\x34\x0e\x5f\x61\x30\xfd\x80\xc6\xbd\x5d\x20\x54\x15\x1d\x0a\x2a\xa2\x24\x42\x63\xce\x66\x98\x91\xb2\xae\x37\xe4\x93\x40\xed\xb7\xb4\x08\xf0\xa9\xb2\xdb\x0f\x8a\x8e\x06\x23\xb5\x13\xc0\x3a\xc9\x15\xb6\x6e\xfd\xc1\xae\xc9\x88\xeb\x36\x31\xb6\xec\x54\x29\x27\xbf\x4e\x6e\x8a\x65\x82\x95\xaa\x93\xe1\x56\xc1\x72\xef\x81\xf2\x1e\x24\x47\x6e\x24\xdf\x2a\x3c\x47\x32\x8e\x20\x05\xec\xb8\x7d\x2c\xd1\xbc\x17\x65\x79\x41\xa4\x80\x9e\xfc\xfc\x13\xb7\xf7\x28\xf8\x41\xb9\xb8\xf8\x83\x2b\xd9\x71\xd7\x1b\x4b\x91\x47\x6e\xe8\xb2\x88\x68\x94\x0d\x8d\x96\xc6\x45\xac\xda\x1d\xee\x39\x78\xdf\x04\x27\xa6\x01\x8d\x3e\x99\x6a\xb9\x9a\x8f\x47\x5e\xf2\x5c\x40\x7d\x0b\x75\x87\xb6\x9d\xf4\x00\x46\x4b\x06\xcb\x81\xdb\x96\xab\x3c\xfb\xd5\x94\x90\x81\x8b\x66\x82\x2d\x9a\xdf\x87\x8e\x3b\x9c\x6d\xcc\x58\xc4\xc4\x6c\xe1\xd0\xcc\x7b\x90\xc9\xbe\x91\x05\xed\x1a\x39\xb8\xde\x80\xe8\x4d\xf4\xfa\x64\xdd\x40\x9e\x0c\x5a\xcd\x0b\x6c\xe2\xbe\x7d\xa2\x4d\x09\xde\x3f\x37\xf7\x53\x15\x62\x5f\x38\x35\x01\x9f\xa1\x8e\xa8\x92\x00\x71\x2b\x5e\xbd\x14\x10\xba\x9f\x63\xcf\xa9\xb3\x0b\x98\x37\x8f\x5c\x1d\x10\x7a\x0d\xad\x41\xee\x64\xaf\x03\x93\x74\x1d\xbf\xc2\x66\x2a\xb9\x99\xeb\x93\x51\x34\xcb\x09\xf8\x83\x7d\x94\xa1\x84\x38\xe8\x76\xb9\x82\xc9\x4e\xb1\xfe\x23\xbd\x87\xde\x5f\x27\x5e\xce\xe8\x2a\xfd\x22\xec\x5f\x8b\x70\x08\x55\xfe\x9b\x04\x05\x92\xff\x45\x88\xf0\x8d\xbb\xe8\x4e\x4a\xd5\x04\x2f\x8a\x30\x05\xcc\xcf\xc3\x17\xe7\x6e\x03\xd3\xc3\x41\xfd\x61\xf9\xc1\xae\x00\x8d\xe9\x0d\x9b\xba\x97\x8a\xe9\x44\x5b\x5a\xe0\xa4\x50\xaa\x9c\xb5\x61\x85\x38\x2c\xa9\x03\x0f\x8e\x12\x5a\xae\x14\x76\xb0\x7d\x0b\xa1\xdb\x83\x54\x1d\x1a\x0b\x5b\x14\xbd\x41\xb0\xfc\x88\x59\x47\x29\x00\xff\x3c\x23\xf7\x5d\x46\x52\xcd\x71\x94\x2a\x9f\xc2\x9f\xbe\x7d\x0e\x2a\x47\xa2\x51\xc1\x20\xa1\xb2\x78\xa5\xd0\x69\x02\x39\x09\xc6\x10\x56\x1d\x4f\x28\xee\xae\x35\x8c\x91\x42\x87\x90\xa7\xa6\x69\x9e\x43\xbd\x72\x8c\x51\xdb\x5c\x36\x38\x36\x3d\x6a\x9f\x6e\xa0\xd6\x94\xfa\x9a\x36\x0a\xee\x09\x6f\x01\x25\xbc\x15\x9f\xc2\x5b\xb1\xbc\xda\x6a\x75\x33\x6b\x95\x1e\xec\xb0\x4e\x3f\x06\xdd\xc1\x68\x98\xe5\x67\x5f\x7f\x15\x38\x8d\xfb\xe3\x0d\x88\x80\x38\x02\x26\xe6\xf9\xb8\xa2\xf9\x19\x43\x87\x42\x97\x75\x57\xdf\x87\x93\x6f\x36\xa0\xa5\x3a\x25\x64\x20\x68\x4c\xde\xca\x94\xf3\x6f\x8a\xd0\x52\xcd\x19\xf8\xe5\x34\xd9\xf9\xe5\x98\x7f\xd5\xf3\xff\xd5\xd9\x47\x2b\xfe\xfd\x2b\x00\x00\xff\xff\x74\x99\x50\x93\x44\x0a\x00\x00") func templateMetaTmplBytes() ([]byte, error) { return bindataRead( @@ -779,7 +779,7 @@ func templateMetaTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/meta.tmpl", size: 2340, mode: os.FileMode(420), modTime: time.Unix(1566835376, 0)} + info := bindataFileInfo{name: "template/meta.tmpl", size: 2628, mode: os.FileMode(420), modTime: time.Unix(1566905894, 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 732ee580b..c144921fc 100644 --- a/entc/gen/template/builder/create.tmpl +++ b/entc/gen/template/builder/create.tmpl @@ -26,9 +26,9 @@ type {{ $builder }} struct { // Save creates the {{ $.Name }} in the database. func ({{ $receiver }} *{{ $builder }}) Save(ctx context.Context) (*{{ $.Name }}, error) { {{ range $_, $f := $.Fields -}} - {{- if or $f.HasDefault (not $f.Optional) -}} + {{- if or $f.Default (not $f.Optional) -}} if {{ $receiver }}.{{ $f.StructField }} == nil { - {{ if $f.HasDefault -}} + {{ if $f.Default -}} v := {{ $.Package }}.{{ $f.DefaultName }}{{ if $f.IsTime }}(){{ end }} {{ $receiver }}.{{ $f.StructField }} = &v {{ else -}} @@ -38,7 +38,7 @@ func ({{ $receiver }} *{{ $builder }}) Save(ctx context.Context) (*{{ $.Name }}, {{ end -}} {{ with $f.Validators -}} {{/* add nullable check only for optional fields without default value */ -}} - {{ $nullable := and $f.Optional (not $f.HasDefault) -}} + {{ $nullable := and $f.Optional (not $f.Default) -}} {{- if $nullable }} if {{ $receiver }}.{{ $f.StructField }} != nil { {{ end -}} if err := {{ $.Package }}.{{ $f.Validator }}(*{{ $receiver }}.{{ $f.StructField }}); err != nil { return nil, fmt.Errorf("{{ $pkg }}: validator failed for field \"{{ $f.Name }}\": %v", err) diff --git a/entc/gen/template/builder/setter.tmpl b/entc/gen/template/builder/setter.tmpl index 6ab61f217..2bdb71d7d 100644 --- a/entc/gen/template/builder/setter.tmpl +++ b/entc/gen/template/builder/setter.tmpl @@ -2,7 +2,9 @@ {{ $builder := pascal $.Scope.Builder }} {{ $receiver := receiver $builder }} {{ $fields := $.Fields }} +{{ $updater := false }} {{- if or (hasSuffix $builder "Update") (hasSuffix $builder "UpdateOne") }} + {{ $updater := true }} {{ $fields = $.MutableFields }} {{- end }} @@ -15,7 +17,7 @@ return {{ $receiver }} } {{/* avoid generting nillable setters for slices because the nil value for slice is valid */}} - {{ if and (not $f.Type.Slice) (or $f.Optional $f.Nillable $f.HasDefault) }} + {{ if and (not $f.Type.Slice) (or $f.Optional $f.Default) (not (and $updater $f.UpdateDefault)) }} {{ $nillableFunc := print "SetNillable" (pascal $f.Name) }} // {{ $nillableFunc }} sets the {{ $f.Name }} field if the given value is not nil. func ({{ $receiver }} *{{ $builder }}) {{ $nillableFunc }}({{ $p }} *{{ $f.Type }}) *{{ $builder }} { diff --git a/entc/gen/template/builder/update.tmpl b/entc/gen/template/builder/update.tmpl index 091d1d7be..7fe3a31dc 100644 --- a/entc/gen/template/builder/update.tmpl +++ b/entc/gen/template/builder/update.tmpl @@ -33,7 +33,7 @@ func ({{ $receiver}} *{{ $builder }}) Where(ps ...predicate.{{ $.Name }}) *{{ $b // Save executes the query and returns the number of rows/vertices matched by this operation. func ({{ $receiver }} *{{ $builder }}) Save(ctx context.Context) (int, error) { {{ with extend $ "Receiver" $receiver "Package" $pkg "ZeroValue" 0 -}} - {{ template "update/validators" . }} + {{ template "update/save" . }} {{- end -}} {{- if $multistorage -}} switch {{ $receiver }}.driver.Dialect() { @@ -100,7 +100,7 @@ type {{ $onebuilder }} struct { // Save executes the query and returns the updated entity. func ({{ $receiver }} *{{ $onebuilder }} ) Save(ctx context.Context) (*{{ $.Name }}, error) { {{ with extend $ "Receiver" $receiver "Package" $pkg "ZeroValue" "nil" -}} - {{ template "update/validators" . }} + {{ template "update/save" . }} {{- end -}} {{- if $multistorage -}} switch {{ $receiver }}.driver.Dialect() { @@ -149,8 +149,10 @@ func ({{ $receiver }} *{{ $onebuilder }}) ExecX(ctx context.Context) { {{/* shared struct fields between the two updaters */}} {{ define "update/fields"}} -{{ range $_, $f := $.MutableFields }} - {{- $f.StructField }} *{{ $f.Type }} +{{ range $_, $f := $.Fields }} + {{- if or (not $f.Immutable) $f.UpdateDefault }} + {{- $f.StructField }} *{{ $f.Type }} + {{- end }} {{ end }} {{- range $_, $e := $.Edges }} {{- $e.StructField }} map[{{ $.ID.Type }}]struct{} @@ -203,12 +205,18 @@ func ({{ $receiver }} *{{ $onebuilder }}) ExecX(ctx context.Context) { {{ end }} {{ end }} -{{/* shared templates for validators. */}} -{{ define "update/validators" }} +{{/* shared template for the save method of the 2 builders */}} +{{ define "update/save" }} {{- $pkg := .Scope.Package -}} {{- $zero := .Scope.ZeroValue }} {{- $receiver := .Scope.Receiver -}} {{- range $_, $f := $.Fields -}} + {{- if $f.UpdateDefault -}} + if {{ $receiver }}.{{ $f.StructField }} == nil { + v := {{ $.Package }}.{{ $f.UpdateDefaultName }}{{ if $f.IsTime }}(){{ end }} + {{ $receiver }}.{{ $f.StructField }} = &v + } + {{ end -}} {{ with $f.Validators -}} if {{ $receiver }}.{{ $f.StructField }} != nil { if err := {{ $.Package }}.{{ $f.Validator }}(*{{ $receiver }}.{{ $f.StructField }}); err != nil { diff --git a/entc/gen/template/dialect/gremlin/decode.tmpl b/entc/gen/template/dialect/gremlin/decode.tmpl index 7bce0bfa4..b4b2a3a32 100644 --- a/entc/gen/template/dialect/gremlin/decode.tmpl +++ b/entc/gen/template/dialect/gremlin/decode.tmpl @@ -49,7 +49,7 @@ func ({{ $receiver }} *{{ $slice }}) FromResponse(res *gremlin.Response) error { *{{ $receiver }} = append(*{{ $receiver }}, &{{ $.Name }}{ ID: v.ID, {{ range $_, $f := $.Fields }} - {{- pascal $f.Name }}: {{- if $f.IsTime }}time.Unix(v.{{ pascal $f.Name }}, 0) {{ else }}v.{{ pascal $f.Name }}{{ end }}, + {{- pascal $f.Name }}: {{- if $f.IsTime }}time.Unix(0, v.{{ pascal $f.Name }}) {{ else }}v.{{ pascal $f.Name }}{{ end }}, {{ end -}} }) } diff --git a/entc/gen/template/dialect/gremlin/update.tmpl b/entc/gen/template/dialect/gremlin/update.tmpl index 2795de069..3d61e578a 100644 --- a/entc/gen/template/dialect/gremlin/update.tmpl +++ b/entc/gen/template/dialect/gremlin/update.tmpl @@ -50,16 +50,18 @@ func ({{ $receiver }} *{{ $builder }}) gremlin({{ if $one }}id {{ $.ID.Type }}{{ {{ end }} trs []*dsl.Traversal ) - {{- range $_, $f := $.MutableFields }} - if {{ $receiver }}.{{ $f.StructField }} != nil { - {{- if $f.Unique }} - constraints = append(constraints, &constraint{ - pred: g.V().Has({{ $.Package }}.Label, {{ $.Package }}.{{ $f.Constant }}, *{{ $receiver }}.{{ $f.StructField }}).Count(), - test: __.Is(p.NEQ(0)).Constant(NewErrUniqueField({{ $.Package }}.Label, {{ $.Package }}.{{ $f.Constant }}, *{{ $receiver }}.{{ $f.StructField }})), - }) + {{- range $_, $f := $.Fields }} + {{- if or (not $f.Immutable) $f.UpdateDefault }} + if {{ $receiver }}.{{ $f.StructField }} != nil { + {{- if $f.Unique }} + constraints = append(constraints, &constraint{ + pred: g.V().Has({{ $.Package }}.Label, {{ $.Package }}.{{ $f.Constant }}, *{{ $receiver }}.{{ $f.StructField }}).Count(), + test: __.Is(p.NEQ(0)).Constant(NewErrUniqueField({{ $.Package }}.Label, {{ $.Package }}.{{ $f.Constant }}, *{{ $receiver }}.{{ $f.StructField }})), + }) + {{- end }} + v.Property(dsl.Single, {{ $.Package }}.{{ $f.Constant }}, *{{ $receiver }}.{{ $f.StructField }}) + } {{- end }} - v.Property(dsl.Single, {{ $.Package }}.{{ $f.Constant }}, *{{ $receiver }}.{{ $f.StructField }}) - } {{- end }} {{- range $_, $e := $.Edges }} {{- $direction := "In" }} diff --git a/entc/gen/template/dialect/sql/update.tmpl b/entc/gen/template/dialect/sql/update.tmpl index e40b84e10..f83451a0f 100644 --- a/entc/gen/template/dialect/sql/update.tmpl +++ b/entc/gen/template/dialect/sql/update.tmpl @@ -60,18 +60,20 @@ func ({{ $receiver }} *{{ $builder }}) sqlSave(ctx context.Context) ({{ $ret }} res sql.Result builder = sql.Update({{ $.Package }}.Table).Where(sql.InInts({{ $.Package }}.{{ $.ID.Constant }}, ids...)) ) - {{- range $_, $f := $.MutableFields }} - if {{ $receiver }}.{{ $f.StructField }} != nil { - update = true - builder.Set({{ $.Package }}.{{ $f.Constant }}, *{{ $receiver }}.{{ $f.StructField }}) - {{- if $one }} - {{- if $f.Nillable }} - {{ $.Receiver }}.{{ pascal $f.Name }} = {{ $receiver }}.{{ $f.StructField }} - {{- else }} - {{ $.Receiver }}.{{ pascal $f.Name }} = *{{ $receiver }}.{{ $f.StructField }} + {{- range $_, $f := $.Fields }} + {{- if or (not $f.Immutable) $f.UpdateDefault }} + if {{ $receiver }}.{{ $f.StructField }} != nil { + update = true + builder.Set({{ $.Package }}.{{ $f.Constant }}, *{{ $receiver }}.{{ $f.StructField }}) + {{- if $one }} + {{- if $f.Nillable }} + {{ $.Receiver }}.{{ pascal $f.Name }} = {{ $receiver }}.{{ $f.StructField }} + {{- else }} + {{ $.Receiver }}.{{ pascal $f.Name }} = *{{ $receiver }}.{{ $f.StructField }} + {{- end }} {{- end }} - {{- end }} - } + } + {{- end }} {{- end }} if update { query, args := builder.Query() diff --git a/entc/gen/template/meta.tmpl b/entc/gen/template/meta.tmpl index 127b86cda..8b8cd08ba 100644 --- a/entc/gen/template/meta.tmpl +++ b/entc/gen/template/meta.tmpl @@ -33,15 +33,20 @@ var ( fields = {{ base $.Schema }}.{{ $.Name }}{}.Fields() {{ range $i, $f := $.Fields -}} {{- $desc := print "desc" (pascal $f.Name) -}} - {{ if or $f.HasDefault $f.Validators -}} + {{ if or $f.Default $f.UpdateDefault $f.Validators -}} // {{ $desc }} is the schema descriptor for {{ $f.Name }} field. {{ $desc }} = fields[{{ $i }}].Descriptor() {{ end -}} - {{ if $f.HasDefault }} + {{ if $f.Default }} {{- $default := $f.DefaultName -}} - // {{ $default }} holds the default value for the {{ $f.Name }} field. + // {{ $default }} holds the default value on creation for the {{ $f.Name }} field. {{ $default }} = {{ $desc }}.Default.({{ if $f.IsTime }}func() {{ end }}{{ $f.Type }}) {{ end -}} + {{ if $f.UpdateDefault }} + {{- $default := $f.UpdateDefaultName -}} + // {{ $default }} holds the default value on update for the {{ $f.Name }} field. + {{ $default }} = {{ $desc }}.UpdateDefault.({{ if $f.IsTime }}func() {{ end }}{{ $f.Type }}) + {{ end -}} {{ with $f.Validators -}} {{ $name := $f.Validator -}} {{ $type := printf "func (%s) error" $f.Type -}} diff --git a/entc/gen/type.go b/entc/gen/type.go index a6a8f308e..1559d44e6 100644 --- a/entc/gen/type.go +++ b/entc/gen/type.go @@ -52,8 +52,10 @@ type ( // Nillable indicates that this field can be null in the // database and pointer in the generated entities. Nillable bool - // HasDefault indicates if this field a default value. - HasDefault bool + // Default indicates if this field has a default value for creation. + Default bool + // UpdateDefault indicates if this field has a default value for update. + UpdateDefault bool // Immutable indicates is this field cannot be updated. Immutable bool // StructTag of the field. default to "json". @@ -142,16 +144,17 @@ func NewType(c Config, schema *load.Schema) (*Type, error) { return nil, fmt.Errorf("field %q redeclared for type %q", f.Name, typ.Name) } typ.Fields[i] = &Field{ - def: f, - Name: f.Name, - Type: f.Type, - Unique: f.Unique, - Nillable: f.Nillable, - Optional: f.Optional, - HasDefault: f.Default, - Immutable: f.Immutable, - StructTag: structTag(f.Name, f.Tag), - Validators: f.Validators, + def: f, + Name: f.Name, + Type: f.Type, + Unique: f.Unique, + Nillable: f.Nillable, + Optional: f.Optional, + Default: f.Default, + UpdateDefault: f.UpdateDefault, + Immutable: f.Immutable, + StructTag: structTag(f.Name, f.Tag), + Validators: f.Validators, } typ.fields[f.Name] = typ.Fields[i] } @@ -194,10 +197,20 @@ func (t Type) HasValidators() bool { return false } -// HasDefault indicates if any of this type's fields has default value. +// HasDefault indicates if any of this type's fields has default value on creation. func (t Type) HasDefault() bool { for _, f := range t.Fields { - if f.HasDefault { + if f.Default { + return true + } + } + return false +} + +// HasUpdateDefault indicates if any of this type's fields has default value on update. +func (t Type) HasUpdateDefault() bool { + for _, f := range t.Fields { + if f.Default { return true } } @@ -331,6 +344,9 @@ func (f Field) Constant() string { return "Field" + pascal(f.Name) } // DefaultName returns the variable name of the default value of this field. func (f Field) DefaultName() string { return "Default" + pascal(f.Name) } +// UpdateDefaultName returns the variable name of the update default value of this field. +func (f Field) UpdateDefaultName() string { return "Update" + f.DefaultName() } + // StructField returns the struct member of the field. func (f Field) StructField() string { if token.Lookup(f.Name).IsKeyword() { @@ -404,7 +420,7 @@ func (f Field) Column() *schema.Column { c.Charset = *f.def.Charset } } - if f.HasDefault && !f.IsTime() { + if f.Default && !f.IsTime() { // since this column is used only for codegen, the actual default // value is imported by the migrate package and used directly. c.Default = true diff --git a/entc/integration/ent/card.go b/entc/integration/ent/card.go index 94423d06d..5a2d7740f 100644 --- a/entc/integration/ent/card.go +++ b/entc/integration/ent/card.go @@ -21,6 +21,8 @@ type Card struct { Number string `json:"number,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt time.Time `json:"created_at,omitempty"` + // UpdatedAt holds the value of the "updated_at" field. + UpdatedAt time.Time `json:"updated_at,omitempty"` } // FromRows scans the sql response data into Card. @@ -29,18 +31,21 @@ func (c *Card) FromRows(rows *sql.Rows) error { ID int Number sql.NullString CreatedAt sql.NullTime + UpdatedAt sql.NullTime } // the order here should be the same as in the `card.Columns`. if err := rows.Scan( &vc.ID, &vc.Number, &vc.CreatedAt, + &vc.UpdatedAt, ); err != nil { return err } c.ID = strconv.Itoa(vc.ID) c.Number = vc.Number.String c.CreatedAt = vc.CreatedAt.Time + c.UpdatedAt = vc.UpdatedAt.Time return nil } @@ -54,6 +59,7 @@ func (c *Card) FromResponse(res *gremlin.Response) error { ID string `json:"id,omitempty"` Number string `json:"number,omitempty"` CreatedAt int64 `json:"created_at,omitempty"` + UpdatedAt int64 `json:"updated_at,omitempty"` } if err := vmap.Decode(&vc); err != nil { return err @@ -61,6 +67,7 @@ func (c *Card) FromResponse(res *gremlin.Response) error { c.ID = vc.ID c.Number = vc.Number c.CreatedAt = time.Unix(vc.CreatedAt, 0) + c.UpdatedAt = time.Unix(vc.UpdatedAt, 0) return nil } @@ -94,6 +101,7 @@ func (c *Card) String() string { buf.WriteString(fmt.Sprintf("id=%v", c.ID)) buf.WriteString(fmt.Sprintf(", number=%v", c.Number)) buf.WriteString(fmt.Sprintf(", created_at=%v", c.CreatedAt)) + buf.WriteString(fmt.Sprintf(", updated_at=%v", c.UpdatedAt)) buf.WriteString(")") return buf.String() } @@ -129,6 +137,7 @@ func (c *Cards) FromResponse(res *gremlin.Response) error { ID string `json:"id,omitempty"` Number string `json:"number,omitempty"` CreatedAt int64 `json:"created_at,omitempty"` + UpdatedAt int64 `json:"updated_at,omitempty"` } if err := vmap.Decode(&vc); err != nil { return err @@ -137,7 +146,8 @@ func (c *Cards) FromResponse(res *gremlin.Response) error { *c = append(*c, &Card{ ID: v.ID, Number: v.Number, - CreatedAt: time.Unix(v.CreatedAt, 0), + CreatedAt: time.Unix(0, v.CreatedAt), + UpdatedAt: time.Unix(0, v.UpdatedAt), }) } return nil diff --git a/entc/integration/ent/card/card.go b/entc/integration/ent/card/card.go index 364ca143a..38a1b7b64 100644 --- a/entc/integration/ent/card/card.go +++ b/entc/integration/ent/card/card.go @@ -17,6 +17,8 @@ const ( FieldNumber = "number" // FieldCreatedAt holds the string denoting the created_at vertex property in the database. FieldCreatedAt = "created_at" + // FieldUpdatedAt holds the string denoting the updated_at vertex property in the database. + FieldUpdatedAt = "updated_at" // Table holds the table name of the card in the database. Table = "cards" @@ -37,6 +39,7 @@ var Columns = []string{ FieldID, FieldNumber, FieldCreatedAt, + FieldUpdatedAt, } var ( @@ -47,6 +50,12 @@ var ( NumberValidator = descNumber.Validators[0].(func(string) error) // descCreatedAt is the schema descriptor for created_at field. descCreatedAt = fields[1].Descriptor() - // DefaultCreatedAt holds the default value for the created_at field. + // DefaultCreatedAt holds the default value on creation for the created_at field. DefaultCreatedAt = descCreatedAt.Default.(func() time.Time) + // descUpdatedAt is the schema descriptor for updated_at field. + descUpdatedAt = fields[2].Descriptor() + // DefaultUpdatedAt holds the default value on creation for the updated_at field. + DefaultUpdatedAt = descUpdatedAt.Default.(func() time.Time) + // UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. + UpdateDefaultUpdatedAt = descUpdatedAt.UpdateDefault.(func() time.Time) ) diff --git a/entc/integration/ent/card/where.go b/entc/integration/ent/card/where.go index 17b2c9082..24613470d 100644 --- a/entc/integration/ent/card/where.go +++ b/entc/integration/ent/card/where.go @@ -181,6 +181,18 @@ func CreatedAt(v time.Time) predicate.Card { ) } +// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ. +func UpdatedAt(v time.Time) predicate.Card { + return predicate.CardPerDialect( + func(s *sql.Selector) { + s.Where(sql.EQ(s.C(FieldUpdatedAt), v)) + }, + func(t *dsl.Traversal) { + t.Has(Label, FieldUpdatedAt, p.EQ(v)) + }, + ) +} + // NumberEQ applies the EQ predicate on the "number" field. func NumberEQ(v string) predicate.Card { return predicate.CardPerDialect( @@ -449,6 +461,122 @@ func CreatedAtNotIn(vs ...time.Time) predicate.Card { ) } +// UpdatedAtEQ applies the EQ predicate on the "updated_at" field. +func UpdatedAtEQ(v time.Time) predicate.Card { + return predicate.CardPerDialect( + func(s *sql.Selector) { + s.Where(sql.EQ(s.C(FieldUpdatedAt), v)) + }, + func(t *dsl.Traversal) { + t.Has(Label, FieldUpdatedAt, p.EQ(v)) + }, + ) +} + +// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. +func UpdatedAtNEQ(v time.Time) predicate.Card { + return predicate.CardPerDialect( + func(s *sql.Selector) { + s.Where(sql.NEQ(s.C(FieldUpdatedAt), v)) + }, + func(t *dsl.Traversal) { + t.Has(Label, FieldUpdatedAt, p.NEQ(v)) + }, + ) +} + +// UpdatedAtGT applies the GT predicate on the "updated_at" field. +func UpdatedAtGT(v time.Time) predicate.Card { + return predicate.CardPerDialect( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldUpdatedAt), v)) + }, + func(t *dsl.Traversal) { + t.Has(Label, FieldUpdatedAt, p.GT(v)) + }, + ) +} + +// UpdatedAtGTE applies the GTE predicate on the "updated_at" field. +func UpdatedAtGTE(v time.Time) predicate.Card { + return predicate.CardPerDialect( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldUpdatedAt), v)) + }, + func(t *dsl.Traversal) { + t.Has(Label, FieldUpdatedAt, p.GTE(v)) + }, + ) +} + +// UpdatedAtLT applies the LT predicate on the "updated_at" field. +func UpdatedAtLT(v time.Time) predicate.Card { + return predicate.CardPerDialect( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldUpdatedAt), v)) + }, + func(t *dsl.Traversal) { + t.Has(Label, FieldUpdatedAt, p.LT(v)) + }, + ) +} + +// UpdatedAtLTE applies the LTE predicate on the "updated_at" field. +func UpdatedAtLTE(v time.Time) predicate.Card { + return predicate.CardPerDialect( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldUpdatedAt), v)) + }, + func(t *dsl.Traversal) { + t.Has(Label, FieldUpdatedAt, p.LTE(v)) + }, + ) +} + +// UpdatedAtIn applies the In predicate on the "updated_at" field. +func UpdatedAtIn(vs ...time.Time) predicate.Card { + v := make([]interface{}, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.CardPerDialect( + func(s *sql.Selector) { + // if not arguments were provided, append the FALSE constants, + // since we can't apply "IN ()". This will make this predicate falsy. + if len(vs) == 0 { + s.Where(sql.False()) + return + } + s.Where(sql.In(s.C(FieldUpdatedAt), v...)) + }, + func(t *dsl.Traversal) { + t.Has(Label, FieldUpdatedAt, p.Within(v...)) + }, + ) +} + +// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. +func UpdatedAtNotIn(vs ...time.Time) predicate.Card { + v := make([]interface{}, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.CardPerDialect( + func(s *sql.Selector) { + // if not arguments were provided, append the FALSE constants, + // since we can't apply "IN ()". This will make this predicate falsy. + if len(vs) == 0 { + s.Where(sql.False()) + return + } + s.Where(sql.NotIn(s.C(FieldUpdatedAt), v...)) + }, + func(t *dsl.Traversal) { + t.Has(Label, FieldUpdatedAt, p.Without(v...)) + }, + ) +} + // HasOwner applies the HasEdge predicate on the "owner" edge. func HasOwner() predicate.Card { return predicate.CardPerDialect( diff --git a/entc/integration/ent/card_create.go b/entc/integration/ent/card_create.go index b594a9230..671cdd2cd 100644 --- a/entc/integration/ent/card_create.go +++ b/entc/integration/ent/card_create.go @@ -26,6 +26,7 @@ type CardCreate struct { config number *string created_at *time.Time + updated_at *time.Time owner map[string]struct{} } @@ -49,6 +50,20 @@ func (cc *CardCreate) SetNillableCreatedAt(t *time.Time) *CardCreate { return cc } +// SetUpdatedAt sets the updated_at field. +func (cc *CardCreate) SetUpdatedAt(t time.Time) *CardCreate { + cc.updated_at = &t + return cc +} + +// SetNillableUpdatedAt sets the updated_at field if the given value is not nil. +func (cc *CardCreate) SetNillableUpdatedAt(t *time.Time) *CardCreate { + if t != nil { + cc.SetUpdatedAt(*t) + } + return cc +} + // SetOwnerID sets the owner edge to User by id. func (cc *CardCreate) SetOwnerID(id string) *CardCreate { if cc.owner == nil { @@ -83,6 +98,10 @@ func (cc *CardCreate) Save(ctx context.Context) (*Card, error) { v := card.DefaultCreatedAt() cc.created_at = &v } + if cc.updated_at == nil { + v := card.DefaultUpdatedAt() + cc.updated_at = &v + } if len(cc.owner) > 1 { return nil, errors.New("ent: multiple assignments on a unique edge \"owner\"") } @@ -123,6 +142,10 @@ func (cc *CardCreate) sqlSave(ctx context.Context) (*Card, error) { builder.Set(card.FieldCreatedAt, *cc.created_at) c.CreatedAt = *cc.created_at } + if cc.updated_at != nil { + builder.Set(card.FieldUpdatedAt, *cc.updated_at) + c.UpdatedAt = *cc.updated_at + } query, args := builder.Query() if err := tx.Exec(ctx, query, args, &res); err != nil { return nil, rollback(tx, err) @@ -187,6 +210,9 @@ func (cc *CardCreate) gremlin() *dsl.Traversal { if cc.created_at != nil { v.Property(dsl.Single, card.FieldCreatedAt, *cc.created_at) } + if cc.updated_at != nil { + v.Property(dsl.Single, card.FieldUpdatedAt, *cc.updated_at) + } for id := range cc.owner { v.AddE(user.CardLabel).From(g.V(id)).InV() constraints = append(constraints, &constraint{ diff --git a/entc/integration/ent/card_update.go b/entc/integration/ent/card_update.go index d34501098..66e1fea9e 100644 --- a/entc/integration/ent/card_update.go +++ b/entc/integration/ent/card_update.go @@ -7,6 +7,7 @@ import ( "errors" "fmt" "strconv" + "time" "github.com/facebookincubator/ent/entc/integration/ent/card" "github.com/facebookincubator/ent/entc/integration/ent/predicate" @@ -24,7 +25,9 @@ import ( // CardUpdate is the builder for updating Card entities. type CardUpdate struct { config - number *string + number *string + + updated_at *time.Time owner map[string]struct{} clearedOwner bool predicates []predicate.Card @@ -77,6 +80,10 @@ func (cu *CardUpdate) Save(ctx context.Context) (int, error) { return 0, fmt.Errorf("ent: validator failed for field \"number\": %v", err) } } + if cu.updated_at == nil { + v := card.UpdateDefaultUpdatedAt() + cu.updated_at = &v + } if len(cu.owner) > 1 { return 0, errors.New("ent: multiple assignments on a unique edge \"owner\"") } @@ -148,6 +155,10 @@ func (cu *CardUpdate) sqlSave(ctx context.Context) (n int, err error) { update = true builder.Set(card.FieldNumber, *cu.number) } + if cu.updated_at != nil { + update = true + builder.Set(card.FieldUpdatedAt, *cu.updated_at) + } if update { query, args := builder.Query() if err := tx.Exec(ctx, query, args, &res); err != nil { @@ -222,6 +233,9 @@ func (cu *CardUpdate) gremlin() *dsl.Traversal { if cu.number != nil { v.Property(dsl.Single, card.FieldNumber, *cu.number) } + if cu.updated_at != nil { + v.Property(dsl.Single, card.FieldUpdatedAt, *cu.updated_at) + } if cu.clearedOwner { tr := rv.Clone().InE(user.CardLabel).Drop().Iterate() trs = append(trs, tr) @@ -251,8 +265,10 @@ func (cu *CardUpdate) gremlin() *dsl.Traversal { // CardUpdateOne is the builder for updating a single Card entity. type CardUpdateOne struct { config - id string - number *string + id string + number *string + + updated_at *time.Time owner map[string]struct{} clearedOwner bool } @@ -298,6 +314,10 @@ func (cuo *CardUpdateOne) Save(ctx context.Context) (*Card, error) { return nil, fmt.Errorf("ent: validator failed for field \"number\": %v", err) } } + if cuo.updated_at == nil { + v := card.UpdateDefaultUpdatedAt() + cuo.updated_at = &v + } if len(cuo.owner) > 1 { return nil, errors.New("ent: multiple assignments on a unique edge \"owner\"") } @@ -373,6 +393,11 @@ func (cuo *CardUpdateOne) sqlSave(ctx context.Context) (c *Card, err error) { builder.Set(card.FieldNumber, *cuo.number) c.Number = *cuo.number } + if cuo.updated_at != nil { + update = true + builder.Set(card.FieldUpdatedAt, *cuo.updated_at) + c.UpdatedAt = *cuo.updated_at + } if update { query, args := builder.Query() if err := tx.Exec(ctx, query, args, &res); err != nil { @@ -448,6 +473,9 @@ func (cuo *CardUpdateOne) gremlin(id string) *dsl.Traversal { if cuo.number != nil { v.Property(dsl.Single, card.FieldNumber, *cuo.number) } + if cuo.updated_at != nil { + v.Property(dsl.Single, card.FieldUpdatedAt, *cuo.updated_at) + } if cuo.clearedOwner { tr := rv.Clone().InE(user.CardLabel).Drop().Iterate() trs = append(trs, tr) diff --git a/entc/integration/ent/example_test.go b/entc/integration/ent/example_test.go index a1863f021..919047aa0 100644 --- a/entc/integration/ent/example_test.go +++ b/entc/integration/ent/example_test.go @@ -34,6 +34,7 @@ func ExampleCard() { Create(). SetNumber("string"). SetCreatedAt(time.Now()). + SetUpdatedAt(time.Now()). SaveX(ctx) log.Println("card created:", c) @@ -342,6 +343,7 @@ func ExampleUser() { Create(). SetNumber("string"). SetCreatedAt(time.Now()). + SetUpdatedAt(time.Now()). SaveX(ctx) log.Println("card created:", c0) pe1 := client.Pet. diff --git a/entc/integration/ent/file/file.go b/entc/integration/ent/file/file.go index 9ad55f5ba..0196885b9 100644 --- a/entc/integration/ent/file/file.go +++ b/entc/integration/ent/file/file.go @@ -56,7 +56,7 @@ var ( fields = schema.File{}.Fields() // descSize is the schema descriptor for size field. descSize = fields[0].Descriptor() - // DefaultSize holds the default value for the size field. + // DefaultSize holds the default value on creation for the size field. DefaultSize = descSize.Default.(int) // SizeValidator is a validator for the "size" field. It is called by the builders before save. SizeValidator = descSize.Validators[0].(func(int) error) diff --git a/entc/integration/ent/group.go b/entc/integration/ent/group.go index 885498cc9..f3c47e2c6 100644 --- a/entc/integration/ent/group.go +++ b/entc/integration/ent/group.go @@ -184,7 +184,7 @@ func (gr *Groups) FromResponse(res *gremlin.Response) error { *gr = append(*gr, &Group{ ID: v.ID, Active: v.Active, - Expire: time.Unix(v.Expire, 0), + Expire: time.Unix(0, v.Expire), Type: v.Type, MaxUsers: v.MaxUsers, Name: v.Name, diff --git a/entc/integration/ent/group/group.go b/entc/integration/ent/group/group.go index d3716c5ad..9003e7615 100644 --- a/entc/integration/ent/group/group.go +++ b/entc/integration/ent/group/group.go @@ -81,7 +81,7 @@ var ( fields = schema.Group{}.Fields() // descActive is the schema descriptor for active field. descActive = fields[0].Descriptor() - // DefaultActive holds the default value for the active field. + // DefaultActive holds the default value on creation for the active field. DefaultActive = descActive.Default.(bool) // descType is the schema descriptor for type field. descType = fields[2].Descriptor() @@ -89,7 +89,7 @@ var ( TypeValidator = descType.Validators[0].(func(string) error) // descMaxUsers is the schema descriptor for max_users field. descMaxUsers = fields[3].Descriptor() - // DefaultMaxUsers holds the default value for the max_users field. + // DefaultMaxUsers holds the default value on creation for the max_users field. DefaultMaxUsers = descMaxUsers.Default.(int) // MaxUsersValidator is a validator for the "max_users" field. It is called by the builders before save. MaxUsersValidator = descMaxUsers.Validators[0].(func(int) error) diff --git a/entc/integration/ent/groupinfo/groupinfo.go b/entc/integration/ent/groupinfo/groupinfo.go index e620cabd6..35c7e93e1 100644 --- a/entc/integration/ent/groupinfo/groupinfo.go +++ b/entc/integration/ent/groupinfo/groupinfo.go @@ -41,6 +41,6 @@ var ( fields = schema.GroupInfo{}.Fields() // descMaxUsers is the schema descriptor for max_users field. descMaxUsers = fields[1].Descriptor() - // DefaultMaxUsers holds the default value for the max_users field. + // DefaultMaxUsers holds the default value on creation for the max_users field. DefaultMaxUsers = descMaxUsers.Default.(int) ) diff --git a/entc/integration/ent/migrate/schema.go b/entc/integration/ent/migrate/schema.go index 508c8acbe..beb5e8db6 100644 --- a/entc/integration/ent/migrate/schema.go +++ b/entc/integration/ent/migrate/schema.go @@ -17,6 +17,7 @@ var ( {Name: "id", Type: field.TypeInt, Increment: true}, {Name: "number", Type: field.TypeString}, {Name: "created_at", Type: field.TypeTime}, + {Name: "updated_at", Type: field.TypeTime}, {Name: "owner_id", Type: field.TypeInt, Unique: true, Nullable: true}, } // CardsTable holds the schema information for the "cards" table. @@ -27,7 +28,7 @@ var ( ForeignKeys: []*schema.ForeignKey{ { Symbol: "cards_users_card", - Columns: []*schema.Column{CardsColumns[3]}, + Columns: []*schema.Column{CardsColumns[4]}, RefColumns: []*schema.Column{UsersColumns[0]}, OnDelete: schema.SetNull, diff --git a/entc/integration/ent/schema/card.go b/entc/integration/ent/schema/card.go index 233c81f54..2785110fd 100644 --- a/entc/integration/ent/schema/card.go +++ b/entc/integration/ent/schema/card.go @@ -25,6 +25,10 @@ func (Card) Fields() []ent.Field { field.Time("created_at"). Default(time.Now). Immutable(), + field.Time("updated_at"). + Default(time.Now). + UpdateDefault(time.Now). + Immutable(), } } diff --git a/entc/integration/ent/user/user.go b/entc/integration/ent/user/user.go index 46c3804fb..cdc5fd618 100644 --- a/entc/integration/ent/user/user.go +++ b/entc/integration/ent/user/user.go @@ -129,6 +129,6 @@ var ( fields = schema.User{}.Fields() // descLast is the schema descriptor for last field. descLast = fields[2].Descriptor() - // DefaultLast holds the default value for the last field. + // DefaultLast holds the default value on creation for the last field. DefaultLast = descLast.Default.(string) ) diff --git a/entc/integration/integration_test.go b/entc/integration/integration_test.go index 7a649a5f0..41dcc1c02 100644 --- a/entc/integration/integration_test.go +++ b/entc/integration/integration_test.go @@ -1861,6 +1861,12 @@ func DefaultValue(t *testing.T, client *ent.Client) { ctx := context.Background() c1 := client.Card.Create().SetNumber("102030").SaveX(ctx) require.False(t, c1.CreatedAt.IsZero()) + require.False(t, c1.UpdatedAt.IsZero()) + require.Equal(t, c1.UpdatedAt.Unix(), c1.CreatedAt.Unix()) + c1 = c1.Update().SetNumber("302010").SaveX(ctx) + require.False(t, c1.CreatedAt.IsZero()) + require.False(t, c1.UpdatedAt.IsZero()) + require.NotEqual(t, c1.UpdatedAt.UnixNano(), c1.CreatedAt.UnixNano()) } func ImmutableValue(t *testing.T, client *ent.Client) { diff --git a/entc/integration/migrate/entv2/user/user.go b/entc/integration/migrate/entv2/user/user.go index ee8148670..51e286f75 100644 --- a/entc/integration/migrate/entv2/user/user.go +++ b/entc/integration/migrate/entv2/user/user.go @@ -40,10 +40,10 @@ var ( fields = schema.User{}.Fields() // descBuffer is the schema descriptor for buffer field. descBuffer = fields[3].Descriptor() - // DefaultBuffer holds the default value for the buffer field. + // DefaultBuffer holds the default value on creation for the buffer field. DefaultBuffer = descBuffer.Default.([]byte) // descTitle is the schema descriptor for title field. descTitle = fields[4].Descriptor() - // DefaultTitle holds the default value for the title field. + // DefaultTitle holds the default value on creation for the title field. DefaultTitle = descTitle.Default.(string) ) diff --git a/entc/load/bindata.go b/entc/load/bindata.go index 31acb7c97..8eaf35117 100644 --- a/entc/load/bindata.go +++ b/entc/load/bindata.go @@ -87,7 +87,7 @@ func templateMainTmpl() (*asset, error) { return a, nil } -var _schemaGo = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x57\x6d\x8f\xd3\x3e\x12\x7f\x9d\x7c\x8a\xa1\x12\xab\x64\xd5\x4b\x39\xde\x5d\x50\x5f\x20\x58\xa4\xbd\x87\xe5\xc4\x72\xf7\x06\x21\x70\xe3\x71\x6b\x48\xec\x60\xbb\x5d\x96\xd5\x7e\xf7\xd3\xf8\x21\x4d\xda\xb2\xf7\xff\x83\x16\x09\x6d\x3c\x4f\x9e\xf9\xcd\xcf\x63\x77\xb1\x80\x57\xba\xbf\x35\x72\xbd\x71\xf0\xfc\xd9\x5f\xff\xf6\x97\xde\xa0\x45\xe5\xe0\x0d\x6b\x70\xa5\xf5\x57\xb8\x54\x4d\x05\x2f\xdb\x16\xbc\x91\x05\xd2\x9b\x1d\xf2\x2a\x5f\x2c\xe0\xfd\x46\x5a\xb0\x7a\x6b\x1a\x84\x46\x73\x04\x69\xa1\x95\x0d\x2a\x8b\x1c\xb6\x8a\xa3\x01\xb7\x41\x78\xd9\xb3\x66\x83\xf0\xbc\x7a\x96\xb4\x20\xf4\x56\x71\x0a\x21\x95\x37\xf9\xe7\xe5\xab\x8b\xab\xeb\x0b\x10\xb2\xc5\x24\x33\x5a\x3b\xe0\xd2\x60\xe3\xb4\xb9\x05\x2d\xc0\x8d\xf6\x73\x06\xb1\xca\xf3\x9e\x35\x5f\xd9\x1a\xa1\xd5\x8c\xe7\xb9\xec\x7a\x6d\x1c\x14\x79\x36\x43\xd5\x68\x2e\xd5\x7a\xf1\xc5\x6a\x35\xcb\xb3\x99\xe8\x1c\xfd\x31\x28\x5a\x6c\xdc\x2c\xcf\xb3\xd9\x5a\xba\xcd\x76\x55\x35\xba\x5b\x88\x58\xb0\x54\xcd\x76\xc5\x9c\x36\x0b\x54\x6e\x61\x9b\x0d\x76\x6c\x81\x7c\x8d\x7f\xc8\x61\xf6\x27\x82\x0a\x89\x2d\x9f\xe5\x65\x4e\x30\x5c\x7b\x19\x18\x8c\x0d\xb0\xc0\x14\xa0\x72\x55\x54\xb8\x0d\x73\x70\xc3\xac\xaf\x13\x39\x08\xa3\x3b\x60\xd0\xe8\xae\x6f\x25\x81\x6d\xd1\x40\xc4\xa2\xca\xdd\x6d\x8f\x29\xa4\x75\x66\xdb\x38\xb8\xcb\xb3\x2b\xd6\x21\x00\x90\x44\xaa\x35\x00\x7c\x26\x68\xea\x99\x62\x1d\xce\x75\x27\x1d\x76\xbd\xbb\x9d\x7d\xce\xb3\x0b\xbe\x46\x0b\x00\x1f\x3e\x9e\xd3\xe7\x60\x49\x38\xd8\xa9\xe9\x1b\xaa\xc2\x7a\x53\xff\x99\x4c\x7d\x75\x07\xb6\x97\x8a\xe3\x77\xb4\x64\xeb\x3f\x93\xad\x0c\xf2\x89\xf1\xbd\x87\x25\x84\x3c\x46\x25\xc8\x7f\x01\x94\xe0\x78\x8c\xc9\x18\x96\x07\x80\x79\x4f\x31\xc2\x3f\x5f\x60\xe5\x05\xd1\x9c\x36\x38\x30\x67\x6b\xf8\x69\x74\xc7\xd6\x53\xeb\x6b\xf9\x23\x05\x3f\x97\xca\xc5\xcf\x68\x6d\xe5\x8f\x83\xe0\xaf\x36\xcc\x58\xf4\x66\xe7\xfb\xe8\xd1\xbc\x09\xca\xa9\xc7\x7f\x94\xfc\xb6\x0d\x5b\xac\xb4\x6e\xa7\x1b\x6c\xbd\x72\xea\x70\x25\xdb\x96\xad\x5a\x3c\xe9\xa0\xa2\x72\xea\xf2\xb6\x77\x52\x2b\xd6\x9e\x74\xd1\x51\x39\x75\x79\x8d\x82\x6d\x5b\x77\x3a\x2d\x1e\x94\x07\x44\xea\xba\xad\x0b\x89\x1d\x7b\xc8\xa4\x9c\xfa\xfc\x97\xb5\x92\xd3\x19\xb4\xb0\x07\x37\xf9\xec\x06\xe5\x09\x12\xfa\x23\x70\xcc\x41\x2f\xfe\x05\x0a\x7a\xbf\x13\x0c\x8c\x3d\xfc\xff\xdc\x9b\x1a\x3e\xc0\xba\x03\xc3\x43\xbe\xbd\x43\x11\x36\x9f\xda\x19\x14\x9f\x8e\x77\x7f\x87\x22\x52\x73\x32\x11\x0c\x8a\x9f\x70\x2c\x36\xe6\x01\x76\x5d\xaa\x1d\x1a\x8b\x87\xa6\x32\x88\x0f\xb7\xff\xb6\x95\x06\xf9\x81\xad\x89\xe2\x13\x5d\x0b\x13\xe6\xb8\x6d\x41\xfe\x0b\x7d\x0b\x8e\xfb\xc6\xc5\x4a\x07\x02\x3e\x50\x69\x9c\xa7\x1f\x3e\x4e\x91\xfe\xf9\x38\x3d\xb4\x3c\x31\x4d\x43\x95\x57\x78\xe3\xfb\xd1\x18\x64\x0e\x7d\x91\xb1\x22\x0a\x1e\xca\xf2\x5f\x1c\x6d\x63\x64\xef\xb4\xa9\x72\xb1\x55\x4d\xf2\x2c\x90\xc3\x39\x59\x54\xaf\x07\x8b\x32\x36\xf9\x2e\xcf\x14\x42\xbd\x84\x33\x5a\xde\xe5\x19\x51\xab\x0e\x34\x40\x5e\xbd\x67\xeb\x39\xc9\x6e\x7b\xac\x07\x19\xb1\x31\xcf\x3c\xab\x07\x21\x2d\x48\x18\x10\xab\x83\x30\x2c\x48\x1c\x79\x50\x7b\x71\x5c\x90\x3c\xf5\xbc\x26\x79\x5a\x04\x85\x88\xf1\xbd\x42\xc4\xf8\xf7\x79\x26\x05\x18\x14\x94\x72\xd0\xbc\xf0\xcb\x27\x4b\x50\xb2\xa5\x72\x32\x85\x24\x86\xe5\x50\xbe\x41\x51\x7a\x57\x83\x6e\x6b\x14\x28\x8c\xc8\xfe\x8b\x19\xbb\x61\x6d\xbc\x45\xfd\x6b\x02\xfd\xb3\x64\x74\x2b\x4b\xe5\xd0\xd0\x25\x4f\x5f\x1a\x18\xfc\xfd\xfa\xed\x15\x39\x7b\x7a\x35\x4c\xc1\x8a\x90\x27\x57\x1e\x4c\x28\x40\x74\xd6\xab\x2f\xd8\xb8\xf8\x27\x36\x65\xb2\x69\x61\xd3\xde\xc4\xda\xb8\x53\x09\xc5\x0a\x3e\x7c\x5c\xdd\x3a\x9c\x03\x1a\x43\xff\xa9\x63\x77\x79\x66\x7d\xab\x82\xef\x5d\x00\x48\xaa\xf0\x7e\x2a\xe2\xab\xc7\xf7\xe7\xad\x88\x91\xcb\xd2\xb7\xa6\x28\xef\xf3\x2c\x32\xcc\x87\xac\x97\x60\x99\xc0\xc0\xc5\x64\xeb\xc1\x25\xed\x08\xcd\x84\x99\x6c\xe7\x20\x3a\x57\x5d\x50\x2e\xa2\x98\xc5\xc4\x9f\x7e\xab\xe1\xe9\x6e\x36\x07\x1b\x28\x40\xee\x01\x6c\xa1\x0d\x7c\x9a\x83\xef\x94\x61\x8a\x98\x1a\x88\x4f\x51\x05\x27\xb1\x18\x11\xb2\x28\xf3\x2c\xb3\xde\xfa\xcc\x67\x45\x66\x23\x8e\x01\x88\x3d\xcb\x46\x84\xf4\xf2\x44\xc9\x11\x79\x83\x3c\xd0\x77\xc4\x4a\x2f\xde\xf3\x32\x5d\x4c\x75\xd4\xa4\x7b\x2a\x00\xe0\x2d\xd2\x05\x59\xc7\x14\xd2\x95\x48\xba\x74\x13\x46\x5d\x5a\x7a\xdd\x70\x81\xd5\x5e\x37\x2c\xbd\x72\x7f\x53\xd5\xd0\xa2\x2a\x04\xaf\xf6\xa2\x92\x4c\xee\xf3\x8c\xba\x21\x78\xe5\xdf\x0c\x4f\x96\xf0\xcc\x23\x97\x59\x11\x24\x4b\x38\x8b\xca\x89\x75\x7a\x32\x3c\x59\xc2\x6c\x36\x78\x24\x69\x70\x8a\xab\xe8\x67\xab\x38\x91\x96\xc0\xfa\x1e\x15\x2f\x92\x64\x0e\x36\x9e\x9c\x30\xc6\xc6\xcc\xf1\xf3\xee\x31\x89\x83\x7b\xe2\xf8\xdd\x7d\x50\x5b\x85\x39\x3b\x4a\xf5\x22\xa4\x36\xcc\xba\x09\xa7\xca\x10\x32\xbd\x3e\xc7\x05\xc4\x97\xea\x63\x96\x20\xf9\xf7\x7d\x11\x31\x07\x1f\x38\x2a\x24\xff\x7e\x74\x02\xaa\xf4\x82\x1e\x95\x78\x99\xd2\x3f\xf3\x5f\xbe\xa9\xbe\xec\x1a\x7c\x8c\x00\x01\x49\x43\xdf\x6a\x2f\x8d\x3d\x1c\xf3\x9f\xc4\x7b\xf2\xdf\x4f\xa6\x22\xdd\x42\x55\x1c\x4e\x85\x2d\xe3\x88\xdc\x0f\x09\xb8\x31\xac\xb7\x7e\xba\x85\xfa\x13\x6d\x3a\x74\x1b\xcd\xe1\x46\xba\x0d\x18\x6c\xf4\x8e\x7e\x12\x6a\x40\x65\xb7\x06\x41\x69\xe8\x99\x92\x0d\x3d\xc9\xa0\x0b\xe1\xa5\x5a\xc7\x61\x78\x34\x83\x8e\x26\xa1\x48\xb7\xe5\xf0\x9b\xe0\x70\x26\x72\x14\x68\x80\xc2\x15\x65\x40\x57\xc0\xce\xe3\x1e\x92\x29\xca\x17\xb0\x1b\xb7\x35\x23\xff\xe5\x89\x8e\xa6\x8a\x42\xc2\xb1\xb9\x3b\x6a\x4b\x9c\x9d\xe0\x83\x84\x73\x73\x4f\xfd\x8a\xd8\x4d\xdc\x8b\x72\xee\xad\xf6\x00\x06\xce\x1e\xe1\x17\xc4\xbf\x0b\xdf\xf8\x20\x1e\xa1\x17\x4e\x4e\x00\x8f\x0c\x1f\x11\xbb\x50\xcd\x09\xe8\x30\x9e\xd8\x87\x90\x0b\x45\x1c\x01\x97\xce\xc2\x11\x74\x49\xf1\xbb\xe0\x4d\x87\xc0\x11\x7c\x72\xf8\x35\x3b\x3c\x2b\x1f\x11\xc1\x54\xd4\x09\x0c\xe5\x30\x14\x1e\x42\x31\x55\xb3\xc7\xd1\x17\x3a\xbc\x10\x1c\x8c\xdf\x08\xe5\x64\x45\xb9\xd1\xd8\x72\xd5\x3f\xa4\xe2\x45\x09\xcb\xe5\xa0\xff\xb7\x33\x3e\x75\xba\x3f\x5c\x75\xd1\x62\x57\x4c\x46\x87\xcb\xef\xf3\xff\x05\x00\x00\xff\xff\x5b\x59\x31\xf1\x68\x12\x00\x00") +var _schemaGo = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x57\x5b\x6f\xdb\x36\x14\x7e\x96\x7e\xc5\xa9\x81\x06\x52\xe0\xc9\x5d\xdf\xa6\xc2\x0f\x45\x9b\x02\xd9\x25\x1d\x9a\x6e\x2f\x45\xd1\xd2\xd2\xa1\xcd\x56\x22\x55\x92\x76\x9a\x06\xf9\xef\xc3\xe1\x45\x17\xdb\xc9\xb6\x16\x09\x10\x58\x3a\x57\x9e\xef\x7c\x3c\xa4\x16\x0b\x78\xa1\xba\x6b\x2d\xd6\x1b\x0b\x4f\x9f\xfc\xfc\xcb\x4f\x9d\x46\x83\xd2\xc2\x2b\x56\xe1\x4a\xa9\xcf\x70\x2e\xab\x02\x9e\x37\x0d\x38\x23\x03\xa4\xd7\x3b\xac\x8b\x74\xb1\x80\xb7\x1b\x61\xc0\xa8\xad\xae\x10\x2a\x55\x23\x08\x03\x8d\xa8\x50\x1a\xac\x61\x2b\x6b\xd4\x60\x37\x08\xcf\x3b\x56\x6d\x10\x9e\x16\x4f\xa2\x16\xb8\xda\xca\x9a\x42\x08\xe9\x4c\x7e\x3f\x7f\x71\x76\x71\x79\x06\x5c\x34\x18\x65\x5a\x29\x0b\xb5\xd0\x58\x59\xa5\xaf\x41\x71\xb0\xa3\x7c\x56\x23\x16\x69\xda\xb1\xea\x33\x5b\x23\x34\x8a\xd5\x69\x2a\xda\x4e\x69\x0b\x59\x9a\xcc\x50\x56\xaa\x16\x72\xbd\xf8\x64\x94\x9c\xa5\xc9\x8c\xb7\x96\x7e\x34\xf2\x06\x2b\x3b\x4b\xd3\x64\xb6\x16\x76\xb3\x5d\x15\x95\x6a\x17\x3c\x14\x2c\x64\xb5\x5d\x31\xab\xf4\x02\xa5\x5d\x98\x6a\x83\x2d\x5b\x60\xbd\xc6\xff\xe4\x30\xfb\x1f\x41\xb9\xc0\xa6\x9e\xa5\x79\x4a\x30\x5c\x3a\x19\x68\x0c\x0d\x30\xc0\x24\xa0\xb4\x45\x50\xd8\x0d\xb3\x70\xc5\x8c\xab\x13\x6b\xe0\x5a\xb5\xc0\xa0\x52\x6d\xd7\x08\x02\xdb\xa0\x86\x80\x45\x91\xda\xeb\x0e\x63\x48\x63\xf5\xb6\xb2\x70\x93\x26\x17\xac\x45\x00\x20\x89\x90\x6b\x00\xf8\x48\xd0\x94\x33\xc9\x5a\x9c\xab\x56\x58\x6c\x3b\x7b\x3d\xfb\x98\x26\x67\xf5\x1a\x0d\x00\xbc\x7b\x7f\x4a\x8f\xbd\x25\xe1\x60\xa6\xa6\xaf\xa8\x0a\xe3\x4c\xdd\x63\x34\x75\xd5\xed\xd9\x9e\xcb\x1a\xbf\xa2\x21\x5b\xf7\x18\x6d\x85\x97\x4f\x8c\x6f\x1d\x2c\x3e\xe4\x21\x2a\x5e\xfe\x1d\xa0\x78\xc7\x43\x4c\xfc\x5f\x8f\xcc\x3d\xd8\xbc\xa5\x30\xfd\x9f\x2b\xb3\x70\xb2\xe0\x41\x69\xf6\x3c\xd8\x1a\xee\xcb\x61\xd9\x7a\xea\x70\x29\xbe\x8d\x52\x9c\x0a\x69\xc3\x63\x70\x30\xe2\xdb\x5e\x8a\x17\x1b\xa6\x0d\x46\xb3\xd3\x21\x47\xf0\xa8\xbc\x7e\xea\xf4\x97\x14\x5f\xb6\x7d\xa2\x95\x52\xcd\x34\xcd\xd6\xe9\xa7\x3e\x17\xa2\x69\xd8\xaa\xc1\xbb\x7c\x64\xd0\x4f\xbd\x5e\x77\x56\x28\xc9\x9a\xbb\xbc\x54\xd0\x4f\xbd\x5e\x22\x67\xdb\xc6\xde\xb9\xbe\xda\xeb\xf7\x8a\xea\x6a\x66\x31\xba\x1e\x29\xca\xe9\x3f\x1c\xf5\x3d\x6f\xdb\xad\xed\xab\x3b\xf4\x15\x51\x3f\x75\xfb\x9b\x35\xa2\xa6\xdd\x4d\x5b\x06\x86\x6e\x45\xb7\x5d\xaf\x3f\xc2\x70\xb7\xbf\x0e\x09\xee\xc4\xdf\xc1\x6f\xe7\x77\x84\xde\x81\x11\xff\xce\xea\xa9\xe1\x3d\x64\xde\x33\xdc\xe7\xf0\x1b\xe4\x3e\xf9\xd4\x4e\x23\xff\x70\x98\xfd\x0d\xf2\xc0\xdc\xc9\xb8\xd1\xc8\xef\x60\x6c\xe8\xcd\x3d\x44\x3d\x97\x3b\xd4\x06\xf7\x4d\x85\x17\xef\xa7\xff\xb2\x15\x1a\xeb\x3d\x5b\x1d\xc4\x47\xba\xe6\xc7\xd7\x61\xdb\xbc\xfc\x3b\xfa\xe6\x1d\x87\xc6\x85\x4a\x7b\x0e\xde\x53\x69\x18\xd6\xef\xde\x4f\x91\xbe\x7b\x56\xef\x5b\x1e\x19\xd5\xbe\xca\x0b\xbc\x72\xfd\xa8\x34\x32\x8b\xae\xc8\x50\x11\x05\xf7\x65\xb9\xa7\x1a\x4d\xa5\x45\x67\x95\x2e\x52\xbe\x95\x55\xf4\xcc\xb0\x86\x53\xb2\x28\x5e\xf6\x16\x79\x68\xf2\x4d\x9a\x48\x84\x72\x09\x27\xf4\x7a\x93\x26\x44\xad\xd2\xd3\x00\xeb\xe2\x2d\x5b\xcf\x49\x76\xdd\x61\xd9\xcb\x88\x8d\x69\xe2\x58\xdd\x0b\xe9\x85\x84\x1e\xb1\xd2\x0b\xfd\x0b\x89\x03\x0f\x4a\x27\x0e\x2f\x24\x8f\x3d\x2f\x49\x1e\x5f\xbc\x82\x87\xf8\x4e\xc1\x43\xfc\xdb\x34\x11\x1c\x34\x72\x5a\xb2\xd7\x3c\x73\xaf\x8f\x96\x20\x45\x43\xe5\x24\x12\x49\x0c\xcb\xbe\x7c\x8d\x3c\x77\xae\x1a\xed\x56\x4b\x90\x18\x90\xfd\x83\x69\xb3\x61\x4d\x38\xa2\xdd\x55\x05\xdd\x9d\x67\x74\xe4\x0b\x69\x51\xd3\x0d\x82\x9e\x14\x30\xf8\xf5\xf2\xf5\x05\x39\x3b\x7a\x55\x4c\xc2\x8a\x90\x27\xd7\xda\x9b\x50\x80\xe0\xac\x56\x9f\xb0\xb2\xe1\x27\x34\x65\x92\x34\x33\x31\x37\xb1\x36\x64\xca\x21\x5b\xc1\xbb\xf7\xab\x6b\x8b\x73\x40\xad\xe9\x9f\x3a\x76\x93\x26\xc6\xb5\xca\xfb\xde\x78\x80\x84\xf4\x97\xb3\x2c\x5c\xa9\x5c\x7f\x5e\xf3\x10\x39\xcf\x5d\x6b\xb2\xfc\x36\x4d\x02\xc3\x5c\xc8\x72\x09\x86\x71\xf4\x5c\x8c\xb6\x0e\x5c\xd2\x8e\xd0\x8c\x98\x89\x66\x0e\xbc\xb5\xc5\x19\xad\x85\x67\xb3\xb0\xf0\xc7\x5f\x4a\x78\xbc\x9b\xcd\xc1\x78\x0a\x90\xbb\x07\x9b\x2b\x0d\x1f\xe6\xe0\x3a\xa5\x99\x24\xa6\x7a\xe2\x53\x54\x5e\x93\x98\x8f\x08\x99\xe5\x69\x92\x18\x67\x7d\xe2\x56\x45\x66\x23\x8e\xf9\x73\x7e\x20\xda\x88\x93\x51\x15\x89\x39\xa2\x70\xaf\xf2\x3c\x1e\xd1\x33\x6a\x06\x8e\xf6\xa7\x6a\x39\x24\x8b\xe7\x28\xa9\xe3\xf1\x39\xa8\xa3\xc4\xa9\xfb\x63\xab\x8c\xea\x5e\xe2\xf4\xc3\xf9\xe4\x0c\x1a\x94\x19\xaf\x8b\x41\x9a\x3b\xab\x70\x64\x96\xc3\x02\xe3\x21\xea\x7b\xe2\xab\x18\x9f\xae\xa5\xab\x62\x72\xde\x0e\xa6\xb7\x69\x42\x3d\xe5\x75\xe1\x6e\x33\x8f\x96\xf0\xc4\xe1\x9f\x18\xee\x25\x4b\x38\x09\xca\x89\x75\xbc\xc9\x3c\x5a\xc2\x6c\xd6\x7b\x44\xa9\x77\x0a\x6f\xc1\xcf\x14\x61\xae\x2d\x81\x75\x1d\xca\x3a\x8b\x92\x39\x98\xb0\xff\xfc\x30\x1c\xf3\xcf\x4d\xcd\x87\xa4\x1f\x0e\xf4\x73\xd9\x5d\x50\x53\xf8\x69\x3d\x5a\xea\x99\x5f\x5a\x3f\x31\x27\xcc\xcc\x7d\xc8\x78\x41\x1e\x17\x10\x2e\xd3\x0f\x59\x82\xa8\xbf\x0e\x45\x84\x35\xb8\xc0\x41\x21\xea\xaf\x07\xfb\xa8\x88\x97\xfc\x51\x89\xe7\x71\xf9\x27\xee\xc9\x35\xd5\x95\x5d\x82\x8b\xe1\x21\x20\xa9\xef\x5b\xe9\xa4\xa1\x87\xe3\xcd\x43\xe2\x61\xdb\xdc\x4e\x66\x2b\x9d\x65\x45\x18\x71\x99\xc9\xc3\xa0\x1d\x46\x0d\x5c\x69\xd6\x19\x37\x23\x7d\xfd\x91\x36\x2d\xda\x8d\xaa\xe1\x4a\xd8\x0d\x68\xac\xd4\x8e\xbe\x5a\x15\xa0\x34\x5b\x8d\x20\x15\x74\x4c\x8a\xca\xd0\x57\x69\xeb\xc3\x0b\xb9\x0e\x23\xf5\x60\x92\x1d\xcc\x53\x1e\xcf\xdc\xfe\xb3\x65\x7f\xb2\xd6\xc8\x51\x03\x85\xcb\x72\x8f\x2e\x87\x9d\xc3\xdd\x2f\x26\xcb\x9f\xc1\x6e\xdc\xd6\x84\xfc\x97\x47\x3a\x1a\x2b\xf2\x0b\x0e\xcd\xdd\x51\x5b\xc2\x04\x06\x17\xc4\xef\x9b\x5b\xea\x57\xc0\x6e\xe2\x9e\xe5\x73\x67\x35\x00\xe8\x39\x7b\x80\x9f\x17\xff\x28\x7c\xe3\x8d\x78\x80\x9e\xdf\x39\x1e\x3c\x32\x7c\x40\xec\x7c\x35\x47\xa0\xc3\xb0\x63\xef\x43\xce\x17\x71\x00\x5c\xdc\x0b\x07\xd0\x45\xc5\x8f\x82\x37\x1d\x02\x07\xf0\x89\xfe\x83\xbb\xbf\x9c\x3e\x20\x82\xb1\xa8\x23\x18\x8a\x7e\x28\xdc\x87\x62\xac\x66\xc0\xd1\x15\xda\xdf\x33\x2c\x8c\x6f\x1a\xf9\xe4\x8d\xd6\x46\x63\xcb\x16\xbf\x09\x59\x67\x39\x2c\x97\xbd\xfe\x4f\xab\xdd\xd2\xe9\xfc\xb0\xc5\x59\x83\x6d\x36\x19\x1d\x36\xbd\x4d\xff\x09\x00\x00\xff\xff\xf1\x30\x41\xcf\x0b\x13\x00\x00") func schemaGoBytes() ([]byte, error) { return bindataRead( @@ -102,7 +102,7 @@ func schemaGo() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "schema.go", size: 4712, mode: os.FileMode(420), modTime: time.Unix(1566903821, 0)} + info := bindataFileInfo{name: "schema.go", size: 4875, mode: os.FileMode(420), modTime: time.Unix(1566905362, 0)} a := &asset{bytes: bytes, info: info} return a, nil } diff --git a/entc/load/schema.go b/entc/load/schema.go index c7dede1b1..7ef15fdf8 100644 --- a/entc/load/schema.go +++ b/entc/load/schema.go @@ -25,17 +25,18 @@ type Schema struct { // Field represents an ent.Field that was loaded from a complied user package. type Field struct { - Name string `json:"name,omitempty"` - Type field.Type `json:"type,omitempty"` - Tag string `json:"tag,omitempty"` - Size *int `json:"size,omitempty"` - Charset *string `json:"charset,omitempty"` - Unique bool `json:"unique,omitempty"` - Nillable bool `json:"nillable,omitempty"` - Optional bool `json:"optional,omitempty"` - Default bool `json:"default,omitempty"` - Immutable bool `json:"immutable,omitempty"` - Validators int `json:"validators,omitempty"` + Name string `json:"name,omitempty"` + Type field.Type `json:"type,omitempty"` + Tag string `json:"tag,omitempty"` + Size *int `json:"size,omitempty"` + Charset *string `json:"charset,omitempty"` + Unique bool `json:"unique,omitempty"` + Nillable bool `json:"nillable,omitempty"` + Optional bool `json:"optional,omitempty"` + Default bool `json:"default,omitempty"` + UpdateDefault bool `json:"update_default,omitempty"` + Immutable bool `json:"immutable,omitempty"` + Validators int `json:"validators,omitempty"` } // Edge represents an ent.Edge that was loaded from a complied user package. @@ -85,15 +86,16 @@ func MarshalSchema(schema ent.Interface) (b []byte, err error) { for _, f := range fields { fd := f.Descriptor() sf := &Field{ - Name: fd.Name, - Type: fd.Type, - Tag: fd.Tag, - Unique: fd.Unique, - Default: fd.Default != nil, - Nillable: fd.Nillable, - Optional: fd.Optional, - Immutable: fd.Immutable, - Validators: len(fd.Validators), + Name: fd.Name, + Type: fd.Type, + Tag: fd.Tag, + Unique: fd.Unique, + Nillable: fd.Nillable, + Optional: fd.Optional, + Immutable: fd.Immutable, + Validators: len(fd.Validators), + Default: fd.Default != nil, + UpdateDefault: fd.UpdateDefault != nil, } if fd.Size != 0 { sf.Size = &fd.Size diff --git a/entc/load/schema_test.go b/entc/load/schema_test.go index 8cc157797..d7ad842f6 100644 --- a/entc/load/schema_test.go +++ b/entc/load/schema_test.go @@ -8,6 +8,7 @@ import ( "encoding/json" "math" "testing" + "time" "github.com/facebookincubator/ent" "github.com/facebookincubator/ent/schema/edge" @@ -138,6 +139,8 @@ func (WithDefaults) Fields() []ent.Field { Default("foo"), field.Bool("string"). Default(true), + field.Time("updated_at"). + UpdateDefault(time.Now), } } @@ -163,4 +166,6 @@ func TestMarshalDefaults(t *testing.T) { require.True(t, schema.Fields[1].Default) require.True(t, schema.Fields[2].Default) require.True(t, schema.Fields[3].Default) + require.False(t, schema.Fields[4].Default) + require.True(t, schema.Fields[4].UpdateDefault) } diff --git a/schema/field/field.go b/schema/field/field.go index 8cc217784..da11b1bbc 100644 --- a/schema/field/field.go +++ b/schema/field/field.go @@ -303,6 +303,18 @@ func (b *timeBuilder) Default(f func() time.Time) *timeBuilder { return b } +// UpdateDefault sets the function that is applied to set default value +// of the field on update. For example: +// +// field.Time("updated_at"). +// Default(time.Now). +// UpdateDefault(time.Now), +// +func (b *timeBuilder) UpdateDefault(f func() time.Time) *timeBuilder { + b.desc.UpdateDefault = f + return b +} + // Descriptor implements the ent.Field interface by returning its descriptor. func (b *timeBuilder) Descriptor() *Descriptor { return b.desc diff --git a/schema/field/field_test.go b/schema/field/field_test.go index 61161f193..950b5a577 100644 --- a/schema/field/field_test.go +++ b/schema/field/field_test.go @@ -100,6 +100,14 @@ func TestTime(t *testing.T) { assert.Equal(t, "time.Time", fd.Type.String()) assert.NotNil(t, fd.Default) assert.Equal(t, now, fd.Default.(func() time.Time)()) + + fd = field.Time("updated_at"). + UpdateDefault(func() time.Time { + return now + }). + Descriptor() + assert.Equal(t, "updated_at", fd.Name) + assert.Equal(t, now, fd.UpdateDefault.(func() time.Time)()) } func TestField_Tag(t *testing.T) {