diff --git a/.circleci/config.yml b/.circleci/config.yml index 3ec1bdf44..706d62fbe 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -57,7 +57,7 @@ jobs: - *storetestdir integration: - docker: + docker: &integration-docker - image: circleci/golang - image: circleci/mysql:5.6.35 environment: &mysql_env @@ -91,7 +91,7 @@ jobs: command: conf/gremlin-server.yaml steps: - checkout - - run: + - run: &integration-wait name: Wait for databases command: >- dockerize -timeout 1m @@ -124,12 +124,44 @@ jobs: name: Run codegen for entc/integration working_directory: entc/integration command: go generate + - run: + name: Check untracked files + command: | + if [[ `git status --porcelain` ]] + then + echo "Running 'go generate ./...' introduced untracked files" + git status --porcelain + exit 1 + fi - run: name: Run integration tests working_directory: entc/integration command: gotestsum -f short-verbose --junitfile ~/test-results/integration.xml -- -race -count=2 ./... - *storetestdir + migration: + docker: *integration-docker + steps: + - checkout + - run: *integration-wait + - *mktestdir + - getmods + - run: + name: Checkout master + command: git checkout origin/master + - run: + name: Run integration on master + working_directory: entc/integration + command: gotestsum -f short-verbose --junitfile ~/test-results/master-integration.xml -- -race -count=2 . + - run: + name: Checkout PR branch + command: git checkout "$CIRCLE_BRANCH" + - run: + name: Run integration on PR branch + working_directory: entc/integration + command: gotestsum -f short-verbose --junitfile ~/test-results/pr-integration.xml -- -race -count=2 . + - *storetestdir + docs: docker: - image: circleci/node @@ -167,6 +199,10 @@ workflows: - lint - unit - integration + - migration: + filters: + branches: + ignore: master - docs: filters: branches: diff --git a/entc/gen/internal/bindata.go b/entc/gen/internal/bindata.go index 284f8c070..e3f7b7f55 100644 --- a/entc/gen/internal/bindata.go +++ b/entc/gen/internal/bindata.go @@ -761,7 +761,7 @@ func templateDialectSqlPredicateTmpl() (*asset, error) { return a, nil } -var _templateDialectSqlQueryTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x5a\xdd\x6f\xdb\x48\x92\x7f\xa6\xfe\x8a\x1a\xc2\x37\x10\x0d\x99\xb6\x73\x87\x03\x4e\x81\x0f\xf0\xc6\x31\x20\x64\x26\x93\x1d\x67\x66\x1e\x0c\x61\x86\x26\x8b\x72\x43\x54\x53\x21\x5b\x8e\x03\x85\xff\xfb\xa2\xaa\x3f\xd8\x14\x29\xd9\xc9\x7c\xec\x2e\xb0\x0f\x89\xa5\xee\xea\xae\x5f\xd7\x57\x57\x55\x6b\xbb\x3d\x3d\x1e\xbd\x2a\xd7\x9f\x2a\xb1\xb8\x57\xf0\xe2\xec\xfc\xff\x4e\xd6\x15\xd6\x28\x15\x5c\x27\x29\xde\x95\xe5\x12\x66\x32\x8d\xe1\xb2\x28\x80\x89\x6a\xa0\xf9\xea\x01\xb3\x78\xf4\xfe\x5e\xd4\x50\x97\x9b\x2a\x45\x48\xcb\x0c\x41\xd4\x50\x88\x14\x65\x8d\x19\x6c\x64\x86\x15\xa8\x7b\x84\xcb\x75\x92\xde\x23\xbc\x88\xcf\xec\x2c\xe4\xe5\x46\x66\x23\x21\x79\xfe\xbb\xd9\xab\xd7\x6f\x6f\x5e\x43\x2e\x0a\x04\x33\x56\x95\xa5\x82\x4c\x54\x98\xaa\xb2\xfa\x04\x65\x0e\xca\x63\xa6\x2a\xc4\x78\x74\x7c\xda\x34\xa3\x11\x9d\x01\x2e\xb3\x4c\x28\x51\xca\xa4\x80\x5c\x60\x91\xd5\x90\x97\x9a\xf9\xdd\x46\x14\x19\x56\x31\x30\xf5\x76\x0b\x19\xe6\x42\x22\x84\x99\x48\x0a\x4c\xd5\x69\xfd\xa1\x38\xfd\xb0\xc1\xea\xd3\xa9\x5e\x19\x42\xd3\x8c\x82\xed\xf6\x04\x3e\x0a\x75\x0f\x47\xf1\x75\x59\xa1\x58\xc8\x37\xf8\xa9\xe6\xa9\x80\xc6\xaf\xdf\xd4\x70\x57\x96\x85\xa6\x44\x99\x01\xef\xee\x3e\x1e\xe4\x14\x6a\x62\x38\x5a\x2f\x17\x30\xbd\x80\xa3\xf8\x26\x2d\xd7\x18\xbf\x4b\xd2\x65\xb2\x40\x3b\x6b\xa0\x13\xc5\x3a\xa9\xd3\xa4\x70\x84\x7f\x33\x33\x86\xb0\xc2\x14\xc5\x83\xa6\x74\x9f\xdd\x72\x42\x93\x6f\x64\x0a\xe3\x0e\x6d\xd3\xc0\xb1\xcf\xa5\x69\x22\xa8\x3f\x14\x97\x45\x31\x4e\xd5\x23\xa4\xa5\x54\xf8\xa8\xe2\x57\xfa\x6f\x04\xe3\xdb\x39\xd3\xc7\x6f\x93\x15\x41\x9c\x00\x56\x55\x59\x45\xb0\x1d\x05\x0f\x49\x05\xe3\x51\x10\xc8\x32\xc3\x1a\x76\x08\x47\xc1\x41\x69\x3a\x71\x5e\xc0\x0e\xbe\xd8\xcc\x98\x0d\x8c\x64\x83\xe0\xd7\x7a\x8d\xe9\x00\x39\xcb\xf6\x66\x8d\xe9\x38\x1a\x05\xd1\x61\x1d\x76\x26\xdf\xbc\xce\x16\x68\x27\x02\x91\xd3\xce\x55\x22\x17\x08\x47\x62\x02\x47\x48\x72\x8d\xa1\x69\xb6\x5b\x10\x39\x2c\x14\x1c\x09\x38\x23\x01\x7e\xfe\x4c\xa4\x1a\xd8\x10\xf8\xed\xd6\x69\x0e\xad\x38\xe0\x9b\x0b\x90\xa2\x70\xeb\x48\x7e\x41\x47\x0c\xaa\xda\x20\x8f\x39\xa0\xee\xe8\x04\xce\x12\xea\x75\x2c\x8c\xf8\x6d\x99\x61\xfc\xaa\x2c\x36\x2b\x49\x3b\x24\xeb\x35\xca\x6c\xdc\x9f\x9b\xb0\xd0\x3c\x43\xf3\x25\x13\xc7\x71\x34\xd2\x6c\x7d\xa6\x7a\x97\x9b\x34\x91\x3f\x27\xc5\x06\x69\x7f\x32\xa7\x71\x04\xb7\x73\x21\x15\x56\x79\x92\xe2\x56\x9f\x83\x0c\x80\xa4\xf5\xad\x6f\x00\xdb\xb4\x94\xb9\x58\x4c\x7b\x0a\xd3\xe3\x8d\x33\x1c\x07\x9c\xbf\x4e\x80\xfe\x10\xa2\x07\xcd\x77\x7a\xc1\x23\x71\xed\xa0\x90\xa2\x0f\xab\xb9\x27\xaf\x07\x7b\x06\xc3\x4a\x7f\xd7\xbc\xe2\x7c\x69\xf7\xf5\x64\xd1\xd5\x40\x85\x6a\x53\x49\xd0\xcb\x46\x81\x93\xcf\x65\x5d\x8b\x85\xb4\xb2\x31\x5c\xe2\x38\xf6\x24\x14\x69\x8f\x61\x20\x22\x87\x02\xa5\x3e\x68\x04\x17\x17\x70\xa6\xf1\x99\xed\xf3\x95\x8a\x5f\x13\x71\x3e\x0e\x6d\xa0\x68\x9a\x29\x18\x2e\x69\x52\x14\x98\xf1\xc9\xca\x8d\xe2\xaf\x42\x2e\xa0\xd5\x51\x48\xe0\x1b\x4f\x21\xcc\xe8\xb6\x65\x79\x72\x3e\x6f\x0f\xc3\x67\x4f\x78\x6b\x73\x7e\x8d\x5f\x0b\xa1\x19\x11\x5a\xac\x38\xbc\xd4\x1f\x8a\x45\x95\xac\xef\xe3\xbf\x93\xb3\x91\x69\xd5\x14\x2e\x26\x3d\xdd\x66\x15\x7d\x9a\x00\x4b\x27\x7a\xc9\xeb\xb5\xe5\xf3\x41\x2d\x67\x51\x70\x1c\x21\x2e\xa3\x7d\x42\xf1\x50\x92\xa2\x44\xa1\xa9\x49\x2d\xc6\x4b\x51\x47\x51\xcf\x8d\x9d\x51\xe0\xa3\x22\xdd\x1d\x41\xf8\x23\xa6\xa1\x87\x31\x24\xea\x90\xd6\xda\x80\x00\x0a\x57\xeb\x22\x51\x83\x97\x03\x26\x0b\xac\x8a\x32\xc9\x84\x5c\x84\x1c\x0d\x76\x2c\xc3\xff\xdc\x47\xfc\x45\x31\xf8\x55\xb9\x91\x6a\x4f\x14\x16\x52\xf9\x91\x57\xc7\xc2\xe9\x13\xc1\xd0\xe0\x71\xca\x63\x06\xcf\x56\xde\x97\x81\x7f\xfd\x28\xea\x7d\xe0\xe9\xc6\xf4\xd1\xcb\x89\xb5\xab\x5d\x04\xbe\x14\x22\x67\x80\x7d\x03\xca\x93\xa2\xc6\xc9\x5e\x7f\x49\xef\x31\x5d\x02\x12\x24\x94\x29\x4e\xe1\xbf\x1e\x42\xe6\xa9\xed\xda\xea\x09\xfe\x1f\xce\xbe\x54\x4f\x9e\x80\xe1\xb8\xeb\x16\x34\xda\x51\xce\xb7\xfd\x79\x3a\x03\x69\x60\xea\x4d\xd2\x77\x3b\x17\xbc\x4f\xee\x0a\x9c\xf6\xe2\x35\x0f\x4f\x88\xc0\x84\xf4\x3e\x89\x8d\xf5\x44\x34\xbb\xf2\x19\x5c\x53\x86\xe3\x38\x04\xef\x3f\xad\x71\xaa\x13\xa6\x98\x37\x99\x5d\xc5\x34\x46\x1a\xab\x95\xbd\xe7\x99\x54\xef\xd9\xe7\x65\x97\xf1\x8a\x44\x2a\xbb\x80\xff\xe7\xff\xae\xab\x72\xd5\x0f\xfd\xf5\x87\x82\x26\x7f\x92\xe2\xc3\x06\xa7\x7c\xe5\x4d\x6c\xa8\x59\xd7\x43\x16\xb1\xae\x30\x13\x69\xa2\xb0\x7e\xc9\x51\x62\x5d\x47\xa4\x36\x36\x06\x1d\x82\xdf\x59\x0a\x1b\x85\x6b\x2c\x38\x7f\x64\xfd\xc4\x37\xe6\x5b\xa4\x23\x2d\x25\x88\x82\x33\x26\x8e\x21\x6b\x7b\x41\xac\xeb\x5b\x31\x77\x4b\xdd\x25\xd0\x58\x74\x85\x58\x09\x35\x04\x90\x27\x5e\x9a\x79\xcf\x52\x35\xb8\xef\x78\xf8\x02\x8e\x79\xde\x6e\x56\xe6\x79\x8d\x83\xbb\xe9\x99\x97\x96\xa2\xb7\xdf\x0f\x7a\xfc\x02\x8e\x35\xc5\x61\xe1\x95\x55\x86\xd5\x3e\xb9\xfd\x40\x93\x7f\x9e\xcc\x8c\x93\x31\xaf\x2f\x0b\x25\xec\x2c\xc6\xbd\x1c\x14\x62\xe9\x65\xc6\x34\x75\xa5\xa3\xf5\xee\x9e\x26\x8c\xb9\xe9\x28\x1a\x05\xea\x9c\x16\xd9\xa2\x80\x9d\x69\x3c\xe8\x62\xd1\x28\x70\xa2\xf0\x56\x68\x14\x63\x75\x6e\xbd\xac\xb7\xda\x8c\xd3\xdd\xc9\xff\xc8\xfe\xc7\xea\x5c\x07\xb1\x01\x37\xf0\x55\xeb\x38\x0e\x06\x44\x8f\xc0\xe2\x70\xdf\x9f\x89\x86\x15\x42\x5a\xfc\x75\x02\xeb\x56\x91\xfb\x7d\x8d\x61\xad\x7d\xd5\x3e\x6b\x03\xb6\xb7\xc1\xb5\x5f\x69\xf4\xa7\xa7\xc6\xb1\x44\x0d\xab\x44\x66\x09\x97\x85\x04\xc4\xd0\xa6\x45\xb2\xa9\x31\x86\x5f\x10\x6a\x95\x54\x4a\xaf\xe1\x14\x20\xc3\x3c\xd9\x14\x4a\xe7\x6c\x13\x48\x64\x06\xe5\x03\x56\x95\xa0\x8a\x55\xc1\x1d\x16\xe5\x47\x4a\xec\x25\x62\x46\x65\xad\x27\x66\xed\x65\x63\xe3\x63\x91\xf6\xe2\xf1\x2a\x51\xf7\xf1\xf7\xc9\xe3\x4c\xaa\xff\x7e\x11\x7d\x75\x60\x70\x5c\xf4\xae\x3a\x32\x74\x2e\x26\x4b\x31\xe2\x3a\xaf\x2d\x2d\x4f\x8f\xf5\xf5\x73\xba\x4e\xf4\xf9\x84\xc4\x9a\xcb\x5d\x1e\x86\x05\x4a\xac\x12\x2a\x88\x59\x44\x4c\x55\xe6\x90\xc0\x42\x3c\xa0\x04\xcc\x16\xf8\x9c\x82\x98\xd6\xb5\xe5\xf0\x91\xe4\x2c\x8b\x4b\x16\x42\x40\xec\x38\xbd\xfc\x68\x44\xee\x01\xc8\xab\x72\x65\x38\xe8\xb5\xe8\xd7\xb9\x94\x79\x75\xb6\x21\x40\xb4\x0d\x69\x00\x54\xc9\xf8\x17\x15\x45\x72\x9a\x65\xf8\xaa\xec\xec\xe7\x97\xbc\x76\xdb\x1f\x5b\x99\x8f\x82\x5a\xe1\xba\x93\xb0\xbe\xc5\x8f\x37\x0a\xd7\x54\xa6\xb6\xf7\x21\xf9\x26\xa9\x4b\xf6\xaf\x58\xe8\x8d\xeb\x81\x9d\xcb\x6e\xc8\x51\x4d\xdc\x8a\x26\x3e\xaf\xf7\x25\x73\x42\x7d\xc3\x0e\xb3\xeb\x4f\x7a\xa3\x5d\xc6\xdd\xcd\x49\xa2\x63\xf7\x4d\x2f\xfa\x11\x0b\x5e\xe8\x50\x62\x3c\xab\x67\xf2\x01\xab\xba\x1d\xeb\x1d\x10\x35\x9e\xdd\xfb\x9c\x84\x2e\x72\x9a\xfe\xfe\xc5\xf7\x70\x62\x4a\xe5\x3d\x3b\xbc\x7b\xe3\x2d\x8f\xe3\xd8\x95\xb1\x45\x8d\x4f\xad\xd5\x01\xcb\x5b\xef\xd7\xc0\x7a\x2d\x1d\x3d\x1a\x05\x6c\x69\x1c\x41\x3d\x2d\xdf\xa0\x7a\x8b\x62\x71\x7f\x57\x56\xf5\x93\xf7\xc1\x04\xc8\x4a\xa2\x3d\xbe\x45\x36\xfc\xb4\x6f\x25\xda\x9d\x3c\xbb\x77\x6e\xc6\x65\xd5\x73\xfa\x4e\x55\xb9\xfa\x77\x74\x33\xd6\x86\xc8\x86\x42\x9e\x35\x17\x76\x97\x59\x7d\xa3\x2a\xaa\x4f\x9b\x46\x64\xe3\x88\xa4\x5d\xb0\x09\xce\xae\x5a\xc9\xff\x75\x0e\x2b\xb2\xff\x38\xe6\x5f\xef\x98\xbf\xd3\x2b\x0f\xb8\x4f\xb7\x32\x3f\xe8\x0a\x87\xad\x9a\x09\x44\x6e\x7c\x6b\xc0\xaa\xf7\xb5\xf4\x5e\x9a\x25\xde\xdd\xde\x55\x8b\x16\x56\xbe\xe4\xdc\x7c\x95\x2c\x71\x7c\x3b\x37\xc7\xfe\x59\x27\x25\x67\x13\xaf\xf5\xc1\x09\xb4\xc8\x5a\xea\x55\xb2\xbe\xf5\x0b\x34\x68\x9a\xdd\x66\xec\xce\x6a\x93\xa2\xd9\xf6\x8f\xce\xd2\x74\x97\x4d\xa7\xec\x22\xab\x6f\x39\x40\xcd\xae\xe6\xa0\xfb\x43\x3c\x4e\x20\x5d\x73\x2c\x5f\xda\xce\xd8\xec\xca\x65\xf5\xae\xdb\x1b\x04\x14\x50\x08\xe7\xed\xbc\xeb\x0e\x06\xa3\xa3\xa1\x2d\x3b\x07\xe9\x91\xce\x77\x9a\xc6\xcc\x8d\xff\x1b\x28\xa2\x49\x9b\x9d\x42\x3a\x08\x68\x68\xba\x43\xd2\xce\x06\xc6\xbb\xa6\x43\xee\xa6\x29\xf6\x94\xdb\x07\x3c\xef\x40\x05\x3e\xe0\x6d\x7a\x89\xf9\xe3\x2a\xd5\xa9\x29\xba\x06\xab\xad\x20\xa8\xe3\x5f\xee\xb1\xe2\x00\x12\xcf\x6c\x6f\xee\x19\xcc\x6e\x75\xa7\x7a\xe7\xa4\xe7\x6d\xe4\x3d\x73\xce\x35\x9f\x40\xbe\xe4\xfa\x20\xf2\x11\xd2\xa6\xe5\x86\xd3\xd9\x90\xb8\xbf\xdd\x14\xc5\x4c\xaa\xff\xfd\x9f\xd0\xf5\xc1\xd9\x1a\x7f\xaa\xb1\xba\x62\xd7\xb4\x3d\x70\x5a\x75\xa1\x27\x69\x91\xd1\xaf\x17\xe8\xcd\xee\x42\x1e\xdc\xbc\xb5\x90\x3e\x0b\x21\x89\x43\x4b\xb1\x97\x4f\xdb\x10\x9d\xba\x9e\xf5\x0b\xbf\x69\x6d\xe4\x6c\xd2\xed\x9d\xb9\x6f\xed\x71\x9a\x66\xdb\x4c\x74\x4f\x5b\x48\xfe\xd6\xf8\xb2\xd2\x4d\x59\xc3\xa1\xdc\xa8\x09\x08\x09\x7b\xfa\xbe\xe4\x10\x4c\x52\x2e\xe9\xf8\xe5\x46\xc5\xe3\xe3\x96\x8f\xd6\x01\x05\xa1\x6f\xca\x25\x7c\xfe\x0c\xc8\xe2\x6c\xe3\x4a\x30\xdc\x23\xde\x48\x7c\x5c\x63\xaa\x30\x03\x91\xe9\x42\x87\xb3\x13\x72\xbe\x93\x72\xa3\x42\xb3\x71\x63\x20\x08\x69\x11\x08\x69\x00\xf0\xc9\xfa\xfc\x49\xd6\xbf\x8f\xbd\x90\x3b\xdc\xcb\x8d\x62\xa5\x98\x10\xbb\xd3\xa6\xbd\xac\x16\x21\x84\x74\xee\x10\x42\x6e\x58\x85\x6c\x4d\x10\x5a\x35\x87\x4e\x2b\xcf\x6f\xd9\x9e\xae\x5e\xac\x74\x87\x3b\xb4\x4f\x39\x9e\x9d\x04\x42\x3e\x8d\x48\x48\x0f\x90\x33\xbe\x0e\x2c\x6d\x1d\x7f\x18\x2a\x8a\xbc\x4e\x4f\x59\x7d\x6b\x05\x37\xef\x68\xe9\x79\x7a\xe1\x9b\x40\x64\x64\x9a\x1c\x91\x4d\x2b\xd4\x6e\xb9\x63\x1f\x26\xae\xbb\x8b\xc0\x0c\x90\x65\xfb\xe4\xbc\xd3\xad\x19\x9b\x77\xc9\xdb\xf1\xf6\x21\x27\xf0\x1b\xff\x9e\x0b\xd9\xa7\x9a\xc1\x47\x06\xee\xea\x7f\xd5\x23\x43\xf7\x99\xc1\x13\xcc\x6f\xfa\xbe\xd6\x57\x53\xa8\x03\xa8\xb9\x78\x42\x12\xcc\x6f\xb6\x47\x6c\xa0\xe9\x8c\x46\xc7\xe2\xe1\x74\x70\x76\x35\x93\x56\x4a\x2e\x98\x4a\x9b\xf3\xb8\x36\xb7\xde\xc8\xbc\xb1\x46\xde\xa9\xf7\xa2\xe6\xc7\x11\x03\xc3\x5e\xea\xde\x8d\x6e\x39\x98\x95\xe6\xc5\x41\x9b\x8c\xd6\x02\x25\xc0\xf3\x51\xdf\x5e\xf6\x89\xc6\xb3\x99\x1d\xc9\x68\x1b\xd2\xeb\x30\xd3\x62\x92\x36\x33\x30\xa6\xb3\xd3\x21\xf4\x33\x0e\x0d\xee\x56\xcc\xf5\x3b\x8d\xb9\xb7\x6e\x54\xb5\x49\x15\xbb\x15\xd5\x2a\xdd\x27\xc0\xc3\xc4\x13\x90\x1e\x6b\xf7\x1e\x43\x37\x9c\xbe\x41\x7e\xf8\x28\xaf\xdf\xd8\x87\xc0\xcc\x4f\xbe\x06\x73\x90\xa1\x2c\x8c\x3e\x0e\x65\x62\xcf\x4b\x60\x0e\x48\x43\xe4\x90\x2f\xdb\x97\x39\x31\xef\x1e\xf1\x8d\x3d\xe4\x4b\x22\xeb\x58\x47\xd0\xf1\x4c\xf6\xca\xe3\x7c\x19\xb5\x32\xa6\x50\x71\x9c\x2f\xe7\x5d\x61\xda\xd1\x89\xe3\xb8\x23\xbc\xe7\x5a\xf9\xbf\x90\x85\xdb\x73\xfd\x0e\x1b\xcf\xf5\x93\xf1\xc9\x12\x3f\x59\x7b\xdf\x55\x41\xf8\xa7\xdb\xbc\xdc\x63\xc6\x5f\x53\x37\xec\xb3\xd8\xbd\xb5\xc3\x53\x96\x4a\x68\x4e\x8f\xe1\x55\x49\x89\xa4\x82\x9a\x6b\xf9\x13\x62\xa1\xee\x13\x05\x49\x85\x50\xab\xb2\xc2\x0c\x92\x9a\xd2\x1e\xfb\x13\x9e\x2c\x51\xc9\x5d\x52\x23\x1c\x9f\x7a\xb5\x25\x97\x45\x89\xcc\x60\x2c\x4b\xd5\xcb\x21\x23\x3d\xe2\x75\x0c\xac\xc9\x3b\x03\xab\x55\x95\x96\xf2\x21\xbe\x54\xa5\x68\xa3\x84\xd5\xc8\xa0\xb5\x0d\xda\x9b\xbb\xec\xfa\x15\x8f\xc8\x22\x87\xd6\xd3\xc3\xbe\xe2\xa8\x03\xa0\xfb\x73\x0d\xe7\x8f\x1e\x9d\x2d\xb7\xe8\xeb\x8e\xef\xf5\x7f\x03\xe2\xfb\xa4\xeb\xca\xfb\xcd\x07\xa3\xc4\xf1\xa1\x3a\xe2\x0b\xca\x88\x5e\x95\xdf\x2d\x0f\x9a\x7f\x96\xdb\x9b\x58\xb9\x27\x48\x7a\x11\xb5\x9b\xac\xee\x0b\x00\xcf\xf2\x7a\x51\xf3\x56\x04\x8e\x6f\xbe\x41\xe7\xf7\x73\x34\x3f\xcc\xfe\x35\xd1\x68\x07\xdc\x71\xbe\x1c\x46\x78\x38\xfc\xb8\x92\x4b\x3f\xc7\x42\xd3\xc8\xb6\x54\xf4\xae\x90\x27\xee\xe2\x4e\xf6\xba\xfb\xf3\x88\x9d\x17\x8c\x3f\x26\xa4\x3c\xbb\x2f\xe4\x27\xda\xae\x0d\x94\x54\x9d\x5f\xdf\x5d\x56\x8b\x76\x8e\x1f\xc5\xfd\xd9\xd6\xd4\x74\x93\x76\x53\x14\x8a\xa2\xa9\x47\xe2\x95\xa1\xa3\x7e\xa4\xd3\xcf\xec\xdd\x58\xa7\xc7\x5c\xb4\xd3\x51\xd2\x06\xb8\xeb\xb2\x5a\x25\x6a\x26\xf5\xbb\x66\xc2\xe8\x62\x2e\x93\x27\x70\x7e\x66\x7e\xdf\xc6\x4a\x22\x46\xf7\x49\xfd\xae\xc2\x5c\x3c\x7a\xd8\xa8\xb8\x0e\xcd\xae\xb4\x87\x66\x67\x61\xea\x13\x99\x4a\xeb\xc4\xfd\x84\xa5\x6d\x05\xb6\x6c\xf7\xfd\xca\xf1\x1f\x01\x00\x00\xff\xff\x76\x30\xde\x86\x40\x2a\x00\x00") +var _templateDialectSqlQueryTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x5a\xdd\x6f\xdb\x48\x92\x7f\xa6\xfe\x8a\x1a\xc2\x37\x10\x0d\x99\xb6\x73\x87\x03\x4e\x81\x0f\xf0\xc6\x31\x20\x64\x26\x93\x1d\x67\x66\x1e\x0c\x61\x86\x26\x8b\x72\x43\x54\x53\x21\x5b\x8e\x03\x85\xff\xfb\xa2\xaa\x3f\xd8\x14\x29\xd9\xc9\x7c\xec\x2e\xb0\x0f\x89\xa5\xee\xea\xae\xea\xfa\xf8\x75\x55\xb5\xb6\xdb\xd3\xe3\xd1\xab\x72\xfd\xa9\x12\x8b\x7b\x05\x2f\xce\xce\xff\xef\x64\x5d\x61\x8d\x52\xc1\x75\x92\xe2\x5d\x59\x2e\x61\x26\xd3\x18\x2e\x8b\x02\x98\xa8\x06\x9a\xaf\x1e\x30\x8b\x47\xef\xef\x45\x0d\x75\xb9\xa9\x52\x84\xb4\xcc\x10\x44\x0d\x85\x48\x51\xd6\x98\xc1\x46\x66\x58\x81\xba\x47\xb8\x5c\x27\xe9\x3d\xc2\x8b\xf8\xcc\xce\x42\x5e\x6e\x64\x36\x12\x92\xe7\xbf\x9b\xbd\x7a\xfd\xf6\xe6\x35\xe4\xa2\x40\x30\x63\x55\x59\x2a\xc8\x44\x85\xa9\x2a\xab\x4f\x50\xe6\xa0\x3c\x66\xaa\x42\x8c\x47\xc7\xa7\x4d\x33\x1a\xd1\x19\xe0\x32\xcb\x84\x12\xa5\x4c\x0a\xc8\x05\x16\x59\x0d\x79\xa9\x99\xdf\x6d\x44\x91\x61\x15\x03\x53\x6f\xb7\x90\x61\x2e\x24\x42\x98\x89\xa4\xc0\x54\x9d\xd6\x1f\x8a\xd3\x0f\x1b\xac\x3e\x9d\xea\x95\x21\x34\xcd\x28\xd8\x6e\x4f\xe0\xa3\x50\xf7\x70\x14\x5f\x97\x15\x8a\x85\x7c\x83\x9f\x6a\x9e\x0a\x68\xfc\xfa\x4d\x0d\x77\x65\x59\x68\x4a\x94\x19\xf0\xee\xee\xe3\x41\x4e\xa1\x26\x86\xa3\xf5\x72\x01\xd3\x0b\x38\x8a\x6f\xd2\x72\x8d\xf1\xbb\x24\x5d\x26\x0b\xb4\xb3\x46\x74\xa2\x58\x27\x75\x9a\x14\x8e\xf0\x6f\x66\xc6\x10\x56\x98\xa2\x78\xd0\x94\xee\xb3\x5b\x4e\xd2\xe4\x1b\x99\xc2\xb8\x43\xdb\x34\x70\xec\x73\x69\x9a\x08\xea\x0f\xc5\x65\x51\x8c\x53\xf5\x08\x69\x29\x15\x3e\xaa\xf8\x95\xfe\x1b\xc1\xf8\x76\xce\xf4\xf1\xdb\x64\x45\x22\x4e\x00\xab\xaa\xac\x22\xd8\x8e\x82\x87\xa4\x82\xf1\x28\x08\x64\x99\x61\x0d\x3b\x84\xa3\xe0\xa0\x36\x9d\x3a\x2f\x60\x47\xbe\xd8\xcc\x98\x0d\x8c\x66\x83\xe0\xd7\x7a\x8d\xe9\x00\x39\xeb\xf6\x66\x8d\xe9\x38\x1a\x05\xd1\x61\x1b\x76\x26\xdf\xbc\xce\x16\x68\x27\x02\x91\xd3\xce\x55\x22\x17\x08\x47\x62\x02\x47\x48\x7a\x8d\xa1\x69\xb6\x5b\x10\x39\x2c\x14\x1c\x09\x38\x23\x05\x7e\xfe\x4c\xa4\x5a\xb0\x21\xe1\xb7\x5b\x67\x39\xb4\xea\x80\x6f\x2e\x40\x8a\xc2\xad\x23\xfd\x05\x1d\x35\xa8\x6a\x83\x3c\xe6\x04\x75\x47\x27\xe1\x2c\xa1\x5e\xc7\xca\x88\xdf\x96\x19\xc6\xaf\xca\x62\xb3\x92\xb4\x43\xb2\x5e\xa3\xcc\xc6\xfd\xb9\x09\x2b\xcd\x73\x34\x5f\x33\x71\x1c\x47\x23\xcd\xd6\x67\xaa\x77\xb9\x49\x13\xf9\x73\x52\x6c\x90\xf6\x27\x77\x1a\x47\x70\x3b\x17\x52\x61\x95\x27\x29\x6e\xf5\x39\xc8\x01\x48\x5b\xdf\xfa\x0e\xb0\x4d\x4b\x99\x8b\xc5\xb4\x67\x30\x3d\xde\x38\xc7\x71\x82\xf3\xd7\x09\xd0\x1f\x92\xe8\x41\xf3\x9d\x5e\xf0\x48\x5c\x3b\x51\xc8\xd0\x87\xcd\xdc\xd3\xd7\x83\x3d\x83\x61\xa5\xbf\x6b\x5e\x71\xbe\xb4\xfb\x7a\xba\xe8\x5a\xa0\x42\xb5\xa9\x24\xe8\x65\xa3\xc0\xe9\xe7\xb2\xae\xc5\x42\x5a\xdd\x18\x2e\x71\x1c\x7b\x1a\x8a\x74\xc4\xb0\x20\x22\x87\x02\xa5\x3e\x68\x04\x17\x17\x70\xa6\xe5\x33\xdb\xe7\x2b\x15\xbf\x26\xe2\x7c\x1c\x5a\xa0\x68\x9a\x29\x18\x2e\x69\x52\x14\x98\xf1\xc9\xca\x8d\xe2\xaf\x42\x2e\xa0\xb5\x51\x48\xc2\x37\x9e\x41\x98\xd1\x6d\xcb\xf2\xe4\x7c\xde\x1e\x86\xcf\x9e\xf0\xd6\xe6\xfc\x5a\x7e\xad\x84\x66\x44\xd2\x62\xc5\xf0\x52\x7f\x28\x16\x55\xb2\xbe\x8f\xff\x4e\xc1\x46\xae\x55\x13\x5c\x4c\x7a\xb6\xcd\x2a\xfa\x34\x01\xd6\x4e\xf4\x92\xd7\x6b\xcf\xe7\x83\x5a\xce\xa2\x60\x1c\xb1\x5c\x86\x74\xe2\x09\x49\x76\x12\xc5\xc8\x7a\xa8\x89\x51\xd4\x18\xea\x05\xb1\x73\x09\x7c\x54\x64\xb9\x23\x08\x7f\xc4\x34\xf4\x24\x0c\x89\x3a\xa4\xb5\x16\x0e\x40\xe1\x6a\x5d\x24\x6a\xf0\x6a\xc0\x64\x81\x55\x51\x26\x99\x90\x8b\x90\xb1\x60\xc7\x2f\xfc\xcf\x7d\x81\xbf\x08\x81\x5f\x95\x1b\xa9\xf6\x60\xb0\x90\xca\xc7\x5d\x8d\x84\xd3\x27\xa0\xd0\xc8\xe3\x4c\xc7\x0c\x9e\x6d\xba\x2f\x13\xfe\xf5\xa3\xa8\xf7\x09\x4f\xf7\xa5\x2f\xbd\x9c\x58\xaf\xda\x95\xc0\xd7\x42\xe4\xdc\xaf\xef\x3e\x79\x52\xd4\x38\xd9\x1b\x2d\xe9\x3d\xa6\x4b\x40\x12\x09\x65\x8a\x53\xf8\xaf\x87\x90\x79\x6a\xaf\xb6\x76\x82\xff\x87\xb3\x2f\xb5\x93\xa7\x60\x38\xee\x06\x05\x8d\x76\x8c\xf3\x6d\x7f\x9e\xce\x40\x16\x98\x7a\x93\xf4\xdd\xce\x05\xef\x93\xbb\x02\xa7\x3d\xb4\xe6\xe1\x09\x11\x18\x40\xef\x93\x58\xa4\x27\xa2\xd9\x95\xcf\xe0\x9a\xf2\x1b\xc7\x21\x78\xff\x69\x8d\x53\x9d\x2e\xc5\xbc\xc9\xec\x2a\xa6\x31\xb2\x58\xad\xec\x2d\xcf\xa4\x7a\xcf\x3e\x2f\xbb\x8c\x57\x24\x52\xd9\x05\xfc\x3f\xff\x77\x5d\x95\xab\x3e\xf0\xd7\x1f\x0a\x9a\xfc\x49\x8a\x0f\x1b\x9c\xf2\x85\x37\xb1\x10\xb0\xae\x87\x3c\x62\x5d\x61\x26\xd2\x44\x61\xfd\x92\x41\x62\x5d\x47\x64\x36\x76\x06\x0d\xc0\xef\x2c\x85\xc5\xe0\x1a\x0b\xce\x1e\xd9\x3e\xf1\x8d\xf9\x16\x69\x9c\xa5\xf4\x50\x70\xbe\xc4\x18\xb2\xb6\xd7\xc3\xba\xbe\x15\x73\xb7\xd4\x5d\x01\x8d\x03\x28\xb1\x12\x6a\x48\x40\x9e\x78\x69\xe6\x3d\x4f\xd5\xc2\x7d\xc7\xc3\x17\x70\xcc\xf3\x76\xb3\x32\xcf\x6b\x1c\xdc\x4d\xcf\xbc\xb4\x14\xbd\xfd\x7e\xd0\xe3\x17\x70\xac\x29\x0e\x2b\xaf\xac\x32\xac\xf6\xe9\xed\x07\x9a\xfc\xf3\x74\x66\x82\x8c\x79\x7d\x19\x94\x70\xb0\x98\xf0\x72\xa2\x10\x4b\x2f\x2f\xa6\xa9\x2b\x8d\xd6\xbb\x7b\x1a\x18\x73\xd3\x51\x34\x0a\xd4\x39\x2d\xb2\x25\x01\x07\xd3\x78\x30\xc4\xa2\x51\xe0\x54\xe1\xad\xd0\x52\x8c\xd5\xb9\x8d\xb2\xde\x6a\x33\x4e\x37\x27\xff\x23\xff\x1f\xab\x73\x0d\x62\x03\x61\xe0\x9b\xd6\x71\x1c\x04\x44\x8f\xc0\xca\xe1\xbe\x3f\x53\x1a\x36\x08\x59\xf1\xd7\x09\xac\x5b\x43\xee\x8f\x35\x16\x6b\xed\x9b\xf6\x59\x1b\xb0\xbf\x0d\xae\xfd\x4a\xa7\x3f\x3d\x35\x81\x25\x6a\x58\x25\x32\x4b\xb8\x28\x24\x41\x0c\x6d\x5a\x24\x9b\x1a\x63\xf8\x05\xa1\x56\x49\xa5\xf4\x1a\x4e\x01\x32\xcc\x93\x4d\xa1\x74\xc6\x36\x81\x44\x66\x50\x3e\x60\x55\x09\xaa\x57\x15\xdc\x61\x51\x7e\xa4\xb4\x5e\x22\x66\x54\xd4\x7a\x6a\xd6\x51\x36\x36\x31\x16\xe9\x28\x1e\xaf\x12\x75\x1f\x7f\x9f\x3c\xce\xa4\xfa\xef\x17\xd1\x57\x03\x83\xe3\xa2\x77\xd5\xc8\xd0\xb9\x98\x2c\xc5\x88\xab\xbc\xb6\xb0\x3c\x3d\xd6\xd7\xcf\xe9\x3a\xd1\xe7\x13\x12\x6b\x2e\x76\x79\x18\x16\x28\xb1\x4a\xa8\x1c\x66\x15\x31\x55\x99\x43\x02\x0b\xf1\x80\x12\x30\x5b\xe0\x73\xca\x61\x5a\xd7\x16\xc3\x47\x92\xb3\x2c\x2e\x58\x48\x02\x62\xc7\xc9\xe5\x47\xa3\x72\x4f\x80\xbc\x2a\x57\x86\x83\x5e\x8b\x7e\x95\x4b\x99\x57\x67\x1b\x12\x88\xb6\x21\x0b\x80\x2a\x59\xfe\x45\x45\x48\x4e\xb3\x2c\xbe\x2a\x3b\xfb\xf9\x05\xaf\xdd\xf6\xc7\x56\xe7\xa3\xa0\x56\xb8\xee\xa4\xab\x6f\xf1\xe3\x8d\xc2\x35\x15\xa9\xed\x7d\x48\xb1\x49\xe6\x92\xfd\x2b\x16\x7a\xe3\x7a\x60\xe7\xb2\x1b\x0a\x54\x83\x5b\xd1\xc4\xe7\xf5\xbe\x64\x4e\xa8\x6f\xd8\x61\x76\xfd\x49\x6f\xb4\xcb\xb8\xbb\x39\x69\x74\xec\xbe\xe9\x45\x3f\x62\xc1\x0b\x9d\x94\x18\xcf\xea\x99\x7c\xc0\xaa\x6e\xc7\x7a\x07\x44\x2d\xcf\xee\x7d\x4e\x4a\x17\x39\x4d\x7f\xff\xe2\x7b\x38\x31\x85\xf2\x9e\x1d\xde\xbd\xf1\x96\xc7\x71\xec\x8a\xd8\xa2\xc6\xa7\xd6\x6a\xc0\xf2\xd6\xfb\x15\xb0\x5e\x4b\x47\x8f\x46\x01\x7b\x1a\x23\xa8\x67\xe5\x1b\x54\x6f\x51\x2c\xee\xef\xca\xaa\x7e\xf2\x3e\x98\x00\x79\x49\xb4\x27\xb6\xc8\x87\x9f\x8e\xad\x44\x87\x93\xe7\xf7\x2e\xcc\xb8\xa8\x7a\x4e\xd7\xa9\x2a\x57\xff\x8e\x61\xc6\xd6\x10\xd9\x10\xe4\x59\x77\xe1\x70\x99\xd5\x37\xaa\xa2\xea\xb4\x69\x44\x36\x8e\x48\xdb\x05\xbb\xe0\xec\xaa\xd5\xfc\x5f\x17\xb0\x22\xfb\x4f\x60\xfe\xf5\x81\xf9\x3b\xa3\xf2\x40\xf8\x74\x2b\xf3\x83\xa1\x70\xd8\xab\x99\x40\xe4\x26\xb6\x06\xbc\x7a\x5f\x43\xef\xa5\x59\xe2\xdd\xed\x5d\xb3\x68\x65\xe5\x4b\xce\xcd\x57\xc9\x12\xc7\xb7\x73\x73\xec\x9f\x75\x52\x72\x36\xf1\x3a\x1f\x9c\x40\x8b\xac\xa5\x5e\x25\xeb\x5b\xbf\x40\x83\xa6\xd9\x6d\xc5\xee\xac\x36\x29\x9a\x6d\xfe\xe8\x2c\x4d\xf7\xd8\x74\xca\x2e\xb2\xfa\x96\x01\x6a\x76\x35\x07\xdd\x1d\xe2\x71\x12\xd2\xb5\xc6\xf2\xa5\xed\x8b\xcd\xae\x5c\x56\xef\x7a\xbd\x41\x40\x80\x42\x72\xde\xce\xbb\xe1\x60\x64\x74\x34\xb4\x65\xe7\x20\x3d\xd2\xf9\x4e\xcb\x98\xb9\xf1\x7f\x03\x45\x34\x59\xb3\x53\x48\x07\x01\x0d\x4d\x77\x48\xda\xd9\xc0\x44\xd7\x74\x28\xdc\x34\xc5\x9e\x72\xfb\x40\xe4\x1d\xa8\xc0\x07\xa2\x4d\x2f\x31\x7f\x5c\xa5\x3a\x35\x45\xd7\x60\xb5\x15\x04\x75\xfc\xcb\x3d\x56\x0c\x20\xf1\xcc\x76\xe6\x9e\xc1\xec\x56\xf7\xa9\x77\x4e\x7a\xde\x22\xef\x99\x0b\xae\xf9\x04\xf2\x25\xd7\x07\x91\x2f\x21\x6d\x5a\x6e\x38\x9d\x0d\x89\xfb\xdb\x4d\x51\xcc\xa4\xfa\xdf\xff\x09\x5d\x17\x9c\xbd\xf1\xa7\x1a\xab\x2b\x0e\x4d\xdb\x01\xa7\x55\x17\x7a\x92\x16\x19\xfb\x7a\x40\x6f\x76\x17\xf2\xe0\xe6\xad\x87\xf4\x59\x08\x49\x1c\x5a\x8a\xbd\x7c\xda\x76\xe8\xd4\x75\xac\x5f\xf8\x2d\x6b\xa3\x67\x93\x6e\xef\xcc\x7d\x6b\x8f\xd3\x34\xdb\x66\xa2\x3b\xda\x42\xf2\xb7\xc6\xd7\x95\x6e\xc9\x1a\x0e\xe5\x46\x4d\x40\x48\xd8\xd3\xf5\xa5\x80\x60\x92\x72\x49\xc7\x2f\x37\x2a\x1e\x1f\xb7\x7c\xb4\x0d\x08\x84\xbe\x29\x97\xf0\xf9\x33\x20\xab\xb3\xc5\x95\x60\xb8\x43\xbc\x91\xf8\xb8\xc6\x54\x61\x06\x22\xd3\x85\x0e\x67\x27\x14\x7c\x27\xe5\x46\x85\x66\xe3\xc6\x88\x20\xa4\x95\x40\x48\x23\x00\x9f\xac\xcf\x9f\x74\xfd\xfb\xd8\x0b\xb9\xc3\xbd\xdc\x28\x36\x8a\x81\xd8\x9d\x36\xed\x65\xb5\x08\x21\xa4\x73\x87\x10\x72\xc3\x2a\x64\x6f\x82\xd0\x9a\x39\x74\x56\x79\x7e\xcb\xf6\x74\xf5\x62\xa5\xfb\xdb\xa1\x7d\xc8\xf1\xfc\x24\x10\xf2\x69\x89\x84\xf4\x04\x72\xce\xd7\x11\x4b\x7b\xc7\x1f\x26\x15\x21\xaf\xb3\x53\x56\xdf\x5a\xc5\xcd\x3b\x56\x7a\x9e\x5d\xf8\x26\x10\x19\xb9\x26\x23\xb2\x69\x85\xda\x2d\x77\xfc\xc3\xe0\xba\xbb\x08\xcc\x00\x79\xb6\x4f\xce\x3b\xdd\x9a\xb1\x79\x97\xbc\x1d\x6f\x9f\x71\x02\xbf\xed\xef\x85\x90\x7d\xa8\x19\x7c\x62\xe0\xae\xfe\x57\x3d\x31\x74\x1f\x19\x3c\xc5\xfc\xa6\xef\x6b\x7d\x35\x85\x1a\x40\xcd\xc5\x13\x92\x62\x7e\xb3\x3d\x62\x23\x9a\xce\x68\x34\x16\x0f\xa7\x83\xb3\xab\x99\xb4\x5a\x72\x60\x2a\x6d\xce\xe3\xda\xdc\x7a\x23\xf3\xc2\x1a\x79\xa7\xde\x2b\x35\x3f\x8d\x18\x31\xec\xa5\xee\xdd\xe8\x96\x83\x59\x69\x5e\x1c\xb4\xcb\x68\x2b\x50\x02\x3c\x1f\xf5\xfd\x65\x9f\x6a\x3c\x9f\xd9\xd1\x8c\xf6\x21\xbd\x0e\x33\xad\x26\x69\x33\x03\xe3\x3a\x3b\x1d\x42\x3f\xe3\xd0\xc2\xdd\x8a\xb9\x7e\xa7\x31\xf7\xd6\x8d\xaa\x36\xa9\xe2\xb0\xa2\x5a\xa5\xfb\x00\x78\x98\x78\x02\xd2\x63\xed\xde\x63\xe8\x86\xd3\x37\xc8\x0f\x1f\xe5\xf5\x1b\xfb\x0c\x98\xf9\xc9\xd7\x60\x0e\x32\x94\x85\xd1\xc7\xa1\x4c\xec\x79\x09\xcc\x01\x6d\x88\x1c\xf2\x65\xfb\x2e\x27\xe6\xdd\x23\xbe\xb1\x87\x7c\x49\x64\x1d\xef\x08\x3a\x91\xc9\x51\x79\x9c\x2f\xa3\x56\xc7\x04\x15\xc7\xf9\x72\xde\x55\xa6\x1d\x9d\x38\x8e\x3b\xca\x7b\xae\x97\xff\x0b\x79\xb8\x3d\xd7\xef\xf0\xf1\x5c\x3f\x18\x9f\x2c\xf1\x93\xf5\xf7\x5d\x13\x84\x7f\xba\xcf\xcb\x3d\x6e\xfc\x35\x75\xc3\x3e\x8f\xdd\x5b\x3b\x3c\xe5\xa9\x24\xcd\xe9\x31\xbc\x2a\x29\x91\x54\x50\x73\x2d\x7f\x42\x2c\xd4\x7d\xa2\x20\xa9\x10\x6a\x55\x56\x98\x41\x52\x53\xda\x63\x7f\xc0\x93\x25\x2a\xb9\x4b\x6a\x84\xe3\x53\xaf\xb6\xe4\xb2\x28\x91\x19\x8c\x65\xa9\x7a\x39\x64\xa4\x47\xbc\x8e\x81\x75\x79\xe7\x60\xb5\xaa\xd2\x52\x3e\xc4\x97\xaa\x14\x2d\x4a\x58\x8b\x0c\x7a\xdb\xa0\xbf\xb9\xcb\xae\x5f\xf1\x88\x2c\x72\xd2\x7a\x76\xd8\x57\x1c\x75\x04\xe8\xfe\x58\xc3\xc5\xa3\x47\x67\xcb\x2d\xfa\xba\x13\x7b\xfd\x5f\x80\xf8\x31\xe9\xba\xf2\x7e\xf3\xc1\x18\x71\x7c\xa8\x8e\xf8\x82\x32\xa2\x57\xe5\x77\xcb\x83\xe6\x9f\x15\xf6\x06\x2b\xf7\x80\xa4\x87\xa8\xdd\x64\x75\x1f\x00\x3c\x2b\xea\x45\xcd\x5b\x91\x70\x7c\xf3\x0d\x06\xbf\x9f\xa3\xf9\x30\xfb\xd7\xa0\xd1\x8e\x70\xc7\xf9\x72\x58\xc2\xc3\xf0\xe3\x4a\x2e\xfd\x1c\x0b\x4d\x23\xdb\x52\xd1\xbb\x42\x9e\xb8\x8b\x3b\xd9\xeb\xee\xcf\x23\x76\x5e\x30\xfe\x18\x48\x79\x76\x5f\xc8\x4f\xb4\x5d\x1b\x28\xa9\x3a\xbf\xbd\xbb\xac\x16\xed\x1c\x3f\x8a\xfb\xb3\xad\xab\xe9\x26\xed\xa6\x28\x14\xa1\xa9\x47\xe2\x95\xa1\xa3\x3e\xd2\xe9\x67\xf6\x2e\xd6\xe9\x31\x87\x76\x1a\x25\x2d\xc0\x5d\x97\xd5\x2a\x51\x33\xa9\xdf\x35\x13\x96\x2e\xe6\x32\x79\x02\xe7\x67\xe6\xd7\x6d\x6c\x24\x62\x74\x9f\xd4\xef\x2a\xcc\xc5\xa3\x27\x1b\x15\xd7\xa1\xd9\x95\xf6\xd0\xec\xac\x98\xfa\x44\xa6\xd2\x3a\x71\x3f\x61\x69\x5b\x81\x2d\xdb\x7d\xbf\x71\xfc\x47\x00\x00\x00\xff\xff\xaf\x27\x45\x76\x3e\x2a\x00\x00") func templateDialectSqlQueryTmplBytes() ([]byte, error) { return bindataRead( @@ -776,7 +776,7 @@ func templateDialectSqlQueryTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/sql/query.tmpl", size: 10816, mode: os.FileMode(420), modTime: time.Unix(1, 0)} + info := bindataFileInfo{name: "template/dialect/sql/query.tmpl", size: 10814, mode: os.FileMode(420), modTime: time.Unix(1, 0)} a := &asset{bytes: bytes, info: info} return a, nil } diff --git a/entc/integration/config/ent/user_query.go b/entc/integration/config/ent/user_query.go index f896215c8..8b9b98414 100644 --- a/entc/integration/config/ent/user_query.go +++ b/entc/integration/config/ent/user_query.go @@ -262,7 +262,6 @@ func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { if err := sqlgraph.QueryNodes(ctx, uq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/entc/integration/customid/ent/blob_query.go b/entc/integration/customid/ent/blob_query.go index 79c048f97..827b650d9 100644 --- a/entc/integration/customid/ent/blob_query.go +++ b/entc/integration/customid/ent/blob_query.go @@ -287,7 +287,6 @@ func (bq *BlobQuery) sqlAll(ctx context.Context) ([]*Blob, error) { if err := sqlgraph.QueryNodes(ctx, bq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/entc/integration/customid/ent/group_query.go b/entc/integration/customid/ent/group_query.go index d3ffcd764..99284b62b 100644 --- a/entc/integration/customid/ent/group_query.go +++ b/entc/integration/customid/ent/group_query.go @@ -289,7 +289,6 @@ func (gq *GroupQuery) sqlAll(ctx context.Context) ([]*Group, error) { if err := sqlgraph.QueryNodes(ctx, gq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/entc/integration/customid/ent/user_query.go b/entc/integration/customid/ent/user_query.go index 846adf16c..990eb561f 100644 --- a/entc/integration/customid/ent/user_query.go +++ b/entc/integration/customid/ent/user_query.go @@ -348,7 +348,6 @@ func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { if err := sqlgraph.QueryNodes(ctx, uq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/entc/integration/ent/card_query.go b/entc/integration/ent/card_query.go index 70b6f04f9..3b1dfc843 100644 --- a/entc/integration/ent/card_query.go +++ b/entc/integration/ent/card_query.go @@ -350,7 +350,6 @@ func (cq *CardQuery) sqlAll(ctx context.Context) ([]*Card, error) { if err := sqlgraph.QueryNodes(ctx, cq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/entc/integration/ent/comment_query.go b/entc/integration/ent/comment_query.go index b80795510..04a6bc3cb 100644 --- a/entc/integration/ent/comment_query.go +++ b/entc/integration/ent/comment_query.go @@ -286,7 +286,6 @@ func (cq *CommentQuery) sqlAll(ctx context.Context) ([]*Comment, error) { if err := sqlgraph.QueryNodes(ctx, cq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/entc/integration/ent/fieldtype_query.go b/entc/integration/ent/fieldtype_query.go index 51b3bcca8..8ef2605fc 100644 --- a/entc/integration/ent/fieldtype_query.go +++ b/entc/integration/ent/fieldtype_query.go @@ -286,7 +286,6 @@ func (ftq *FieldTypeQuery) sqlAll(ctx context.Context) ([]*FieldType, error) { if err := sqlgraph.QueryNodes(ctx, ftq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/entc/integration/ent/file_query.go b/entc/integration/ent/file_query.go index 2d76e2560..cdec6617d 100644 --- a/entc/integration/ent/file_query.go +++ b/entc/integration/ent/file_query.go @@ -348,7 +348,6 @@ func (fq *FileQuery) sqlAll(ctx context.Context) ([]*File, error) { if err := sqlgraph.QueryNodes(ctx, fq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/entc/integration/ent/filetype_query.go b/entc/integration/ent/filetype_query.go index bccfff024..52d0a0df9 100644 --- a/entc/integration/ent/filetype_query.go +++ b/entc/integration/ent/filetype_query.go @@ -314,7 +314,6 @@ func (ftq *FileTypeQuery) sqlAll(ctx context.Context) ([]*FileType, error) { if err := sqlgraph.QueryNodes(ctx, ftq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/entc/integration/ent/group_query.go b/entc/integration/ent/group_query.go index 5b4436e5c..10b6df834 100644 --- a/entc/integration/ent/group_query.go +++ b/entc/integration/ent/group_query.go @@ -399,7 +399,6 @@ func (gq *GroupQuery) sqlAll(ctx context.Context) ([]*Group, error) { if err := sqlgraph.QueryNodes(ctx, gq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/entc/integration/ent/groupinfo_query.go b/entc/integration/ent/groupinfo_query.go index 7bf295b60..19f618be0 100644 --- a/entc/integration/ent/groupinfo_query.go +++ b/entc/integration/ent/groupinfo_query.go @@ -314,7 +314,6 @@ func (giq *GroupInfoQuery) sqlAll(ctx context.Context) ([]*GroupInfo, error) { if err := sqlgraph.QueryNodes(ctx, giq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/entc/integration/ent/item_query.go b/entc/integration/ent/item_query.go index 41ee5414b..90ea40dff 100644 --- a/entc/integration/ent/item_query.go +++ b/entc/integration/ent/item_query.go @@ -262,7 +262,6 @@ func (iq *ItemQuery) sqlAll(ctx context.Context) ([]*Item, error) { if err := sqlgraph.QueryNodes(ctx, iq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/entc/integration/ent/node_query.go b/entc/integration/ent/node_query.go index 7510ce463..d88ae5334 100644 --- a/entc/integration/ent/node_query.go +++ b/entc/integration/ent/node_query.go @@ -348,7 +348,6 @@ func (nq *NodeQuery) sqlAll(ctx context.Context) ([]*Node, error) { if err := sqlgraph.QueryNodes(ctx, nq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/entc/integration/ent/pet_query.go b/entc/integration/ent/pet_query.go index df6501b83..316fbfffb 100644 --- a/entc/integration/ent/pet_query.go +++ b/entc/integration/ent/pet_query.go @@ -347,7 +347,6 @@ func (pq *PetQuery) sqlAll(ctx context.Context) ([]*Pet, error) { if err := sqlgraph.QueryNodes(ctx, pq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/entc/integration/ent/spec_query.go b/entc/integration/ent/spec_query.go index 7d780ad76..8d452e637 100644 --- a/entc/integration/ent/spec_query.go +++ b/entc/integration/ent/spec_query.go @@ -290,7 +290,6 @@ func (sq *SpecQuery) sqlAll(ctx context.Context) ([]*Spec, error) { if err := sqlgraph.QueryNodes(ctx, sq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/entc/integration/ent/user_query.go b/entc/integration/ent/user_query.go index 7b249619c..0b8d7de8b 100644 --- a/entc/integration/ent/user_query.go +++ b/entc/integration/ent/user_query.go @@ -568,7 +568,6 @@ func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { if err := sqlgraph.QueryNodes(ctx, uq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/entc/integration/gremlin/ent/node.go b/entc/integration/gremlin/ent/node.go index 8c7286509..6a834d371 100644 --- a/entc/integration/gremlin/ent/node.go +++ b/entc/integration/gremlin/ent/node.go @@ -25,9 +25,9 @@ type Node struct { // The values are being populated by the NodeQuery when eager-loading is set. Edges struct { // Prev holds the value of the prev edge. - Prev *Node + Prev *Node `gqlgen:prev` // Next holds the value of the next edge. - Next *Node + Next *Node `gqlgen:next` } `json:"edges"` } diff --git a/entc/integration/idtype/ent/user_query.go b/entc/integration/idtype/ent/user_query.go index ddf1285da..cb591911e 100644 --- a/entc/integration/idtype/ent/user_query.go +++ b/entc/integration/idtype/ent/user_query.go @@ -371,7 +371,6 @@ func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { if err := sqlgraph.QueryNodes(ctx, uq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/entc/integration/json/ent/user_query.go b/entc/integration/json/ent/user_query.go index c221f933b..b3f3f693b 100644 --- a/entc/integration/json/ent/user_query.go +++ b/entc/integration/json/ent/user_query.go @@ -286,7 +286,6 @@ func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { if err := sqlgraph.QueryNodes(ctx, uq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/entc/integration/migrate/entv1/car_query.go b/entc/integration/migrate/entv1/car_query.go index c50b49089..d678da634 100644 --- a/entc/integration/migrate/entv1/car_query.go +++ b/entc/integration/migrate/entv1/car_query.go @@ -299,7 +299,6 @@ func (cq *CarQuery) sqlAll(ctx context.Context) ([]*Car, error) { if err := sqlgraph.QueryNodes(ctx, cq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/entc/integration/migrate/entv1/user_query.go b/entc/integration/migrate/entv1/user_query.go index 67aecc392..6352f5265 100644 --- a/entc/integration/migrate/entv1/user_query.go +++ b/entc/integration/migrate/entv1/user_query.go @@ -396,7 +396,6 @@ func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { if err := sqlgraph.QueryNodes(ctx, uq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/entc/integration/migrate/entv2/car_query.go b/entc/integration/migrate/entv2/car_query.go index b343d235c..0828ee9f3 100644 --- a/entc/integration/migrate/entv2/car_query.go +++ b/entc/integration/migrate/entv2/car_query.go @@ -299,7 +299,6 @@ func (cq *CarQuery) sqlAll(ctx context.Context) ([]*Car, error) { if err := sqlgraph.QueryNodes(ctx, cq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/entc/integration/migrate/entv2/group_query.go b/entc/integration/migrate/entv2/group_query.go index e009e158e..cc0941ea1 100644 --- a/entc/integration/migrate/entv2/group_query.go +++ b/entc/integration/migrate/entv2/group_query.go @@ -262,7 +262,6 @@ func (gq *GroupQuery) sqlAll(ctx context.Context) ([]*Group, error) { if err := sqlgraph.QueryNodes(ctx, gq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/entc/integration/migrate/entv2/pet_query.go b/entc/integration/migrate/entv2/pet_query.go index 6cae2a5d7..c43308d96 100644 --- a/entc/integration/migrate/entv2/pet_query.go +++ b/entc/integration/migrate/entv2/pet_query.go @@ -262,7 +262,6 @@ func (pq *PetQuery) sqlAll(ctx context.Context) ([]*Pet, error) { if err := sqlgraph.QueryNodes(ctx, pq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/entc/integration/migrate/entv2/user_query.go b/entc/integration/migrate/entv2/user_query.go index 35563294f..83e4d1226 100644 --- a/entc/integration/migrate/entv2/user_query.go +++ b/entc/integration/migrate/entv2/user_query.go @@ -313,7 +313,6 @@ func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { if err := sqlgraph.QueryNodes(ctx, uq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/entc/integration/template/ent/group_query.go b/entc/integration/template/ent/group_query.go index 72ea5741d..455c755c0 100644 --- a/entc/integration/template/ent/group_query.go +++ b/entc/integration/template/ent/group_query.go @@ -286,7 +286,6 @@ func (gq *GroupQuery) sqlAll(ctx context.Context) ([]*Group, error) { if err := sqlgraph.QueryNodes(ctx, gq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/entc/integration/template/ent/pet_query.go b/entc/integration/template/ent/pet_query.go index d552dbd07..b9682ff00 100644 --- a/entc/integration/template/ent/pet_query.go +++ b/entc/integration/template/ent/pet_query.go @@ -323,7 +323,6 @@ func (pq *PetQuery) sqlAll(ctx context.Context) ([]*Pet, error) { if err := sqlgraph.QueryNodes(ctx, pq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/entc/integration/template/ent/user_query.go b/entc/integration/template/ent/user_query.go index 02543bef9..4c0cf17cc 100644 --- a/entc/integration/template/ent/user_query.go +++ b/entc/integration/template/ent/user_query.go @@ -337,7 +337,6 @@ func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { if err := sqlgraph.QueryNodes(ctx, uq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/examples/edgeindex/ent/city_query.go b/examples/edgeindex/ent/city_query.go index c9543ebeb..e3830d54a 100644 --- a/examples/edgeindex/ent/city_query.go +++ b/examples/edgeindex/ent/city_query.go @@ -313,7 +313,6 @@ func (cq *CityQuery) sqlAll(ctx context.Context) ([]*City, error) { if err := sqlgraph.QueryNodes(ctx, cq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/examples/edgeindex/ent/street_query.go b/examples/edgeindex/ent/street_query.go index a1d880b78..1c76213be 100644 --- a/examples/edgeindex/ent/street_query.go +++ b/examples/edgeindex/ent/street_query.go @@ -323,7 +323,6 @@ func (sq *StreetQuery) sqlAll(ctx context.Context) ([]*Street, error) { if err := sqlgraph.QueryNodes(ctx, sq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/examples/entcpkg/ent/user_query.go b/examples/entcpkg/ent/user_query.go index 85e8cb8a4..498db1444 100644 --- a/examples/entcpkg/ent/user_query.go +++ b/examples/entcpkg/ent/user_query.go @@ -262,7 +262,6 @@ func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { if err := sqlgraph.QueryNodes(ctx, uq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/examples/m2m2types/ent/group_query.go b/examples/m2m2types/ent/group_query.go index 783be737e..93931cbc0 100644 --- a/examples/m2m2types/ent/group_query.go +++ b/examples/m2m2types/ent/group_query.go @@ -313,7 +313,6 @@ func (gq *GroupQuery) sqlAll(ctx context.Context) ([]*Group, error) { if err := sqlgraph.QueryNodes(ctx, gq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/examples/m2m2types/ent/user_query.go b/examples/m2m2types/ent/user_query.go index be6dcbfe6..5b2e6f8c2 100644 --- a/examples/m2m2types/ent/user_query.go +++ b/examples/m2m2types/ent/user_query.go @@ -313,7 +313,6 @@ func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { if err := sqlgraph.QueryNodes(ctx, uq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/examples/m2mbidi/ent/user_query.go b/examples/m2mbidi/ent/user_query.go index f64c70849..151efbde7 100644 --- a/examples/m2mbidi/ent/user_query.go +++ b/examples/m2mbidi/ent/user_query.go @@ -312,7 +312,6 @@ func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { if err := sqlgraph.QueryNodes(ctx, uq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/examples/m2mrecur/ent/user_query.go b/examples/m2mrecur/ent/user_query.go index 6d1f2cf6f..91295b7b7 100644 --- a/examples/m2mrecur/ent/user_query.go +++ b/examples/m2mrecur/ent/user_query.go @@ -336,7 +336,6 @@ func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { if err := sqlgraph.QueryNodes(ctx, uq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/examples/o2m2types/ent/pet_query.go b/examples/o2m2types/ent/pet_query.go index 781dfc4a6..792dd1cc1 100644 --- a/examples/o2m2types/ent/pet_query.go +++ b/examples/o2m2types/ent/pet_query.go @@ -323,7 +323,6 @@ func (pq *PetQuery) sqlAll(ctx context.Context) ([]*Pet, error) { if err := sqlgraph.QueryNodes(ctx, pq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/examples/o2m2types/ent/user_query.go b/examples/o2m2types/ent/user_query.go index 6a7efb29a..f59231977 100644 --- a/examples/o2m2types/ent/user_query.go +++ b/examples/o2m2types/ent/user_query.go @@ -313,7 +313,6 @@ func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { if err := sqlgraph.QueryNodes(ctx, uq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/examples/o2mrecur/ent/node_query.go b/examples/o2mrecur/ent/node_query.go index a6e9ada16..9a580931d 100644 --- a/examples/o2mrecur/ent/node_query.go +++ b/examples/o2mrecur/ent/node_query.go @@ -347,7 +347,6 @@ func (nq *NodeQuery) sqlAll(ctx context.Context) ([]*Node, error) { if err := sqlgraph.QueryNodes(ctx, nq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/examples/o2o2types/ent/card_query.go b/examples/o2o2types/ent/card_query.go index 8c93b0ad6..27c9d11d8 100644 --- a/examples/o2o2types/ent/card_query.go +++ b/examples/o2o2types/ent/card_query.go @@ -323,7 +323,6 @@ func (cq *CardQuery) sqlAll(ctx context.Context) ([]*Card, error) { if err := sqlgraph.QueryNodes(ctx, cq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/examples/o2o2types/ent/user_query.go b/examples/o2o2types/ent/user_query.go index 52ff55cd5..18a660118 100644 --- a/examples/o2o2types/ent/user_query.go +++ b/examples/o2o2types/ent/user_query.go @@ -313,7 +313,6 @@ func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { if err := sqlgraph.QueryNodes(ctx, uq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/examples/o2obidi/ent/user_query.go b/examples/o2obidi/ent/user_query.go index 4a4fadb78..bce2f3ac3 100644 --- a/examples/o2obidi/ent/user_query.go +++ b/examples/o2obidi/ent/user_query.go @@ -322,7 +322,6 @@ func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { if err := sqlgraph.QueryNodes(ctx, uq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/examples/o2orecur/ent/node_query.go b/examples/o2orecur/ent/node_query.go index dadd28959..5f46dcca2 100644 --- a/examples/o2orecur/ent/node_query.go +++ b/examples/o2orecur/ent/node_query.go @@ -347,7 +347,6 @@ func (nq *NodeQuery) sqlAll(ctx context.Context) ([]*Node, error) { if err := sqlgraph.QueryNodes(ctx, nq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/examples/start/ent/car_query.go b/examples/start/ent/car_query.go index 6dac178fd..179cede99 100644 --- a/examples/start/ent/car_query.go +++ b/examples/start/ent/car_query.go @@ -323,7 +323,6 @@ func (cq *CarQuery) sqlAll(ctx context.Context) ([]*Car, error) { if err := sqlgraph.QueryNodes(ctx, cq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/examples/start/ent/group_query.go b/examples/start/ent/group_query.go index 8376090fc..ebd2acac1 100644 --- a/examples/start/ent/group_query.go +++ b/examples/start/ent/group_query.go @@ -313,7 +313,6 @@ func (gq *GroupQuery) sqlAll(ctx context.Context) ([]*Group, error) { if err := sqlgraph.QueryNodes(ctx, gq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/examples/start/ent/user_query.go b/examples/start/ent/user_query.go index c20cf0f68..b066e9686 100644 --- a/examples/start/ent/user_query.go +++ b/examples/start/ent/user_query.go @@ -338,7 +338,6 @@ func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { if err := sqlgraph.QueryNodes(ctx, uq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/examples/traversal/ent/group_query.go b/examples/traversal/ent/group_query.go index 3b6feb4de..23f9aa4d7 100644 --- a/examples/traversal/ent/group_query.go +++ b/examples/traversal/ent/group_query.go @@ -348,7 +348,6 @@ func (gq *GroupQuery) sqlAll(ctx context.Context) ([]*Group, error) { if err := sqlgraph.QueryNodes(ctx, gq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/examples/traversal/ent/pet_query.go b/examples/traversal/ent/pet_query.go index 7e1c4cf64..459d64d3c 100644 --- a/examples/traversal/ent/pet_query.go +++ b/examples/traversal/ent/pet_query.go @@ -348,7 +348,6 @@ func (pq *PetQuery) sqlAll(ctx context.Context) ([]*Pet, error) { if err := sqlgraph.QueryNodes(ctx, pq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil } diff --git a/examples/traversal/ent/user_query.go b/examples/traversal/ent/user_query.go index da59a56a3..ff24dd252 100644 --- a/examples/traversal/ent/user_query.go +++ b/examples/traversal/ent/user_query.go @@ -386,7 +386,6 @@ func (uq *UserQuery) sqlAll(ctx context.Context) ([]*User, error) { if err := sqlgraph.QueryNodes(ctx, uq.driver, _spec); err != nil { return nil, err } - if len(nodes) == 0 { return nodes, nil }