From e7fec6f8f92b269513056c67d6b744d75ae0a16b Mon Sep 17 00:00:00 2001 From: Ariel Mashraki Date: Wed, 28 Aug 2019 06:44:37 -0700 Subject: [PATCH] entc/gen: change verbose option to debug Summary: Change the Verbose option to Debug Reviewed By: alexsn Differential Revision: D17091911 fbshipit-source-id: c5cf3e1c7f33f607076fe5c7da94e04b9f236218 --- entc/gen/bindata.go | 97 +++++++++++------------- entc/gen/template/client.tmpl | 2 +- entc/gen/template/config.tmpl | 18 ++--- entc/integration/ent/client.go | 2 +- entc/integration/ent/config.go | 18 ++--- entc/integration/migrate/entv1/client.go | 2 +- entc/integration/migrate/entv1/config.go | 18 ++--- entc/integration/migrate/entv2/client.go | 2 +- entc/integration/migrate/entv2/config.go | 18 ++--- entc/integration/migrate/migrate_test.go | 2 +- entc/load/bindata.go | 19 +---- examples/edgeindex/ent/client.go | 2 +- examples/edgeindex/ent/config.go | 18 ++--- examples/m2m2types/ent/client.go | 2 +- examples/m2m2types/ent/config.go | 18 ++--- examples/m2mbidi/ent/client.go | 2 +- examples/m2mbidi/ent/config.go | 18 ++--- examples/m2mrecur/ent/client.go | 2 +- examples/m2mrecur/ent/config.go | 18 ++--- examples/o2m2types/ent/client.go | 2 +- examples/o2m2types/ent/config.go | 18 ++--- examples/o2mrecur/ent/client.go | 2 +- examples/o2mrecur/ent/config.go | 18 ++--- examples/o2o2types/ent/client.go | 2 +- examples/o2o2types/ent/config.go | 18 ++--- examples/o2obidi/ent/client.go | 2 +- examples/o2obidi/ent/config.go | 18 ++--- examples/o2orecur/ent/client.go | 2 +- examples/o2orecur/ent/config.go | 18 ++--- 29 files changed, 178 insertions(+), 200 deletions(-) diff --git a/entc/gen/bindata.go b/entc/gen/bindata.go index 42bef7510..0a9bc61a9 100644 --- a/entc/gen/bindata.go +++ b/entc/gen/bindata.go @@ -1,4 +1,4 @@ -// Package gen Code generated by go-bindata. (@generated) DO NOT EDIT. +// Code generated by go-bindata. (@generated) DO NOT EDIT. // sources: // template/base.tmpl // template/builder/create.tmpl @@ -85,32 +85,21 @@ type bindataFileInfo struct { modTime time.Time } -// Name return file name func (fi bindataFileInfo) Name() string { return fi.name } - -// Size return file size func (fi bindataFileInfo) Size() int64 { return fi.size } - -// Mode return file mode func (fi bindataFileInfo) Mode() os.FileMode { return fi.mode } - -// Mode return file modify time func (fi bindataFileInfo) ModTime() time.Time { return fi.modTime } - -// IsDir return file whether a directory func (fi bindataFileInfo) IsDir() bool { - return fi.mode&os.ModeDir != 0 + return false } - -// Sys return file is sys mode func (fi bindataFileInfo) Sys() interface{} { return nil } @@ -130,7 +119,7 @@ func templateBaseTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/base.tmpl", size: 5021, mode: os.FileMode(420), modTime: time.Unix(1565007749, 0)} + info := bindataFileInfo{name: "template/base.tmpl", size: 5021, mode: os.FileMode(420), modTime: time.Unix(1564913315, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -150,7 +139,7 @@ func templateBuilderCreateTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/builder/create.tmpl", size: 2845, mode: os.FileMode(420), modTime: time.Unix(1566925536, 0)} + info := bindataFileInfo{name: "template/builder/create.tmpl", size: 2845, mode: os.FileMode(420), modTime: time.Unix(1566979817, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -170,7 +159,7 @@ func templateBuilderDeleteTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/builder/delete.tmpl", size: 2044, mode: os.FileMode(420), modTime: time.Unix(1565162769, 0)} + info := bindataFileInfo{name: "template/builder/delete.tmpl", size: 2044, mode: os.FileMode(420), modTime: time.Unix(1565106398, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -190,7 +179,7 @@ func templateBuilderQueryTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/builder/query.tmpl", size: 13220, mode: os.FileMode(420), modTime: time.Unix(1565178244, 0)} + info := bindataFileInfo{name: "template/builder/query.tmpl", size: 13220, mode: os.FileMode(420), modTime: time.Unix(1565165343, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -210,7 +199,7 @@ func templateBuilderSetterTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/builder/setter.tmpl", size: 3256, mode: os.FileMode(420), modTime: time.Unix(1566925536, 0)} + info := bindataFileInfo{name: "template/builder/setter.tmpl", size: 3256, mode: os.FileMode(420), modTime: time.Unix(1566979817, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -230,12 +219,12 @@ func templateBuilderUpdateTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/builder/update.tmpl", size: 7651, mode: os.FileMode(420), modTime: time.Unix(1566925536, 0)} + info := bindataFileInfo{name: "template/builder/update.tmpl", size: 7651, mode: os.FileMode(420), modTime: time.Unix(1566979817, 0)} a := &asset{bytes: bytes, info: info} return a, nil } -var _templateClientTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xac\x57\x4d\x73\xdb\x36\x10\x3d\x93\xbf\x62\x8b\x51\x3a\xa4\x87\x06\xdb\x1e\xd5\xf1\xc9\xca\xc1\x17\x3b\x6d\xdc\xe9\x31\x03\x83\x4b\x0a\x35\x05\x30\x20\x64\x29\xc3\xea\xbf\x77\xf0\xc1\x2f\x4b\xb2\x95\x4c\x4f\x12\xb1\xc0\xdb\xb7\x6f\x17\x0b\xa0\xeb\xa0\xc0\x52\x48\x04\xc2\x6b\x81\xd2\x10\x38\x1c\xe2\xb8\xeb\x60\xd1\x3c\x57\xb0\xbc\x81\x27\xd6\x22\x2c\xe8\xad\x92\xa5\xa8\xe8\x27\xc6\x9f\x59\x85\x76\x52\xd7\x81\xc1\x4d\x53\x33\x83\x40\xd6\xc8\x0a\xd4\x04\x16\x6e\xb9\xd8\x34\x4a\x1b\x48\xe2\x88\xd4\xaa\x22\x71\x1c\x11\x8b\x78\x0c\x92\x6f\x44\xa5\x99\x41\x12\x47\x5d\x07\x9a\xc9\x0a\x61\xf1\x25\x83\x85\xb4\xae\x17\xf4\x5e\x15\xd8\x5a\xc8\xc8\x23\xc8\x13\x10\x7e\x7c\x1c\x70\x58\xd7\x80\xb2\x70\x5c\x22\x52\x09\xb3\xde\x3e\x51\xae\x36\x79\xc9\x38\x3e\x29\xf5\x2c\x24\xdf\x3e\x31\xa3\x74\x8e\xd2\xe4\x85\x60\x35\x72\x73\x44\xa2\x35\x4a\x5b\x4c\x47\xe5\x73\xf8\xb8\x76\x6c\xe6\x13\x43\xbc\x76\x5e\x58\x43\xef\xdc\x50\x1b\xa6\x7b\xf6\x61\x9a\xa3\x68\x11\x2c\x45\x67\x9f\xfc\x4f\xe3\x38\xcf\xe1\xd6\xe5\x02\x44\x0b\x66\x8d\xe0\x33\x03\x66\xcd\x0c\xac\x55\x5d\xb4\xc0\xea\x1a\xec\xd0\xd3\x56\xd4\x05\xea\x96\xc6\xe6\x5b\x83\xfd\xb2\xd6\xe8\x2d\x37\xd0\xc5\x11\x77\x6a\xc5\x51\x9e\xc3\x67\xbe\xc6\x0d\x7b\x05\x59\x2a\x0d\x5c\x23\x33\x42\x56\x19\xf8\x64\x08\x59\x01\x93\x05\x14\x5a\x35\x8d\xfd\x68\xdd\x4a\x1a\x47\x01\xe2\x2a\x24\x8d\xfa\xef\x37\x53\xe7\xc3\xcf\x73\xf0\x59\xba\x67\x1b\x9b\xa2\x13\x2c\x84\x34\xa8\x19\x77\xde\x77\xc2\xac\x9d\x7d\xbe\x68\x0c\xd6\xa9\x37\xb1\x5c\xcd\x3e\xbd\x0a\x83\xaa\x87\x43\x7c\x70\xa2\xde\xe3\x2e\x08\xe4\x42\xc6\x16\x18\x48\xdc\xf5\x2c\xbc\x56\x5b\x8d\xc5\x48\xa0\x12\x2f\x28\x41\x35\x46\x28\xd9\xd2\xb8\xdc\x4a\x3e\xc2\x24\xaa\x31\x2d\x50\x4a\x1f\x9c\x3d\x85\xab\x00\x6f\x85\xb7\x22\x78\xc4\xae\x56\xd5\x12\x6a\x55\xd1\x4f\x5a\x48\x53\xcb\x43\x1c\x71\x1a\x30\x1d\x06\xa5\x34\x8d\x23\x8d\x66\xab\x25\xfc\xec\x41\xba\x38\x0a\xd9\x5b\x02\xcf\xe2\x28\x88\xbf\x84\x5e\xfc\x7b\xdc\xf9\xa1\x84\xd3\x42\x8b\x17\xd4\x69\x76\x54\x98\x27\x72\x31\x97\x6e\x69\xc3\x39\xa1\x5e\xc2\x7b\xb4\xa1\x48\x7b\x19\x1f\xf7\xe0\xa9\xf6\xfa\x19\xcd\x64\x6b\x53\xa7\x24\xab\x83\x9a\x41\xab\x84\xf7\xa2\xa4\xf0\xb8\x4f\xb8\xd9\x5b\x51\x0c\xee\x8d\xdd\xc8\xf6\x37\x85\xe4\xea\x71\x9f\x01\x6a\xad\x74\x6a\xa5\x13\x25\x7c\xc9\x40\x3d\x3b\x05\x43\x68\x34\xb9\x32\xfb\x95\x8f\xf2\x77\x6b\xb3\xf2\x04\xc1\xa4\xa8\x33\x28\x37\x86\x7e\xb4\x10\x65\x42\xfa\xe6\x65\xa3\xe3\x4c\x4a\x65\x77\x04\xd3\x06\xd8\x94\xaa\x4b\xb2\x90\xf3\x41\x92\xda\x38\x23\xe3\x09\x59\x06\x12\x77\x9e\x78\x36\x90\x49\x1d\x47\x6b\xff\xe9\xc6\x7a\xbf\x98\x8c\x63\xe1\xb6\xd7\xd4\xe7\x12\x3e\xbc\x10\xe7\xcf\x3b\xe7\x65\x35\x29\x1e\xef\x72\x09\x96\x80\x2b\x24\x4e\x6b\x55\x65\xf0\x82\xfa\x49\xb5\x68\xbf\xc3\xdf\xc3\x58\x42\x8f\xfb\x59\xf9\x94\xd5\xff\x5a\x19\x65\x75\x5c\x1b\x99\x8d\x3c\xf6\x27\xc7\x5b\x5e\x2c\x60\xd8\x6f\xcb\x1b\x68\xec\x86\x18\x3c\x90\xdb\xf1\x04\x0a\x1d\x23\x4c\xf5\x1d\x83\x4d\xfb\xc5\x71\x7b\xe8\xdb\x94\xeb\x84\xf3\xc5\x47\x0d\x31\x1c\x71\x1a\xdd\x3e\x5d\x48\xfa\x27\x72\xb4\x42\xc3\xe1\xd0\x75\x60\xd3\xfb\xd5\x9b\x09\x27\x7e\xcc\x7d\x05\xca\x25\x90\x0f\xf4\xb7\x96\x0c\xee\xff\x85\x5a\xed\xfa\xd5\xfd\xc9\xe3\x5b\xce\x9c\xc9\xb8\x73\xde\x8c\xa5\xd4\x6a\x33\x69\x40\x9e\xf5\xd8\x7f\x66\x98\x09\x0f\xf6\xd4\xf7\xc1\xd1\x59\x37\x56\xc4\xcc\xd0\x0d\x95\xd1\xef\xe9\x5b\xd7\x10\xa7\xec\xfc\x40\x68\xb9\x8e\xe5\x8c\xe1\x64\x7f\xcf\xa0\xd3\x00\x95\xa4\xaf\x9b\xb2\x07\x7c\x45\xe9\x95\x79\x24\x46\xfd\xbf\x9e\xdf\x5f\x4d\x31\xe3\x27\x61\xeb\x47\x7e\x80\xa0\xc7\x3a\x22\x18\x5c\x9c\x23\xe8\xcd\xef\x10\x7c\x90\xef\x71\x1c\x73\x8a\xd2\x08\xf3\xed\x3d\x9a\x0f\x12\x93\xbe\xf8\x8e\x0e\xba\xd3\x21\x58\x12\x63\x14\x9c\x0e\xa3\x77\xab\x09\x14\xbd\x5b\xa5\xaf\xb9\xdf\xad\x2e\x66\x2f\x8a\x0b\x98\xdf\xad\x12\x51\x84\xb4\xdc\xad\xe8\xa3\xdd\x98\x97\xb1\x3e\xa5\xfd\x83\x3c\x96\x3f\x03\x51\x2c\x41\x14\x7d\x1a\x56\x58\xe3\xac\x8e\x0b\x3f\xf0\x03\x65\xe2\xa1\x8e\xca\x24\x78\x38\x47\xd5\x9b\xcf\x96\x89\x37\xcf\xca\xe4\x14\xc5\xcb\xab\x64\x00\xbc\xbc\x4a\x46\x0e\xd3\x2a\x19\x46\xcf\x55\xc9\x64\xc2\xa5\xe4\xdf\x2a\x92\xa9\xbf\x0b\x8a\xe4\x14\xe9\x53\xca\xbb\x22\xa1\x7d\xee\xe8\xdf\x6b\xd4\x5e\x9a\xe9\x0b\x81\x3a\x9f\x69\x7a\xb6\xfb\x7d\xdd\xa2\xfe\xf6\x23\x45\xf3\x87\x5d\x78\x54\x33\x6e\xf4\x2c\x71\x67\x3d\x5d\x31\xf3\xc3\x14\xc3\x59\xf5\xb1\xa8\xfc\xa3\xc8\xc2\xf4\x24\x87\xd3\x34\x69\x58\xcb\x59\x0d\x0b\x74\x5a\x3a\x2f\x29\x10\xe7\xa5\x3f\x5a\xbd\xcb\x0e\xc6\xa9\xfd\xc1\x63\x23\x17\xd8\x0e\x47\xd2\x68\xc1\xa2\x42\x50\x25\xb0\xef\xd2\xe2\x94\x93\x77\x4b\xb5\x8f\xc9\x1f\x61\x3e\x19\xcb\x1b\x2f\xdb\x24\xaa\x37\xb4\x8b\xfc\x21\x5e\x19\x48\x6a\x94\xe3\xeb\x2d\x85\x5f\xc3\x65\xa7\xdd\x09\xc3\xd7\xe3\x05\x73\xe5\xdf\x80\x89\xbb\x82\xba\x07\xe4\x7b\x0f\x41\x07\xc3\xed\xeb\xb8\xeb\xe0\x1f\x25\xe4\xf8\xf8\x0b\x60\x2d\x90\x0c\xac\xe6\x4b\x7f\xbb\xba\xf6\x0f\x0b\xdc\x1b\x7b\x45\x58\x48\x20\xfd\xb5\x83\x84\xcb\x86\x4d\x2d\xb1\x99\x0e\x37\x32\x77\x25\x33\x9b\xa6\x1e\xf2\x5b\x02\x09\xcf\xd5\xfc\x43\x9b\x3b\x6d\x72\x7b\x5b\x20\x23\xcb\x61\xe9\x35\xec\x87\x17\xba\x47\xa1\x93\xab\xde\x70\x79\x9b\x3e\x97\xa3\xe8\x10\x9e\xcf\x75\x8b\x13\xf3\xf7\x12\xff\x0e\xde\x89\x90\x05\xee\x27\xc2\xfe\x92\x42\x0f\x72\x3e\x82\xf9\xf3\x79\xe4\x1f\xb6\x98\x73\x10\xbb\x2d\xd2\x5f\xc7\xc6\xbf\x93\xc1\xff\x02\x00\x00\xff\xff\xab\xb1\xf3\xe5\x00\x11\x00\x00") +var _templateClientTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xac\x57\x4d\x73\xdb\x36\x10\x3d\x93\xbf\x62\x8b\x51\x3a\xa4\x87\x06\xdb\x1e\xd5\xf1\xc9\xca\xc1\x17\x3b\x6d\xdc\xe9\x31\x03\x83\x4b\x0a\x35\x05\x30\x20\x14\x29\xc3\xea\xbf\x77\xf0\xc1\x2f\x4b\xb2\x15\x4f\x4f\x12\xb1\xc0\xdb\xb7\x6f\x17\x0b\xa0\xeb\xa0\xc0\x52\x48\x04\xc2\x6b\x81\xd2\x10\x38\x1c\xe2\xb8\xeb\x60\xd1\x3c\x57\xb0\xbc\x81\x27\xd6\x22\x2c\xe8\xad\x92\xa5\xa8\xe8\x27\xc6\x9f\x59\x85\x76\x52\xd7\x81\xc1\x4d\x53\x33\x83\x40\xd6\xc8\x0a\xd4\x04\x16\x6e\xb9\xd8\x34\x4a\x1b\x48\xe2\x88\xd4\xaa\x22\x71\x1c\x11\x8b\x78\x0c\x92\x6f\x44\xa5\x99\x41\x12\x47\x5d\x07\x9a\xc9\x0a\x61\xf1\x25\x83\x85\xb4\xae\x17\xf4\x5e\x15\xd8\x5a\xc8\xc8\x23\xc8\x13\x10\x7e\x7c\x1c\x70\x58\xd7\x80\xb2\x70\x5c\x22\x52\x09\xb3\xde\x3e\x51\xae\x36\x79\xc9\x38\x3e\x29\xf5\x2c\x24\xdf\x3e\x31\xa3\x74\x8e\xd2\xe4\x85\x60\x35\x72\x73\x44\xa2\x35\x4a\x5b\x4c\x47\xe5\x73\xf8\xb8\x76\x6c\xe6\x13\x43\xbc\x76\x5e\x58\x43\xef\xdc\x50\x1b\xa6\x7b\xf6\x61\x9a\xa3\x68\x11\x2c\x45\x67\x9f\xfc\x4f\xe3\x38\xcf\xe1\xd6\xe5\x02\x44\x0b\x66\x8d\xe0\x33\x03\x66\xcd\x0c\xac\x55\x5d\xb4\xc0\xea\x1a\xec\xd0\xd3\x56\xd4\x05\xea\x96\xc6\xe6\x7b\x83\xfd\xb2\xd6\xe8\x2d\x37\xd0\xc5\x11\x77\x6a\xc5\x51\x9e\xc3\x67\xbe\xc6\x0d\x7b\x01\x59\x2a\x0d\x5c\x23\x33\x42\x56\x19\xf8\x64\x08\x59\x01\x93\x05\x14\x5a\x35\x8d\xfd\x68\xdd\x4a\x1a\x47\x01\xe2\x2a\x24\x8d\xfa\xef\x57\x53\xe7\xc3\xcf\x73\xf0\x59\xba\x67\x1b\x9b\xa2\x13\x2c\x84\x34\xa8\x19\x77\xde\x77\xc2\xac\x9d\x7d\xbe\x68\x0c\xd6\xa9\x37\xb1\x5c\xcd\x3e\xbd\x0a\x83\xaa\x87\x43\x7c\x70\xa2\xde\xe3\x2e\x08\xe4\x42\xc6\x16\x18\x48\xdc\xf5\x2c\xbc\x56\x5b\x8d\xc5\x48\xa0\x12\xdf\x50\x82\x6a\x8c\x50\xb2\xa5\x71\xb9\x95\x7c\x84\x49\x54\x63\x5a\xa0\x94\x3e\x38\x7b\x0a\x57\x01\xde\x0a\x6f\x45\xf0\x88\x5d\xad\xaa\x25\xd4\xaa\xa2\x9f\xb4\x90\xa6\x96\x87\x38\xe2\x34\x60\x3a\x0c\x4a\x69\x1a\x47\x1a\xcd\x56\x4b\xf8\xd9\x83\x74\x71\x14\xb2\xb7\x04\x9e\xc5\x51\x10\x7f\x09\xbd\xf8\xf7\xb8\xf3\x43\x09\xa7\x85\x16\xdf\x50\xa7\xd9\x51\x61\x9e\xc8\xc5\x5c\xba\xa5\x0d\xe7\x84\x7a\x09\xef\xd1\x86\x22\xed\x65\x7c\xdc\x83\xa7\xda\xeb\x67\x34\x93\xad\x4d\x9d\x92\xac\x0e\x6a\x06\xad\x12\xde\x8b\x92\xc2\xe3\x3e\xe1\x66\x6f\x45\x31\xb8\x37\x76\x23\xdb\xdf\x14\x92\xab\xc7\x7d\x06\xa8\xb5\xd2\xa9\x95\x4e\x94\xf0\x25\x03\xf5\xec\x14\x0c\xa1\xd1\xe4\xca\xec\x57\x3e\xca\xdf\xad\xcd\xca\x13\x04\x93\xa2\xce\xa0\xdc\x18\xfa\xd1\x42\x94\x09\xe9\x9b\x97\x8d\x8e\x33\x29\x95\xdd\x11\x4c\x1b\x60\x53\xaa\x2e\xc9\x42\xce\x07\x49\x6a\xe3\x8c\x8c\x27\x64\x19\x48\xdc\x79\xe2\xd9\x40\x26\x75\x1c\xad\xfd\xa7\x1b\xeb\xfd\x62\x32\x8e\x85\xdb\x5e\x53\x9f\x4b\xf8\xf0\x8d\x38\x7f\xde\x39\x2f\xab\x49\xf1\x78\x97\x4b\xb0\x04\x5c\x21\x71\x5a\xab\x2a\x83\x02\x9f\xb6\xee\xcb\xfd\x39\x8c\xe5\xf3\xb8\x9f\x95\x4e\x59\xfd\xaf\x55\x51\x56\xc7\x75\x91\xd9\xa8\x63\x7f\x6a\xbc\xe6\xc5\x02\x86\xbd\xb6\xbc\x81\xc6\x6e\x86\xc1\x03\xb9\x1d\x4f\x9f\xd0\x2d\xc2\x54\xdf\x2d\xd8\xb4\x57\x1c\xb7\x86\xbe\x45\xb9\x2e\x38\x5f\x7c\xd4\x0c\xc3\xf1\xa6\xd1\xed\xd1\x85\xa4\x7f\x22\x47\x2b\x32\x1c\x0e\x5d\x07\x36\xb5\x5f\xbd\x99\x70\xe2\xc7\xdc\x57\xa0\x5c\x02\xf9\x40\x7f\x6b\xc9\xe0\xfe\x5f\xa8\xd5\xae\x5f\xdd\x9f\x3a\xbe\xdd\xcc\x99\x8c\xbb\xe6\xd5\x58\x4a\xad\x36\x93\xe6\xe3\x59\x8f\xbd\x67\x86\x99\xf0\x60\x4f\x7d\x0f\x1c\x9d\x75\x63\x45\xcc\x0c\xdd\x50\x19\xfd\x7e\xbe\x75\xcd\x70\xca\xce\x0f\x84\x76\xeb\x58\xce\x18\x4e\xf6\xf6\x0c\x3a\x0d\x50\x49\xfa\xb2\x21\x7b\xc0\x17\x94\x5e\x98\x47\x62\xd4\xff\xeb\xf9\xfd\xd5\x14\x33\x7e\x12\xb6\x7e\xe4\x1d\x04\x3d\xd6\x11\xc1\xe0\xe2\x1c\x41\x6f\x7e\x83\xe0\x83\x7c\x8b\xe3\x98\x53\x94\x46\x98\xef\x6f\xd1\x7c\x90\x98\xf4\xc5\x77\x74\xc8\x9d\x0e\xc1\x92\x18\xa3\xe0\x74\x18\xbd\x5b\x4d\xa0\xe8\xdd\x2a\x7d\xc9\xfd\x6e\x75\x31\x7b\x51\x5c\xc0\xfc\x6e\x95\x88\x22\xa4\xe5\x6e\x45\x1f\xed\xc6\xbc\x8c\xf5\x29\xed\x1f\xe4\xb1\xfc\x19\x88\x62\x09\xa2\xe8\xd3\xb0\xc2\x1a\x67\x75\x5c\xf8\x81\x77\x94\x89\x87\x3a\x2a\x93\xe0\xe1\x1c\x55\x6f\x3e\x5b\x26\xde\x3c\x2b\x93\x53\x14\x2f\xaf\x92\x01\xf0\xf2\x2a\x19\x39\x4c\xab\x64\x18\x3d\x57\x25\x93\x09\x97\x92\x7f\xad\x48\xa6\xfe\x2e\x28\x92\x53\xa4\x4f\x29\xef\x8a\x84\xf6\xb9\xa3\x7f\xaf\x51\x7b\x69\xa6\xaf\x03\xea\x7c\xa6\xe9\xd9\xee\xf7\x75\x8b\xfa\xfb\x7b\x8a\xe6\x0f\xbb\xf0\xa8\x66\xdc\xe8\x59\xe2\xce\x7a\xba\x62\xe6\x87\x29\x86\xb3\xea\x63\x51\xf9\x07\x91\x85\xe9\x49\x0e\xa7\x69\xd2\xb0\x96\xb3\x1a\x16\xe8\xb4\x74\x5e\x52\x20\xce\x4b\x7f\xb4\x7a\x97\x1d\x8c\x53\xfb\x83\xc7\x46\x2e\xb0\x1d\x8e\xa4\xd1\x82\x45\x85\xa0\x4a\x60\x3f\xa4\xc5\x29\x27\x6f\x96\x6a\x1f\x93\x3f\xc2\x7c\x32\x96\x37\x5e\xb6\x49\x54\xaf\x68\x17\xf9\x43\xbc\x32\x90\xd4\x28\xc7\x97\x5b\x0a\xbf\x86\xcb\x4e\xbb\x13\x86\xaf\xc7\xcb\xe5\xca\xbf\xff\x12\x77\xfd\x74\x8f\xc7\xb7\x1e\x81\x0e\x86\xdb\x97\x71\xd7\xc1\x3f\x4a\xc8\xf1\xe1\x17\xc0\x5a\x20\x19\x58\xcd\x97\xfe\x76\x75\xed\x1f\x15\xb8\x37\xf6\x8a\xb0\x90\x40\xfa\x6b\x07\x09\x97\x0d\x9b\x5a\x62\x33\x1d\x6e\x64\xee\x4a\x66\x36\x4d\x3d\xe4\xb7\x04\x12\x9e\xaa\xf9\x87\x36\x77\xda\xe4\xf6\xb6\x40\x46\x96\xc3\xd2\x6b\xd8\x0f\xaf\x73\x8f\x42\x27\x57\xbd\xe1\xf2\x36\x7d\x2a\x47\xd1\x21\x3c\x9d\xeb\x16\x27\xe6\x1f\x25\xfe\x03\xbc\x13\x21\x0b\xdc\x4f\x84\xfd\x25\x85\x1e\xe4\x7c\x04\xf3\xa7\xf3\xc8\x3f\x6c\x31\xe7\x20\x76\x5b\xa4\xbf\x8e\x8d\x7f\x27\x83\xff\x05\x00\x00\xff\xff\xd7\xc4\x79\xf0\xfc\x10\x00\x00") func templateClientTmplBytes() ([]byte, error) { return bindataRead( @@ -250,12 +239,12 @@ func templateClientTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/client.tmpl", size: 4352, mode: os.FileMode(420), modTime: time.Unix(1566238093, 0)} + info := bindataFileInfo{name: "template/client.tmpl", size: 4348, mode: os.FileMode(420), modTime: time.Unix(1566996860, 0)} a := &asset{bytes: bytes, info: info} return a, nil } -var _templateConfigTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x8c\x53\xbd\x8e\xdb\x3c\x10\xac\xc5\xa7\x58\x18\x2e\xe4\x0f\x07\xba\xff\x00\x57\x49\x79\x40\x52\xa5\x0d\x28\x6a\xc5\x63\x4e\xe6\x2a\xe4\xea\x90\x03\xa1\x77\x0f\xf8\x77\x52\x80\x2b\xdc\x59\xdc\x99\xd9\xd9\xd9\x75\x8c\x30\xe2\x64\x1d\xc2\x49\x93\x9b\xac\x39\xc1\xb6\x09\x11\x23\x9c\x97\x57\x03\xff\xdf\x60\x50\x01\xe1\x2c\xbf\xe4\xaa\xfc\xae\xf4\xab\x32\x98\x40\x31\x02\xe3\x7d\x99\x15\x23\x9c\x5e\x50\x8d\xe8\x4f\x70\x6e\xf4\xbd\x64\xef\x0b\x79\x6e\xa5\xeb\x15\xbe\x2d\x6c\xc9\xc1\xb4\x3a\x9d\x7f\x30\x41\xe9\xbd\x7a\x04\x7e\x41\xd0\xb3\x45\xc7\x52\xf0\xfb\x82\x47\x74\xff\x5f\xc1\x5d\xb2\x4c\x71\x04\x36\x14\x4e\x55\x50\x05\x4d\xfe\xa0\x04\xca\x8d\x60\x39\xc0\xb0\xda\x79\x44\x5f\x95\x0b\x05\x02\xfb\x55\x33\x44\xd1\x5d\xaf\x30\x7a\xfb\x86\xbe\x89\xd6\xaf\x35\xe0\x98\x25\xf1\x0f\xea\x95\x11\x46\xc5\x2a\xe7\xe2\xf1\xf7\x8a\x81\x83\x14\x5d\xc5\x8e\x56\xcd\xa8\x59\x7e\xcd\x9f\x59\xf3\x0d\xfd\x40\x01\x01\x9d\x1a\x66\x04\x55\x1f\x2c\xbf\xc3\x4c\xc6\x58\x67\xa4\xe8\x1a\x68\x20\x9a\x33\x6b\x26\xb3\x37\xae\x38\x20\xf7\xa1\x76\xa7\x11\xa5\xe8\x12\x2c\x67\x23\xa5\xb4\x8e\xd1\x4f\x4a\x63\xdc\x2e\xe2\x98\x75\x00\xb5\x2c\xb3\xc5\x32\x15\xd5\xb7\x14\xfd\x47\x72\x40\xc3\xaf\xe4\x5b\x24\x31\xe8\x35\xb4\xac\x1b\xbc\xa7\x85\x03\x48\x29\x8b\xe4\x25\x05\x96\xac\xfd\x7c\x4a\x88\x74\x29\x5e\x39\x93\xd5\x43\xaa\x75\xb4\x70\xaf\x2f\xa2\xdb\x44\x67\x27\xd0\xb2\x19\x4f\x35\x2d\x6b\x5c\xb7\x3d\x30\x1c\x56\xd3\xb7\xc2\x13\x68\x39\x93\xc9\xf4\x32\xc9\x8f\x4a\x0f\xc8\xe1\xb8\xdb\x16\x0d\x53\x8b\xa6\xce\x50\x09\xfd\xa5\x9d\x50\x14\x9d\x47\x5e\x7d\x3d\xa6\xc3\x88\xc5\x52\x33\x78\x03\xf6\x2b\xee\x9d\x9f\xc9\x3c\xde\xf5\x99\x4c\x3f\xb9\x4f\x57\xf2\xb0\x91\xb4\xd3\x1b\x4c\x6e\xb7\x50\xae\x69\xff\x9b\xfc\xe3\xa5\x24\x56\xfb\x17\x64\xff\xe9\x35\x3e\x6c\x60\x5f\x4e\xbd\xe2\xec\x23\x46\x40\x37\xc2\xb6\xfd\x0d\x00\x00\xff\xff\xd4\xa2\x5c\x51\x35\x04\x00\x00") +var _templateConfigTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x8c\x93\xcf\x6e\xdb\x30\x0c\xc6\xcf\xd6\x53\x10\x41\x0e\xf6\x50\x28\xf7\x01\x39\xad\xc7\x02\xdb\x1b\x0c\xb2\x44\xab\x5a\x15\xc9\x93\xa8\x61\x83\xe0\x77\x1f\xf4\xc7\x89\x0b\xf4\xd0\x5b\x14\x7e\xfc\x48\xfe\x48\xe7\x0c\x0a\x17\xe3\x10\x4e\xd2\xbb\xc5\xe8\x13\x6c\x1b\x63\x39\xc3\x79\x7d\xd3\xf0\xf5\x0a\xb3\x88\x08\x67\xfe\xad\x46\xf9\x0f\x21\xdf\x84\xc6\x22\xca\x19\x08\x6f\xab\x15\x84\x70\x7a\x45\xa1\x30\x9c\xe0\xbc\xa7\x3f\x42\xe6\xb6\xfa\x40\x7b\xe8\x72\x81\xef\x2b\x19\xef\x60\x49\x4e\xd6\x1f\xe4\xa1\xd5\x4e\x01\x81\x5e\x11\xa4\x35\xe8\x88\x33\xfa\xb7\xe2\x51\x3d\x7e\x69\xba\xa9\xda\xb4\x8e\xc0\xc4\x96\xd3\x1d\x44\x53\xfb\x70\x70\x02\xe1\x14\x18\x8a\x30\x27\x63\x15\x86\xee\xdc\x52\x20\x52\x48\x92\x20\xb3\xe1\x72\x01\x15\xcc\x1f\x0c\x90\x22\xaa\x6a\x82\x7f\x51\x26\x32\x4e\x83\x12\x24\x2a\x8b\x80\xbf\x13\x46\x8a\x9c\x0d\x5d\xad\x8c\xb0\x28\x89\x3f\xd7\x67\xf3\xc1\x39\x69\x40\x27\x66\x8b\x20\xfa\xd3\x7a\xad\x8d\xd3\x25\xb1\xbe\x67\xef\x6d\x55\x5b\xaf\x1f\x25\xbb\x0a\xbc\xeb\x69\x37\xaf\x90\xb3\xa1\x88\x2a\x05\xce\xb9\x71\x84\x61\x11\x12\xf3\x36\xb1\x23\xd5\x08\x62\x5d\xad\xc1\x06\xc5\xf7\xff\x0a\xe4\x3b\x23\xf0\xf3\xaf\xd2\x2d\x2b\x66\x30\x4a\xd8\xa9\xee\xf2\xd1\xaf\x14\x81\x73\xde\x2c\xa7\x82\xa6\x34\xf6\xf3\xa9\x28\xca\x4d\x04\xe1\x74\x75\x8f\x25\x36\xf8\x95\x46\x39\xb1\x61\x63\x83\x59\x40\xf2\xd6\x76\x89\x48\xde\x11\x5d\x1f\x90\x4a\x70\xdc\x03\x4f\x20\xb9\xf5\xba\x26\xb7\x39\x9e\x0f\xe4\xe2\x7b\x70\xfb\x1c\xe5\x38\x1a\xeb\x3e\x44\xf3\x9c\xf6\x5b\xc9\x6c\x08\x48\x29\xf4\xab\x39\x4c\xd8\x7b\xaa\xa6\x57\xa0\x90\xf0\x51\xf8\xc5\x6b\x88\x48\x8d\xdc\x5e\xf1\x7e\xa4\x05\xc0\x71\x1d\xb5\xee\x8b\xd7\xe3\xe2\x3e\xdc\xca\xa7\x9b\x29\x6b\xbd\xc2\xe2\x0e\x04\x1a\xb2\xfb\x37\x11\x8f\xa7\xac\xde\xcd\x5d\x1f\xe3\x87\x67\xf8\x79\x1a\xf7\x0d\xf5\xf3\xad\x7d\xe4\x0c\xe8\x14\x6c\xdb\xff\x00\x00\x00\xff\xff\x08\x03\xc6\xa2\x22\x04\x00\x00") func templateConfigTmplBytes() ([]byte, error) { return bindataRead( @@ -270,7 +259,7 @@ func templateConfigTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/config.tmpl", size: 1077, mode: os.FileMode(420), modTime: time.Unix(1565007749, 0)} + info := bindataFileInfo{name: "template/config.tmpl", size: 1058, mode: os.FileMode(420), modTime: time.Unix(1566996430, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -290,7 +279,7 @@ func templateContextTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/context.tmpl", size: 523, mode: os.FileMode(420), modTime: time.Unix(1565007749, 0)} + info := bindataFileInfo{name: "template/context.tmpl", size: 523, mode: os.FileMode(420), modTime: time.Unix(1564913326, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -310,7 +299,7 @@ func templateDialectGremlinByTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/gremlin/by.tmpl", size: 1679, mode: os.FileMode(420), modTime: time.Unix(1564494654, 0)} + info := bindataFileInfo{name: "template/dialect/gremlin/by.tmpl", size: 1679, mode: os.FileMode(420), modTime: time.Unix(1564480239, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -330,7 +319,7 @@ func templateDialectGremlinCreateTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/gremlin/create.tmpl", size: 2567, mode: os.FileMode(420), modTime: time.Unix(1560858191, 0)} + info := bindataFileInfo{name: "template/dialect/gremlin/create.tmpl", size: 2567, mode: os.FileMode(420), modTime: time.Unix(1558503319, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -350,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(1566987566, 0)} + info := bindataFileInfo{name: "template/dialect/gremlin/decode.tmpl", size: 1924, mode: os.FileMode(420), modTime: time.Unix(1566981175, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -370,7 +359,7 @@ func templateDialectGremlinDeleteTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/gremlin/delete.tmpl", size: 541, mode: os.FileMode(420), modTime: time.Unix(1564440681, 0)} + info := bindataFileInfo{name: "template/dialect/gremlin/delete.tmpl", size: 541, mode: os.FileMode(420), modTime: time.Unix(1563979564, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -390,7 +379,7 @@ func templateDialectGremlinErrorsTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/gremlin/errors.tmpl", size: 1608, mode: os.FileMode(420), modTime: time.Unix(1564494654, 0)} + info := bindataFileInfo{name: "template/dialect/gremlin/errors.tmpl", size: 1608, mode: os.FileMode(420), modTime: time.Unix(1564480239, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -410,7 +399,7 @@ func templateDialectGremlinGroupTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/gremlin/group.tmpl", size: 1151, mode: os.FileMode(420), modTime: time.Unix(1560858192, 0)} + info := bindataFileInfo{name: "template/dialect/gremlin/group.tmpl", size: 1151, mode: os.FileMode(420), modTime: time.Unix(1558503319, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -430,7 +419,7 @@ func templateDialectGremlinMetaTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/gremlin/meta.tmpl", size: 508, mode: os.FileMode(420), modTime: time.Unix(1564494654, 0)} + info := bindataFileInfo{name: "template/dialect/gremlin/meta.tmpl", size: 508, mode: os.FileMode(420), modTime: time.Unix(1564480239, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -450,7 +439,7 @@ func templateDialectGremlinPredicateTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/gremlin/predicate.tmpl", size: 3117, mode: os.FileMode(420), modTime: time.Unix(1565187546, 0)} + info := bindataFileInfo{name: "template/dialect/gremlin/predicate.tmpl", size: 3117, mode: os.FileMode(420), modTime: time.Unix(1565183614, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -470,7 +459,7 @@ func templateDialectGremlinQueryTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/gremlin/query.tmpl", size: 3733, mode: os.FileMode(420), modTime: time.Unix(1564494654, 0)} + info := bindataFileInfo{name: "template/dialect/gremlin/query.tmpl", size: 3733, mode: os.FileMode(420), modTime: time.Unix(1564480239, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -490,7 +479,7 @@ func templateDialectGremlinUpdateTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/gremlin/update.tmpl", size: 4840, mode: os.FileMode(420), modTime: time.Unix(1566925536, 0)} + info := bindataFileInfo{name: "template/dialect/gremlin/update.tmpl", size: 4840, mode: os.FileMode(420), modTime: time.Unix(1566979817, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -510,7 +499,7 @@ func templateDialectSqlByTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/sql/by.tmpl", size: 753, mode: os.FileMode(420), modTime: time.Unix(1564494654, 0)} + info := bindataFileInfo{name: "template/dialect/sql/by.tmpl", size: 753, mode: os.FileMode(420), modTime: time.Unix(1564480239, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -530,7 +519,7 @@ func templateDialectSqlCreateTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/sql/create.tmpl", size: 6066, mode: os.FileMode(420), modTime: time.Unix(1565187546, 0)} + info := bindataFileInfo{name: "template/dialect/sql/create.tmpl", size: 6066, mode: os.FileMode(420), modTime: time.Unix(1565180278, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -550,7 +539,7 @@ func templateDialectSqlDecodeTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/sql/decode.tmpl", size: 1820, mode: os.FileMode(420), modTime: time.Unix(1566217695, 0)} + info := bindataFileInfo{name: "template/dialect/sql/decode.tmpl", size: 1820, mode: os.FileMode(420), modTime: time.Unix(1566224080, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -570,7 +559,7 @@ func templateDialectSqlDeleteTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/sql/delete.tmpl", size: 489, mode: os.FileMode(420), modTime: time.Unix(1564440681, 0)} + info := bindataFileInfo{name: "template/dialect/sql/delete.tmpl", size: 489, mode: os.FileMode(420), modTime: time.Unix(1563979564, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -590,7 +579,7 @@ func templateDialectSqlErrorsTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/sql/errors.tmpl", size: 771, mode: os.FileMode(420), modTime: time.Unix(1564494654, 0)} + info := bindataFileInfo{name: "template/dialect/sql/errors.tmpl", size: 771, mode: os.FileMode(420), modTime: time.Unix(1564480239, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -610,7 +599,7 @@ func templateDialectSqlGroupTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/sql/group.tmpl", size: 835, mode: os.FileMode(420), modTime: time.Unix(1560858192, 0)} + info := bindataFileInfo{name: "template/dialect/sql/group.tmpl", size: 835, mode: os.FileMode(420), modTime: time.Unix(1558503319, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -630,7 +619,7 @@ func templateDialectSqlMetaTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/sql/meta.tmpl", size: 1586, mode: os.FileMode(420), modTime: time.Unix(1564494654, 0)} + info := bindataFileInfo{name: "template/dialect/sql/meta.tmpl", size: 1586, mode: os.FileMode(420), modTime: time.Unix(1564480239, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -650,7 +639,7 @@ func templateDialectSqlPredicateTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/sql/predicate.tmpl", size: 4330, mode: os.FileMode(420), modTime: time.Unix(1565187546, 0)} + info := bindataFileInfo{name: "template/dialect/sql/predicate.tmpl", size: 4330, mode: os.FileMode(420), modTime: time.Unix(1565183595, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -670,7 +659,7 @@ func templateDialectSqlQueryTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/sql/query.tmpl", size: 6186, mode: os.FileMode(420), modTime: time.Unix(1564498182, 0)} + info := bindataFileInfo{name: "template/dialect/sql/query.tmpl", size: 6186, mode: os.FileMode(420), modTime: time.Unix(1564480239, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -690,7 +679,7 @@ func templateDialectSqlUpdateTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/sql/update.tmpl", size: 11432, mode: os.FileMode(420), modTime: time.Unix(1566925536, 0)} + info := bindataFileInfo{name: "template/dialect/sql/update.tmpl", size: 11432, mode: os.FileMode(420), modTime: time.Unix(1566979817, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -710,7 +699,7 @@ func templateEntTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/ent.tmpl", size: 3369, mode: os.FileMode(420), modTime: time.Unix(1565187546, 0)} + info := bindataFileInfo{name: "template/ent.tmpl", size: 3369, mode: os.FileMode(420), modTime: time.Unix(1565180140, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -730,7 +719,7 @@ func templateExampleTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/example.tmpl", size: 2229, mode: os.FileMode(420), modTime: time.Unix(1566238093, 0)} + info := bindataFileInfo{name: "template/example.tmpl", size: 2229, mode: os.FileMode(420), modTime: time.Unix(1566224088, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -750,7 +739,7 @@ func templateHeaderTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/header.tmpl", size: 240, mode: os.FileMode(420), modTime: time.Unix(1565007749, 0)} + info := bindataFileInfo{name: "template/header.tmpl", size: 240, mode: os.FileMode(420), modTime: time.Unix(1564913919, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -770,7 +759,7 @@ func templateImportTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/import.tmpl", size: 556, mode: os.FileMode(420), modTime: time.Unix(1566238093, 0)} + info := bindataFileInfo{name: "template/import.tmpl", size: 556, mode: os.FileMode(420), modTime: time.Unix(1566224088, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -790,7 +779,7 @@ func templateMetaTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/meta.tmpl", size: 2628, mode: os.FileMode(420), modTime: time.Unix(1566925536, 0)} + info := bindataFileInfo{name: "template/meta.tmpl", size: 2628, mode: os.FileMode(420), modTime: time.Unix(1566979817, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -810,7 +799,7 @@ func templateMigrateMigrateTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/migrate/migrate.tmpl", size: 1738, mode: os.FileMode(420), modTime: time.Unix(1566238093, 0)} + info := bindataFileInfo{name: "template/migrate/migrate.tmpl", size: 1738, mode: os.FileMode(420), modTime: time.Unix(1566224088, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -830,7 +819,7 @@ func templateMigrateSchemaTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/migrate/schema.tmpl", size: 3595, mode: os.FileMode(420), modTime: time.Unix(1566987567, 0)} + info := bindataFileInfo{name: "template/migrate/schema.tmpl", size: 3595, mode: os.FileMode(420), modTime: time.Unix(1566995215, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -850,7 +839,7 @@ func templatePredicateTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/predicate.tmpl", size: 1017, mode: os.FileMode(420), modTime: time.Unix(1566238093, 0)} + info := bindataFileInfo{name: "template/predicate.tmpl", size: 1017, mode: os.FileMode(420), modTime: time.Unix(1566224088, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -870,7 +859,7 @@ func templateTxTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/tx.tmpl", size: 3186, mode: os.FileMode(420), modTime: time.Unix(1566238093, 0)} + info := bindataFileInfo{name: "template/tx.tmpl", size: 3186, mode: os.FileMode(420), modTime: time.Unix(1566224088, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -890,7 +879,7 @@ func templateWhereTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/where.tmpl", size: 4903, mode: os.FileMode(420), modTime: time.Unix(1566480918, 0)} + info := bindataFileInfo{name: "template/where.tmpl", size: 4903, mode: os.FileMode(420), modTime: time.Unix(1566475502, 0)} a := &asset{bytes: bytes, info: info} return a, nil } diff --git a/entc/gen/template/client.tmpl b/entc/gen/template/client.tmpl index da8549118..a546db2e6 100644 --- a/entc/gen/template/client.tmpl +++ b/entc/gen/template/client.tmpl @@ -52,7 +52,7 @@ func (c *Client) Tx(ctx context.Context) (*Tx, error) { if err != nil { return nil, fmt.Errorf("{{ $pkg }}: starting a transaction: %v", err) } - cfg := config{driver: tx, log: c.log, verbose: c.verbose} + cfg := config{driver: tx, log: c.log, debug: c.debug} return &Tx{ config: cfg, {{ range $_, $n := $.Nodes -}} diff --git a/entc/gen/template/config.tmpl b/entc/gen/template/config.tmpl index 93d5ce03e..c2613731c 100644 --- a/entc/gen/template/config.tmpl +++ b/entc/gen/template/config.tmpl @@ -10,11 +10,11 @@ type Option func(*config) // Config is the configuration for the client and its builder. type config struct { - // driver is the driver used for execute database requests. + // driver used for executing database requests. driver dialect.Driver - // verbose enable a verbosity logging. - verbose bool - // log used for logging on verbose mode. + // debug enable a debug logging. + debug bool + // log used for logging on debug mode. log func(...interface{}) } @@ -23,19 +23,19 @@ func (c *config) options(opts ...Option) { for _, opt := range opts { opt(c) } - if c.verbose { + if c.debug { c.driver = dialect.Debug(c.driver, c.log) } } -// Verbose sets the client logging to verbose. -func Verbose() Option { +// Debug enables debug logging on the ent.Driver. +func Debug() Option { return func(c *config) { - c.verbose = true + c.debug = true } } -// Log sets the client logging to verbose. +// Log sets the logging function for debug mode. func Log(fn func(...interface{})) Option { return func(c *config) { c.log = fn diff --git a/entc/integration/ent/client.go b/entc/integration/ent/client.go index 391355ba7..c23b9ad89 100644 --- a/entc/integration/ent/client.go +++ b/entc/integration/ent/client.go @@ -81,7 +81,7 @@ func (c *Client) Tx(ctx context.Context) (*Tx, error) { if err != nil { return nil, fmt.Errorf("ent: starting a transaction: %v", err) } - cfg := config{driver: tx, log: c.log, verbose: c.verbose} + cfg := config{driver: tx, log: c.log, debug: c.debug} return &Tx{ config: cfg, Card: NewCardClient(cfg), diff --git a/entc/integration/ent/config.go b/entc/integration/ent/config.go index 7c345da10..2200a84b2 100644 --- a/entc/integration/ent/config.go +++ b/entc/integration/ent/config.go @@ -11,11 +11,11 @@ type Option func(*config) // Config is the configuration for the client and its builder. type config struct { - // driver is the driver used for execute database requests. + // driver used for executing database requests. driver dialect.Driver - // verbose enable a verbosity logging. - verbose bool - // log used for logging on verbose mode. + // debug enable a debug logging. + debug bool + // log used for logging on debug mode. log func(...interface{}) } @@ -24,19 +24,19 @@ func (c *config) options(opts ...Option) { for _, opt := range opts { opt(c) } - if c.verbose { + if c.debug { c.driver = dialect.Debug(c.driver, c.log) } } -// Verbose sets the client logging to verbose. -func Verbose() Option { +// Debug enables debug logging on the ent.Driver. +func Debug() Option { return func(c *config) { - c.verbose = true + c.debug = true } } -// Log sets the client logging to verbose. +// Log sets the logging function for debug mode. func Log(fn func(...interface{})) Option { return func(c *config) { c.log = fn diff --git a/entc/integration/migrate/entv1/client.go b/entc/integration/migrate/entv1/client.go index 2842ada90..2520eac28 100644 --- a/entc/integration/migrate/entv1/client.go +++ b/entc/integration/migrate/entv1/client.go @@ -41,7 +41,7 @@ func (c *Client) Tx(ctx context.Context) (*Tx, error) { if err != nil { return nil, fmt.Errorf("entv1: starting a transaction: %v", err) } - cfg := config{driver: tx, log: c.log, verbose: c.verbose} + cfg := config{driver: tx, log: c.log, debug: c.debug} return &Tx{ config: cfg, User: NewUserClient(cfg), diff --git a/entc/integration/migrate/entv1/config.go b/entc/integration/migrate/entv1/config.go index c48102a79..57fd6ed01 100644 --- a/entc/integration/migrate/entv1/config.go +++ b/entc/integration/migrate/entv1/config.go @@ -11,11 +11,11 @@ type Option func(*config) // Config is the configuration for the client and its builder. type config struct { - // driver is the driver used for execute database requests. + // driver used for executing database requests. driver dialect.Driver - // verbose enable a verbosity logging. - verbose bool - // log used for logging on verbose mode. + // debug enable a debug logging. + debug bool + // log used for logging on debug mode. log func(...interface{}) } @@ -24,19 +24,19 @@ func (c *config) options(opts ...Option) { for _, opt := range opts { opt(c) } - if c.verbose { + if c.debug { c.driver = dialect.Debug(c.driver, c.log) } } -// Verbose sets the client logging to verbose. -func Verbose() Option { +// Debug enables debug logging on the ent.Driver. +func Debug() Option { return func(c *config) { - c.verbose = true + c.debug = true } } -// Log sets the client logging to verbose. +// Log sets the logging function for debug mode. func Log(fn func(...interface{})) Option { return func(c *config) { c.log = fn diff --git a/entc/integration/migrate/entv2/client.go b/entc/integration/migrate/entv2/client.go index cb6b0d404..516ab24eb 100644 --- a/entc/integration/migrate/entv2/client.go +++ b/entc/integration/migrate/entv2/client.go @@ -49,7 +49,7 @@ func (c *Client) Tx(ctx context.Context) (*Tx, error) { if err != nil { return nil, fmt.Errorf("entv2: starting a transaction: %v", err) } - cfg := config{driver: tx, log: c.log, verbose: c.verbose} + cfg := config{driver: tx, log: c.log, debug: c.debug} return &Tx{ config: cfg, Group: NewGroupClient(cfg), diff --git a/entc/integration/migrate/entv2/config.go b/entc/integration/migrate/entv2/config.go index 9bf6bf15d..44f76b829 100644 --- a/entc/integration/migrate/entv2/config.go +++ b/entc/integration/migrate/entv2/config.go @@ -11,11 +11,11 @@ type Option func(*config) // Config is the configuration for the client and its builder. type config struct { - // driver is the driver used for execute database requests. + // driver used for executing database requests. driver dialect.Driver - // verbose enable a verbosity logging. - verbose bool - // log used for logging on verbose mode. + // debug enable a debug logging. + debug bool + // log used for logging on debug mode. log func(...interface{}) } @@ -24,19 +24,19 @@ func (c *config) options(opts ...Option) { for _, opt := range opts { opt(c) } - if c.verbose { + if c.debug { c.driver = dialect.Debug(c.driver, c.log) } } -// Verbose sets the client logging to verbose. -func Verbose() Option { +// Debug enables debug logging on the ent.Driver. +func Debug() Option { return func(c *config) { - c.verbose = true + c.debug = true } } -// Log sets the client logging to verbose. +// Log sets the logging function for debug mode. func Log(fn func(...interface{})) Option { return func(c *config) { c.log = fn diff --git a/entc/integration/migrate/migrate_test.go b/entc/integration/migrate/migrate_test.go index fb2ef4267..bb7231630 100644 --- a/entc/integration/migrate/migrate_test.go +++ b/entc/integration/migrate/migrate_test.go @@ -43,7 +43,7 @@ func TestMySQL(t *testing.T) { SanityV1(t, clientv1) // run migration and execute queries on v2. - clientv2 := entv2.NewClient(entv2.Driver(drv), entv2.Verbose()) + clientv2 := entv2.NewClient(entv2.Driver(drv)) require.NoError(t, clientv2.Schema.Create(ctx, migratev2.WithGlobalUniqueID(true), migratev2.WithDropIndex(true), migratev2.WithDropColumn(true))) SanityV2(t, clientv2) diff --git a/entc/load/bindata.go b/entc/load/bindata.go index 53e5ac8c3..d673a93c7 100644 --- a/entc/load/bindata.go +++ b/entc/load/bindata.go @@ -1,4 +1,4 @@ -// Package load Code generated by go-bindata. (@generated) DO NOT EDIT. +// Code generated by go-bindata. (@generated) DO NOT EDIT. // sources: // template/main.tmpl // schema.go @@ -48,32 +48,21 @@ type bindataFileInfo struct { modTime time.Time } -// Name return file name func (fi bindataFileInfo) Name() string { return fi.name } - -// Size return file size func (fi bindataFileInfo) Size() int64 { return fi.size } - -// Mode return file mode func (fi bindataFileInfo) Mode() os.FileMode { return fi.mode } - -// Mode return file modify time func (fi bindataFileInfo) ModTime() time.Time { return fi.modTime } - -// IsDir return file whether a directory func (fi bindataFileInfo) IsDir() bool { - return fi.mode&os.ModeDir != 0 + return false } - -// Sys return file is sys mode func (fi bindataFileInfo) Sys() interface{} { return nil } @@ -93,7 +82,7 @@ func templateMainTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/main.tmpl", size: 647, mode: os.FileMode(420), modTime: time.Unix(1566138012, 0)} + info := bindataFileInfo{name: "template/main.tmpl", size: 647, mode: os.FileMode(420), modTime: time.Unix(1566131522, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -113,7 +102,7 @@ func schemaGo() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "schema.go", size: 4992, mode: os.FileMode(420), modTime: time.Unix(1566987567, 0)} + info := bindataFileInfo{name: "schema.go", size: 4992, mode: os.FileMode(420), modTime: time.Unix(1566995215, 0)} a := &asset{bytes: bytes, info: info} return a, nil } diff --git a/examples/edgeindex/ent/client.go b/examples/edgeindex/ent/client.go index 20f2c82c5..bc8269f7c 100644 --- a/examples/edgeindex/ent/client.go +++ b/examples/edgeindex/ent/client.go @@ -47,7 +47,7 @@ func (c *Client) Tx(ctx context.Context) (*Tx, error) { if err != nil { return nil, fmt.Errorf("ent: starting a transaction: %v", err) } - cfg := config{driver: tx, log: c.log, verbose: c.verbose} + cfg := config{driver: tx, log: c.log, debug: c.debug} return &Tx{ config: cfg, City: NewCityClient(cfg), diff --git a/examples/edgeindex/ent/config.go b/examples/edgeindex/ent/config.go index 7c345da10..2200a84b2 100644 --- a/examples/edgeindex/ent/config.go +++ b/examples/edgeindex/ent/config.go @@ -11,11 +11,11 @@ type Option func(*config) // Config is the configuration for the client and its builder. type config struct { - // driver is the driver used for execute database requests. + // driver used for executing database requests. driver dialect.Driver - // verbose enable a verbosity logging. - verbose bool - // log used for logging on verbose mode. + // debug enable a debug logging. + debug bool + // log used for logging on debug mode. log func(...interface{}) } @@ -24,19 +24,19 @@ func (c *config) options(opts ...Option) { for _, opt := range opts { opt(c) } - if c.verbose { + if c.debug { c.driver = dialect.Debug(c.driver, c.log) } } -// Verbose sets the client logging to verbose. -func Verbose() Option { +// Debug enables debug logging on the ent.Driver. +func Debug() Option { return func(c *config) { - c.verbose = true + c.debug = true } } -// Log sets the client logging to verbose. +// Log sets the logging function for debug mode. func Log(fn func(...interface{})) Option { return func(c *config) { c.log = fn diff --git a/examples/m2m2types/ent/client.go b/examples/m2m2types/ent/client.go index 74153f2d3..c8a11aa5f 100644 --- a/examples/m2m2types/ent/client.go +++ b/examples/m2m2types/ent/client.go @@ -47,7 +47,7 @@ func (c *Client) Tx(ctx context.Context) (*Tx, error) { if err != nil { return nil, fmt.Errorf("ent: starting a transaction: %v", err) } - cfg := config{driver: tx, log: c.log, verbose: c.verbose} + cfg := config{driver: tx, log: c.log, debug: c.debug} return &Tx{ config: cfg, Group: NewGroupClient(cfg), diff --git a/examples/m2m2types/ent/config.go b/examples/m2m2types/ent/config.go index 7c345da10..2200a84b2 100644 --- a/examples/m2m2types/ent/config.go +++ b/examples/m2m2types/ent/config.go @@ -11,11 +11,11 @@ type Option func(*config) // Config is the configuration for the client and its builder. type config struct { - // driver is the driver used for execute database requests. + // driver used for executing database requests. driver dialect.Driver - // verbose enable a verbosity logging. - verbose bool - // log used for logging on verbose mode. + // debug enable a debug logging. + debug bool + // log used for logging on debug mode. log func(...interface{}) } @@ -24,19 +24,19 @@ func (c *config) options(opts ...Option) { for _, opt := range opts { opt(c) } - if c.verbose { + if c.debug { c.driver = dialect.Debug(c.driver, c.log) } } -// Verbose sets the client logging to verbose. -func Verbose() Option { +// Debug enables debug logging on the ent.Driver. +func Debug() Option { return func(c *config) { - c.verbose = true + c.debug = true } } -// Log sets the client logging to verbose. +// Log sets the logging function for debug mode. func Log(fn func(...interface{})) Option { return func(c *config) { c.log = fn diff --git a/examples/m2mbidi/ent/client.go b/examples/m2mbidi/ent/client.go index 18b5238eb..174c5cb1f 100644 --- a/examples/m2mbidi/ent/client.go +++ b/examples/m2mbidi/ent/client.go @@ -43,7 +43,7 @@ func (c *Client) Tx(ctx context.Context) (*Tx, error) { if err != nil { return nil, fmt.Errorf("ent: starting a transaction: %v", err) } - cfg := config{driver: tx, log: c.log, verbose: c.verbose} + cfg := config{driver: tx, log: c.log, debug: c.debug} return &Tx{ config: cfg, User: NewUserClient(cfg), diff --git a/examples/m2mbidi/ent/config.go b/examples/m2mbidi/ent/config.go index 7c345da10..2200a84b2 100644 --- a/examples/m2mbidi/ent/config.go +++ b/examples/m2mbidi/ent/config.go @@ -11,11 +11,11 @@ type Option func(*config) // Config is the configuration for the client and its builder. type config struct { - // driver is the driver used for execute database requests. + // driver used for executing database requests. driver dialect.Driver - // verbose enable a verbosity logging. - verbose bool - // log used for logging on verbose mode. + // debug enable a debug logging. + debug bool + // log used for logging on debug mode. log func(...interface{}) } @@ -24,19 +24,19 @@ func (c *config) options(opts ...Option) { for _, opt := range opts { opt(c) } - if c.verbose { + if c.debug { c.driver = dialect.Debug(c.driver, c.log) } } -// Verbose sets the client logging to verbose. -func Verbose() Option { +// Debug enables debug logging on the ent.Driver. +func Debug() Option { return func(c *config) { - c.verbose = true + c.debug = true } } -// Log sets the client logging to verbose. +// Log sets the logging function for debug mode. func Log(fn func(...interface{})) Option { return func(c *config) { c.log = fn diff --git a/examples/m2mrecur/ent/client.go b/examples/m2mrecur/ent/client.go index d228eff83..6e8072b3b 100644 --- a/examples/m2mrecur/ent/client.go +++ b/examples/m2mrecur/ent/client.go @@ -43,7 +43,7 @@ func (c *Client) Tx(ctx context.Context) (*Tx, error) { if err != nil { return nil, fmt.Errorf("ent: starting a transaction: %v", err) } - cfg := config{driver: tx, log: c.log, verbose: c.verbose} + cfg := config{driver: tx, log: c.log, debug: c.debug} return &Tx{ config: cfg, User: NewUserClient(cfg), diff --git a/examples/m2mrecur/ent/config.go b/examples/m2mrecur/ent/config.go index 7c345da10..2200a84b2 100644 --- a/examples/m2mrecur/ent/config.go +++ b/examples/m2mrecur/ent/config.go @@ -11,11 +11,11 @@ type Option func(*config) // Config is the configuration for the client and its builder. type config struct { - // driver is the driver used for execute database requests. + // driver used for executing database requests. driver dialect.Driver - // verbose enable a verbosity logging. - verbose bool - // log used for logging on verbose mode. + // debug enable a debug logging. + debug bool + // log used for logging on debug mode. log func(...interface{}) } @@ -24,19 +24,19 @@ func (c *config) options(opts ...Option) { for _, opt := range opts { opt(c) } - if c.verbose { + if c.debug { c.driver = dialect.Debug(c.driver, c.log) } } -// Verbose sets the client logging to verbose. -func Verbose() Option { +// Debug enables debug logging on the ent.Driver. +func Debug() Option { return func(c *config) { - c.verbose = true + c.debug = true } } -// Log sets the client logging to verbose. +// Log sets the logging function for debug mode. func Log(fn func(...interface{})) Option { return func(c *config) { c.log = fn diff --git a/examples/o2m2types/ent/client.go b/examples/o2m2types/ent/client.go index 374400fc1..4f1f95b17 100644 --- a/examples/o2m2types/ent/client.go +++ b/examples/o2m2types/ent/client.go @@ -47,7 +47,7 @@ func (c *Client) Tx(ctx context.Context) (*Tx, error) { if err != nil { return nil, fmt.Errorf("ent: starting a transaction: %v", err) } - cfg := config{driver: tx, log: c.log, verbose: c.verbose} + cfg := config{driver: tx, log: c.log, debug: c.debug} return &Tx{ config: cfg, Pet: NewPetClient(cfg), diff --git a/examples/o2m2types/ent/config.go b/examples/o2m2types/ent/config.go index 7c345da10..2200a84b2 100644 --- a/examples/o2m2types/ent/config.go +++ b/examples/o2m2types/ent/config.go @@ -11,11 +11,11 @@ type Option func(*config) // Config is the configuration for the client and its builder. type config struct { - // driver is the driver used for execute database requests. + // driver used for executing database requests. driver dialect.Driver - // verbose enable a verbosity logging. - verbose bool - // log used for logging on verbose mode. + // debug enable a debug logging. + debug bool + // log used for logging on debug mode. log func(...interface{}) } @@ -24,19 +24,19 @@ func (c *config) options(opts ...Option) { for _, opt := range opts { opt(c) } - if c.verbose { + if c.debug { c.driver = dialect.Debug(c.driver, c.log) } } -// Verbose sets the client logging to verbose. -func Verbose() Option { +// Debug enables debug logging on the ent.Driver. +func Debug() Option { return func(c *config) { - c.verbose = true + c.debug = true } } -// Log sets the client logging to verbose. +// Log sets the logging function for debug mode. func Log(fn func(...interface{})) Option { return func(c *config) { c.log = fn diff --git a/examples/o2mrecur/ent/client.go b/examples/o2mrecur/ent/client.go index 0502fa74b..493a1971a 100644 --- a/examples/o2mrecur/ent/client.go +++ b/examples/o2mrecur/ent/client.go @@ -43,7 +43,7 @@ func (c *Client) Tx(ctx context.Context) (*Tx, error) { if err != nil { return nil, fmt.Errorf("ent: starting a transaction: %v", err) } - cfg := config{driver: tx, log: c.log, verbose: c.verbose} + cfg := config{driver: tx, log: c.log, debug: c.debug} return &Tx{ config: cfg, Node: NewNodeClient(cfg), diff --git a/examples/o2mrecur/ent/config.go b/examples/o2mrecur/ent/config.go index 7c345da10..2200a84b2 100644 --- a/examples/o2mrecur/ent/config.go +++ b/examples/o2mrecur/ent/config.go @@ -11,11 +11,11 @@ type Option func(*config) // Config is the configuration for the client and its builder. type config struct { - // driver is the driver used for execute database requests. + // driver used for executing database requests. driver dialect.Driver - // verbose enable a verbosity logging. - verbose bool - // log used for logging on verbose mode. + // debug enable a debug logging. + debug bool + // log used for logging on debug mode. log func(...interface{}) } @@ -24,19 +24,19 @@ func (c *config) options(opts ...Option) { for _, opt := range opts { opt(c) } - if c.verbose { + if c.debug { c.driver = dialect.Debug(c.driver, c.log) } } -// Verbose sets the client logging to verbose. -func Verbose() Option { +// Debug enables debug logging on the ent.Driver. +func Debug() Option { return func(c *config) { - c.verbose = true + c.debug = true } } -// Log sets the client logging to verbose. +// Log sets the logging function for debug mode. func Log(fn func(...interface{})) Option { return func(c *config) { c.log = fn diff --git a/examples/o2o2types/ent/client.go b/examples/o2o2types/ent/client.go index 839bd5583..3c910c260 100644 --- a/examples/o2o2types/ent/client.go +++ b/examples/o2o2types/ent/client.go @@ -47,7 +47,7 @@ func (c *Client) Tx(ctx context.Context) (*Tx, error) { if err != nil { return nil, fmt.Errorf("ent: starting a transaction: %v", err) } - cfg := config{driver: tx, log: c.log, verbose: c.verbose} + cfg := config{driver: tx, log: c.log, debug: c.debug} return &Tx{ config: cfg, Card: NewCardClient(cfg), diff --git a/examples/o2o2types/ent/config.go b/examples/o2o2types/ent/config.go index 7c345da10..2200a84b2 100644 --- a/examples/o2o2types/ent/config.go +++ b/examples/o2o2types/ent/config.go @@ -11,11 +11,11 @@ type Option func(*config) // Config is the configuration for the client and its builder. type config struct { - // driver is the driver used for execute database requests. + // driver used for executing database requests. driver dialect.Driver - // verbose enable a verbosity logging. - verbose bool - // log used for logging on verbose mode. + // debug enable a debug logging. + debug bool + // log used for logging on debug mode. log func(...interface{}) } @@ -24,19 +24,19 @@ func (c *config) options(opts ...Option) { for _, opt := range opts { opt(c) } - if c.verbose { + if c.debug { c.driver = dialect.Debug(c.driver, c.log) } } -// Verbose sets the client logging to verbose. -func Verbose() Option { +// Debug enables debug logging on the ent.Driver. +func Debug() Option { return func(c *config) { - c.verbose = true + c.debug = true } } -// Log sets the client logging to verbose. +// Log sets the logging function for debug mode. func Log(fn func(...interface{})) Option { return func(c *config) { c.log = fn diff --git a/examples/o2obidi/ent/client.go b/examples/o2obidi/ent/client.go index 0baa49188..7aa7daf3e 100644 --- a/examples/o2obidi/ent/client.go +++ b/examples/o2obidi/ent/client.go @@ -43,7 +43,7 @@ func (c *Client) Tx(ctx context.Context) (*Tx, error) { if err != nil { return nil, fmt.Errorf("ent: starting a transaction: %v", err) } - cfg := config{driver: tx, log: c.log, verbose: c.verbose} + cfg := config{driver: tx, log: c.log, debug: c.debug} return &Tx{ config: cfg, User: NewUserClient(cfg), diff --git a/examples/o2obidi/ent/config.go b/examples/o2obidi/ent/config.go index 7c345da10..2200a84b2 100644 --- a/examples/o2obidi/ent/config.go +++ b/examples/o2obidi/ent/config.go @@ -11,11 +11,11 @@ type Option func(*config) // Config is the configuration for the client and its builder. type config struct { - // driver is the driver used for execute database requests. + // driver used for executing database requests. driver dialect.Driver - // verbose enable a verbosity logging. - verbose bool - // log used for logging on verbose mode. + // debug enable a debug logging. + debug bool + // log used for logging on debug mode. log func(...interface{}) } @@ -24,19 +24,19 @@ func (c *config) options(opts ...Option) { for _, opt := range opts { opt(c) } - if c.verbose { + if c.debug { c.driver = dialect.Debug(c.driver, c.log) } } -// Verbose sets the client logging to verbose. -func Verbose() Option { +// Debug enables debug logging on the ent.Driver. +func Debug() Option { return func(c *config) { - c.verbose = true + c.debug = true } } -// Log sets the client logging to verbose. +// Log sets the logging function for debug mode. func Log(fn func(...interface{})) Option { return func(c *config) { c.log = fn diff --git a/examples/o2orecur/ent/client.go b/examples/o2orecur/ent/client.go index e3b8cf1b1..baa8c2bfa 100644 --- a/examples/o2orecur/ent/client.go +++ b/examples/o2orecur/ent/client.go @@ -43,7 +43,7 @@ func (c *Client) Tx(ctx context.Context) (*Tx, error) { if err != nil { return nil, fmt.Errorf("ent: starting a transaction: %v", err) } - cfg := config{driver: tx, log: c.log, verbose: c.verbose} + cfg := config{driver: tx, log: c.log, debug: c.debug} return &Tx{ config: cfg, Node: NewNodeClient(cfg), diff --git a/examples/o2orecur/ent/config.go b/examples/o2orecur/ent/config.go index 7c345da10..2200a84b2 100644 --- a/examples/o2orecur/ent/config.go +++ b/examples/o2orecur/ent/config.go @@ -11,11 +11,11 @@ type Option func(*config) // Config is the configuration for the client and its builder. type config struct { - // driver is the driver used for execute database requests. + // driver used for executing database requests. driver dialect.Driver - // verbose enable a verbosity logging. - verbose bool - // log used for logging on verbose mode. + // debug enable a debug logging. + debug bool + // log used for logging on debug mode. log func(...interface{}) } @@ -24,19 +24,19 @@ func (c *config) options(opts ...Option) { for _, opt := range opts { opt(c) } - if c.verbose { + if c.debug { c.driver = dialect.Debug(c.driver, c.log) } } -// Verbose sets the client logging to verbose. -func Verbose() Option { +// Debug enables debug logging on the ent.Driver. +func Debug() Option { return func(c *config) { - c.verbose = true + c.debug = true } } -// Log sets the client logging to verbose. +// Log sets the logging function for debug mode. func Log(fn func(...interface{})) Option { return func(c *config) { c.log = fn