diff --git a/dialect/sql/schema/schema.go b/dialect/sql/schema/schema.go index 881ebe533..768e4325c 100644 --- a/dialect/sql/schema/schema.go +++ b/dialect/sql/schema/schema.go @@ -17,7 +17,7 @@ import ( const ( // DefaultStringLen describes the default length for string/varchar types. - DefaultStringLen = 255 + DefaultStringLen int64 = 255 // Null is the string representation of NULL in SQL. Null = "NULL" // PrimaryKey is the string representation of PKs in SQL. @@ -176,7 +176,7 @@ type Column struct { Type field.Type // column type. typ string // row column type (used for Rows.Scan). Attr string // extra attributes. - Size int // max size parameter for string, blob, etc. + Size int64 // max size parameter for string, blob, etc. Key string // key definition (PRI, UNI or MUL). Unique bool // column with unique constraint. Increment bool // auto increment attribute. @@ -241,7 +241,7 @@ func (c *Column) MySQLType(version string) (t string) { case field.TypeUint, field.TypeUint64: t = "bigint unsigned" case field.TypeBytes: - size := math.MaxUint16 + size := int64(math.MaxUint16) if c.Size > 0 { size = c.Size } @@ -379,7 +379,7 @@ func (c *Column) ScanMySQL(rows *sql.Rows) error { c.Type = field.TypeBytes case "varchar": c.Type = field.TypeString - size, err := strconv.Atoi(parts[1]) + size, err := strconv.ParseInt(parts[1], 10, 64) if err != nil { return fmt.Errorf("converting varchar size to int: %v", err) } @@ -521,7 +521,7 @@ func (c *Column) nullable(b *sql.ColumnBuilder) { // defaultSize returns the default size for MySQL varchar type based // on column size, charset and table indexes, in order to avoid index // prefix key limit (767). -func (c *Column) defaultSize(version string) int { +func (c *Column) defaultSize(version string) int64 { size := DefaultStringLen switch { // version is >= 5.7. diff --git a/doc/md/getting-started.md b/doc/md/getting-started.md index ea3e58205..f46e1257b 100755 --- a/doc/md/getting-started.md +++ b/doc/md/getting-started.md @@ -554,16 +554,16 @@ Now when we have a graph with data, we can run a few queries on it: user.Name("Ariel"), ). OnlyX(ctx) - cars, err := a8m. // Get the groups, that a8m is connected to: - QueryGroups(). // (Group(Name=GitHub), Group(Name=GitLab),) - QueryUsers(). // (User(Name=Ariel, Age=30), User(Name=Neta, Age=28),) - QueryCars(). // - Where( // - car.Not( // Get Neta and Ariel cars, but filter out - car.ModelEQ("Mazda"), // those who named "Mazda" - ), // - ). // - All(ctx) + cars, err := a8m. // Get the groups, that a8m is connected to: + QueryGroups(). // (Group(Name=GitHub), Group(Name=GitLab),) + QueryUsers(). // (User(Name=Ariel, Age=30), User(Name=Neta, Age=28),) + QueryCars(). // + Where( // + car.Not( // Get Neta and Ariel cars, but filter out + car.ModelEQ("Mazda"), // those who named "Mazda" + ), // + ). // + All(ctx) if err != nil { return fmt.Errorf("failed getting cars: %v", err) } diff --git a/entc/gen/internal/bindata.go b/entc/gen/internal/bindata.go index 20ca01887..b0ccddf23 100644 --- a/entc/gen/internal/bindata.go +++ b/entc/gen/internal/bindata.go @@ -479,7 +479,7 @@ func templateDialectGremlinPredicateTmpl() (*asset, error) { return a, nil } -var _templateDialectGremlinQueryTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x56\xef\x4f\x23\x37\x10\xfd\x9c\xfd\x2b\xa6\x27\x84\x76\xd3\x9c\x43\x4f\x55\xa5\x1e\x4a\x25\x7e\xe4\xd4\x48\x1c\xb4\x80\xf8\x52\x55\x95\x59\xcf\x6e\x2c\x1c\x7b\xcf\xf6\xe6\x82\xa2\xfd\xdf\x2b\xff\xd8\xb0\x84\x84\x70\xa7\x83\x4f\x2c\xf6\xcc\x7b\xcf\xe3\xe7\xc9\x2c\x97\xc3\x7e\x72\xa2\xaa\x7b\xcd\xcb\xa9\x85\x0f\x07\xbf\xfc\xfe\xbe\xd2\x68\x50\x5a\xf8\x44\x73\xbc\x55\xea\x0e\x26\x32\x27\x70\x24\x04\xf8\x20\x03\x6e\x5f\xcf\x91\x91\xe4\x7a\xca\x0d\x18\x55\xeb\x1c\x21\x57\x0c\x81\x1b\x10\x3c\x47\x69\x90\x41\x2d\x19\x6a\xb0\x53\x84\xa3\x8a\xe6\x53\x84\x0f\xe4\xa0\xdd\x85\x42\xd5\x92\x25\x5c\xfa\xfd\xb3\xc9\xc9\xf8\xfc\x6a\x0c\x05\x17\x08\x71\x4d\x2b\x65\x81\x71\x8d\xb9\x55\xfa\x1e\x54\x01\xb6\x43\x66\x35\x22\x49\xfa\xc3\xa6\x49\x92\xe5\x12\x18\x16\x5c\x22\xbc\x63\x9c\x0a\xcc\xed\xb0\xd4\x38\x13\x5c\x0e\xbf\xd4\xa8\xef\xdf\x41\xd3\xb8\xa0\xbd\xdb\x9a\x0b\x27\xe9\xe3\x08\x2a\x6a\x72\x2a\x60\x8f\x5c\xe5\xaa\x42\x72\x1c\x77\x62\xa0\xc6\x1c\xf9\x3c\x44\xae\xbe\x57\xe9\x8e\xb3\xa8\x65\x0e\xe9\xa3\xd8\xa6\x81\x7e\x97\xa5\x69\x32\x88\x3a\x26\xa7\x26\xcd\xed\x02\x72\x25\x2d\x2e\x2c\x39\x09\x7f\x33\x48\xff\xf9\xd7\xa5\x90\xc9\x29\xb9\xbe\xaf\x10\x9a\x66\x00\xa8\xb5\xd2\x19\x2c\x93\x9e\x46\xe3\x14\xec\x47\x14\x72\x89\xa6\x52\xd2\xe0\xb2\x49\x7a\xfe\x64\x03\xb8\xe5\x92\x71\x59\xfa\xb8\x35\x35\x24\xa6\xfd\xed\x22\xd3\x8c\xc4\xbf\x49\x8f\x17\x8e\x63\x53\x06\xd3\xee\x8b\x8c\x17\x98\x3b\xbd\x03\x58\x63\x19\xb8\xab\xcf\x0e\x7d\xfa\x4f\x23\x90\x5c\x38\x99\x3d\x8d\xb6\xd6\xd2\xfd\xeb\xd5\x27\xbd\x26\xe9\xcd\x51\x5b\x9e\xa3\x19\xb4\x5c\x1a\x0d\xb9\x44\xca\x6e\xe2\x46\x47\xc9\x0e\x28\xce\xfc\xf1\x66\xf4\x0e\x37\xd5\xeb\x60\x00\x02\x65\xda\x12\x66\x59\xd2\x2b\x94\x86\xff\x06\xe0\x96\x70\xe1\xc9\xa9\x2c\x11\xda\x10\xcf\xe4\x50\x47\x40\xab\x0a\x25\x4b\x39\x33\x6d\xb8\xc3\x4e\xd7\x48\x1c\x66\x93\xb4\xe2\x7c\xb0\xe4\x22\xf9\x66\x1f\x1c\x09\xb1\xd5\x07\x3e\x87\x9c\xd3\xd9\xeb\xba\xe0\x86\x8a\x1a\x3f\xd3\x2a\xb5\xba\xc6\x37\x37\x05\xd5\x0e\xbe\x12\xb5\xf6\x8f\xef\xb2\x53\xb3\xee\xba\xaf\x82\x7b\x67\x8f\x65\x6d\xca\x23\x9f\xb4\x9a\xb5\x25\x49\x5f\xac\x64\x1b\x5a\xae\x64\xc1\xcb\xf5\x0b\x8d\xcb\xd9\xca\x02\x5b\xd2\xbf\xd3\x16\x27\xaa\x96\x76\x8b\x31\xb8\xb4\xaf\x67\x86\x40\xfc\x06\x2e\x38\x78\xa8\x7c\x5c\x69\xdb\xc1\xc4\x09\xf8\xf6\x92\x8d\x17\xdc\x6c\x2b\xd9\xad\x52\xe2\xf5\x6a\xf6\x27\x35\xe7\xb8\x78\x93\xaa\x15\x54\x18\xdc\x5a\xb9\x63\xa5\xc4\xf7\x94\x2e\xca\x86\x3e\x33\x82\x5c\x6b\x3a\x47\x6d\xa8\xe7\x9d\xbb\x23\x94\xe4\x26\x9c\xf2\x8c\xde\xa2\x08\x9d\xf0\x2f\x9a\xdf\xd1\xd2\x35\x26\xe2\x57\xc3\x99\xb7\x14\xaa\x7b\x90\x39\x6c\xad\x27\x39\x11\x4a\x62\x1a\x3a\x6b\x6c\xd8\xd5\x43\xaf\x5e\xcf\xaa\x34\x32\x9e\x53\x1b\xbb\x77\x95\xce\x43\x26\x2f\x7c\xf7\x5f\x0f\x57\x9a\xa1\xce\xe0\x0f\x38\x08\x3a\xc8\x85\x5b\x70\x6c\x2f\xe0\xf2\xc9\x3e\x2f\xf2\x38\xa2\x26\xe9\x99\xaf\xdc\xe6\x53\x10\x7c\xc6\xed\x00\x54\x51\x18\xb4\x9b\x6e\x3d\x06\x3c\x81\xf5\x09\x87\x0e\x38\xa7\x06\x03\x4e\x5b\xad\xfd\xfd\x16\x30\x2c\x7c\xf4\xaa\x2f\x9d\xbe\xb4\x1f\x76\x06\x10\x3f\xe0\x67\xe8\xfb\xe4\x2c\x22\xed\xce\x9c\x51\x3b\x25\x9f\xe9\x62\x22\xed\x6f\xbf\x66\x1b\x04\x84\xac\x33\xb7\x92\xae\xc0\x43\x7d\x6b\xc9\xbf\xd4\xb8\xe9\xa0\x61\xe7\xd0\xdf\x40\xf8\xce\x60\x34\x5a\xd5\xfc\x14\x59\x5d\xa5\x8f\x7e\x3b\xe7\x89\x9f\xb0\x50\x32\x08\xa3\xdb\xb0\x1f\xde\xc4\xb0\xa2\x76\x1a\xe7\x38\xe3\x07\x40\xbf\x0c\x25\x4a\xd4\xd4\x72\x25\xc1\x5d\x9c\x8f\x52\x05\x50\x28\xf9\x1c\x25\x20\x2b\x91\x80\x9f\x03\x77\x8d\x81\x9e\xc1\xcf\x82\xbd\xe5\xf2\x3d\xec\xf9\x13\xb5\x03\xe0\x98\x79\x7b\x83\x17\xe4\xd8\x1d\x30\x7c\x45\x90\x88\x0c\xac\xf2\x3a\x4a\x4d\x2d\xfa\x5d\x2f\xc3\xaa\xc8\x1c\xf0\xba\x43\x63\x0b\xdb\xf9\x6d\x48\x7a\xed\xfb\xd8\xd9\x63\x02\x20\x2f\x60\x0f\xc9\x15\x8a\xe2\x12\x0b\x0f\x10\xba\xd5\xea\x9d\x8d\xda\x17\x4d\x8e\x95\x9d\x3e\x79\xa9\xee\x7f\x74\x6d\xd1\x58\x2a\xad\xeb\x00\x01\x17\x85\xc1\x08\x3e\x31\x13\xe9\x9e\x3f\x3e\x0f\x3f\x91\xe3\x34\xa0\xb9\x79\xe8\x79\x0e\x72\x51\xdb\x9b\xb4\x4b\xf5\x2c\xf4\x45\x6d\xc7\x2f\x50\x4e\x26\xf2\x01\x34\x78\xa7\xe3\xa2\xae\x8d\x0a\xad\x66\xbb\x6d\x44\x83\x73\xe2\xa6\xcf\x69\x1d\x25\x15\x7b\xb1\xa3\x5c\x62\xc7\x51\xfe\x6a\xf7\x1e\xd9\xc8\xa1\x39\x1b\x19\x4b\xb5\xed\xe8\x71\x99\x8f\xdc\xf3\xd6\x6e\x7c\xb9\xc7\xc8\xcd\x93\xee\x3a\x39\xcd\x1e\x3c\x27\x7f\xb0\xe9\xb6\xf0\xbd\x86\x09\xb7\x50\xad\x4c\xb9\xe3\x68\xcf\xb9\xf2\xff\x00\x00\x00\xff\xff\x93\xd9\x9d\x80\x59\x0f\x00\x00") +var _templateDialectGremlinQueryTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x56\x5d\x4f\x23\x37\x14\x7d\xce\xfc\x8a\xdb\x15\x42\x33\x69\xd6\xa1\xf4\xa9\x8b\x52\x89\x8f\xac\x1a\x89\x85\x16\x10\x2f\x55\x55\x99\xf1\x9d\x89\x85\x63\xcf\xda\x9e\x6c\x50\x34\xff\xbd\xf2\xc7\x84\x21\x24\x84\x5d\x15\x9e\x18\xec\x7b\xcf\x39\xbe\x3e\xbe\xb9\xcb\xe5\xb0\x9f\x9c\xaa\xea\x41\xf3\x72\x6a\xe1\xf0\xe0\x97\xdf\x3e\x56\x1a\x0d\x4a\x0b\x9f\x69\x8e\x77\x4a\xdd\xc3\x44\xe6\x04\x8e\x85\x00\x1f\x64\xc0\xed\xeb\x39\x32\x92\xdc\x4c\xb9\x01\xa3\x6a\x9d\x23\xe4\x8a\x21\x70\x03\x82\xe7\x28\x0d\x32\xa8\x25\x43\x0d\x76\x8a\x70\x5c\xd1\x7c\x8a\x70\x48\x0e\xda\x5d\x28\x54\x2d\x59\xc2\xa5\xdf\x3f\x9f\x9c\x8e\x2f\xae\xc7\x50\x70\x81\x10\xd7\xb4\x52\x16\x18\xd7\x98\x5b\xa5\x1f\x40\x15\x60\x3b\x64\x56\x23\x92\xa4\x3f\x6c\x9a\x24\x59\x2e\x81\x61\xc1\x25\xc2\x07\xc6\xa9\xc0\xdc\x0e\x4b\x8d\x33\xc1\xe5\xf0\x6b\x8d\xfa\xe1\x03\x34\x8d\x0b\xda\xbb\xab\xb9\x70\x92\x3e\x8d\xa0\xa2\x26\xa7\x02\xf6\xc8\x75\xae\x2a\x24\x27\x71\x27\x06\x6a\xcc\x91\xcf\x43\xe4\xea\x7b\x95\xee\x38\x8b\x5a\xe6\x90\x3e\x89\x6d\x1a\xe8\x77\x59\x9a\x26\x83\xa8\x63\x72\x66\xd2\xdc\x2e\x20\x57\xd2\xe2\xc2\x92\xd3\xf0\x37\x83\xf4\xef\x7f\x5c\x0a\x99\x9c\x91\x9b\x87\x0a\xa1\x69\x06\x80\x5a\x2b\x9d\xc1\x32\xe9\x69\x34\x4e\xc1\x7e\x44\x21\x57\x68\x2a\x25\x0d\x2e\x9b\xa4\xe7\x4f\x36\x80\x3b\x2e\x19\x97\xa5\x8f\x5b\x53\x43\x62\xda\x5f\x2e\x32\xcd\x48\xfc\x9b\xf4\x78\xe1\x38\x36\x65\x30\xed\xbe\xc8\x78\x81\xb9\xd3\x3b\x80\x35\x96\x81\xbb\xfa\xec\xc8\xa7\xff\x34\x02\xc9\x85\x93\xd9\xd3\x68\x6b\x2d\xdd\xbf\x5e\x7d\xd2\x6b\x92\xde\x1c\xb5\xe5\x39\x9a\x41\xcb\xa5\xd1\x90\x2b\xa4\xec\x36\x6e\x74\x94\xec\x80\xe2\xcc\x1f\x6f\x46\xef\x71\x53\xbd\x0e\x06\x20\x50\xa6\x2d\x61\x96\x25\xbd\x42\x69\xf8\x77\x00\x6e\x09\x17\x9e\x9c\xca\x12\xa1\x0d\xf1\x4c\x0e\x75\x04\xb4\xaa\x50\xb2\x94\x33\xd3\x86\x3b\xec\x74\x8d\xc4\x61\x36\x49\x2b\xce\x07\x4b\x2e\x92\xef\xf6\xc1\xb1\x10\x5b\x7d\xe0\x73\xc8\x05\x9d\xbd\xad\x0b\x6e\xa9\xa8\xf1\x0b\xad\x52\xab\x6b\x7c\x77\x53\x50\xed\xe0\x2b\x51\x6b\xff\xf8\xae\x3a\x35\xeb\xae\xfb\x2a\xb8\x77\xf6\x54\xd6\xa6\x3c\xf2\x59\xab\x59\x5b\x92\xf4\xd5\x4a\xb6\xa1\xe5\x4a\x16\xbc\x5c\xbf\xd0\xb8\x9c\xad\x2c\xb0\x25\xfd\x07\x6d\x71\xaa\x6a\x69\xb7\x18\x83\x4b\xfb\x76\x66\x08\xc4\xef\xe0\x82\x83\xc7\xca\xc7\x95\xb6\x1d\x4c\x9c\x80\xef\x2f\xd9\x78\xc1\xcd\xb6\x92\xdd\x29\x25\xde\xae\x66\x7f\x50\x73\x81\x8b\x77\xa9\x5a\x41\x85\xc1\xad\x95\x3b\x51\x4a\xfc\x48\xe9\xa2\x6c\xe8\x33\x23\xc8\x8d\xa6\x73\xd4\x86\x7a\xde\xb9\x3b\x42\x49\x6e\xc3\x29\xcf\xe9\x1d\x8a\xd0\x09\xff\xa4\xf9\x3d\x2d\x5d\x63\x22\x7e\x35\x9c\x79\x4b\xa1\xba\x07\x99\xc3\xd6\x7a\x92\x53\xa1\x24\xa6\xa1\xb3\xc6\x86\x5d\x3d\xf6\xea\xf5\xac\x4a\x23\xe3\x39\xb5\xb1\x7b\x57\xe9\x3c\x64\xf2\xc2\x77\xff\xf5\x70\xa5\x19\xea\x0c\x7e\x87\x83\xa0\x83\x5c\xba\x05\xc7\xf6\x0a\x2e\x9f\xec\xf3\x22\x8f\x23\x6a\x92\x9e\xf9\xc6\x6d\x3e\x05\xc1\x67\xdc\x0e\x40\x15\x85\x41\xbb\xe9\xd6\x63\xc0\x33\x58\x9f\x70\xe4\x80\x73\x6a\x30\xe0\xb4\xd5\xda\xdf\x6f\x01\xc3\xc2\x27\xaf\xfa\xca\xe9\x4b\xfb\x61\x67\x00\xf1\x03\x7e\x86\xbe\x4f\xce\x22\xd2\xee\xcc\x19\xb5\x53\xf2\x85\x2e\x26\xd2\xfe\x7a\x98\x6d\x10\x10\xb2\xce\xdd\x4a\xba\x02\x0f\xf5\xad\x25\xff\x5a\xe3\xa6\x83\x86\x9d\x23\x7f\x03\xe1\x3b\x83\xd1\x68\x55\xf3\x33\x64\x75\x95\x3e\xf9\xed\x9c\x27\x7e\xc2\x42\xc9\x20\x8c\x6e\xc3\x7e\x78\x13\xc3\x8a\xda\x69\x9c\xe3\x8c\x1f\x00\xfd\x32\x94\x28\x51\x53\xcb\x95\x04\x77\x71\x3e\x4a\x15\x40\xa1\xe4\x73\x94\x80\xac\x44\x02\x7e\x0e\xdc\x35\x06\x7a\x06\x3f\x0b\xf6\x96\xcb\x8f\xb0\xe7\x4f\xd4\x0e\x80\x63\xe6\xed\x0d\x5e\x90\x63\x77\xc0\xf0\x0d\x41\x22\x32\xb0\xca\xeb\x28\x35\xb5\xe8\x77\xbd\x0c\xab\x22\x73\xc0\xeb\x0e\x8d\x2d\x6c\xe7\xb7\x21\xe9\xb5\xef\x63\x67\x8f\x09\x80\xbc\x80\x3d\x24\xd7\x28\x8a\x2b\x2c\x3c\x40\xe8\x56\xab\x77\x36\x6a\x5f\x34\x39\x51\x76\xfa\xec\xa5\xba\xff\xd1\xb5\x45\x63\xa9\xb4\xae\x03\x04\x5c\x14\x06\x23\xf8\xc4\x4c\xa4\x7b\xfe\xf8\x32\xfc\x44\x8e\xd3\x80\xe6\xe6\xa1\x97\x39\xc8\x65\x6d\x6f\xd3\x2e\xd5\x8b\xd0\x97\xb5\x1d\xbf\x42\x39\x99\xc8\x47\xd0\xe0\x9d\x8e\x8b\xba\x36\x2a\xb4\x9a\xed\xb6\x11\x0d\xce\x89\x9b\x3e\xa7\x75\x94\x54\xec\xd5\x8e\x72\x89\x1d\x47\xf9\xab\xdd\x7b\x62\x23\x87\xe6\x6c\x64\x2c\xd5\xb6\xa3\xc7\x65\x3e\x71\xcf\x7b\xbb\xf1\xf5\x1e\x23\xb7\xcf\xba\xeb\xe4\x2c\x7b\xf4\x9c\xfc\x9f\x4d\xb7\x85\xef\x2d\x4c\xb8\x85\x6a\x65\xca\x1d\x47\x7b\xc9\x95\xff\x05\x00\x00\xff\xff\x11\x7d\xc0\x7f\x59\x0f\x00\x00") func templateDialectGremlinQueryTmplBytes() ([]byte, error) { return bindataRead( @@ -494,7 +494,7 @@ func templateDialectGremlinQueryTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/gremlin/query.tmpl", size: 3929, mode: os.FileMode(420), modTime: time.Unix(1567330650, 0)} + info := bindataFileInfo{name: "template/dialect/gremlin/query.tmpl", size: 3929, mode: os.FileMode(420), modTime: time.Unix(1570094435, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -719,7 +719,7 @@ func templateDialectSqlPredicateTmpl() (*asset, error) { return a, nil } -var _templateDialectSqlQueryTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xcc\x58\x5f\x6f\xd3\xca\x12\x7f\x8e\x3f\xc5\x50\xf5\x22\x3b\x4a\x9d\x36\x54\x57\xba\xad\x7a\x25\x4e\x5b\xa4\x9c\x43\x29\x50\x24\x1e\x10\x3a\xda\xda\xe3\x64\xe9\x66\x37\xdd\xdd\xa4\xad\x82\xbf\xfb\xd1\xce\xda\x8e\x93\x38\x6d\x02\xd5\x81\x07\x44\xd6\x3b\x7f\x7f\xf3\xdb\x99\x81\xd9\xac\xdb\x0e\x4e\xd5\xf8\x41\xf3\xc1\xd0\x42\x6f\xff\xe0\x7f\x7b\x63\x8d\x06\xa5\x85\x37\x2c\xc1\x6b\xa5\x6e\xa0\x2f\x93\x18\x5e\x0b\x01\x24\x64\xc0\xdd\xeb\x29\xa6\x71\xf0\x69\xc8\x0d\x18\x35\xd1\x09\x42\xa2\x52\x04\x6e\x40\xf0\x04\xa5\xc1\x14\x26\x32\x45\x0d\x76\x88\xf0\x7a\xcc\x92\x21\x42\x2f\xde\x2f\x6f\x21\x53\x13\x99\x06\x5c\xd2\xfd\xdb\xfe\xe9\xf9\xbb\xab\x73\xc8\xb8\x40\x28\xbe\x69\xa5\x2c\xa4\x5c\x63\x62\x95\x7e\x00\x95\x81\xad\x39\xb3\x1a\x31\x0e\xda\xdd\x3c\x0f\x82\xd9\x0c\x52\xcc\xb8\x44\xd8\x49\x39\x13\x98\xd8\xae\xb9\x15\xdd\xdb\x09\xea\x87\x1d\xc8\x73\x27\xb0\x3b\xbe\x19\xc0\xd1\x09\xec\xc6\x57\x89\x1a\x63\xfc\x9e\x25\x37\x6c\x80\xe5\xed\xf5\x84\x0b\x17\xec\xd1\x09\x8c\x99\x49\x98\xa8\x04\xff\x28\x6e\x0a\x41\x8d\x09\xf2\xa9\x97\xac\x7e\x57\xea\x2e\x9a\x6c\x22\x13\x08\x17\x64\xf3\x1c\xda\x75\x2f\x79\x1e\x81\xb9\x15\xaf\x85\x08\x13\x7b\x0f\x89\x92\x16\xef\x6d\x7c\xea\xff\x8e\x20\xfc\xf2\x95\xe4\xe3\x77\x6c\xe4\x42\xec\x00\x6a\xad\x74\x04\xb3\xa0\xa5\xd5\x9d\x71\xce\x5f\x9a\x5b\x11\x7f\x54\x77\x66\x96\x07\x2d\x83\x82\x60\x72\x17\x4b\x9e\x63\x73\x2b\x3e\x38\x24\xc2\x28\x68\xf1\x0c\x26\x92\xdf\x4e\xb0\x49\xd0\xdf\x1c\x83\x40\x19\xfa\xdf\x11\x9c\x9c\xc0\xbe\xf3\x5a\x79\x88\xcf\xb8\xb1\x5c\x26\xd6\x99\xcb\x83\x16\x81\xdc\x01\xa6\x07\x14\x55\x25\x56\x77\x89\xba\x31\xb0\x54\xbb\x5f\x85\x64\x62\xef\x3b\x50\x33\xd6\x01\x97\x68\x74\x4c\xca\x2f\x4e\x40\x72\x41\x71\x68\xb4\x13\x2d\xdd\x91\x40\xa1\x18\x52\xcc\x50\x93\x7c\x7c\x2a\x94\x41\xe7\x76\x36\xdb\x73\xde\x2c\x55\x54\x4c\x34\x55\xf4\xe3\xdc\x7b\xd0\x9a\x32\x5d\x84\x64\x5d\x81\x66\xb3\xb9\x1c\xc1\x4e\x42\xcb\xd1\x3b\xd1\xf8\x8d\x56\x23\x87\x7c\xb8\x79\x88\x35\xed\x44\xc9\x8c\x0f\x96\x09\x52\x7c\x8e\x82\x52\x7d\xae\xd1\x71\xa6\x82\xad\x98\x75\xaa\x26\xd2\xae\xe1\x16\x97\xf6\xd9\xf8\x34\x27\xd3\x97\xaf\xc6\x6a\x2e\x07\x33\x92\xaf\x3d\xaf\x98\xce\xfd\x33\x17\x81\xb1\x4c\x12\xd8\x1e\x59\x47\xb4\x66\x12\x46\xf0\xff\x82\x77\x85\x87\x75\x6c\x25\x70\x2b\xd2\xf9\xb4\x5d\x22\x15\x4b\x6b\x77\x62\x32\x92\xa6\x60\x76\x1c\xc7\x91\xfb\x13\xfd\x32\x06\xef\x3f\xce\x5f\x9e\xc1\x0b\xfa\xf2\x0e\xef\x6d\x18\xad\x6a\x2a\xed\xee\xee\xc2\x9d\xb2\xb9\xe5\xf9\x11\x48\x45\x66\x7c\x73\xdd\xf1\x2f\xd4\xf1\x5c\x02\x97\xb6\x9e\x09\x99\xbe\x4a\x98\x0c\x5f\xca\xc7\x42\xcc\x46\x36\x3e\x77\xce\xb2\x45\x47\x19\xe3\x02\x53\xd0\xc8\x52\x2e\x07\x90\x38\xe0\x8f\xe0\x3f\xd3\x1d\x8a\xcd\x3b\x2e\xdf\xc1\x0f\xf0\xf7\xfc\x9e\x9b\x75\xfc\xbd\x56\x4a\xd4\x09\x2c\x3b\xeb\xca\x53\x7f\x08\xf3\x3a\xae\xe6\x99\x31\x61\x70\x7d\xae\xc9\x10\x93\x1b\x40\x17\x12\xca\x04\xd7\xa5\xe9\x28\xfb\x03\xa9\xf6\xcf\xcc\xda\x21\x50\x3e\x9d\x4f\x0f\xe3\xe5\x31\x30\x35\x8f\xa5\x5d\x4c\x96\xc7\x92\x5e\x68\x4f\x8e\x23\x3c\x35\xb0\xe2\x32\x68\x65\x4a\xc3\xdf\x1d\x98\x12\x6b\x98\x1c\x20\x4c\x0d\xd9\x71\xf2\x27\xc0\xc6\x63\x94\x69\xc8\x53\xd3\x81\x69\xdc\x3f\x5b\xc0\x84\xbe\x6e\x8d\x48\xf1\xf0\xa0\xed\x1e\xf2\x55\xd9\x89\x66\x41\xcb\x1e\xd0\x03\xbd\x15\xf1\x27\x76\x2d\x30\x5c\xee\x34\xf4\x35\x5a\xec\x5e\x73\x1b\xa1\x3d\xa8\x9a\xc0\xb2\x66\xf1\xbd\xec\x0a\xd4\xe1\x43\x7b\xe0\xf1\x6b\xc0\xb7\x8e\x67\xe5\xad\xb1\x12\xf5\xd1\x59\xc4\xb1\xd2\x92\x9e\x88\x86\x10\x2d\xca\x30\x9e\x97\x61\xd9\xd9\x58\x63\xca\x13\x66\xd1\x97\x67\x5c\xf9\xd9\xd4\x80\xd2\xae\x08\x4d\xba\x3c\x03\x95\x65\xc6\x4f\xd3\x15\x35\xba\x39\x2e\x25\x6a\xc8\x74\xbb\x20\xf8\x88\x5b\xb7\x14\x8e\x98\x4c\x19\x2d\x72\x2e\x90\x42\x36\x11\x6c\x62\x30\x86\xcf\x08\xc6\x32\x6d\xbd\xce\x1d\xb7\x43\xb7\xd0\xb1\x89\xb0\x30\x65\x62\x82\x1d\x60\x32\x05\x35\x45\xad\xb9\xdb\x31\x2d\x5c\xa3\x50\x77\xc0\x33\x90\x88\xa9\x5b\x44\x6b\x30\x5f\x92\xf1\xb0\xed\x9d\x44\xf1\x5b\x17\x43\x38\x62\x76\x18\x5f\xb0\xfb\xbe\xb4\xff\x3d\xac\xd2\xf2\xf1\x35\x64\x45\x17\xc7\xc5\x7d\x43\xb5\x0b\xab\x6d\x12\x58\x20\x7d\x29\x11\xd0\xc2\x88\x32\x05\xbf\xa3\x76\xdb\x7e\x3a\x74\xc7\xcc\xe7\xc7\x25\x1a\xda\x74\xe9\x33\x0c\x50\xa2\x66\x96\x2b\x49\x10\x91\x94\xca\x80\xc1\x80\x4f\x51\x02\xa6\x03\x8c\x81\x16\xde\xc7\xf6\x5d\xb2\x4e\x4b\xaf\x5f\x81\xb0\xbe\xf4\x9e\xa7\x44\x30\xa0\x60\x9c\x67\x67\x14\xee\x90\x50\x04\xab\x28\x86\x81\x66\x16\xe9\x96\x42\xb0\xaa\xf0\x5a\xae\x54\xf3\xfd\xb7\x34\x5b\x5f\xab\xbc\x18\xcf\x60\x17\xe3\x8b\xde\x05\x05\x42\xdb\x0f\x77\x1a\x07\x90\xe7\xee\xf0\xcd\x1d\xf6\xe9\x50\x0a\xf7\x4d\x5f\x4e\x51\x1b\x2c\x44\x38\x94\x12\x4e\xbc\x52\x75\x78\xee\x91\xd1\xa6\x6e\x80\xd4\xb7\x9a\x7a\x42\xcb\xf6\x9e\x5a\x66\x5a\xb6\x57\xb5\x8a\x5e\x7c\xba\xf2\x2c\x1b\x16\x99\x88\xd4\x5e\x3d\xde\x96\x8a\xc0\xdc\x5d\x5d\xd5\x69\x1e\x2e\xb7\xa8\x57\x6b\xfc\x62\xfc\xfe\xaf\x9a\xf2\x17\x8f\x50\x9e\x7f\x8d\x22\xc7\xfd\x56\xcb\x77\xac\x57\xc5\xe9\x4f\xc5\x65\x68\x7b\xc5\xe9\x52\x6e\x67\xf8\x1b\x19\xee\xc0\x56\x28\x10\xfb\xa8\x37\x2e\x64\xe4\x43\x28\xfb\x29\x1d\x7c\x70\x87\xfe\xe0\x62\x3b\x28\xdc\xac\x56\xaf\xf6\x75\xc9\x65\x07\xec\xe1\xf6\x58\x79\x76\xa2\x30\xe8\x58\xa7\xb4\x67\xe9\x25\x84\xae\xbf\xec\x62\x7c\xd9\xbb\x5c\xe0\x62\x44\xa4\xeb\xb6\xc1\x09\x7d\xff\x0e\xa1\x13\xa0\xfe\xc4\x0b\xb2\xba\x17\x14\x15\x0f\xe4\xd7\x50\x12\x8b\x79\xb1\x61\x41\x96\xa6\xe0\x6a\x78\xcb\xb3\x70\x4d\xfd\x7a\x3f\x5d\xbf\x2d\x13\xaa\x2a\x57\x94\xe4\xb2\x77\xb1\x58\x12\x66\x8c\x4a\x7e\x83\x82\x3c\xc7\xeb\x68\x40\x77\x13\x98\xb6\x7b\xb3\x84\xa8\x9f\x4f\xcd\x93\x2a\xd3\x6a\xf4\xf4\xa4\x62\x7e\x38\x15\x97\xa4\x53\x0e\x2d\xa9\xd2\x8d\x86\x96\x53\xaa\x0d\x2d\x49\xd3\x65\x61\x52\x39\x4b\x6e\x52\xd1\x9e\x50\x8b\xc5\x69\x2e\x0c\xa8\x7f\x75\xe0\xed\xd1\xc4\xe3\x69\x13\x6d\xca\xd1\x26\x1d\xf2\x7d\x73\x45\xff\x3c\x86\x3c\xe7\x69\x18\x39\xb8\x3d\x95\xfb\x67\x73\xe8\x97\x46\xe7\xef\x36\x3b\x17\xc5\x65\xb3\x64\xc3\x2c\x94\x3f\x3b\x0c\x1b\x0c\x3c\xd3\x34\xdc\xc8\xf2\xca\x38\x5c\xd1\x92\x2b\x8f\xcb\xbb\xfa\x3c\x44\x8d\xf4\xff\x11\xe7\x1f\xc2\x2d\xd4\x3b\xc0\xd3\x5f\x3c\x54\xb7\xc1\xfc\x77\x9c\xaa\x35\xb4\xd6\xa4\xb3\xda\x3d\xe7\xa8\x6e\x4f\x60\xaf\xbc\x50\xf0\x8d\x6a\xfd\x74\xa9\xab\x32\x57\x34\x7e\x86\x99\xbb\x11\x1e\x3f\x38\x74\x1f\xcf\x64\xb3\x3a\x6e\x0a\x67\x43\xd8\x25\xa2\x4d\xd3\xed\x9f\x00\x00\x00\xff\xff\x05\x90\x61\xbf\xee\x18\x00\x00") +var _templateDialectSqlQueryTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xcc\x58\xdf\x6f\xd3\xc8\x13\x7f\x8e\xff\x8a\xa1\xea\x17\xd9\x51\xea\xb4\x29\x2f\xdf\x56\x3d\x89\x6b\x8b\x94\x3b\x4a\x81\x22\xf1\x80\xd0\x69\x6b\x8f\x93\xa5\x9b\xdd\x74\x77\x93\xb6\x0a\xfe\xdf\x4f\x3b\x6b\x3b\x4e\xe2\xb4\x09\x54\x07\x0f\x88\xac\x77\x7e\x7e\xe6\xb3\x33\x03\xb3\x59\xb7\x1d\x9c\xaa\xf1\x83\xe6\x83\xa1\x85\xde\xfe\xc1\xff\xf7\xc6\x1a\x0d\x4a\x0b\x6f\x58\x82\xd7\x4a\xdd\x40\x5f\x26\x31\xbc\x16\x02\x48\xc8\x80\xbb\xd7\x53\x4c\xe3\xe0\xd3\x90\x1b\x30\x6a\xa2\x13\x84\x44\xa5\x08\xdc\x80\xe0\x09\x4a\x83\x29\x4c\x64\x8a\x1a\xec\x10\xe1\xf5\x98\x25\x43\x84\x5e\xbc\x5f\xde\x42\xa6\x26\x32\x0d\xb8\xa4\xfb\xb7\xfd\xd3\xf3\x77\x57\xe7\x90\x71\x81\x50\x7c\xd3\x4a\x59\x48\xb9\xc6\xc4\x2a\xfd\x00\x2a\x03\x5b\x73\x66\x35\x62\x1c\xb4\xbb\x79\x1e\x04\xb3\x19\xa4\x98\x71\x89\xb0\x93\x72\x26\x30\xb1\x5d\x73\x2b\xba\xb7\x13\xd4\x0f\x3b\x90\xe7\x4e\x60\x77\x7c\x33\x80\xa3\x13\xd8\x8d\xaf\x12\x35\xc6\xf8\x3d\x4b\x6e\xd8\x00\xcb\xdb\xeb\x09\x17\x2e\xd8\xa3\x13\x18\x33\x93\x30\x51\x09\xfe\x59\xdc\x14\x82\x1a\x13\xe4\x53\x2f\x59\xfd\xae\xd4\x5d\x34\xd9\x44\x26\x10\x2e\xc8\xe6\x39\xb4\xeb\x5e\xf2\x3c\x02\x73\x2b\x5e\x0b\x11\x26\xf6\x1e\x12\x25\x2d\xde\xdb\xf8\xd4\xff\x1d\x41\xf8\xe5\x2b\xc9\xc7\xef\xd8\xc8\x85\xd8\x01\xd4\x5a\xe9\x08\x66\x41\x4b\xab\x3b\xe3\x9c\xbf\x34\xb7\x22\xfe\xa8\xee\xcc\x2c\x0f\x5a\x06\x05\xc1\xe4\x2e\x96\x3c\xc7\xe6\x56\x7c\x70\x48\x84\x51\xd0\xe2\x19\x4c\x24\xbf\x9d\x60\x93\xa0\xbf\x39\x06\x81\x32\xf4\xbf\x23\x38\x39\x81\x7d\xe7\xb5\xf2\x10\x9f\x71\x63\xb9\x4c\xac\x33\x97\x07\x2d\x02\xb9\x03\x4c\x0f\x28\xaa\x4a\xac\xee\x12\x75\x63\x60\xa9\x76\xbf\x0a\xc9\xc4\xde\x77\xa0\x66\xac\x03\x2e\xd1\xe8\x98\x94\x5f\x9c\x80\xe4\x82\xe2\xd0\x68\x27\x5a\xba\x23\x81\x42\x31\xa4\x98\xa1\x26\xf9\xf8\x54\x28\x83\xce\xed\x6c\xb6\xe7\xbc\x59\xaa\xa8\x98\x68\xaa\xe8\xc7\xb9\xf7\xa0\x35\x65\xba\x08\xc9\xba\x02\xcd\x66\x73\x39\x82\x9d\x84\x96\xa3\x77\xa2\xf1\x1b\xad\x46\x0e\xf9\x70\xf3\x10\x6b\xda\x89\x92\x19\x1f\x2c\x13\xa4\xf8\x1c\x05\xa5\xfa\x5c\xa3\xe3\x4c\x05\x5b\x31\xeb\x54\x4d\xa4\x5d\xc3\x2d\x2e\xed\xb3\xf1\x69\x4e\xa6\x2f\x5f\x8d\xd5\x5c\x0e\x66\x24\x5f\x7b\x5e\x31\x9d\xfb\x67\x2e\x02\x63\x99\x24\xb0\x3d\xb2\x8e\x68\xcd\x24\x8c\xe0\x8f\x82\x77\x85\x87\x75\x6c\x25\x70\x2b\xd2\xf9\xb4\x5d\x22\x15\x4b\x6b\x77\x62\x32\x92\xa6\x60\x76\x1c\xc7\x91\xfb\x13\xfd\x32\x06\xef\x3f\xce\x5f\x9e\xc1\x0b\xfa\xf2\x0e\xef\x6d\x18\xad\x6a\x2a\xed\xee\xee\xc2\x9d\xb2\xb9\xe5\xf9\x11\x48\x45\x66\x7c\x73\xdd\xf1\x2f\xd4\xf1\x5c\x02\x97\xb6\x9e\x09\x99\xbe\x4a\x98\x0c\x5f\xca\xc7\x42\xcc\x46\x36\x3e\x77\xce\xb2\x45\x47\x19\xe3\x02\x53\xd0\xc8\x52\x2e\x07\x90\x38\xe0\x8f\xe0\x7f\xd3\x1d\x8a\xcd\x3b\x2e\xdf\xc1\x0f\xf0\xf7\xfc\x9e\x9b\x75\xfc\xbd\x56\x4a\xd4\x09\x2c\x3b\xeb\xca\x53\x7f\x08\xf3\x3a\xae\xe6\x99\x31\x61\x70\x7d\xae\xc9\x10\x93\x1b\x40\x17\x12\xca\x04\xd7\xa5\xe9\x28\xfb\x03\xa9\xf6\xcf\xcc\xda\x21\x50\x3e\x9d\x4f\x0f\xe3\xe5\x31\x30\x35\x8f\xa5\x5d\x4c\x96\xc7\x92\x5e\x68\x4f\x8e\x23\x3c\x35\xb0\xe2\x32\x68\x65\x4a\xc3\x3f\x1d\x98\x12\x6b\x98\x1c\x20\x4c\x0d\xd9\x71\xf2\x27\xc0\xc6\x63\x94\x69\xc8\x53\xd3\x81\x69\xdc\x3f\x5b\xc0\x84\xbe\x6e\x8d\x48\xf1\xf0\xa0\xed\x1e\xf2\x55\xd9\x89\x66\x41\xcb\x1e\xd0\x03\xbd\x15\xf1\x27\x76\x2d\x30\x5c\xee\x34\xf4\x35\x5a\xec\x5e\x73\x1b\xa1\x3d\xa8\x9a\xc0\xb2\x66\xf1\xbd\xec\x0a\xd4\xe1\x43\x7b\xe0\xf1\x6b\xc0\xb7\x8e\x67\xe5\xad\xb1\x12\xf5\xd1\x59\xc4\xb1\xd2\x92\x9e\x88\x86\x10\x2d\xca\x30\x9e\x97\x61\xd9\xd9\x58\x63\xca\x13\x66\xd1\x97\x67\x5c\xf9\xd9\xd4\x80\xd2\xae\x08\x4d\xba\x3c\x03\x95\x65\xc6\x4f\xd3\x15\x35\xba\x39\x2e\x25\x6a\xc8\x74\xbb\x20\xf8\x88\x5b\xb7\x14\x8e\x98\x4c\x19\x2d\x72\x2e\x90\x42\x36\x11\x6c\x62\x30\x86\xcf\x08\xc6\x32\x6d\xbd\xce\x1d\xb7\x43\xb7\xd0\xb1\x89\xb0\x30\x65\x62\x82\x1d\x60\x32\x05\x35\x45\xad\xb9\xdb\x31\x2d\x5c\xa3\x50\x77\xc0\x33\x90\x88\xa9\x5b\x44\x6b\x30\x5f\x92\xf1\xb0\xed\x9d\x44\xf1\x5b\x17\x43\x38\x62\x76\x18\x5f\xb0\xfb\xbe\xb4\x87\xbd\x2a\x2d\x1f\x5f\x43\x56\x74\x71\x5c\xdc\x37\x54\xbb\xb0\xda\x26\x81\x05\xd2\x97\x12\x01\x2d\x8c\x28\x53\xf0\x3b\x6a\xb7\xed\xa7\x43\x77\xcc\x7c\x7e\x5c\xa2\xa1\x4d\x97\x3e\xc3\x00\x25\x6a\x66\xb9\x92\x04\x11\x49\xa9\x0c\x18\x0c\xf8\x14\x25\x60\x3a\xc0\x18\x68\xe1\x7d\x6c\xdf\x25\xeb\xb4\xf4\xfa\x15\x08\xeb\x4b\xef\x79\x4a\x04\x03\x0a\xc6\x79\x76\x46\xe1\x0e\x09\x45\xb0\x8a\x62\x18\x68\x66\x91\x6e\x29\x04\xab\x0a\xaf\xe5\x4a\x35\xdf\x7f\x4b\xb3\xf5\xb5\xca\x8b\xf1\x0c\x76\x31\xbe\xe8\x5d\x50\x20\xb4\xfd\x70\xa7\x71\x00\x79\xee\x0e\xdf\xdc\x61\x9f\x0e\xa5\x70\xdf\xf4\xe5\x14\xb5\xc1\x42\x84\x43\x29\xe1\xc4\x2b\x55\x87\xe7\x1e\x19\x6d\xea\x06\x48\x7d\xab\xa9\x27\xb4\x6c\xef\xa9\x65\xa6\x65\x7b\x55\xab\xe8\xc5\xa7\x2b\xcf\xb2\x61\x91\x89\x48\xed\xf0\xf1\xb6\x54\x04\xe6\xee\xea\xaa\x4e\xf3\xd5\x72\x8b\x3a\x5c\xe3\x17\xe3\xf7\x7f\xd7\x94\xbf\x78\x84\xf2\xfc\x6b\x14\x39\xee\xb7\x5a\xbe\x63\x1d\x16\xa7\xbf\x14\x97\xa1\xed\x15\xa7\x4b\xb9\x9d\xe1\x6f\x64\xb8\x03\x5b\xa1\x40\xec\xa3\xde\xb8\x90\x91\x0f\xa1\xec\xa7\x74\xf0\xc1\xbd\xf2\x07\x17\xdb\x41\xe1\x66\xb5\x7a\xb5\xaf\x4b\x2e\x3b\x60\x5f\x6d\x8f\x95\x67\x27\x0a\x83\x8e\x75\x4a\x7b\x96\x5e\x42\xe8\xfa\xcb\x2e\xc6\x97\xbd\xcb\x05\x2e\x46\x44\xba\x6e\x1b\x9c\xd0\xf7\xef\x10\x3a\x01\xea\x4f\xbc\x20\xab\x7b\x41\x51\xf1\x40\x7e\x0d\x25\xb1\x98\x17\x1b\x16\x64\x69\x0a\xae\x86\xb7\x3c\x0b\xd7\xd4\xaf\xf7\xd3\xf5\xdb\x32\xa1\xaa\x72\x45\x49\x2e\x7b\x17\x8b\x25\x61\xc6\xa8\xe4\x37\x28\xc8\x73\xbc\x8e\x06\x74\x37\x81\x69\xbb\x37\x4b\x88\xfa\xf9\xd4\x3c\xa9\x32\xad\x46\x4f\x4f\x2a\xe6\x87\x53\x71\x49\x3a\xe5\xd0\x92\x2a\xdd\x68\x68\x39\xa5\xda\xd0\x92\x34\x5d\x16\x26\x95\xb3\xe4\x26\x15\xed\x09\xb5\x58\x9c\xe6\xc2\x80\xfa\x4f\x07\xde\x1e\x4d\x3c\x9e\x36\xd1\xa6\x1c\x6d\xd2\x21\xdf\x37\x57\xf4\xcf\x63\xc8\x73\x9e\x86\x91\x83\xdb\x53\xb9\x7f\x36\x87\x7e\x69\x74\xfe\x6e\xb3\x73\x51\x5c\x36\x4b\x36\xcc\x42\xf9\xb3\xc3\xb0\xc1\xc0\x33\x4d\xc3\x8d\x2c\xaf\x8c\xc3\x15\x2d\xb9\xf2\xb8\xbc\xab\xcf\x43\xd4\x48\xff\x1f\x71\xfe\x21\xdc\x42\xbd\x03\x3c\xfd\xc5\x43\x75\x1b\xcc\x7f\xc7\xa9\x5a\x43\x6b\x4d\x3a\xab\xdd\x73\x8e\xea\xf6\x04\xf6\xca\x0b\x05\xdf\xa8\xd6\x4f\x97\xba\x2a\x73\x45\xe3\x67\x98\xb9\x1b\xe1\xf1\x83\x43\xf7\xf1\x4c\x36\xab\xe3\xa6\x70\x36\x84\x5d\x22\xda\x34\xdd\xfe\x0d\x00\x00\xff\xff\xb6\xf5\xfd\x4e\xee\x18\x00\x00") func templateDialectSqlQueryTmplBytes() ([]byte, error) { return bindataRead( @@ -734,7 +734,7 @@ func templateDialectSqlQueryTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/dialect/sql/query.tmpl", size: 6382, mode: os.FileMode(420), modTime: time.Unix(1567330617, 0)} + info := bindataFileInfo{name: "template/dialect/sql/query.tmpl", size: 6382, mode: os.FileMode(420), modTime: time.Unix(1570094421, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -859,7 +859,7 @@ func templateImportTmpl() (*asset, error) { return a, nil } -var _templateMetaTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x57\x5b\x6f\xdb\x36\x14\x7e\x96\x7e\xc5\x99\xa0\x02\x76\xe1\xca\x69\xdf\xe6\xc1\x0f\x45\x93\x62\xc6\xba\xa2\x40\xb3\xed\x21\x08\x0a\x5a\x3a\x8c\xd9\x4a\xa4\x4a\xd2\xae\x03\x41\xff\x7d\xe0\x4d\xa2\x3c\x67\xc9\xd6\x2d\x2f\xb1\x78\x6e\xdf\xb9\xf2\xb0\xeb\x96\xcf\xd3\x37\xa2\xbd\x97\xec\x6e\xa7\xe1\xd5\xc5\xcb\x1f\x5f\xb4\x12\x15\x72\x0d\x6f\x49\x89\x5b\x21\xbe\xc0\x86\x97\x05\xbc\xae\x6b\xb0\x4c\x0a\x0c\x5d\x1e\xb0\x2a\xd2\xeb\x1d\x53\xa0\xc4\x5e\x96\x08\xa5\xa8\x10\x98\x82\x9a\x95\xc8\x15\x56\xb0\xe7\x15\x4a\xd0\x3b\x84\xd7\x2d\x29\x77\x08\xaf\x8a\x8b\x40\x05\x2a\xf6\xbc\x4a\x19\xb7\xf4\x77\x9b\x37\x57\xef\x3f\x5e\x01\x65\x35\x82\x3f\x93\x42\x68\xa8\x98\xc4\x52\x0b\x79\x0f\x82\x82\x8e\x8c\x69\x89\x58\xa4\xcf\x97\x7d\x9f\xa6\x5d\x07\x15\x52\xc6\x11\xb2\x06\x35\xc9\xc0\x1d\xbe\x80\x6f\x4c\xef\x00\x8f\x1a\x79\x05\x39\x64\x1f\x48\xf9\x85\xdc\x61\x06\x79\xe1\x7f\xc2\x8b\xbe\x4f\x93\xae\x03\x8d\x4d\x5b\x13\x8d\x90\xed\x90\x54\x28\x33\x28\x8c\x96\xae\x03\x23\xeb\x8d\x8c\x4c\xac\x69\x85\xd4\x19\xe4\x96\x54\x0a\xae\x34\xcc\xd2\x64\xb9\x84\x77\x64\x8b\x35\xec\x44\x5d\x29\xeb\x85\xd2\x92\xf1\x3b\xa8\xed\x71\x85\x5c\x68\xf3\x69\x28\x5d\x07\xb5\xf8\x86\x12\xf2\xe2\x3d\x69\x10\xfa\x1e\xf4\x7d\x3b\xb8\x5f\x11\x4d\xb6\x44\x61\x91\x26\x4e\xe7\x1a\xb2\xae\x83\xbc\x70\x5f\x7d\x9f\x59\x7b\xf6\x68\x73\x59\xbc\x31\x18\x08\xd7\x46\xcd\x5f\xac\x4f\xec\xb2\x0a\x28\xc3\xba\x3a\x63\xe8\x9c\xb2\x60\x76\x73\x59\x7c\xd4\x42\x92\x3b\xfc\x05\xef\x9d\xf9\xae\x03\x49\xf8\x1d\x42\xfe\x69\x01\x39\x85\xd5\x1a\xf2\xe2\xad\xd1\xad\x4c\x60\x8d\x98\xb3\x64\x08\x74\xd4\x6a\x83\x1e\xc0\x3b\x8e\x47\x51\x8f\xd1\xa2\x43\xb8\x0e\x28\x35\x1e\xa1\x95\xa2\x45\xa9\xef\xcf\x38\x94\x4c\x2c\x78\x57\xe8\x39\x47\x4c\x9a\x43\x31\x44\x4e\x29\xc7\xe9\x5c\xf3\x62\x60\xe1\x1b\x4d\xba\x69\x6b\x43\x6a\x25\xe3\x9a\x42\x56\x31\x52\x63\xa9\x97\xcf\xd4\xd2\x14\xe2\xb2\xf4\x1e\xab\x6c\xd4\x14\x84\x8f\x43\x35\x39\x35\xb6\x94\x92\xb1\xe0\xe6\xb6\xe4\x9e\x02\xe5\x29\x48\x0e\x44\x32\xb2\xad\xf1\x14\x49\xd7\x01\xa3\xb0\x23\xea\x7a\x8a\xe6\xa9\x28\xa7\x0d\xc2\x28\x08\x53\xcf\x3f\x13\x75\x89\x94\xec\x6b\xed\x3e\x7e\x27\x35\xab\x88\x16\x52\x19\xce\x03\x91\xa6\x59\x86\x06\xcd\x8b\x5f\xd9\x11\xab\x0d\xff\x83\xe9\x5d\x90\xb3\x00\x1a\x76\x64\x1c\xd6\x26\xf9\x26\xa1\xc6\xef\x72\x87\x0d\x81\xbe\x2f\x6c\x51\xfa\x4a\xe8\x7a\xa3\x82\xf1\xd9\x3c\x08\xf9\x2a\x5c\xc3\x4d\x51\x14\xb7\x37\xb7\xc8\xb5\xab\xcc\x2e\x4d\x12\x6b\xda\x47\x96\x2d\x20\xff\x64\x22\x77\xf4\x07\xc5\xfb\x7d\x63\x95\x39\x08\x5e\xdf\x8d\x31\xc7\xa0\xef\x6f\x7d\x81\xcf\xe6\x8b\xa0\xc9\x07\x20\x49\xfa\x74\xf2\x4d\x03\x86\x27\xc0\x0f\x4a\xe3\xfa\x63\xe7\x9a\x2a\x75\x36\xf3\x0a\x55\x39\x24\x1c\x32\xf3\x99\xc1\xac\x25\xaa\x24\x75\xe8\x91\xf9\x20\x10\x32\x43\x8b\x21\x2f\xb4\xf8\xad\xad\x88\xc6\xe8\x20\x4a\x93\x13\xb4\xa6\x18\x35\xb4\x0f\x42\x31\xcd\x04\x0f\xb9\x0a\xd1\xf1\x5d\x6c\xe1\xf4\xbd\x19\xff\xb6\x83\x9d\x9f\xe6\x54\xb2\x56\x0b\x09\x54\x48\xd7\xee\x43\xf7\xda\xf0\x14\x56\x49\xac\x61\x0d\x51\x02\x6f\x9c\x48\x6c\x9c\xf1\x0d\xaf\xf0\x68\x52\x71\x4a\x1d\x08\xc5\xe5\x60\xd8\x96\x84\x4b\x4b\xad\xf0\x7f\x44\x4d\xcf\x02\x7e\x04\x52\xa8\x9c\x78\x00\xf9\x74\x45\xb9\x1a\x73\x91\x57\xfe\xc8\x4d\x54\xcf\x60\xb1\xf9\x8c\x0d\x9e\x05\xd1\x68\xae\x86\xc3\x03\xa9\xf7\x08\x82\x43\x29\x91\x18\x98\xd6\x4f\x3f\x65\xcf\xfa\x7a\xa2\x72\x1d\x47\x2f\xa0\x28\x66\x03\xf0\x8d\xba\x66\x56\x05\xdd\xf3\x72\x36\x87\x61\x4a\x38\xfd\xd7\xe6\x9a\xeb\xfb\xf9\x83\x8e\x4f\x2b\xf3\x41\xf7\x27\x6c\xff\x3a\x08\x7b\xab\xe5\xfb\x42\x30\x41\xf2\x9f\x04\xc2\x4d\xc6\xf3\x3d\x09\x39\x37\xf0\x5c\x10\x06\x86\x98\x6e\x17\x89\xd5\x1a\x86\xfb\xc0\xd8\x87\xd9\x33\x35\x07\x94\x52\xc8\x6c\xb0\x3e\x8d\x18\xf7\x6e\x33\x05\xc4\x44\xc8\x6b\x0e\xb1\xc9\x26\xc1\xc9\x7c\x74\x60\xa3\x8d\x40\x49\xea\x1a\x2b\xd8\xde\x5b\xd6\xed\x9e\xd5\x15\x4a\x05\x5b\xa4\x42\x22\x28\x72\xc0\x10\x47\x46\x01\xbf\x9e\x38\xf7\x32\x20\x49\x62\x1c\xd3\x28\x8f\xec\x37\x17\xb7\x36\xca\xce\x51\x17\x41\x1b\x42\xd3\xe3\xe7\x15\x8d\x19\x08\x42\x60\xef\x82\x24\x39\x8c\x28\x56\x0f\x19\x74\x9c\x94\x5b\x16\x7b\xa7\x58\x7d\xd3\x34\xba\xd8\x06\xb5\xf1\x2d\xf3\x79\x01\x39\x8f\x6f\x99\x89\xef\x1e\xef\x04\x8a\x1d\x24\x9f\xed\xe4\x98\x3d\x68\xca\xdd\x41\xa7\xc3\x24\xb1\x37\x91\xf9\x93\xa8\xf7\x92\x43\x24\x1f\xea\xfa\x6f\x81\x9b\x74\x7f\x5a\x00\xb5\x88\x1d\x60\xe3\x79\x20\x27\x26\x7f\x52\x1a\x22\xe5\x53\xbd\xf3\x9f\x2c\xe5\x87\x35\x70\x56\x8f\x02\x01\x08\x4a\x19\x8e\x82\xcb\xe1\xbf\xe7\xe0\xac\x8e\x3d\xe8\x67\x43\x66\xe3\xe6\x88\x97\xb5\xf0\x7b\x1e\xef\x22\xa9\x79\xd6\x84\x47\x41\xb9\x57\x5a\x34\x6e\xb9\x36\xae\x21\xdf\x37\x7e\x5c\x83\x7d\x40\x3c\xb2\xc7\xa6\x49\xd4\xcf\x57\x46\xd8\xe3\x58\x3e\x07\xd1\x30\x6d\xeb\xbd\xf5\x0f\x0a\x5b\x70\x54\x1a\x7b\x3b\xb4\x36\x0b\x67\xc4\xd5\xa3\xb5\xbd\x5a\x83\x96\xac\x09\x6f\x10\x9f\x88\xe2\xa3\x5b\x7b\xc7\xc7\x49\xbc\x26\xa3\xb3\xeb\x7d\x52\x83\xf6\x07\xe6\xd6\xe8\xa3\x69\x3a\xcb\x18\x6b\x71\x1b\x76\x9a\x26\xc9\xf0\x76\x99\xd4\xab\x89\x43\x18\x30\xc6\xe3\xa1\x46\xbb\x0e\xa6\x3b\x86\x9b\x65\xe1\x6c\xa8\xad\x60\xc8\xaf\xdc\xe8\xf6\x6c\x67\x63\xac\x54\x93\xdc\x34\x49\xdc\x70\x52\xb1\xe0\x1c\x5c\x34\x66\xf3\xf0\x1a\xb0\xc5\xe4\xab\xc4\x1d\xcd\xd4\xdc\x2e\x5d\xe9\xa3\x33\xf1\x3b\xa6\x9b\x8b\xa4\xbd\x2c\xd4\x3f\x9b\x74\xd6\xab\xc8\xec\x99\x0e\x1c\x9c\x8d\xfa\x4f\x7d\x63\xba\xdc\x9d\xa4\xd3\x75\x52\x69\x96\xc8\xe9\x7e\x78\x9a\x24\x57\xa9\xdc\x50\xe1\x02\xfa\x7e\x11\xdf\x38\x8f\x65\x6e\xe0\x5d\xa5\xe7\x7a\xd2\xdf\x7e\x53\x22\x6d\x74\x71\x65\xd0\xd3\x99\x7b\x27\x8e\xc5\xbb\x02\xc6\x6d\x94\xa3\x18\x3e\xb4\x51\xad\xe0\xd9\xd7\x6c\x31\xa5\xd8\xd6\x1f\xf6\xea\xf3\x2f\x0e\xf7\xf3\xcf\x00\x00\x00\xff\xff\x22\xa2\xe9\xc9\xc5\x10\x00\x00") +var _templateMetaTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x57\x5b\x6f\xdb\x36\x14\x7e\x96\x7e\xc5\x99\xa0\x02\x76\xe1\xca\x69\xdf\xe6\xc1\x0f\x45\x93\x62\xc6\xba\xa2\x40\xb3\xed\x21\x08\x0a\x5a\x3a\x8c\xd9\x4a\xa4\x4a\xd2\xae\x03\x41\xff\x7d\xe0\x4d\xa2\x3c\x67\xc9\xd6\x2d\x2f\xb1\x78\x6e\xdf\xb9\xf2\xb0\xeb\x96\xcf\xd3\x37\xa2\xbd\x97\xec\x6e\xa7\xe1\xd5\xc5\xcb\x1f\x5f\xb4\x12\x15\x72\x0d\x6f\x49\x89\x5b\x21\xbe\xc0\x86\x97\x05\xbc\xae\x6b\xb0\x4c\x0a\x0c\x5d\x1e\xb0\x2a\xd2\xeb\x1d\x53\xa0\xc4\x5e\x96\x08\xa5\xa8\x10\x98\x82\x9a\x95\xc8\x15\x56\xb0\xe7\x15\x4a\xd0\x3b\x84\xd7\x2d\x29\x77\x08\xaf\x8a\x8b\x40\x05\x2a\xf6\xbc\x4a\x19\xb7\xf4\x77\x9b\x37\x57\xef\x3f\x5e\x01\x65\x35\x82\x3f\x93\x42\x68\xa8\x98\xc4\x52\x0b\x79\x0f\x82\x82\x8e\x8c\x69\x89\x58\xa4\xcf\x97\x7d\x9f\xa6\x5d\x07\x15\x52\xc6\x11\xb2\x06\x35\xc9\xc0\x1d\xbe\x80\x6f\x4c\xef\x00\x8f\x1a\x79\x05\x39\x64\x1f\x48\xf9\x85\xdc\x61\x06\x79\xe1\x7f\xc2\x8b\xbe\x4f\x93\xae\x03\x8d\x4d\x5b\x13\x8d\x90\xed\x90\x54\x28\x33\x28\x8c\x96\xae\x03\x23\xeb\x8d\x8c\x4c\xac\x69\x85\xd4\x19\xe4\x96\x54\x0a\xae\x34\xcc\xd2\x64\xb9\x84\x77\x64\x8b\x35\xec\x44\x5d\x29\xeb\x85\xd2\x92\xf1\x3b\xa8\xed\x71\x85\x5c\x68\xf3\x69\x28\x5d\x07\xb5\xf8\x86\x12\xf2\xe2\x3d\x69\x10\xfa\x1e\xf4\x7d\x3b\xb8\x5f\x11\x4d\xb6\x44\x61\x91\x26\x4e\xe7\x1a\xb2\xae\x83\xbc\x70\x5f\x7d\x9f\x59\x7b\xf6\x68\x73\x59\xbc\x31\x18\x08\xd7\x46\xcd\x5f\xac\x4f\xec\xb2\x0a\x28\xc3\xba\x3a\x63\xe8\x9c\xb2\x60\x76\x73\x59\x7c\xd4\x42\x92\x3b\xfc\x05\xef\x9d\xf9\xae\x03\x49\xf8\x1d\x42\xfe\x69\x01\x39\x85\xd5\x1a\xf2\xe2\xad\xd1\xad\x4c\x60\x8d\x98\xb3\x64\x08\x74\xd4\x6a\x83\x1e\xc0\x3b\x8e\x47\x51\x8f\xd1\xa2\x43\xb8\x0e\x28\x35\x1e\xa1\x95\xa2\x45\xa9\xef\xcf\x38\x94\x4c\x2c\x78\x57\xe8\x39\x47\x4c\x9a\x43\x31\x44\x4e\x29\xc7\xe9\x5c\xf3\x62\x60\xe1\x1b\x4d\xba\x69\x6b\x43\x6a\x25\xe3\x9a\x42\x56\x31\x52\x63\xa9\x97\xcf\xd4\xd2\x14\xe2\xb2\xf4\x1e\xab\x6c\xd4\x14\x84\x8f\x43\x35\x39\x35\xb6\x94\x92\xb1\xe0\xe6\xb6\xe4\x9e\x02\xe5\x29\x48\x0e\x44\x32\xb2\xad\xf1\x14\x49\xd7\x01\xa3\xb0\x23\xea\x7a\x8a\xe6\xa9\x28\xa7\x0d\xc2\x28\x08\x53\xcf\x3f\x13\x75\x89\x94\xec\x6b\xed\x3e\x7e\x27\x35\xab\x88\x16\x52\x19\xce\x03\x91\xa6\x59\x86\x06\xcd\x8b\x5f\xd9\x11\xab\x0d\xff\x83\xe9\x5d\x90\xb3\x00\x1a\x76\x64\x1c\xd6\x26\xf9\x26\xa1\xc6\xef\x72\x87\x0d\x81\xbe\x2f\x6c\x51\xfa\x4a\xe8\x7a\xa3\x82\xf1\xd9\x3c\x08\xf9\x2a\x5c\xc3\x4d\x51\x14\xb7\x37\xb7\xc8\xb5\xab\xcc\x2e\x4d\x12\x6b\xda\x47\x96\x2d\x20\xff\x64\x22\x77\xf4\x07\xc5\xfb\x7d\x63\x95\x39\x08\x5e\xdf\x8d\x31\xc7\xa0\xef\x6f\x7d\x81\xcf\xe6\x8b\xa0\xc9\x07\x20\x49\xfa\x74\xf2\x4d\x03\x86\x27\xc0\x0f\x4a\xe3\xfa\x63\xe7\x9a\x2a\x75\x36\xf3\x0a\x55\x39\x24\x1c\x32\xf3\x99\xc1\xac\x25\xaa\x24\x75\xe8\x91\xf9\x20\x10\x32\x43\x8b\x21\x2f\xb4\xf8\xad\xad\x88\xc6\xe8\x20\x4a\x93\x13\xb4\xa6\x18\x35\xb4\x0f\x42\x31\xcd\x04\x0f\xb9\x0a\xd1\xf1\x5d\x6c\xe1\xf4\xbd\x19\xff\xb6\x83\x9d\x9f\xe6\x54\xb2\x56\x0b\x09\x54\x48\xd7\xee\x43\xf7\xda\xf0\x14\x56\x49\xac\x61\x0d\x51\x02\x6f\x9c\x48\x6c\x9c\xf1\x0d\xaf\xf0\x68\x52\x71\x4a\x1d\x08\xc5\xe5\x60\xd8\x96\x84\x4b\x4b\xad\xf0\x7f\x44\x4d\xcf\x02\x7e\x04\x52\xa8\x9c\x78\x00\xf9\x74\x45\xb9\x1a\x73\x91\x57\xfe\xc8\x4d\x54\xcf\x60\xb1\xf9\x8c\x0d\x9e\x05\xd1\x68\xae\x86\xc3\x03\xa9\xf7\x08\x82\x43\x29\x91\x18\x98\xd6\x4f\x3f\x65\xcf\xfa\x7a\xa2\x72\x1d\x47\x2f\xa0\x28\x66\x03\xf0\x8d\xba\x66\x56\x05\xdd\xf3\x72\x36\x87\x61\x4a\x38\xfd\xd7\xe6\x9a\xeb\xfb\xf9\x83\x8e\x4f\x2b\xf3\x41\xf7\x27\x6c\xff\x3a\x08\x7b\xab\xe5\xfb\x42\x30\x41\xf2\x9f\x04\xc2\x4d\xc6\xf3\x3d\x09\x39\x37\xf0\x5c\x10\x06\x86\x98\x6e\x17\x89\xd5\x1a\x86\xfb\xc0\xd8\x87\xd9\x33\x35\x07\x94\x52\xc8\x6c\xb0\x3e\x8d\x18\xf7\x6e\x33\x05\xc4\x44\xc8\x6b\x0e\xb1\xc9\x26\xc1\xc9\x7c\x74\x60\xa3\x8d\x40\x49\xea\x1a\x2b\xd8\xde\x5b\xd6\xed\x9e\xd5\x15\x4a\x05\x5b\xa4\x42\x22\x28\x72\xc0\x10\x47\x46\x01\xbf\x9e\x38\xf7\x32\x20\x49\x62\x1c\xd3\x28\x8f\xec\x37\x17\xb7\x36\xca\xce\x51\x17\x41\x1b\x42\xd3\xe3\xe7\x15\x8d\x19\x08\x42\x60\xef\x82\x24\x39\x8c\x28\x56\x0f\x19\x74\x9c\x94\x5b\x16\x7b\xa7\x58\x7d\xd3\x34\xba\xd8\x06\xb5\xf1\x2d\xf3\x79\x01\x39\x8f\x6f\x99\x89\xef\x1e\xef\x04\x8a\x1d\x24\x9f\xed\xe4\x98\x3d\x68\xca\xdd\x41\xa7\xc3\x24\xb1\x37\x91\xf9\x93\xa8\xf7\x92\x43\x24\x1f\xea\xfa\x6f\x81\x9b\x74\x7f\x5a\x00\xb5\x88\x1d\x60\xe3\x79\x20\x27\x26\x7f\x52\x1a\x22\xe5\x53\xbd\xf3\x9f\x2c\xe5\x87\x35\x70\x56\x8f\x02\x01\x08\x4a\x19\x8e\x82\xcb\xe1\xbf\xe7\xe0\xac\x8e\x3d\xe8\x67\x43\x66\xe3\xe6\x88\x97\xb5\xf0\x7b\x1e\xef\x22\xa9\x79\xd6\x84\x47\x41\xb9\x57\x5a\x34\x6e\xb9\x36\xae\x21\xdf\x37\x7e\x5c\x83\x7d\x40\x3c\xb2\xc7\xa6\x49\xd4\xcf\x57\x46\xd8\xe3\x58\x3e\x07\xd1\x30\x6d\xeb\xbd\xf5\x0f\x0a\x5b\x70\x54\x1a\x7b\x3b\xb4\x36\x0b\x67\xc4\xd5\xa3\xb5\xbd\x5a\x83\x96\xac\x09\x6f\x10\x9f\x88\xe2\xa3\x5b\x7b\xc7\xc7\x49\xbc\x26\xa3\xb3\xeb\x7d\x52\x83\xf6\x07\xe6\xd6\xe8\xa3\x69\x3a\xcb\x18\x6b\x71\x1b\x76\x9a\x26\xc9\xf0\x76\x99\xd4\xab\x89\x43\x18\x30\xc6\xe3\xa1\x46\xbb\x0e\xa6\x3b\x86\x9b\x65\xe1\x6c\xa8\xad\x60\xc8\xaf\xdc\xe8\xf6\x6c\x67\x63\xac\xd4\xb9\x41\xe0\x46\x93\x8a\xc5\xe6\xe0\x62\x31\x9b\x87\xb7\x80\x2d\x25\x5f\x23\xee\x68\xa6\xe6\x76\xe5\x4a\x1f\x9d\x88\xdf\x31\xdb\x5c\x1c\xed\x55\xa1\xfe\xd9\x9c\xb3\x5e\x45\x66\xcf\xf4\xdf\xe0\x6c\xd4\x7d\xea\x1b\xd3\xe5\xee\x24\x99\xae\x8f\x4a\xb3\x42\x4e\xb7\xc3\xd3\x14\xb9\x3a\xe5\x86\x0a\x17\xd0\xf7\x8b\xf8\xbe\x79\x2c\x6f\x03\xef\x2a\x3d\xd7\x91\xfe\xee\x9b\x12\x69\xa3\x8b\x2b\x83\x9e\xce\xdc\x2b\x71\x2c\xdd\x15\x30\x6e\xa3\x1c\xc5\xf0\xa1\x7d\x6a\x05\xcf\xbe\x66\x8b\x29\xc5\x36\xfe\xb0\x55\x9f\x7f\x6f\xb8\x9f\x7f\x06\x00\x00\xff\xff\x7f\x6d\xbc\x22\xc3\x10\x00\x00") func templateMetaTmplBytes() ([]byte, error) { return bindataRead( @@ -874,7 +874,7 @@ func templateMetaTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/meta.tmpl", size: 4293, mode: os.FileMode(420), modTime: time.Unix(1570032383, 0)} + info := bindataFileInfo{name: "template/meta.tmpl", size: 4291, mode: os.FileMode(420), modTime: time.Unix(1570033406, 0)} a := &asset{bytes: bytes, info: info} return a, nil } diff --git a/entc/gen/template/dialect/gremlin/query.tmpl b/entc/gen/template/dialect/gremlin/query.tmpl index c7c78ad3c..4c6a95e3c 100644 --- a/entc/gen/template/dialect/gremlin/query.tmpl +++ b/entc/gen/template/dialect/gremlin/query.tmpl @@ -75,7 +75,7 @@ func ({{ $receiver }} *{{ $builder }}) gremlinQuery() *dsl.Traversal { case limit != nil && offset != nil: v.Range(*offset, *offset + *limit) case offset != nil: - v.Range(*offset, math.MaxInt64) + v.Range(*offset, math.MaxInt32) case limit != nil: v.Limit(*limit) } diff --git a/entc/gen/template/dialect/sql/query.tmpl b/entc/gen/template/dialect/sql/query.tmpl index 4c76cf339..fc4891b89 100644 --- a/entc/gen/template/dialect/sql/query.tmpl +++ b/entc/gen/template/dialect/sql/query.tmpl @@ -88,7 +88,7 @@ func ({{ $receiver }} *{{ $builder }}) sqlQuery() *sql.Selector { if offset := {{ $receiver }}.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := {{ $receiver }}.limit; limit != nil { selector.Limit(*limit) diff --git a/entc/gen/type_test.go b/entc/gen/type_test.go index ec8c30a0a..596574cf7 100644 --- a/entc/gen/type_test.go +++ b/entc/gen/type_test.go @@ -151,7 +151,7 @@ func TestType_Package(t *testing.T) { } func TestType_AddIndex(t *testing.T) { - size := 1024 + size := int64(1024) typ, err := NewType(Config{}, &load.Schema{ Name: "User", Fields: []*load.Field{ diff --git a/entc/integration/config/ent/user_query.go b/entc/integration/config/ent/user_query.go index 0d7b80263..0672ace95 100644 --- a/entc/integration/config/ent/user_query.go +++ b/entc/integration/config/ent/user_query.go @@ -313,7 +313,7 @@ func (uq *UserQuery) sqlQuery() *sql.Selector { if offset := uq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := uq.limit; limit != nil { selector.Limit(*limit) diff --git a/entc/integration/ent/card_query.go b/entc/integration/ent/card_query.go index 2d83901a6..ba7fce20f 100644 --- a/entc/integration/ent/card_query.go +++ b/entc/integration/ent/card_query.go @@ -402,7 +402,7 @@ func (cq *CardQuery) sqlQuery() *sql.Selector { if offset := cq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := cq.limit; limit != nil { selector.Limit(*limit) @@ -477,7 +477,7 @@ func (cq *CardQuery) gremlinQuery() *dsl.Traversal { case limit != nil && offset != nil: v.Range(*offset, *offset+*limit) case offset != nil: - v.Range(*offset, math.MaxInt64) + v.Range(*offset, math.MaxInt32) case limit != nil: v.Limit(*limit) } diff --git a/entc/integration/ent/comment_query.go b/entc/integration/ent/comment_query.go index 1020d0a63..b3e4c1096 100644 --- a/entc/integration/ent/comment_query.go +++ b/entc/integration/ent/comment_query.go @@ -382,7 +382,7 @@ func (cq *CommentQuery) sqlQuery() *sql.Selector { if offset := cq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := cq.limit; limit != nil { selector.Limit(*limit) @@ -457,7 +457,7 @@ func (cq *CommentQuery) gremlinQuery() *dsl.Traversal { case limit != nil && offset != nil: v.Range(*offset, *offset+*limit) case offset != nil: - v.Range(*offset, math.MaxInt64) + v.Range(*offset, math.MaxInt32) case limit != nil: v.Limit(*limit) } diff --git a/entc/integration/ent/fieldtype_query.go b/entc/integration/ent/fieldtype_query.go index dd4710069..c50e93552 100644 --- a/entc/integration/ent/fieldtype_query.go +++ b/entc/integration/ent/fieldtype_query.go @@ -382,7 +382,7 @@ func (ftq *FieldTypeQuery) sqlQuery() *sql.Selector { if offset := ftq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := ftq.limit; limit != nil { selector.Limit(*limit) @@ -457,7 +457,7 @@ func (ftq *FieldTypeQuery) gremlinQuery() *dsl.Traversal { case limit != nil && offset != nil: v.Range(*offset, *offset+*limit) case offset != nil: - v.Range(*offset, math.MaxInt64) + v.Range(*offset, math.MaxInt32) case limit != nil: v.Limit(*limit) } diff --git a/entc/integration/ent/file_query.go b/entc/integration/ent/file_query.go index 908c77922..e62a97939 100644 --- a/entc/integration/ent/file_query.go +++ b/entc/integration/ent/file_query.go @@ -422,7 +422,7 @@ func (fq *FileQuery) sqlQuery() *sql.Selector { if offset := fq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := fq.limit; limit != nil { selector.Limit(*limit) @@ -497,7 +497,7 @@ func (fq *FileQuery) gremlinQuery() *dsl.Traversal { case limit != nil && offset != nil: v.Range(*offset, *offset+*limit) case offset != nil: - v.Range(*offset, math.MaxInt64) + v.Range(*offset, math.MaxInt32) case limit != nil: v.Limit(*limit) } diff --git a/entc/integration/ent/filetype_query.go b/entc/integration/ent/filetype_query.go index fb966e03e..da75c3087 100644 --- a/entc/integration/ent/filetype_query.go +++ b/entc/integration/ent/filetype_query.go @@ -402,7 +402,7 @@ func (ftq *FileTypeQuery) sqlQuery() *sql.Selector { if offset := ftq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := ftq.limit; limit != nil { selector.Limit(*limit) @@ -477,7 +477,7 @@ func (ftq *FileTypeQuery) gremlinQuery() *dsl.Traversal { case limit != nil && offset != nil: v.Range(*offset, *offset+*limit) case offset != nil: - v.Range(*offset, math.MaxInt64) + v.Range(*offset, math.MaxInt32) case limit != nil: v.Limit(*limit) } diff --git a/entc/integration/ent/group_query.go b/entc/integration/ent/group_query.go index 51f1207f3..64f1c5fd3 100644 --- a/entc/integration/ent/group_query.go +++ b/entc/integration/ent/group_query.go @@ -466,7 +466,7 @@ func (gq *GroupQuery) sqlQuery() *sql.Selector { if offset := gq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := gq.limit; limit != nil { selector.Limit(*limit) @@ -541,7 +541,7 @@ func (gq *GroupQuery) gremlinQuery() *dsl.Traversal { case limit != nil && offset != nil: v.Range(*offset, *offset+*limit) case offset != nil: - v.Range(*offset, math.MaxInt64) + v.Range(*offset, math.MaxInt32) case limit != nil: v.Limit(*limit) } diff --git a/entc/integration/ent/groupinfo_query.go b/entc/integration/ent/groupinfo_query.go index 1ce9dbd4d..89b3dfb8b 100644 --- a/entc/integration/ent/groupinfo_query.go +++ b/entc/integration/ent/groupinfo_query.go @@ -402,7 +402,7 @@ func (giq *GroupInfoQuery) sqlQuery() *sql.Selector { if offset := giq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := giq.limit; limit != nil { selector.Limit(*limit) @@ -477,7 +477,7 @@ func (giq *GroupInfoQuery) gremlinQuery() *dsl.Traversal { case limit != nil && offset != nil: v.Range(*offset, *offset+*limit) case offset != nil: - v.Range(*offset, math.MaxInt64) + v.Range(*offset, math.MaxInt32) case limit != nil: v.Limit(*limit) } diff --git a/entc/integration/ent/node_query.go b/entc/integration/ent/node_query.go index fa6926bb1..b3185dd15 100644 --- a/entc/integration/ent/node_query.go +++ b/entc/integration/ent/node_query.go @@ -420,7 +420,7 @@ func (nq *NodeQuery) sqlQuery() *sql.Selector { if offset := nq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := nq.limit; limit != nil { selector.Limit(*limit) @@ -495,7 +495,7 @@ func (nq *NodeQuery) gremlinQuery() *dsl.Traversal { case limit != nil && offset != nil: v.Range(*offset, *offset+*limit) case offset != nil: - v.Range(*offset, math.MaxInt64) + v.Range(*offset, math.MaxInt32) case limit != nil: v.Limit(*limit) } diff --git a/entc/integration/ent/pet_query.go b/entc/integration/ent/pet_query.go index 0806a9179..9747f9501 100644 --- a/entc/integration/ent/pet_query.go +++ b/entc/integration/ent/pet_query.go @@ -421,7 +421,7 @@ func (pq *PetQuery) sqlQuery() *sql.Selector { if offset := pq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := pq.limit; limit != nil { selector.Limit(*limit) @@ -496,7 +496,7 @@ func (pq *PetQuery) gremlinQuery() *dsl.Traversal { case limit != nil && offset != nil: v.Range(*offset, *offset+*limit) case offset != nil: - v.Range(*offset, math.MaxInt64) + v.Range(*offset, math.MaxInt32) case limit != nil: v.Limit(*limit) } diff --git a/entc/integration/ent/user_query.go b/entc/integration/ent/user_query.go index 8e0462a38..e718cea7b 100644 --- a/entc/integration/ent/user_query.go +++ b/entc/integration/ent/user_query.go @@ -615,7 +615,7 @@ func (uq *UserQuery) sqlQuery() *sql.Selector { if offset := uq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := uq.limit; limit != nil { selector.Limit(*limit) @@ -690,7 +690,7 @@ func (uq *UserQuery) gremlinQuery() *dsl.Traversal { case limit != nil && offset != nil: v.Range(*offset, *offset+*limit) case offset != nil: - v.Range(*offset, math.MaxInt64) + v.Range(*offset, math.MaxInt32) case limit != nil: v.Limit(*limit) } diff --git a/entc/integration/idtype/ent/user_query.go b/entc/integration/idtype/ent/user_query.go index 8cd640641..d113907fe 100644 --- a/entc/integration/idtype/ent/user_query.go +++ b/entc/integration/idtype/ent/user_query.go @@ -386,7 +386,7 @@ func (uq *UserQuery) sqlQuery() *sql.Selector { if offset := uq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := uq.limit; limit != nil { selector.Limit(*limit) diff --git a/entc/integration/json/ent/user_query.go b/entc/integration/json/ent/user_query.go index 0bf26da26..1f445f097 100644 --- a/entc/integration/json/ent/user_query.go +++ b/entc/integration/json/ent/user_query.go @@ -337,7 +337,7 @@ func (uq *UserQuery) sqlQuery() *sql.Selector { if offset := uq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := uq.limit; limit != nil { selector.Limit(*limit) diff --git a/entc/integration/migrate/entv1/user_query.go b/entc/integration/migrate/entv1/user_query.go index ae7b48bfa..09a9f2bec 100644 --- a/entc/integration/migrate/entv1/user_query.go +++ b/entc/integration/migrate/entv1/user_query.go @@ -337,7 +337,7 @@ func (uq *UserQuery) sqlQuery() *sql.Selector { if offset := uq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := uq.limit; limit != nil { selector.Limit(*limit) diff --git a/entc/integration/migrate/entv2/group_query.go b/entc/integration/migrate/entv2/group_query.go index 9702344bb..c7645ce4b 100644 --- a/entc/integration/migrate/entv2/group_query.go +++ b/entc/integration/migrate/entv2/group_query.go @@ -313,7 +313,7 @@ func (gq *GroupQuery) sqlQuery() *sql.Selector { if offset := gq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := gq.limit; limit != nil { selector.Limit(*limit) diff --git a/entc/integration/migrate/entv2/pet_query.go b/entc/integration/migrate/entv2/pet_query.go index 8cbd11bb2..343030e3b 100644 --- a/entc/integration/migrate/entv2/pet_query.go +++ b/entc/integration/migrate/entv2/pet_query.go @@ -313,7 +313,7 @@ func (pq *PetQuery) sqlQuery() *sql.Selector { if offset := pq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := pq.limit; limit != nil { selector.Limit(*limit) diff --git a/entc/integration/migrate/entv2/user_query.go b/entc/integration/migrate/entv2/user_query.go index 446df321f..438d403f4 100644 --- a/entc/integration/migrate/entv2/user_query.go +++ b/entc/integration/migrate/entv2/user_query.go @@ -337,7 +337,7 @@ func (uq *UserQuery) sqlQuery() *sql.Selector { if offset := uq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := uq.limit; limit != nil { selector.Limit(*limit) diff --git a/entc/integration/template/ent/group_query.go b/entc/integration/template/ent/group_query.go index cd7416353..7660e0851 100644 --- a/entc/integration/template/ent/group_query.go +++ b/entc/integration/template/ent/group_query.go @@ -337,7 +337,7 @@ func (gq *GroupQuery) sqlQuery() *sql.Selector { if offset := gq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := gq.limit; limit != nil { selector.Limit(*limit) diff --git a/entc/integration/template/ent/pet_query.go b/entc/integration/template/ent/pet_query.go index 29d215f75..54de12078 100644 --- a/entc/integration/template/ent/pet_query.go +++ b/entc/integration/template/ent/pet_query.go @@ -351,7 +351,7 @@ func (pq *PetQuery) sqlQuery() *sql.Selector { if offset := pq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := pq.limit; limit != nil { selector.Limit(*limit) diff --git a/entc/integration/template/ent/user_query.go b/entc/integration/template/ent/user_query.go index 02a297ca0..4d2342d3f 100644 --- a/entc/integration/template/ent/user_query.go +++ b/entc/integration/template/ent/user_query.go @@ -369,7 +369,7 @@ func (uq *UserQuery) sqlQuery() *sql.Selector { if offset := uq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := uq.limit; limit != nil { selector.Limit(*limit) diff --git a/entc/load/internal/bindata.go b/entc/load/internal/bindata.go index 59f76e958..74a465fcf 100644 --- a/entc/load/internal/bindata.go +++ b/entc/load/internal/bindata.go @@ -98,7 +98,7 @@ func templateMainTmpl() (*asset, error) { return a, nil } -var _schemaGo = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x58\x5b\x6f\xe3\xb8\xee\x7f\x8e\x3f\x05\x27\xc0\x0c\xe2\x22\xeb\xcc\x7f\xdf\xfe\x1e\xe4\x61\x31\xdb\x05\x7a\xf6\xcc\x05\xdb\x9e\xf3\x52\x14\x5d\xc7\xa6\x12\x4d\x6d\xd9\x23\x29\x9d\x76\x8b\x7e\xf7\x03\x52\x92\xaf\x49\x77\x2e\xdb\xbe\xd4\xa2\x48\x8a\xfc\x91\x22\xa9\xac\x56\xf0\xb6\x6e\xee\xb5\xdc\xee\x2c\xfc\xfc\xfa\xff\xfe\xff\xa7\x46\xa3\x41\x65\xe1\xb7\x2c\xc7\x4d\x5d\xdf\xc0\x99\xca\x13\xf8\xa5\x2c\x81\x99\x0c\xd0\xbe\xbe\xc5\x22\x89\x56\x2b\xb8\xd8\x49\x03\xa6\xde\xeb\x1c\x21\xaf\x0b\x04\x69\xa0\x94\x39\x2a\x83\x05\xec\x55\x81\x1a\xec\x0e\xe1\x97\x26\xcb\x77\x08\x3f\x27\xaf\xc3\x2e\x88\x7a\xaf\x0a\x52\x21\x15\xb3\xfc\xfb\xec\xed\xe9\xfb\xf3\x53\x10\xb2\xc4\x40\xd3\x75\x6d\xa1\x90\x1a\x73\x5b\xeb\x7b\xa8\x05\xd8\xde\x79\x56\x23\x26\x51\xd4\x64\xf9\x4d\xb6\x45\x28\xeb\xac\x88\x22\x59\x35\xb5\xb6\xb0\x88\x66\x73\x54\x79\x5d\x48\xb5\x5d\x7d\x32\xb5\x9a\x47\xb3\xb9\xa8\x2c\xfd\xd3\x28\x4a\xcc\xed\x3c\x8a\x66\xf3\xad\xb4\xbb\xfd\x26\xc9\xeb\x6a\x25\xbc\xc3\x52\xe5\xfb\x4d\x66\x6b\xbd\x42\x65\x57\x26\xdf\x61\x95\xad\xb0\xd8\xe2\x57\x09\xcc\xbf\x41\xa9\x90\x58\x16\xf3\x28\x8e\x08\x86\x73\xa6\x81\x46\x1f\x00\x03\x99\x02\x54\x36\xf1\x1b\x76\x97\x59\xf8\x92\x19\xf6\x13\x0b\x10\xba\xae\x20\x83\xbc\xae\x9a\x52\x12\xd8\x06\x35\x78\x2c\x92\xc8\xde\x37\x18\x54\x1a\xab\xf7\xb9\x85\x87\x68\xf6\x3e\xab\x10\xc2\x9f\xb1\x5a\xaa\x6d\xbb\xfc\x93\x50\x4a\xe7\x2a\xab\x70\x59\x57\xd2\x62\xd5\xd8\xfb\xf9\x9f\xd1\xec\x6d\xad\x84\x0c\x7c\x64\x50\x8f\xe0\x85\x72\xa6\x0c\xc5\x4e\x8b\x2d\x9a\xa0\xfc\xf2\xea\x84\xd6\xa3\xb3\x08\x54\x33\x94\xfa\x8d\x20\x31\x9d\x14\xaf\x87\x52\x8c\xda\x48\xec\x4c\x15\x78\x17\x8e\xbb\xbc\x3a\xe1\xf5\x50\x4c\x3a\x96\xa1\xdc\x39\x43\xe3\x0f\xbd\xbc\x3a\xe9\xad\x83\x9c\x43\xef\xfa\xc0\xa9\x8f\x1c\xb7\x8f\xb5\x91\x56\xd6\x0a\x0a\x34\xb9\x96\x1b\x34\x90\x01\x73\x43\x13\xb6\x7c\x3a\xbb\xb0\xfb\xe0\xb4\x72\x5d\x78\x7a\x56\x4b\x65\x01\x56\x2b\xaf\x88\x6d\x0f\x5a\x1c\xa9\x94\xc6\x26\xd1\xec\x9d\xbc\xc3\xe2\x4c\x91\xc8\xa6\xae\x4b\xe0\xfb\x54\xc8\x3c\xb3\x68\x40\x8a\x9e\x00\xa5\x4e\x45\xdc\x3f\x49\xe5\x04\xa5\x3a\xf3\x7a\xdd\x59\x15\x91\x86\x67\x39\x92\x3b\xcb\xb9\xeb\xb0\x99\x66\xa9\xa3\x7f\x47\x92\x3a\xc1\x23\x39\x3a\x4e\xd2\xe3\x59\x7a\xa6\x44\xdd\xb1\x9d\xb0\xcf\xc9\xc5\x7d\x83\xbc\xe1\xc5\xe8\xc0\xa1\xd8\x45\xd6\x53\x7e\xec\x34\x9b\x8d\x72\xfb\x5c\xfe\xd5\xb3\xf1\x84\x01\x9c\x48\x19\xf9\xd7\xe8\xb0\x53\xb5\xaf\xda\x2b\x01\x97\x57\xc3\xe3\xc2\xa5\x20\xa6\xa1\xdc\x7f\x94\xfc\xbc\x6f\x0f\xe4\x38\x4f\x8f\xdb\x33\xd3\x50\xf0\xbd\x2c\xcb\x6c\x53\xe2\x93\x82\xca\x33\x0d\x45\x3f\x34\x94\x9c\x59\xf9\xa4\x68\xed\x99\x86\xa2\xbf\xa2\xc8\xf6\xa5\x7d\xda\xdc\xc2\x31\x8d\x1c\x6d\x8a\xcc\x62\x90\x3f\xe6\x28\x33\x5d\x1f\x54\x70\x56\x55\x7b\xdb\x7a\x7c\x44\x81\x0c\x4c\x43\xd9\xff\x66\xa5\x2c\xa8\x44\x73\x88\x46\x31\x0d\xb2\xb7\x2d\xd3\xb8\x90\xd4\x3a\xdb\xe2\xef\x78\xff\x44\x1e\x19\xc7\x74\x7d\x83\xf7\x43\xe9\xb6\x16\xb8\x7c\x1a\x2e\x83\x74\xa8\x26\x07\x6a\x50\xbf\x6c\x8d\xae\xe6\x9d\x45\x4d\x61\xf4\x17\xcc\xd5\x82\x02\x85\x54\x58\x1c\xac\x4b\x7d\x5d\xdd\xad\x6c\xef\x89\x77\xed\xd8\xcd\x68\x6f\xef\x90\x6f\x7a\x5f\xe9\x6a\x1e\x52\x38\xb9\xa1\x6f\xeb\xaa\xa2\x79\x64\xc4\x98\x3b\xf2\x08\xc7\x9b\xed\xc7\xcc\xee\xc6\xbc\xcd\xcd\xf6\xba\xc9\xec\x6e\x74\x1b\xab\x0d\x16\x54\xa4\x7c\x9a\x84\xfb\xe7\xc9\x07\x60\xe6\x16\x36\x2d\x7d\x4c\xfe\x8e\xca\xc7\x72\x07\x0a\xdf\x3f\x06\xdd\xd7\x06\xed\x0f\x14\xee\xf0\x21\x9f\x46\x71\x3d\x3d\xfd\x0f\x14\x3e\x4d\x5d\x47\xef\x98\x8f\x14\xad\x21\xbc\x87\xca\xd4\x99\xba\x45\x6d\x70\xcc\x2a\x1d\x79\x7c\xfc\xe7\xbd\xd4\x93\xa8\x69\x4f\x3e\x10\x35\xd7\xe4\xa6\x61\x73\xf4\xef\x88\x9b\x13\xec\x02\xe7\x3d\x6d\xab\xcd\x13\x9e\xfa\xa1\xa8\x2d\xfd\x7f\x3b\x08\x8d\x39\x8f\x8e\x21\xef\xf1\x0b\xc7\x23\xd7\xc8\xbd\x3f\x53\xc1\x23\x52\xee\xdc\xe2\x2f\x37\xa6\x34\xb6\xd6\x49\x24\xf6\x2a\x0f\x92\x0b\x2c\xe0\x84\x38\x92\x5f\x5b\x8e\xd8\x07\xf9\x21\x9a\x29\x84\x74\x0d\xaf\x68\xf9\x10\xcd\x28\xb5\x52\x97\x06\x58\x24\x17\xd9\x76\x49\xb4\xfb\x06\xd3\x96\x46\xd9\x18\xcd\x38\xab\x5b\x22\x2d\x88\xe8\x10\x4b\x1d\xd1\x2d\x88\xec\xf3\x20\x65\xb2\x5f\x10\x3d\xc4\x3c\x25\x7a\x58\xb8\x0d\xe1\xf5\xf3\x86\xf0\xfa\x1f\xa3\x99\x14\xa0\x51\x90\xc9\x6e\xe7\x0d\x2f\x5f\xac\x41\xc9\x92\xdc\x99\x29\x24\x32\xac\x5b\xf7\x35\x8a\x98\x45\x35\xda\xbd\x56\xa0\xb0\x43\xd6\x55\xc3\x29\xb4\xae\x9a\x3e\x8d\x2d\xcb\x2e\x44\x11\x66\x92\x3e\xba\x0b\x37\xdf\x2e\x01\xb5\xa6\xf5\x43\x34\x33\x6c\xf4\x2b\xa6\x3f\x0c\xf0\xe3\x3f\xd1\x81\x48\x83\xcd\x70\x87\x28\xcb\x41\x70\xc2\x8e\x8f\x10\x0f\x20\x69\x7f\x83\x29\xc3\x90\x84\xad\x2e\x2e\x61\x8c\x48\x3b\x1b\xc2\xcc\x10\xcd\xda\x49\xa1\xdb\x0d\x14\xb6\x32\x34\xdb\xb4\xb5\xb2\x6d\xbf\xd1\xac\xd7\x37\x53\xbf\xdd\x51\x68\xbf\x6b\xca\xbc\x5f\xa2\x5a\x88\x22\xe9\xa8\x31\x31\xf9\x81\x21\xed\x6c\x0f\x23\x84\x0b\x38\xfb\xd7\x1f\x2d\x52\xf6\x6f\x30\x6c\xb4\x9c\x2e\x79\x8c\x60\x34\x61\xdd\x65\x4c\xc8\x0b\x59\x2e\x41\x54\x36\x39\xa5\x98\x89\xc5\xbc\x92\xc6\xd0\x0d\xe5\xda\x20\x49\x48\xd4\xda\xa7\xc6\xcb\xcf\xf3\x25\xe9\xa2\x98\xc5\x41\x37\x39\x49\x03\xe4\x8b\x35\xbc\x66\xcd\x46\x38\xc2\x1a\x5e\xf9\xbd\x7e\x22\x1a\xb1\xa4\x43\x7d\x36\xbe\xcb\xb4\xd9\x65\xa5\x7f\xda\xf1\x13\x17\xb9\x89\xf7\x9e\x8a\x52\x59\xd4\xf4\xf2\xa4\xaf\x1a\x32\xf8\xd7\xf9\x87\xf7\x24\xcc\xc5\x2e\xcf\x14\x6c\x28\x57\x49\xb4\x70\x2c\xa4\xc0\x0b\xd7\x9b\x4f\x98\x5b\xff\xcf\xa7\xf1\xe0\xd0\x85\x09\x67\x53\x0d\xf5\x27\xc5\xb0\xd8\xc0\xe5\xd5\xe6\xde\x22\x67\x73\x3f\xa3\x39\xa1\x9d\x2c\x79\xeb\x9e\x8f\x69\x98\x3a\xdc\x72\x11\xf7\x8b\x05\x3d\x61\xe8\xd1\xbf\xf0\x4f\x75\xae\x26\x1f\x84\x3f\x39\x8e\x19\x4f\x16\x71\x88\xd2\x81\xe9\x1a\x4c\x42\xf7\xd2\x55\xce\xc0\xfb\x86\x37\x5f\x1c\x0e\x23\x6a\xcd\x2a\x5c\xfd\x6d\xd5\x64\x02\xb9\x50\x07\x1d\xed\x19\x47\xd4\xf4\xb3\xc1\x83\xf3\xf2\x73\x0a\x2f\x6f\x29\xf8\xee\xbe\x92\xb8\x4b\x00\x4a\x8e\xeb\x25\x70\x39\xd5\x99\xda\x22\x97\x0e\xe3\x12\x21\x71\x0d\x62\x0d\x59\xd3\xa0\x2a\x16\x9e\xb0\xec\x8a\x74\xaf\x7e\x2c\xe2\xd8\xe7\x94\x7f\xda\xf6\x1d\xf0\x2f\xe2\xe7\x74\x41\x16\x77\x9d\x13\xde\x06\x56\xec\x37\x64\x71\x37\xb0\x96\x1d\x0c\x2f\xf5\x9e\x8b\x67\xc1\xfc\x57\xfc\x45\x1a\x5c\xa3\x4c\x81\x75\x38\x08\x88\xea\x42\x9b\x32\xd5\x7d\x33\x39\xd4\x2e\x22\x77\x55\xeb\x71\x50\xce\xa9\x7d\x26\x3e\x8f\x17\x26\xf6\xb7\xa9\xcb\x17\xfe\x34\xfe\xda\xda\xda\x67\xa7\xaf\xed\xfd\x4c\xf7\x57\x62\x61\xe0\xc4\xe5\x74\x0c\x93\xac\x1b\xdf\x0d\xbe\x0c\x04\x0d\xbf\xa7\x07\x71\xe2\x77\xf8\x57\x44\xe9\x9b\x03\x24\x97\x50\xf5\xe2\xe3\x5e\xf2\xa4\xd0\x8f\x10\x7d\x23\xbc\xf1\xd5\x1d\xc5\x68\x6a\xc2\xb7\xdb\x40\x46\xb0\x15\x9f\x96\x20\x3a\x23\xdc\xd1\x4e\x27\x95\x35\x6f\x42\xd7\x25\x87\xd9\x4d\x6c\x07\xac\xf9\x0e\x73\xd8\x1e\xaa\xb3\xed\xd3\x6a\x0d\xaf\xc2\xb7\x53\xca\xb9\xe7\x5b\xc8\x27\x4e\xab\xf0\xe3\x0a\x13\xad\x76\x59\x35\xeb\xfd\x72\x92\x82\x5c\x76\xca\x7d\x46\xf6\x33\xdb\xe7\x28\x18\xe1\x31\xa1\xd8\x1c\x85\xff\x79\x92\xe0\x30\xfc\x5f\x87\xfe\x3f\x96\x0a\xc7\x90\x0f\x30\x32\xcf\xdf\x01\xd8\x9b\xcd\xda\x76\xd8\xc1\x07\x5f\x74\xd6\x98\xfe\x7b\xd6\xd3\x33\x55\xb8\xec\x0f\x84\x0a\xed\xae\x2e\xe0\x8b\xb4\x3b\xd0\x98\xd7\xb7\xa8\xe9\xc6\xa3\x32\x7b\x8d\xa0\x6a\x68\x32\x25\x73\x43\xaf\xe3\xca\x15\x0c\xa9\xb6\xfe\xda\xf7\xc2\x25\x8a\xae\xd1\x3e\x80\x27\xc6\x70\x79\xd5\xfd\x1c\xf6\x18\xc3\x42\x84\x41\xbe\x25\x8f\x1b\x64\x81\x02\x35\x90\xfa\x45\xec\xea\xa7\x80\x5b\x8e\x9a\x33\x6e\x11\xbf\x81\xdb\x41\x10\x48\x7e\x3d\x88\xc1\xcb\x8b\xe0\x9d\x33\xde\x87\x42\x14\x4b\xb8\xe5\x0b\x20\x02\xb6\x84\x9d\xcb\x45\xaa\xc8\x21\x9c\x45\x12\x1c\x58\x8e\xd0\x75\x1d\x69\x02\xae\x23\xff\x28\x94\xfd\x36\x3b\x19\x28\x5c\x5f\x74\xc0\x11\xe3\x73\xe0\x36\xf0\x66\x00\x9d\x83\x0d\x7d\x3f\x3e\x88\x5a\x5f\x78\x0a\x5c\xe8\x74\x13\xe8\xc2\xc6\x8f\x82\x37\x6c\xf1\x13\xf8\x42\x47\x76\x00\x32\xf3\x33\x22\x18\x9c\x3a\x80\xa1\x6c\x5b\xfe\x53\x28\x06\x6f\x26\x38\x72\xbd\x9d\xa2\xe8\xc8\x3f\x8a\x61\xbf\xfd\x4e\x10\x74\x3d\xd3\xe1\xf7\xae\xeb\xdc\xcf\x82\x9f\x73\xe7\x00\x7a\xce\x88\xa7\xb1\x73\x5e\x74\xc8\xb1\x7b\xed\x10\x6d\xa1\x3f\x46\xc7\x83\x15\x59\x45\x8d\xc2\x26\xbf\x4b\x55\x2c\x62\x7a\xf0\x84\xfd\x8f\x96\x67\x96\x99\x85\x35\xd8\xe4\xb4\xc4\x6a\x31\xa8\xc2\x36\x7a\x8c\xfe\x17\x00\x00\xff\xff\x19\x89\xb5\x2a\x40\x1c\x00\x00") +var _schemaGo = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x58\xdd\x6f\xe3\x38\x0e\x7f\x8e\xff\x0a\x4e\x80\x19\xd8\x45\xd6\x99\x5b\x1c\x0e\x38\x0f\xf2\xb0\x98\xed\x02\xbd\xbd\xf9\xc0\x4e\xef\x5e\x8a\xa2\xeb\xd8\x54\xa2\xa9\x2d\x7b\x24\xa5\xd3\x6e\xd1\xff\x7d\x41\x4a\xf2\x47\x9c\x74\xe7\x63\xdb\x97\x5a\x14\x49\x91\x3f\x52\x24\x95\xe5\x12\x5e\x37\xed\x9d\x96\x9b\xad\x85\x1f\x5f\xfe\xe3\xdf\x3f\xb4\x1a\x0d\x2a\x0b\xbf\xe4\x05\xae\x9b\xe6\x1a\xce\x54\x91\xc2\x4f\x55\x05\xcc\x64\x80\xf6\xf5\x0d\x96\x69\xb4\x5c\xc2\xf9\x56\x1a\x30\xcd\x4e\x17\x08\x45\x53\x22\x48\x03\x95\x2c\x50\x19\x2c\x61\xa7\x4a\xd4\x60\xb7\x08\x3f\xb5\x79\xb1\x45\xf8\x31\x7d\x19\x76\x41\x34\x3b\x55\x92\x0a\xa9\x98\xe5\xbf\x67\xaf\x4f\xdf\x7e\x38\x05\x21\x2b\x0c\x34\xdd\x34\x16\x4a\xa9\xb1\xb0\x8d\xbe\x83\x46\x80\x1d\x9c\x67\x35\x62\x1a\x45\x6d\x5e\x5c\xe7\x1b\x84\xaa\xc9\xcb\x28\x92\x75\xdb\x68\x0b\x71\x34\x9b\xa3\x2a\x9a\x52\xaa\xcd\xf2\xa3\x69\xd4\x3c\x9a\xcd\x45\x6d\xe9\x9f\x46\x51\x61\x61\xe7\x51\x34\x9b\x6f\xa4\xdd\xee\xd6\x69\xd1\xd4\x4b\xe1\x1d\x96\xaa\xd8\xad\x73\xdb\xe8\x25\x2a\xbb\x34\xc5\x16\xeb\x7c\x89\xe5\x06\xbf\x48\x60\xfe\x15\x4a\x85\xc4\xaa\x9c\x47\x49\x44\x30\x7c\x60\x1a\x68\xf4\x01\x30\x90\x2b\x40\x65\x53\xbf\x61\xb7\xb9\x85\xcf\xb9\x61\x3f\xb1\x04\xa1\x9b\x1a\x72\x28\x9a\xba\xad\x24\x81\x6d\x50\x83\xc7\x22\x8d\xec\x5d\x8b\x41\xa5\xb1\x7a\x57\x58\xb8\x8f\x66\x6f\xf3\x1a\x21\xfc\x19\xab\xa5\xda\x74\xcb\xdf\x09\xa5\x6c\xae\xf2\x1a\x17\x4d\x2d\x2d\xd6\xad\xbd\x9b\xff\x1e\xcd\x5e\x37\x4a\xc8\xc0\x47\x06\x0d\x08\x5e\xa8\x60\xca\x58\xec\xb4\xdc\xa0\x09\xca\x2f\x2e\x4f\x68\xbd\x77\x16\x81\x6a\xc6\x52\xbf\x10\x24\xa6\x97\xe2\xf5\x58\x8a\x51\xdb\x13\x3b\x53\x25\xde\x86\xe3\x2e\x2e\x4f\x78\x3d\x16\x93\x8e\x65\x2c\xf7\x81\xa1\xf1\x87\x5e\x5c\x9e\x0c\xd6\x41\xce\xa1\x77\x75\xe0\xd4\x07\x8e\xdb\xfb\xc6\x48\x2b\x1b\x05\x25\x9a\x42\xcb\x35\x1a\xc8\x81\xb9\xa1\x0d\x5b\x3e\x9d\x5d\xd8\x7d\x70\x3a\xb9\x3e\x3c\x03\xab\xa5\xb2\x00\xcb\xa5\x57\xc4\xb6\x07\x2d\x8e\x54\x49\x63\xd3\x68\xf6\x46\xde\x62\x79\xa6\x48\x64\xdd\x34\x15\xf0\x7d\x2a\x65\x91\x5b\x34\x20\xc5\x40\x80\x52\xa7\x26\xee\x1f\xa4\x72\x82\x52\x9d\x79\xbd\xee\xac\x9a\x48\xe3\xb3\x1c\xc9\x9d\xe5\xdc\x75\xd8\x4c\xb3\xd4\xd1\xbf\x21\x49\x9d\xe0\x91\x1c\xdd\x4f\xd2\xe3\x59\x7a\xa6\x44\xd3\xb3\x9d\xb0\xcf\xe9\xf9\x5d\x8b\xbc\xe1\xc5\xe8\xc0\xb1\xd8\x79\x3e\x50\x7e\xec\x34\x9b\xef\xe5\xf6\x07\xf9\xc7\xc0\xc6\x13\xa9\xec\xbf\xfe\x39\x91\x32\xf2\x8f\xbd\xc3\x4e\xd5\xae\xee\xae\x04\x5c\x5c\x8e\x8f\x0b\x97\x82\x98\xc6\x72\xff\x53\xf2\xd3\xae\x3b\x90\xe3\x0c\x93\xe3\x76\xcc\x34\x16\x7c\x2b\xab\x2a\x5f\x57\xf8\xa8\xa0\xf2\x4c\x63\xd1\x77\x2d\x25\x67\x5e\x3d\x2a\xda\x78\xa6\xb1\xe8\xcf\x28\xf2\x5d\x65\x1f\x37\xb7\x74\x4c\x7b\x8e\xb6\x65\x6e\x31\xc8\x1f\x73\x94\x99\xae\x0e\x2a\x38\xab\xeb\x9d\xed\x3c\x3e\xa2\x40\x06\xa6\xb1\xec\xff\xf3\x4a\x96\x54\xa2\x39\x44\x7c\x29\xa6\xb2\x37\x1d\xd3\x7e\x21\x69\x74\xbe\xc1\x5f\xf1\xee\x91\x3c\x32\x8e\xe9\xea\x1a\xef\xc6\xd2\x5d\x2d\x70\xf9\x34\x5e\x06\xe9\x50\x4d\x0e\xd4\xa0\x61\xd9\xda\xbb\x9a\xb7\x16\x35\x85\xd1\x5f\x30\x57\x0b\x4a\x14\x52\x61\x79\xb0\x2e\x0d\x75\xf5\xb7\xb2\xbb\x27\xde\xb5\x63\x37\xa3\xbb\xbd\x63\xbe\xe9\x7d\xa5\xab\x79\x48\xe1\xe4\x86\xbe\x6e\xea\x9a\xe6\x91\x3d\xc6\xc2\x91\xf7\x70\xbc\xde\xbc\xcf\xed\x76\x9f\xb7\xbd\xde\x5c\xb5\xb9\xdd\xee\xdd\xc6\x7a\x8d\x25\x15\x29\x9f\x26\xe1\xfe\x79\xf2\x01\x98\xb9\x85\x4d\x4b\x1f\x93\xbf\xa1\xf2\xb1\xdc\x81\xc2\xf7\xb7\x41\xf7\xa5\x41\xfb\x0d\x85\x3b\x7c\xcc\xa7\x51\x5c\x4d\x4f\xff\x0d\x85\x4f\x53\xd7\xd1\x7b\xe6\x23\x45\x6b\x0c\xef\xa1\x32\x75\xa6\x6e\x50\x1b\xdc\x67\x95\x8e\xbc\x7f\xfc\xa7\x9d\xd4\x93\xa8\x69\x4f\x3e\x10\x35\xd7\xe4\xa6\x61\x73\xf4\x6f\x88\x9b\x13\xec\x03\xe7\x3d\xed\xaa\xcd\x23\x9e\xfa\xa1\xa8\x2b\xfd\x7f\x39\x08\xed\x73\x1e\x1d\x43\xde\xe2\x67\x8e\x47\xa1\x91\x7b\x7f\xae\x82\x47\xa4\xdc\xb9\xc5\x5f\x6e\x4c\x69\x6d\xa3\xd3\x48\xec\x54\x11\x24\x63\x2c\xe1\x84\x38\xd2\x9f\x3b\x8e\xc4\x07\xf9\x3e\x9a\x29\x84\x6c\x05\x2f\x68\x79\x1f\xcd\x28\xb5\x32\x97\x06\x58\xa6\xe7\xf9\x66\x41\xb4\xbb\x16\xb3\x8e\x46\xd9\x18\xcd\x38\xab\x3b\x22\x2d\x88\xe8\x10\xcb\x1c\xd1\x2d\x88\xec\xf3\x20\x63\xb2\x5f\x10\x3d\xc4\x3c\x23\x7a\x58\xb8\x0d\xe1\xf5\xf3\x86\xf0\xfa\x1f\xa2\x99\x14\xa0\x51\x90\xc9\x6e\xe7\x15\x2f\x9f\xad\x40\xc9\x8a\xdc\x99\x29\x24\x32\xac\x3a\xf7\x35\x8a\x84\x45\x35\xda\x9d\x56\xa0\xb0\x47\xd6\x55\xc3\x29\xb4\xae\x9a\x3e\x8e\x2d\xcb\xc6\xa2\x0c\x33\xc9\x10\xdd\xd8\xcd\xb7\x0b\x40\xad\x69\x7d\x1f\xcd\x0c\x1b\xfd\x82\xe9\xf7\x23\xfc\xf8\x4f\xf4\x20\xd2\x60\x33\xde\x21\xca\x62\x14\x9c\xb0\xe3\x23\xc4\x03\x48\x36\xdc\x60\xca\x38\x24\x61\xab\x8f\x4b\x18\x23\xb2\xde\x86\x30\x33\x44\xb3\x6e\x52\xe8\x77\x03\x85\xad\x0c\xcd\x36\xeb\xac\xec\xda\x6f\x34\x1b\xf4\xcd\xcc\x6f\xf7\x14\xda\xef\x9b\x32\xef\x57\xa8\x62\x51\xa6\x3d\x35\x21\x26\x3f\x30\x64\xbd\xed\x61\x84\x70\x01\x67\xff\x86\xa3\x45\xc6\xfe\x8d\x86\x8d\x8e\xd3\x25\x8f\x11\x8c\x26\xac\xfa\x8c\x09\x79\x21\xab\x05\x88\xda\xa6\xa7\x14\x33\x11\xcf\x6b\x69\x0c\xdd\x50\xae\x0d\x92\x84\x44\xa3\x7d\x6a\x3c\xff\x34\x5f\x90\x2e\x8a\x59\xd2\xe9\xa6\xe9\x31\x5b\x01\x8f\x8d\xe4\x0e\x8d\x93\xc9\x2b\x47\x7f\xb6\x82\x97\x7c\x9c\x11\x4c\x87\x15\xbc\xa0\x8d\x61\x6a\x1a\xb1\x20\x33\x7c\x7e\xbe\xc9\xb5\xd9\xe6\x95\x7f\xec\xf1\xa3\x17\xb9\xad\x0f\x1e\x8f\x52\x59\xd4\xf4\x16\xa5\xaf\x06\x72\xf8\xcf\x87\x77\x6f\x49\x98\xcb\x5f\x91\x2b\x58\x53\xf6\x92\x68\xe9\x58\x48\x81\x17\x6e\xd6\x1f\xb1\xb0\xfe\x9f\x4f\xec\xd1\xa1\xb1\x09\x67\x53\x55\xf5\x27\x25\x10\xaf\xe1\xe2\x72\x7d\x67\x91\xf3\x7b\x98\xe3\x9c\xe2\x4e\x96\x5c\x75\x0f\xca\x2c\xcc\x21\x6e\x19\x27\xc3\xf2\x41\x8f\x1a\x8d\x85\x8d\xfd\xe3\x9d\xeb\xcb\x3b\xe1\x4f\x4e\x12\x46\x98\x45\x1c\xc6\x74\x60\xb6\x02\x93\xd2\x4d\x75\xb5\x34\xf0\xbe\xe2\xcd\x67\x87\x03\x8b\x5a\xb3\x0a\x57\x91\x3b\x35\xb9\x40\x2e\xdd\x41\x47\x77\xc6\x11\x35\xc3\xfc\xf0\xe0\x3c\xff\x94\xc1\xf3\x1b\x4a\x07\x77\x83\x49\xdc\xa5\x04\xa5\xcb\xd5\x02\x38\x27\x74\xae\x36\xc8\xc5\xc4\xb8\x2c\x48\x5d\xcb\x58\x41\xde\xb6\xa8\xca\xd8\x13\x16\x7d\xd9\x1e\x54\x94\x38\x49\x7c\x96\xf9\xc7\xee\xd0\x01\xff\x46\x7e\x4a\x17\x64\x79\xdb\x3b\xe1\x6d\x60\xc5\x7e\x43\x96\xb7\x23\x6b\xd9\xc1\xf0\x76\x1f\xb8\x78\x16\xcc\x7f\xc1\x5f\xa4\xc1\xb5\xce\x0c\x58\x87\x83\x80\xa8\x2e\xb4\x19\x53\xdd\x37\x93\x43\x35\x23\x72\x5f\xc7\x1e\x46\x05\x9e\x1a\x6a\xea\xf3\x38\x36\x89\xbf\x4d\x7d\xbe\xf0\xa7\xf1\x17\xd9\x36\x3e\x3b\x7d\xb5\x1f\x66\xba\xbf\x12\xb1\x81\x13\x97\xd3\x09\x4c\xb2\x6e\xff\x6e\xf0\x65\x20\x68\xf8\x85\x3d\x8a\x13\xbf\xcc\xbf\x20\x4a\x5f\x1d\x20\xb9\x80\x7a\x10\x1f\xf7\xb6\x27\x85\x7e\xa8\x18\x1a\xe1\x8d\xaf\x6f\x29\x46\x53\x13\xbe\xde\x06\x32\x82\xad\xf8\xb8\x00\xd1\x1b\xe1\x8e\x76\x3a\xa9\xac\x79\x13\xfa\xbe\x39\xce\x6e\x62\x3b\x60\xcd\x37\x98\xc3\xf6\x50\x91\xed\x1e\x5b\x2b\x78\x11\xbe\x9d\x52\xce\x3d\xdf\x54\x3e\x72\x5a\x85\x9f\x5b\x98\x68\xb5\xcb\xaa\xd9\xe0\xb7\x94\x0c\xe4\xa2\x57\xee\x33\x72\x98\xd9\x3e\x47\xc1\x08\x8f\x09\xc5\xe6\x28\xfc\x4f\x93\x04\x87\xe1\xff\x32\xf4\xff\xb6\x54\x38\x86\x7c\x80\x91\x79\xfe\x0a\xc0\xc1\xb4\xd6\xb5\xc3\x1e\x3e\xf8\xac\xf3\xd6\x0c\x5f\xb8\x9e\x9e\xab\xd2\x65\x7f\x20\xd4\x68\xb7\x4d\x09\x9f\xa5\xdd\x82\xc6\xa2\xb9\x41\x4d\x37\x1e\x95\xd9\x69\x04\xd5\x40\x9b\x2b\x59\x18\x7a\x2f\xd7\xae\x60\x48\xb5\xf1\xd7\x7e\x10\x2e\x51\xf6\x8d\xf6\x1e\x3c\x31\x81\x8b\xcb\xfe\x07\xb2\x87\x04\x62\x11\x46\xfb\x8e\xbc\xdf\x20\x4b\x14\xa8\x81\xd4\xc7\x89\xab\x9f\x02\x6e\x38\x6a\xce\xb8\x38\x79\x05\x37\xa3\x20\x90\xfc\x6a\x14\x83\xe7\xe7\xc1\x3b\x67\xbc\x0f\x85\x28\x17\x70\xc3\x17\x40\x04\x6c\x09\x3b\x97\x8b\x54\x91\x43\x38\xcb\x34\x38\xb0\xd8\x43\xd7\x75\xa4\x09\xb8\x8e\xfc\xbd\x50\x0e\xdb\xec\x64\xa0\x70\x7d\xd1\x01\x47\x8c\x4f\x81\xdb\xc8\x9b\x11\x74\x0e\x36\xf4\xfd\xf8\x20\x6a\x43\xe1\x29\x70\xa1\xd3\x4d\xa0\x0b\x1b\xdf\x0b\xde\xb8\xc5\x4f\xe0\x0b\x1d\xd9\x01\xc8\xcc\x4f\x88\x60\x70\xea\x00\x86\xb2\x6b\xf9\x8f\xa1\x18\xbc\x99\xe0\xc8\xf5\x76\x8a\xa2\x23\x7f\x2f\x86\xc3\xf6\x3b\x41\xd0\xf5\x4c\x87\xdf\x9b\xbe\x73\x3f\x09\x7e\xce\x9d\x03\xe8\x39\x23\x1e\xc7\xce\x79\xd1\x23\xc7\xee\x75\x43\xb4\x85\xe1\x18\x9d\x8c\x56\x64\x15\x35\x0a\x9b\xfe\x2a\x55\x19\x27\xf4\x04\x0a\xfb\xef\x2d\xcf\x2c\x33\x0b\x2b\xb0\xe9\x69\x85\x75\x3c\xaa\xc2\x36\x7a\x88\xfe\x0c\x00\x00\xff\xff\xd7\x50\x09\x8a\x52\x1c\x00\x00") func schemaGoBytes() ([]byte, error) { return bindataRead( @@ -113,7 +113,7 @@ func schemaGo() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "schema.go", size: 7232, mode: os.FileMode(420), modTime: time.Unix(1570012859, 0)} + info := bindataFileInfo{name: "schema.go", size: 7250, mode: os.FileMode(420), modTime: time.Unix(1570093680, 0)} a := &asset{bytes: bytes, info: info} return a, nil } diff --git a/entc/load/schema.go b/entc/load/schema.go index 99269963c..a5d0f647c 100644 --- a/entc/load/schema.go +++ b/entc/load/schema.go @@ -37,7 +37,7 @@ type Field struct { Name string `json:"name,omitempty"` Info *field.TypeInfo `json:"type,omitempty"` Tag string `json:"tag,omitempty"` - Size *int `json:"size,omitempty"` + Size *int64 `json:"size,omitempty"` Enums []string `json:"enums,omitempty"` Unique bool `json:"unique,omitempty"` Nillable bool `json:"nillable,omitempty"` @@ -115,8 +115,8 @@ func NewField(fd *field.Descriptor) (*Field, error) { if sf.Info == nil { return nil, fmt.Errorf("missing type info for field %q", sf.Name) } - if fd.Size != 0 { - sf.Size = &fd.Size + if size := int64(fd.Size); size != 0 { + sf.Size = &size } return sf, nil } diff --git a/examples/edgeindex/ent/city/where.go b/examples/edgeindex/ent/city/where.go index 8b304792f..dc2ced00d 100644 --- a/examples/edgeindex/ent/city/where.go +++ b/examples/edgeindex/ent/city/where.go @@ -38,42 +38,6 @@ func IDNEQ(id int) predicate.City { ) } -// IDGT applies the GT predicate on the ID field. -func IDGT(id int) predicate.City { - return predicate.City( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldID), id)) - }, - ) -} - -// IDGTE applies the GTE predicate on the ID field. -func IDGTE(id int) predicate.City { - return predicate.City( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldID), id)) - }, - ) -} - -// IDLT applies the LT predicate on the ID field. -func IDLT(id int) predicate.City { - return predicate.City( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldID), id)) - }, - ) -} - -// IDLTE applies the LTE predicate on the ID field. -func IDLTE(id int) predicate.City { - return predicate.City( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldID), id)) - }, - ) -} - // IDIn applies the In predicate on the ID field. func IDIn(ids ...int) predicate.City { return predicate.City( @@ -112,6 +76,42 @@ func IDNotIn(ids ...int) predicate.City { ) } +// IDGT applies the GT predicate on the ID field. +func IDGT(id int) predicate.City { + return predicate.City( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldID), id)) + }, + ) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id int) predicate.City { + return predicate.City( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldID), id)) + }, + ) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id int) predicate.City { + return predicate.City( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldID), id)) + }, + ) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id int) predicate.City { + return predicate.City( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldID), id)) + }, + ) +} + // Name applies equality check predicate on the "name" field. It's identical to NameEQ. func Name(v string) predicate.City { return predicate.City( @@ -139,42 +139,6 @@ func NameNEQ(v string) predicate.City { ) } -// NameGT applies the GT predicate on the "name" field. -func NameGT(v string) predicate.City { - return predicate.City( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldName), v)) - }, - ) -} - -// NameGTE applies the GTE predicate on the "name" field. -func NameGTE(v string) predicate.City { - return predicate.City( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldName), v)) - }, - ) -} - -// NameLT applies the LT predicate on the "name" field. -func NameLT(v string) predicate.City { - return predicate.City( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldName), v)) - }, - ) -} - -// NameLTE applies the LTE predicate on the "name" field. -func NameLTE(v string) predicate.City { - return predicate.City( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldName), v)) - }, - ) -} - // NameIn applies the In predicate on the "name" field. func NameIn(vs ...string) predicate.City { v := make([]interface{}, len(vs)) @@ -213,6 +177,42 @@ func NameNotIn(vs ...string) predicate.City { ) } +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.City { + return predicate.City( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldName), v)) + }, + ) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.City { + return predicate.City( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldName), v)) + }, + ) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.City { + return predicate.City( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldName), v)) + }, + ) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.City { + return predicate.City( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldName), v)) + }, + ) +} + // NameContains applies the Contains predicate on the "name" field. func NameContains(v string) predicate.City { return predicate.City( diff --git a/examples/edgeindex/ent/city_query.go b/examples/edgeindex/ent/city_query.go index 34b34a12c..c4e80cc69 100644 --- a/examples/edgeindex/ent/city_query.go +++ b/examples/edgeindex/ent/city_query.go @@ -351,7 +351,7 @@ func (cq *CityQuery) sqlQuery() *sql.Selector { if offset := cq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := cq.limit; limit != nil { selector.Limit(*limit) diff --git a/examples/edgeindex/ent/street/where.go b/examples/edgeindex/ent/street/where.go index 0d73d9906..abc76b9a2 100644 --- a/examples/edgeindex/ent/street/where.go +++ b/examples/edgeindex/ent/street/where.go @@ -38,42 +38,6 @@ func IDNEQ(id int) predicate.Street { ) } -// IDGT applies the GT predicate on the ID field. -func IDGT(id int) predicate.Street { - return predicate.Street( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldID), id)) - }, - ) -} - -// IDGTE applies the GTE predicate on the ID field. -func IDGTE(id int) predicate.Street { - return predicate.Street( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldID), id)) - }, - ) -} - -// IDLT applies the LT predicate on the ID field. -func IDLT(id int) predicate.Street { - return predicate.Street( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldID), id)) - }, - ) -} - -// IDLTE applies the LTE predicate on the ID field. -func IDLTE(id int) predicate.Street { - return predicate.Street( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldID), id)) - }, - ) -} - // IDIn applies the In predicate on the ID field. func IDIn(ids ...int) predicate.Street { return predicate.Street( @@ -112,6 +76,42 @@ func IDNotIn(ids ...int) predicate.Street { ) } +// IDGT applies the GT predicate on the ID field. +func IDGT(id int) predicate.Street { + return predicate.Street( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldID), id)) + }, + ) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id int) predicate.Street { + return predicate.Street( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldID), id)) + }, + ) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id int) predicate.Street { + return predicate.Street( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldID), id)) + }, + ) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id int) predicate.Street { + return predicate.Street( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldID), id)) + }, + ) +} + // Name applies equality check predicate on the "name" field. It's identical to NameEQ. func Name(v string) predicate.Street { return predicate.Street( @@ -139,42 +139,6 @@ func NameNEQ(v string) predicate.Street { ) } -// NameGT applies the GT predicate on the "name" field. -func NameGT(v string) predicate.Street { - return predicate.Street( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldName), v)) - }, - ) -} - -// NameGTE applies the GTE predicate on the "name" field. -func NameGTE(v string) predicate.Street { - return predicate.Street( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldName), v)) - }, - ) -} - -// NameLT applies the LT predicate on the "name" field. -func NameLT(v string) predicate.Street { - return predicate.Street( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldName), v)) - }, - ) -} - -// NameLTE applies the LTE predicate on the "name" field. -func NameLTE(v string) predicate.Street { - return predicate.Street( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldName), v)) - }, - ) -} - // NameIn applies the In predicate on the "name" field. func NameIn(vs ...string) predicate.Street { v := make([]interface{}, len(vs)) @@ -213,6 +177,42 @@ func NameNotIn(vs ...string) predicate.Street { ) } +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.Street { + return predicate.Street( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldName), v)) + }, + ) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.Street { + return predicate.Street( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldName), v)) + }, + ) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.Street { + return predicate.Street( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldName), v)) + }, + ) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.Street { + return predicate.Street( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldName), v)) + }, + ) +} + // NameContains applies the Contains predicate on the "name" field. func NameContains(v string) predicate.Street { return predicate.Street( diff --git a/examples/edgeindex/ent/street_query.go b/examples/edgeindex/ent/street_query.go index 5aca30992..efc778246 100644 --- a/examples/edgeindex/ent/street_query.go +++ b/examples/edgeindex/ent/street_query.go @@ -351,7 +351,7 @@ func (sq *StreetQuery) sqlQuery() *sql.Selector { if offset := sq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := sq.limit; limit != nil { selector.Limit(*limit) diff --git a/examples/m2m2types/ent/group/where.go b/examples/m2m2types/ent/group/where.go index b707211b3..0d6eda004 100644 --- a/examples/m2m2types/ent/group/where.go +++ b/examples/m2m2types/ent/group/where.go @@ -38,42 +38,6 @@ func IDNEQ(id int) predicate.Group { ) } -// IDGT applies the GT predicate on the ID field. -func IDGT(id int) predicate.Group { - return predicate.Group( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldID), id)) - }, - ) -} - -// IDGTE applies the GTE predicate on the ID field. -func IDGTE(id int) predicate.Group { - return predicate.Group( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldID), id)) - }, - ) -} - -// IDLT applies the LT predicate on the ID field. -func IDLT(id int) predicate.Group { - return predicate.Group( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldID), id)) - }, - ) -} - -// IDLTE applies the LTE predicate on the ID field. -func IDLTE(id int) predicate.Group { - return predicate.Group( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldID), id)) - }, - ) -} - // IDIn applies the In predicate on the ID field. func IDIn(ids ...int) predicate.Group { return predicate.Group( @@ -112,6 +76,42 @@ func IDNotIn(ids ...int) predicate.Group { ) } +// IDGT applies the GT predicate on the ID field. +func IDGT(id int) predicate.Group { + return predicate.Group( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldID), id)) + }, + ) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id int) predicate.Group { + return predicate.Group( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldID), id)) + }, + ) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id int) predicate.Group { + return predicate.Group( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldID), id)) + }, + ) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id int) predicate.Group { + return predicate.Group( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldID), id)) + }, + ) +} + // Name applies equality check predicate on the "name" field. It's identical to NameEQ. func Name(v string) predicate.Group { return predicate.Group( @@ -139,42 +139,6 @@ func NameNEQ(v string) predicate.Group { ) } -// NameGT applies the GT predicate on the "name" field. -func NameGT(v string) predicate.Group { - return predicate.Group( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldName), v)) - }, - ) -} - -// NameGTE applies the GTE predicate on the "name" field. -func NameGTE(v string) predicate.Group { - return predicate.Group( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldName), v)) - }, - ) -} - -// NameLT applies the LT predicate on the "name" field. -func NameLT(v string) predicate.Group { - return predicate.Group( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldName), v)) - }, - ) -} - -// NameLTE applies the LTE predicate on the "name" field. -func NameLTE(v string) predicate.Group { - return predicate.Group( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldName), v)) - }, - ) -} - // NameIn applies the In predicate on the "name" field. func NameIn(vs ...string) predicate.Group { v := make([]interface{}, len(vs)) @@ -213,6 +177,42 @@ func NameNotIn(vs ...string) predicate.Group { ) } +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.Group { + return predicate.Group( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldName), v)) + }, + ) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.Group { + return predicate.Group( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldName), v)) + }, + ) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.Group { + return predicate.Group( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldName), v)) + }, + ) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.Group { + return predicate.Group( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldName), v)) + }, + ) +} + // NameContains applies the Contains predicate on the "name" field. func NameContains(v string) predicate.Group { return predicate.Group( diff --git a/examples/m2m2types/ent/group_query.go b/examples/m2m2types/ent/group_query.go index df2b3d23b..31b21fb82 100644 --- a/examples/m2m2types/ent/group_query.go +++ b/examples/m2m2types/ent/group_query.go @@ -356,7 +356,7 @@ func (gq *GroupQuery) sqlQuery() *sql.Selector { if offset := gq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := gq.limit; limit != nil { selector.Limit(*limit) diff --git a/examples/m2m2types/ent/user/where.go b/examples/m2m2types/ent/user/where.go index 3936a72da..b13a476dd 100644 --- a/examples/m2m2types/ent/user/where.go +++ b/examples/m2m2types/ent/user/where.go @@ -38,42 +38,6 @@ func IDNEQ(id int) predicate.User { ) } -// IDGT applies the GT predicate on the ID field. -func IDGT(id int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldID), id)) - }, - ) -} - -// IDGTE applies the GTE predicate on the ID field. -func IDGTE(id int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldID), id)) - }, - ) -} - -// IDLT applies the LT predicate on the ID field. -func IDLT(id int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldID), id)) - }, - ) -} - -// IDLTE applies the LTE predicate on the ID field. -func IDLTE(id int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldID), id)) - }, - ) -} - // IDIn applies the In predicate on the ID field. func IDIn(ids ...int) predicate.User { return predicate.User( @@ -112,6 +76,42 @@ func IDNotIn(ids ...int) predicate.User { ) } +// IDGT applies the GT predicate on the ID field. +func IDGT(id int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldID), id)) + }, + ) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldID), id)) + }, + ) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldID), id)) + }, + ) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldID), id)) + }, + ) +} + // Age applies equality check predicate on the "age" field. It's identical to AgeEQ. func Age(v int) predicate.User { return predicate.User( @@ -148,42 +148,6 @@ func AgeNEQ(v int) predicate.User { ) } -// AgeGT applies the GT predicate on the "age" field. -func AgeGT(v int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldAge), v)) - }, - ) -} - -// AgeGTE applies the GTE predicate on the "age" field. -func AgeGTE(v int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldAge), v)) - }, - ) -} - -// AgeLT applies the LT predicate on the "age" field. -func AgeLT(v int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldAge), v)) - }, - ) -} - -// AgeLTE applies the LTE predicate on the "age" field. -func AgeLTE(v int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldAge), v)) - }, - ) -} - // AgeIn applies the In predicate on the "age" field. func AgeIn(vs ...int) predicate.User { v := make([]interface{}, len(vs)) @@ -222,6 +186,42 @@ func AgeNotIn(vs ...int) predicate.User { ) } +// AgeGT applies the GT predicate on the "age" field. +func AgeGT(v int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldAge), v)) + }, + ) +} + +// AgeGTE applies the GTE predicate on the "age" field. +func AgeGTE(v int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldAge), v)) + }, + ) +} + +// AgeLT applies the LT predicate on the "age" field. +func AgeLT(v int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldAge), v)) + }, + ) +} + +// AgeLTE applies the LTE predicate on the "age" field. +func AgeLTE(v int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldAge), v)) + }, + ) +} + // NameEQ applies the EQ predicate on the "name" field. func NameEQ(v string) predicate.User { return predicate.User( @@ -240,42 +240,6 @@ func NameNEQ(v string) predicate.User { ) } -// NameGT applies the GT predicate on the "name" field. -func NameGT(v string) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldName), v)) - }, - ) -} - -// NameGTE applies the GTE predicate on the "name" field. -func NameGTE(v string) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldName), v)) - }, - ) -} - -// NameLT applies the LT predicate on the "name" field. -func NameLT(v string) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldName), v)) - }, - ) -} - -// NameLTE applies the LTE predicate on the "name" field. -func NameLTE(v string) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldName), v)) - }, - ) -} - // NameIn applies the In predicate on the "name" field. func NameIn(vs ...string) predicate.User { v := make([]interface{}, len(vs)) @@ -314,6 +278,42 @@ func NameNotIn(vs ...string) predicate.User { ) } +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldName), v)) + }, + ) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldName), v)) + }, + ) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldName), v)) + }, + ) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldName), v)) + }, + ) +} + // NameContains applies the Contains predicate on the "name" field. func NameContains(v string) predicate.User { return predicate.User( diff --git a/examples/m2m2types/ent/user_query.go b/examples/m2m2types/ent/user_query.go index 297653aa4..229a59e81 100644 --- a/examples/m2m2types/ent/user_query.go +++ b/examples/m2m2types/ent/user_query.go @@ -356,7 +356,7 @@ func (uq *UserQuery) sqlQuery() *sql.Selector { if offset := uq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := uq.limit; limit != nil { selector.Limit(*limit) diff --git a/examples/m2mbidi/ent/user/where.go b/examples/m2mbidi/ent/user/where.go index 1ceaf62a2..372c86238 100644 --- a/examples/m2mbidi/ent/user/where.go +++ b/examples/m2mbidi/ent/user/where.go @@ -38,42 +38,6 @@ func IDNEQ(id int) predicate.User { ) } -// IDGT applies the GT predicate on the ID field. -func IDGT(id int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldID), id)) - }, - ) -} - -// IDGTE applies the GTE predicate on the ID field. -func IDGTE(id int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldID), id)) - }, - ) -} - -// IDLT applies the LT predicate on the ID field. -func IDLT(id int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldID), id)) - }, - ) -} - -// IDLTE applies the LTE predicate on the ID field. -func IDLTE(id int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldID), id)) - }, - ) -} - // IDIn applies the In predicate on the ID field. func IDIn(ids ...int) predicate.User { return predicate.User( @@ -112,6 +76,42 @@ func IDNotIn(ids ...int) predicate.User { ) } +// IDGT applies the GT predicate on the ID field. +func IDGT(id int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldID), id)) + }, + ) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldID), id)) + }, + ) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldID), id)) + }, + ) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldID), id)) + }, + ) +} + // Age applies equality check predicate on the "age" field. It's identical to AgeEQ. func Age(v int) predicate.User { return predicate.User( @@ -148,42 +148,6 @@ func AgeNEQ(v int) predicate.User { ) } -// AgeGT applies the GT predicate on the "age" field. -func AgeGT(v int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldAge), v)) - }, - ) -} - -// AgeGTE applies the GTE predicate on the "age" field. -func AgeGTE(v int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldAge), v)) - }, - ) -} - -// AgeLT applies the LT predicate on the "age" field. -func AgeLT(v int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldAge), v)) - }, - ) -} - -// AgeLTE applies the LTE predicate on the "age" field. -func AgeLTE(v int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldAge), v)) - }, - ) -} - // AgeIn applies the In predicate on the "age" field. func AgeIn(vs ...int) predicate.User { v := make([]interface{}, len(vs)) @@ -222,6 +186,42 @@ func AgeNotIn(vs ...int) predicate.User { ) } +// AgeGT applies the GT predicate on the "age" field. +func AgeGT(v int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldAge), v)) + }, + ) +} + +// AgeGTE applies the GTE predicate on the "age" field. +func AgeGTE(v int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldAge), v)) + }, + ) +} + +// AgeLT applies the LT predicate on the "age" field. +func AgeLT(v int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldAge), v)) + }, + ) +} + +// AgeLTE applies the LTE predicate on the "age" field. +func AgeLTE(v int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldAge), v)) + }, + ) +} + // NameEQ applies the EQ predicate on the "name" field. func NameEQ(v string) predicate.User { return predicate.User( @@ -240,42 +240,6 @@ func NameNEQ(v string) predicate.User { ) } -// NameGT applies the GT predicate on the "name" field. -func NameGT(v string) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldName), v)) - }, - ) -} - -// NameGTE applies the GTE predicate on the "name" field. -func NameGTE(v string) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldName), v)) - }, - ) -} - -// NameLT applies the LT predicate on the "name" field. -func NameLT(v string) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldName), v)) - }, - ) -} - -// NameLTE applies the LTE predicate on the "name" field. -func NameLTE(v string) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldName), v)) - }, - ) -} - // NameIn applies the In predicate on the "name" field. func NameIn(vs ...string) predicate.User { v := make([]interface{}, len(vs)) @@ -314,6 +278,42 @@ func NameNotIn(vs ...string) predicate.User { ) } +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldName), v)) + }, + ) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldName), v)) + }, + ) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldName), v)) + }, + ) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldName), v)) + }, + ) +} + // NameContains applies the Contains predicate on the "name" field. func NameContains(v string) predicate.User { return predicate.User( diff --git a/examples/m2mbidi/ent/user_query.go b/examples/m2mbidi/ent/user_query.go index f1804eb9c..67067f212 100644 --- a/examples/m2mbidi/ent/user_query.go +++ b/examples/m2mbidi/ent/user_query.go @@ -355,7 +355,7 @@ func (uq *UserQuery) sqlQuery() *sql.Selector { if offset := uq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := uq.limit; limit != nil { selector.Limit(*limit) diff --git a/examples/m2mrecur/ent/user/where.go b/examples/m2mrecur/ent/user/where.go index ace96e06b..74183c641 100644 --- a/examples/m2mrecur/ent/user/where.go +++ b/examples/m2mrecur/ent/user/where.go @@ -38,42 +38,6 @@ func IDNEQ(id int) predicate.User { ) } -// IDGT applies the GT predicate on the ID field. -func IDGT(id int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldID), id)) - }, - ) -} - -// IDGTE applies the GTE predicate on the ID field. -func IDGTE(id int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldID), id)) - }, - ) -} - -// IDLT applies the LT predicate on the ID field. -func IDLT(id int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldID), id)) - }, - ) -} - -// IDLTE applies the LTE predicate on the ID field. -func IDLTE(id int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldID), id)) - }, - ) -} - // IDIn applies the In predicate on the ID field. func IDIn(ids ...int) predicate.User { return predicate.User( @@ -112,6 +76,42 @@ func IDNotIn(ids ...int) predicate.User { ) } +// IDGT applies the GT predicate on the ID field. +func IDGT(id int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldID), id)) + }, + ) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldID), id)) + }, + ) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldID), id)) + }, + ) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldID), id)) + }, + ) +} + // Age applies equality check predicate on the "age" field. It's identical to AgeEQ. func Age(v int) predicate.User { return predicate.User( @@ -148,42 +148,6 @@ func AgeNEQ(v int) predicate.User { ) } -// AgeGT applies the GT predicate on the "age" field. -func AgeGT(v int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldAge), v)) - }, - ) -} - -// AgeGTE applies the GTE predicate on the "age" field. -func AgeGTE(v int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldAge), v)) - }, - ) -} - -// AgeLT applies the LT predicate on the "age" field. -func AgeLT(v int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldAge), v)) - }, - ) -} - -// AgeLTE applies the LTE predicate on the "age" field. -func AgeLTE(v int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldAge), v)) - }, - ) -} - // AgeIn applies the In predicate on the "age" field. func AgeIn(vs ...int) predicate.User { v := make([]interface{}, len(vs)) @@ -222,6 +186,42 @@ func AgeNotIn(vs ...int) predicate.User { ) } +// AgeGT applies the GT predicate on the "age" field. +func AgeGT(v int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldAge), v)) + }, + ) +} + +// AgeGTE applies the GTE predicate on the "age" field. +func AgeGTE(v int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldAge), v)) + }, + ) +} + +// AgeLT applies the LT predicate on the "age" field. +func AgeLT(v int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldAge), v)) + }, + ) +} + +// AgeLTE applies the LTE predicate on the "age" field. +func AgeLTE(v int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldAge), v)) + }, + ) +} + // NameEQ applies the EQ predicate on the "name" field. func NameEQ(v string) predicate.User { return predicate.User( @@ -240,42 +240,6 @@ func NameNEQ(v string) predicate.User { ) } -// NameGT applies the GT predicate on the "name" field. -func NameGT(v string) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldName), v)) - }, - ) -} - -// NameGTE applies the GTE predicate on the "name" field. -func NameGTE(v string) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldName), v)) - }, - ) -} - -// NameLT applies the LT predicate on the "name" field. -func NameLT(v string) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldName), v)) - }, - ) -} - -// NameLTE applies the LTE predicate on the "name" field. -func NameLTE(v string) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldName), v)) - }, - ) -} - // NameIn applies the In predicate on the "name" field. func NameIn(vs ...string) predicate.User { v := make([]interface{}, len(vs)) @@ -314,6 +278,42 @@ func NameNotIn(vs ...string) predicate.User { ) } +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldName), v)) + }, + ) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldName), v)) + }, + ) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldName), v)) + }, + ) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldName), v)) + }, + ) +} + // NameContains applies the Contains predicate on the "name" field. func NameContains(v string) predicate.User { return predicate.User( diff --git a/examples/m2mrecur/ent/user_query.go b/examples/m2mrecur/ent/user_query.go index 35e1ca905..383c65f98 100644 --- a/examples/m2mrecur/ent/user_query.go +++ b/examples/m2mrecur/ent/user_query.go @@ -373,7 +373,7 @@ func (uq *UserQuery) sqlQuery() *sql.Selector { if offset := uq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := uq.limit; limit != nil { selector.Limit(*limit) diff --git a/examples/o2m2types/ent/pet/where.go b/examples/o2m2types/ent/pet/where.go index cde85ab44..a4dedf347 100644 --- a/examples/o2m2types/ent/pet/where.go +++ b/examples/o2m2types/ent/pet/where.go @@ -38,42 +38,6 @@ func IDNEQ(id int) predicate.Pet { ) } -// IDGT applies the GT predicate on the ID field. -func IDGT(id int) predicate.Pet { - return predicate.Pet( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldID), id)) - }, - ) -} - -// IDGTE applies the GTE predicate on the ID field. -func IDGTE(id int) predicate.Pet { - return predicate.Pet( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldID), id)) - }, - ) -} - -// IDLT applies the LT predicate on the ID field. -func IDLT(id int) predicate.Pet { - return predicate.Pet( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldID), id)) - }, - ) -} - -// IDLTE applies the LTE predicate on the ID field. -func IDLTE(id int) predicate.Pet { - return predicate.Pet( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldID), id)) - }, - ) -} - // IDIn applies the In predicate on the ID field. func IDIn(ids ...int) predicate.Pet { return predicate.Pet( @@ -112,6 +76,42 @@ func IDNotIn(ids ...int) predicate.Pet { ) } +// IDGT applies the GT predicate on the ID field. +func IDGT(id int) predicate.Pet { + return predicate.Pet( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldID), id)) + }, + ) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id int) predicate.Pet { + return predicate.Pet( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldID), id)) + }, + ) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id int) predicate.Pet { + return predicate.Pet( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldID), id)) + }, + ) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id int) predicate.Pet { + return predicate.Pet( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldID), id)) + }, + ) +} + // Name applies equality check predicate on the "name" field. It's identical to NameEQ. func Name(v string) predicate.Pet { return predicate.Pet( @@ -139,42 +139,6 @@ func NameNEQ(v string) predicate.Pet { ) } -// NameGT applies the GT predicate on the "name" field. -func NameGT(v string) predicate.Pet { - return predicate.Pet( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldName), v)) - }, - ) -} - -// NameGTE applies the GTE predicate on the "name" field. -func NameGTE(v string) predicate.Pet { - return predicate.Pet( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldName), v)) - }, - ) -} - -// NameLT applies the LT predicate on the "name" field. -func NameLT(v string) predicate.Pet { - return predicate.Pet( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldName), v)) - }, - ) -} - -// NameLTE applies the LTE predicate on the "name" field. -func NameLTE(v string) predicate.Pet { - return predicate.Pet( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldName), v)) - }, - ) -} - // NameIn applies the In predicate on the "name" field. func NameIn(vs ...string) predicate.Pet { v := make([]interface{}, len(vs)) @@ -213,6 +177,42 @@ func NameNotIn(vs ...string) predicate.Pet { ) } +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.Pet { + return predicate.Pet( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldName), v)) + }, + ) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.Pet { + return predicate.Pet( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldName), v)) + }, + ) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.Pet { + return predicate.Pet( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldName), v)) + }, + ) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.Pet { + return predicate.Pet( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldName), v)) + }, + ) +} + // NameContains applies the Contains predicate on the "name" field. func NameContains(v string) predicate.Pet { return predicate.Pet( diff --git a/examples/o2m2types/ent/pet_query.go b/examples/o2m2types/ent/pet_query.go index e9cae37fb..d89890eb1 100644 --- a/examples/o2m2types/ent/pet_query.go +++ b/examples/o2m2types/ent/pet_query.go @@ -351,7 +351,7 @@ func (pq *PetQuery) sqlQuery() *sql.Selector { if offset := pq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := pq.limit; limit != nil { selector.Limit(*limit) diff --git a/examples/o2m2types/ent/user/where.go b/examples/o2m2types/ent/user/where.go index 45b413392..716a4b472 100644 --- a/examples/o2m2types/ent/user/where.go +++ b/examples/o2m2types/ent/user/where.go @@ -38,42 +38,6 @@ func IDNEQ(id int) predicate.User { ) } -// IDGT applies the GT predicate on the ID field. -func IDGT(id int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldID), id)) - }, - ) -} - -// IDGTE applies the GTE predicate on the ID field. -func IDGTE(id int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldID), id)) - }, - ) -} - -// IDLT applies the LT predicate on the ID field. -func IDLT(id int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldID), id)) - }, - ) -} - -// IDLTE applies the LTE predicate on the ID field. -func IDLTE(id int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldID), id)) - }, - ) -} - // IDIn applies the In predicate on the ID field. func IDIn(ids ...int) predicate.User { return predicate.User( @@ -112,6 +76,42 @@ func IDNotIn(ids ...int) predicate.User { ) } +// IDGT applies the GT predicate on the ID field. +func IDGT(id int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldID), id)) + }, + ) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldID), id)) + }, + ) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldID), id)) + }, + ) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldID), id)) + }, + ) +} + // Age applies equality check predicate on the "age" field. It's identical to AgeEQ. func Age(v int) predicate.User { return predicate.User( @@ -148,42 +148,6 @@ func AgeNEQ(v int) predicate.User { ) } -// AgeGT applies the GT predicate on the "age" field. -func AgeGT(v int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldAge), v)) - }, - ) -} - -// AgeGTE applies the GTE predicate on the "age" field. -func AgeGTE(v int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldAge), v)) - }, - ) -} - -// AgeLT applies the LT predicate on the "age" field. -func AgeLT(v int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldAge), v)) - }, - ) -} - -// AgeLTE applies the LTE predicate on the "age" field. -func AgeLTE(v int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldAge), v)) - }, - ) -} - // AgeIn applies the In predicate on the "age" field. func AgeIn(vs ...int) predicate.User { v := make([]interface{}, len(vs)) @@ -222,6 +186,42 @@ func AgeNotIn(vs ...int) predicate.User { ) } +// AgeGT applies the GT predicate on the "age" field. +func AgeGT(v int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldAge), v)) + }, + ) +} + +// AgeGTE applies the GTE predicate on the "age" field. +func AgeGTE(v int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldAge), v)) + }, + ) +} + +// AgeLT applies the LT predicate on the "age" field. +func AgeLT(v int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldAge), v)) + }, + ) +} + +// AgeLTE applies the LTE predicate on the "age" field. +func AgeLTE(v int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldAge), v)) + }, + ) +} + // NameEQ applies the EQ predicate on the "name" field. func NameEQ(v string) predicate.User { return predicate.User( @@ -240,42 +240,6 @@ func NameNEQ(v string) predicate.User { ) } -// NameGT applies the GT predicate on the "name" field. -func NameGT(v string) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldName), v)) - }, - ) -} - -// NameGTE applies the GTE predicate on the "name" field. -func NameGTE(v string) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldName), v)) - }, - ) -} - -// NameLT applies the LT predicate on the "name" field. -func NameLT(v string) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldName), v)) - }, - ) -} - -// NameLTE applies the LTE predicate on the "name" field. -func NameLTE(v string) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldName), v)) - }, - ) -} - // NameIn applies the In predicate on the "name" field. func NameIn(vs ...string) predicate.User { v := make([]interface{}, len(vs)) @@ -314,6 +278,42 @@ func NameNotIn(vs ...string) predicate.User { ) } +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldName), v)) + }, + ) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldName), v)) + }, + ) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldName), v)) + }, + ) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldName), v)) + }, + ) +} + // NameContains applies the Contains predicate on the "name" field. func NameContains(v string) predicate.User { return predicate.User( diff --git a/examples/o2m2types/ent/user_query.go b/examples/o2m2types/ent/user_query.go index 0f0ee3836..3edf66d99 100644 --- a/examples/o2m2types/ent/user_query.go +++ b/examples/o2m2types/ent/user_query.go @@ -351,7 +351,7 @@ func (uq *UserQuery) sqlQuery() *sql.Selector { if offset := uq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := uq.limit; limit != nil { selector.Limit(*limit) diff --git a/examples/o2mrecur/ent/node/where.go b/examples/o2mrecur/ent/node/where.go index 81a03a22f..cf71677c4 100644 --- a/examples/o2mrecur/ent/node/where.go +++ b/examples/o2mrecur/ent/node/where.go @@ -38,42 +38,6 @@ func IDNEQ(id int) predicate.Node { ) } -// IDGT applies the GT predicate on the ID field. -func IDGT(id int) predicate.Node { - return predicate.Node( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldID), id)) - }, - ) -} - -// IDGTE applies the GTE predicate on the ID field. -func IDGTE(id int) predicate.Node { - return predicate.Node( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldID), id)) - }, - ) -} - -// IDLT applies the LT predicate on the ID field. -func IDLT(id int) predicate.Node { - return predicate.Node( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldID), id)) - }, - ) -} - -// IDLTE applies the LTE predicate on the ID field. -func IDLTE(id int) predicate.Node { - return predicate.Node( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldID), id)) - }, - ) -} - // IDIn applies the In predicate on the ID field. func IDIn(ids ...int) predicate.Node { return predicate.Node( @@ -112,6 +76,42 @@ func IDNotIn(ids ...int) predicate.Node { ) } +// IDGT applies the GT predicate on the ID field. +func IDGT(id int) predicate.Node { + return predicate.Node( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldID), id)) + }, + ) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id int) predicate.Node { + return predicate.Node( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldID), id)) + }, + ) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id int) predicate.Node { + return predicate.Node( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldID), id)) + }, + ) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id int) predicate.Node { + return predicate.Node( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldID), id)) + }, + ) +} + // Value applies equality check predicate on the "value" field. It's identical to ValueEQ. func Value(v int) predicate.Node { return predicate.Node( @@ -139,42 +139,6 @@ func ValueNEQ(v int) predicate.Node { ) } -// ValueGT applies the GT predicate on the "value" field. -func ValueGT(v int) predicate.Node { - return predicate.Node( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldValue), v)) - }, - ) -} - -// ValueGTE applies the GTE predicate on the "value" field. -func ValueGTE(v int) predicate.Node { - return predicate.Node( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldValue), v)) - }, - ) -} - -// ValueLT applies the LT predicate on the "value" field. -func ValueLT(v int) predicate.Node { - return predicate.Node( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldValue), v)) - }, - ) -} - -// ValueLTE applies the LTE predicate on the "value" field. -func ValueLTE(v int) predicate.Node { - return predicate.Node( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldValue), v)) - }, - ) -} - // ValueIn applies the In predicate on the "value" field. func ValueIn(vs ...int) predicate.Node { v := make([]interface{}, len(vs)) @@ -213,6 +177,42 @@ func ValueNotIn(vs ...int) predicate.Node { ) } +// ValueGT applies the GT predicate on the "value" field. +func ValueGT(v int) predicate.Node { + return predicate.Node( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldValue), v)) + }, + ) +} + +// ValueGTE applies the GTE predicate on the "value" field. +func ValueGTE(v int) predicate.Node { + return predicate.Node( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldValue), v)) + }, + ) +} + +// ValueLT applies the LT predicate on the "value" field. +func ValueLT(v int) predicate.Node { + return predicate.Node( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldValue), v)) + }, + ) +} + +// ValueLTE applies the LTE predicate on the "value" field. +func ValueLTE(v int) predicate.Node { + return predicate.Node( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldValue), v)) + }, + ) +} + // HasParent applies the HasEdge predicate on the "parent" edge. func HasParent() predicate.Node { return predicate.Node( diff --git a/examples/o2mrecur/ent/node_query.go b/examples/o2mrecur/ent/node_query.go index 016b0ea09..843aab005 100644 --- a/examples/o2mrecur/ent/node_query.go +++ b/examples/o2mrecur/ent/node_query.go @@ -363,7 +363,7 @@ func (nq *NodeQuery) sqlQuery() *sql.Selector { if offset := nq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := nq.limit; limit != nil { selector.Limit(*limit) diff --git a/examples/o2o2types/ent/card/where.go b/examples/o2o2types/ent/card/where.go index 24008368a..027f22765 100644 --- a/examples/o2o2types/ent/card/where.go +++ b/examples/o2o2types/ent/card/where.go @@ -40,42 +40,6 @@ func IDNEQ(id int) predicate.Card { ) } -// IDGT applies the GT predicate on the ID field. -func IDGT(id int) predicate.Card { - return predicate.Card( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldID), id)) - }, - ) -} - -// IDGTE applies the GTE predicate on the ID field. -func IDGTE(id int) predicate.Card { - return predicate.Card( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldID), id)) - }, - ) -} - -// IDLT applies the LT predicate on the ID field. -func IDLT(id int) predicate.Card { - return predicate.Card( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldID), id)) - }, - ) -} - -// IDLTE applies the LTE predicate on the ID field. -func IDLTE(id int) predicate.Card { - return predicate.Card( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldID), id)) - }, - ) -} - // IDIn applies the In predicate on the ID field. func IDIn(ids ...int) predicate.Card { return predicate.Card( @@ -114,6 +78,42 @@ func IDNotIn(ids ...int) predicate.Card { ) } +// IDGT applies the GT predicate on the ID field. +func IDGT(id int) predicate.Card { + return predicate.Card( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldID), id)) + }, + ) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id int) predicate.Card { + return predicate.Card( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldID), id)) + }, + ) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id int) predicate.Card { + return predicate.Card( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldID), id)) + }, + ) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id int) predicate.Card { + return predicate.Card( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldID), id)) + }, + ) +} + // Expired applies equality check predicate on the "expired" field. It's identical to ExpiredEQ. func Expired(v time.Time) predicate.Card { return predicate.Card( @@ -150,42 +150,6 @@ func ExpiredNEQ(v time.Time) predicate.Card { ) } -// ExpiredGT applies the GT predicate on the "expired" field. -func ExpiredGT(v time.Time) predicate.Card { - return predicate.Card( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldExpired), v)) - }, - ) -} - -// ExpiredGTE applies the GTE predicate on the "expired" field. -func ExpiredGTE(v time.Time) predicate.Card { - return predicate.Card( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldExpired), v)) - }, - ) -} - -// ExpiredLT applies the LT predicate on the "expired" field. -func ExpiredLT(v time.Time) predicate.Card { - return predicate.Card( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldExpired), v)) - }, - ) -} - -// ExpiredLTE applies the LTE predicate on the "expired" field. -func ExpiredLTE(v time.Time) predicate.Card { - return predicate.Card( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldExpired), v)) - }, - ) -} - // ExpiredIn applies the In predicate on the "expired" field. func ExpiredIn(vs ...time.Time) predicate.Card { v := make([]interface{}, len(vs)) @@ -224,6 +188,42 @@ func ExpiredNotIn(vs ...time.Time) predicate.Card { ) } +// ExpiredGT applies the GT predicate on the "expired" field. +func ExpiredGT(v time.Time) predicate.Card { + return predicate.Card( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldExpired), v)) + }, + ) +} + +// ExpiredGTE applies the GTE predicate on the "expired" field. +func ExpiredGTE(v time.Time) predicate.Card { + return predicate.Card( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldExpired), v)) + }, + ) +} + +// ExpiredLT applies the LT predicate on the "expired" field. +func ExpiredLT(v time.Time) predicate.Card { + return predicate.Card( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldExpired), v)) + }, + ) +} + +// ExpiredLTE applies the LTE predicate on the "expired" field. +func ExpiredLTE(v time.Time) predicate.Card { + return predicate.Card( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldExpired), v)) + }, + ) +} + // NumberEQ applies the EQ predicate on the "number" field. func NumberEQ(v string) predicate.Card { return predicate.Card( @@ -242,42 +242,6 @@ func NumberNEQ(v string) predicate.Card { ) } -// NumberGT applies the GT predicate on the "number" field. -func NumberGT(v string) predicate.Card { - return predicate.Card( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldNumber), v)) - }, - ) -} - -// NumberGTE applies the GTE predicate on the "number" field. -func NumberGTE(v string) predicate.Card { - return predicate.Card( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldNumber), v)) - }, - ) -} - -// NumberLT applies the LT predicate on the "number" field. -func NumberLT(v string) predicate.Card { - return predicate.Card( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldNumber), v)) - }, - ) -} - -// NumberLTE applies the LTE predicate on the "number" field. -func NumberLTE(v string) predicate.Card { - return predicate.Card( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldNumber), v)) - }, - ) -} - // NumberIn applies the In predicate on the "number" field. func NumberIn(vs ...string) predicate.Card { v := make([]interface{}, len(vs)) @@ -316,6 +280,42 @@ func NumberNotIn(vs ...string) predicate.Card { ) } +// NumberGT applies the GT predicate on the "number" field. +func NumberGT(v string) predicate.Card { + return predicate.Card( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldNumber), v)) + }, + ) +} + +// NumberGTE applies the GTE predicate on the "number" field. +func NumberGTE(v string) predicate.Card { + return predicate.Card( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldNumber), v)) + }, + ) +} + +// NumberLT applies the LT predicate on the "number" field. +func NumberLT(v string) predicate.Card { + return predicate.Card( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldNumber), v)) + }, + ) +} + +// NumberLTE applies the LTE predicate on the "number" field. +func NumberLTE(v string) predicate.Card { + return predicate.Card( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldNumber), v)) + }, + ) +} + // NumberContains applies the Contains predicate on the "number" field. func NumberContains(v string) predicate.Card { return predicate.Card( diff --git a/examples/o2o2types/ent/card_query.go b/examples/o2o2types/ent/card_query.go index 5f93021f1..7350844d2 100644 --- a/examples/o2o2types/ent/card_query.go +++ b/examples/o2o2types/ent/card_query.go @@ -351,7 +351,7 @@ func (cq *CardQuery) sqlQuery() *sql.Selector { if offset := cq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := cq.limit; limit != nil { selector.Limit(*limit) diff --git a/examples/o2o2types/ent/user/where.go b/examples/o2o2types/ent/user/where.go index b080c472c..9557167fa 100644 --- a/examples/o2o2types/ent/user/where.go +++ b/examples/o2o2types/ent/user/where.go @@ -38,42 +38,6 @@ func IDNEQ(id int) predicate.User { ) } -// IDGT applies the GT predicate on the ID field. -func IDGT(id int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldID), id)) - }, - ) -} - -// IDGTE applies the GTE predicate on the ID field. -func IDGTE(id int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldID), id)) - }, - ) -} - -// IDLT applies the LT predicate on the ID field. -func IDLT(id int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldID), id)) - }, - ) -} - -// IDLTE applies the LTE predicate on the ID field. -func IDLTE(id int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldID), id)) - }, - ) -} - // IDIn applies the In predicate on the ID field. func IDIn(ids ...int) predicate.User { return predicate.User( @@ -112,6 +76,42 @@ func IDNotIn(ids ...int) predicate.User { ) } +// IDGT applies the GT predicate on the ID field. +func IDGT(id int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldID), id)) + }, + ) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldID), id)) + }, + ) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldID), id)) + }, + ) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldID), id)) + }, + ) +} + // Age applies equality check predicate on the "age" field. It's identical to AgeEQ. func Age(v int) predicate.User { return predicate.User( @@ -148,42 +148,6 @@ func AgeNEQ(v int) predicate.User { ) } -// AgeGT applies the GT predicate on the "age" field. -func AgeGT(v int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldAge), v)) - }, - ) -} - -// AgeGTE applies the GTE predicate on the "age" field. -func AgeGTE(v int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldAge), v)) - }, - ) -} - -// AgeLT applies the LT predicate on the "age" field. -func AgeLT(v int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldAge), v)) - }, - ) -} - -// AgeLTE applies the LTE predicate on the "age" field. -func AgeLTE(v int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldAge), v)) - }, - ) -} - // AgeIn applies the In predicate on the "age" field. func AgeIn(vs ...int) predicate.User { v := make([]interface{}, len(vs)) @@ -222,6 +186,42 @@ func AgeNotIn(vs ...int) predicate.User { ) } +// AgeGT applies the GT predicate on the "age" field. +func AgeGT(v int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldAge), v)) + }, + ) +} + +// AgeGTE applies the GTE predicate on the "age" field. +func AgeGTE(v int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldAge), v)) + }, + ) +} + +// AgeLT applies the LT predicate on the "age" field. +func AgeLT(v int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldAge), v)) + }, + ) +} + +// AgeLTE applies the LTE predicate on the "age" field. +func AgeLTE(v int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldAge), v)) + }, + ) +} + // NameEQ applies the EQ predicate on the "name" field. func NameEQ(v string) predicate.User { return predicate.User( @@ -240,42 +240,6 @@ func NameNEQ(v string) predicate.User { ) } -// NameGT applies the GT predicate on the "name" field. -func NameGT(v string) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldName), v)) - }, - ) -} - -// NameGTE applies the GTE predicate on the "name" field. -func NameGTE(v string) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldName), v)) - }, - ) -} - -// NameLT applies the LT predicate on the "name" field. -func NameLT(v string) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldName), v)) - }, - ) -} - -// NameLTE applies the LTE predicate on the "name" field. -func NameLTE(v string) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldName), v)) - }, - ) -} - // NameIn applies the In predicate on the "name" field. func NameIn(vs ...string) predicate.User { v := make([]interface{}, len(vs)) @@ -314,6 +278,42 @@ func NameNotIn(vs ...string) predicate.User { ) } +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldName), v)) + }, + ) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldName), v)) + }, + ) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldName), v)) + }, + ) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldName), v)) + }, + ) +} + // NameContains applies the Contains predicate on the "name" field. func NameContains(v string) predicate.User { return predicate.User( diff --git a/examples/o2o2types/ent/user_query.go b/examples/o2o2types/ent/user_query.go index c8cd4e6e9..60c4c5d0d 100644 --- a/examples/o2o2types/ent/user_query.go +++ b/examples/o2o2types/ent/user_query.go @@ -351,7 +351,7 @@ func (uq *UserQuery) sqlQuery() *sql.Selector { if offset := uq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := uq.limit; limit != nil { selector.Limit(*limit) diff --git a/examples/o2obidi/ent/user/where.go b/examples/o2obidi/ent/user/where.go index 0d1322f08..f292eee12 100644 --- a/examples/o2obidi/ent/user/where.go +++ b/examples/o2obidi/ent/user/where.go @@ -38,42 +38,6 @@ func IDNEQ(id int) predicate.User { ) } -// IDGT applies the GT predicate on the ID field. -func IDGT(id int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldID), id)) - }, - ) -} - -// IDGTE applies the GTE predicate on the ID field. -func IDGTE(id int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldID), id)) - }, - ) -} - -// IDLT applies the LT predicate on the ID field. -func IDLT(id int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldID), id)) - }, - ) -} - -// IDLTE applies the LTE predicate on the ID field. -func IDLTE(id int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldID), id)) - }, - ) -} - // IDIn applies the In predicate on the ID field. func IDIn(ids ...int) predicate.User { return predicate.User( @@ -112,6 +76,42 @@ func IDNotIn(ids ...int) predicate.User { ) } +// IDGT applies the GT predicate on the ID field. +func IDGT(id int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldID), id)) + }, + ) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldID), id)) + }, + ) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldID), id)) + }, + ) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldID), id)) + }, + ) +} + // Age applies equality check predicate on the "age" field. It's identical to AgeEQ. func Age(v int) predicate.User { return predicate.User( @@ -148,42 +148,6 @@ func AgeNEQ(v int) predicate.User { ) } -// AgeGT applies the GT predicate on the "age" field. -func AgeGT(v int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldAge), v)) - }, - ) -} - -// AgeGTE applies the GTE predicate on the "age" field. -func AgeGTE(v int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldAge), v)) - }, - ) -} - -// AgeLT applies the LT predicate on the "age" field. -func AgeLT(v int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldAge), v)) - }, - ) -} - -// AgeLTE applies the LTE predicate on the "age" field. -func AgeLTE(v int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldAge), v)) - }, - ) -} - // AgeIn applies the In predicate on the "age" field. func AgeIn(vs ...int) predicate.User { v := make([]interface{}, len(vs)) @@ -222,6 +186,42 @@ func AgeNotIn(vs ...int) predicate.User { ) } +// AgeGT applies the GT predicate on the "age" field. +func AgeGT(v int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldAge), v)) + }, + ) +} + +// AgeGTE applies the GTE predicate on the "age" field. +func AgeGTE(v int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldAge), v)) + }, + ) +} + +// AgeLT applies the LT predicate on the "age" field. +func AgeLT(v int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldAge), v)) + }, + ) +} + +// AgeLTE applies the LTE predicate on the "age" field. +func AgeLTE(v int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldAge), v)) + }, + ) +} + // NameEQ applies the EQ predicate on the "name" field. func NameEQ(v string) predicate.User { return predicate.User( @@ -240,42 +240,6 @@ func NameNEQ(v string) predicate.User { ) } -// NameGT applies the GT predicate on the "name" field. -func NameGT(v string) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldName), v)) - }, - ) -} - -// NameGTE applies the GTE predicate on the "name" field. -func NameGTE(v string) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldName), v)) - }, - ) -} - -// NameLT applies the LT predicate on the "name" field. -func NameLT(v string) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldName), v)) - }, - ) -} - -// NameLTE applies the LTE predicate on the "name" field. -func NameLTE(v string) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldName), v)) - }, - ) -} - // NameIn applies the In predicate on the "name" field. func NameIn(vs ...string) predicate.User { v := make([]interface{}, len(vs)) @@ -314,6 +278,42 @@ func NameNotIn(vs ...string) predicate.User { ) } +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldName), v)) + }, + ) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldName), v)) + }, + ) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldName), v)) + }, + ) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldName), v)) + }, + ) +} + // NameContains applies the Contains predicate on the "name" field. func NameContains(v string) predicate.User { return predicate.User( diff --git a/examples/o2obidi/ent/user_query.go b/examples/o2obidi/ent/user_query.go index 8cef728c4..a61503d97 100644 --- a/examples/o2obidi/ent/user_query.go +++ b/examples/o2obidi/ent/user_query.go @@ -350,7 +350,7 @@ func (uq *UserQuery) sqlQuery() *sql.Selector { if offset := uq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := uq.limit; limit != nil { selector.Limit(*limit) diff --git a/examples/o2orecur/ent/node/where.go b/examples/o2orecur/ent/node/where.go index 7b1acb6f3..ee4f656ac 100644 --- a/examples/o2orecur/ent/node/where.go +++ b/examples/o2orecur/ent/node/where.go @@ -38,42 +38,6 @@ func IDNEQ(id int) predicate.Node { ) } -// IDGT applies the GT predicate on the ID field. -func IDGT(id int) predicate.Node { - return predicate.Node( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldID), id)) - }, - ) -} - -// IDGTE applies the GTE predicate on the ID field. -func IDGTE(id int) predicate.Node { - return predicate.Node( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldID), id)) - }, - ) -} - -// IDLT applies the LT predicate on the ID field. -func IDLT(id int) predicate.Node { - return predicate.Node( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldID), id)) - }, - ) -} - -// IDLTE applies the LTE predicate on the ID field. -func IDLTE(id int) predicate.Node { - return predicate.Node( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldID), id)) - }, - ) -} - // IDIn applies the In predicate on the ID field. func IDIn(ids ...int) predicate.Node { return predicate.Node( @@ -112,6 +76,42 @@ func IDNotIn(ids ...int) predicate.Node { ) } +// IDGT applies the GT predicate on the ID field. +func IDGT(id int) predicate.Node { + return predicate.Node( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldID), id)) + }, + ) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id int) predicate.Node { + return predicate.Node( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldID), id)) + }, + ) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id int) predicate.Node { + return predicate.Node( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldID), id)) + }, + ) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id int) predicate.Node { + return predicate.Node( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldID), id)) + }, + ) +} + // Value applies equality check predicate on the "value" field. It's identical to ValueEQ. func Value(v int) predicate.Node { return predicate.Node( @@ -139,42 +139,6 @@ func ValueNEQ(v int) predicate.Node { ) } -// ValueGT applies the GT predicate on the "value" field. -func ValueGT(v int) predicate.Node { - return predicate.Node( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldValue), v)) - }, - ) -} - -// ValueGTE applies the GTE predicate on the "value" field. -func ValueGTE(v int) predicate.Node { - return predicate.Node( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldValue), v)) - }, - ) -} - -// ValueLT applies the LT predicate on the "value" field. -func ValueLT(v int) predicate.Node { - return predicate.Node( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldValue), v)) - }, - ) -} - -// ValueLTE applies the LTE predicate on the "value" field. -func ValueLTE(v int) predicate.Node { - return predicate.Node( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldValue), v)) - }, - ) -} - // ValueIn applies the In predicate on the "value" field. func ValueIn(vs ...int) predicate.Node { v := make([]interface{}, len(vs)) @@ -213,6 +177,42 @@ func ValueNotIn(vs ...int) predicate.Node { ) } +// ValueGT applies the GT predicate on the "value" field. +func ValueGT(v int) predicate.Node { + return predicate.Node( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldValue), v)) + }, + ) +} + +// ValueGTE applies the GTE predicate on the "value" field. +func ValueGTE(v int) predicate.Node { + return predicate.Node( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldValue), v)) + }, + ) +} + +// ValueLT applies the LT predicate on the "value" field. +func ValueLT(v int) predicate.Node { + return predicate.Node( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldValue), v)) + }, + ) +} + +// ValueLTE applies the LTE predicate on the "value" field. +func ValueLTE(v int) predicate.Node { + return predicate.Node( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldValue), v)) + }, + ) +} + // HasPrev applies the HasEdge predicate on the "prev" edge. func HasPrev() predicate.Node { return predicate.Node( diff --git a/examples/o2orecur/ent/node_query.go b/examples/o2orecur/ent/node_query.go index cecc648e2..11606c3ce 100644 --- a/examples/o2orecur/ent/node_query.go +++ b/examples/o2orecur/ent/node_query.go @@ -363,7 +363,7 @@ func (nq *NodeQuery) sqlQuery() *sql.Selector { if offset := nq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := nq.limit; limit != nil { selector.Limit(*limit) diff --git a/examples/start/ent/car_query.go b/examples/start/ent/car_query.go index 2065c898b..ce228f7c2 100644 --- a/examples/start/ent/car_query.go +++ b/examples/start/ent/car_query.go @@ -351,7 +351,7 @@ func (cq *CarQuery) sqlQuery() *sql.Selector { if offset := cq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := cq.limit; limit != nil { selector.Limit(*limit) diff --git a/examples/start/ent/group_query.go b/examples/start/ent/group_query.go index 32f27d919..abc35f364 100644 --- a/examples/start/ent/group_query.go +++ b/examples/start/ent/group_query.go @@ -356,7 +356,7 @@ func (gq *GroupQuery) sqlQuery() *sql.Selector { if offset := gq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := gq.limit; limit != nil { selector.Limit(*limit) diff --git a/examples/start/ent/user_query.go b/examples/start/ent/user_query.go index 3c80eca6c..250ce0a22 100644 --- a/examples/start/ent/user_query.go +++ b/examples/start/ent/user_query.go @@ -370,7 +370,7 @@ func (uq *UserQuery) sqlQuery() *sql.Selector { if offset := uq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := uq.limit; limit != nil { selector.Limit(*limit) diff --git a/examples/traversal/ent/group/where.go b/examples/traversal/ent/group/where.go index 7ae5829a0..fc9f13068 100644 --- a/examples/traversal/ent/group/where.go +++ b/examples/traversal/ent/group/where.go @@ -38,42 +38,6 @@ func IDNEQ(id int) predicate.Group { ) } -// IDGT applies the GT predicate on the ID field. -func IDGT(id int) predicate.Group { - return predicate.Group( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldID), id)) - }, - ) -} - -// IDGTE applies the GTE predicate on the ID field. -func IDGTE(id int) predicate.Group { - return predicate.Group( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldID), id)) - }, - ) -} - -// IDLT applies the LT predicate on the ID field. -func IDLT(id int) predicate.Group { - return predicate.Group( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldID), id)) - }, - ) -} - -// IDLTE applies the LTE predicate on the ID field. -func IDLTE(id int) predicate.Group { - return predicate.Group( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldID), id)) - }, - ) -} - // IDIn applies the In predicate on the ID field. func IDIn(ids ...int) predicate.Group { return predicate.Group( @@ -112,6 +76,42 @@ func IDNotIn(ids ...int) predicate.Group { ) } +// IDGT applies the GT predicate on the ID field. +func IDGT(id int) predicate.Group { + return predicate.Group( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldID), id)) + }, + ) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id int) predicate.Group { + return predicate.Group( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldID), id)) + }, + ) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id int) predicate.Group { + return predicate.Group( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldID), id)) + }, + ) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id int) predicate.Group { + return predicate.Group( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldID), id)) + }, + ) +} + // Name applies equality check predicate on the "name" field. It's identical to NameEQ. func Name(v string) predicate.Group { return predicate.Group( @@ -139,42 +139,6 @@ func NameNEQ(v string) predicate.Group { ) } -// NameGT applies the GT predicate on the "name" field. -func NameGT(v string) predicate.Group { - return predicate.Group( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldName), v)) - }, - ) -} - -// NameGTE applies the GTE predicate on the "name" field. -func NameGTE(v string) predicate.Group { - return predicate.Group( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldName), v)) - }, - ) -} - -// NameLT applies the LT predicate on the "name" field. -func NameLT(v string) predicate.Group { - return predicate.Group( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldName), v)) - }, - ) -} - -// NameLTE applies the LTE predicate on the "name" field. -func NameLTE(v string) predicate.Group { - return predicate.Group( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldName), v)) - }, - ) -} - // NameIn applies the In predicate on the "name" field. func NameIn(vs ...string) predicate.Group { v := make([]interface{}, len(vs)) @@ -213,6 +177,42 @@ func NameNotIn(vs ...string) predicate.Group { ) } +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.Group { + return predicate.Group( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldName), v)) + }, + ) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.Group { + return predicate.Group( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldName), v)) + }, + ) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.Group { + return predicate.Group( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldName), v)) + }, + ) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.Group { + return predicate.Group( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldName), v)) + }, + ) +} + // NameContains applies the Contains predicate on the "name" field. func NameContains(v string) predicate.Group { return predicate.Group( diff --git a/examples/traversal/ent/group_query.go b/examples/traversal/ent/group_query.go index c1327fb43..6f1c8c60b 100644 --- a/examples/traversal/ent/group_query.go +++ b/examples/traversal/ent/group_query.go @@ -369,7 +369,7 @@ func (gq *GroupQuery) sqlQuery() *sql.Selector { if offset := gq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := gq.limit; limit != nil { selector.Limit(*limit) diff --git a/examples/traversal/ent/pet/where.go b/examples/traversal/ent/pet/where.go index e1e3b6b64..2cd6f33cc 100644 --- a/examples/traversal/ent/pet/where.go +++ b/examples/traversal/ent/pet/where.go @@ -38,42 +38,6 @@ func IDNEQ(id int) predicate.Pet { ) } -// IDGT applies the GT predicate on the ID field. -func IDGT(id int) predicate.Pet { - return predicate.Pet( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldID), id)) - }, - ) -} - -// IDGTE applies the GTE predicate on the ID field. -func IDGTE(id int) predicate.Pet { - return predicate.Pet( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldID), id)) - }, - ) -} - -// IDLT applies the LT predicate on the ID field. -func IDLT(id int) predicate.Pet { - return predicate.Pet( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldID), id)) - }, - ) -} - -// IDLTE applies the LTE predicate on the ID field. -func IDLTE(id int) predicate.Pet { - return predicate.Pet( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldID), id)) - }, - ) -} - // IDIn applies the In predicate on the ID field. func IDIn(ids ...int) predicate.Pet { return predicate.Pet( @@ -112,6 +76,42 @@ func IDNotIn(ids ...int) predicate.Pet { ) } +// IDGT applies the GT predicate on the ID field. +func IDGT(id int) predicate.Pet { + return predicate.Pet( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldID), id)) + }, + ) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id int) predicate.Pet { + return predicate.Pet( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldID), id)) + }, + ) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id int) predicate.Pet { + return predicate.Pet( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldID), id)) + }, + ) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id int) predicate.Pet { + return predicate.Pet( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldID), id)) + }, + ) +} + // Name applies equality check predicate on the "name" field. It's identical to NameEQ. func Name(v string) predicate.Pet { return predicate.Pet( @@ -139,42 +139,6 @@ func NameNEQ(v string) predicate.Pet { ) } -// NameGT applies the GT predicate on the "name" field. -func NameGT(v string) predicate.Pet { - return predicate.Pet( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldName), v)) - }, - ) -} - -// NameGTE applies the GTE predicate on the "name" field. -func NameGTE(v string) predicate.Pet { - return predicate.Pet( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldName), v)) - }, - ) -} - -// NameLT applies the LT predicate on the "name" field. -func NameLT(v string) predicate.Pet { - return predicate.Pet( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldName), v)) - }, - ) -} - -// NameLTE applies the LTE predicate on the "name" field. -func NameLTE(v string) predicate.Pet { - return predicate.Pet( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldName), v)) - }, - ) -} - // NameIn applies the In predicate on the "name" field. func NameIn(vs ...string) predicate.Pet { v := make([]interface{}, len(vs)) @@ -213,6 +177,42 @@ func NameNotIn(vs ...string) predicate.Pet { ) } +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.Pet { + return predicate.Pet( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldName), v)) + }, + ) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.Pet { + return predicate.Pet( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldName), v)) + }, + ) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.Pet { + return predicate.Pet( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldName), v)) + }, + ) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.Pet { + return predicate.Pet( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldName), v)) + }, + ) +} + // NameContains applies the Contains predicate on the "name" field. func NameContains(v string) predicate.Pet { return predicate.Pet( diff --git a/examples/traversal/ent/pet_query.go b/examples/traversal/ent/pet_query.go index 30959241e..78deb5713 100644 --- a/examples/traversal/ent/pet_query.go +++ b/examples/traversal/ent/pet_query.go @@ -369,7 +369,7 @@ func (pq *PetQuery) sqlQuery() *sql.Selector { if offset := pq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := pq.limit; limit != nil { selector.Limit(*limit) diff --git a/examples/traversal/ent/user/where.go b/examples/traversal/ent/user/where.go index 57f9fbe89..407a90c9c 100644 --- a/examples/traversal/ent/user/where.go +++ b/examples/traversal/ent/user/where.go @@ -38,42 +38,6 @@ func IDNEQ(id int) predicate.User { ) } -// IDGT applies the GT predicate on the ID field. -func IDGT(id int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldID), id)) - }, - ) -} - -// IDGTE applies the GTE predicate on the ID field. -func IDGTE(id int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldID), id)) - }, - ) -} - -// IDLT applies the LT predicate on the ID field. -func IDLT(id int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldID), id)) - }, - ) -} - -// IDLTE applies the LTE predicate on the ID field. -func IDLTE(id int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldID), id)) - }, - ) -} - // IDIn applies the In predicate on the ID field. func IDIn(ids ...int) predicate.User { return predicate.User( @@ -112,6 +76,42 @@ func IDNotIn(ids ...int) predicate.User { ) } +// IDGT applies the GT predicate on the ID field. +func IDGT(id int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldID), id)) + }, + ) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldID), id)) + }, + ) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldID), id)) + }, + ) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldID), id)) + }, + ) +} + // Age applies equality check predicate on the "age" field. It's identical to AgeEQ. func Age(v int) predicate.User { return predicate.User( @@ -148,42 +148,6 @@ func AgeNEQ(v int) predicate.User { ) } -// AgeGT applies the GT predicate on the "age" field. -func AgeGT(v int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldAge), v)) - }, - ) -} - -// AgeGTE applies the GTE predicate on the "age" field. -func AgeGTE(v int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldAge), v)) - }, - ) -} - -// AgeLT applies the LT predicate on the "age" field. -func AgeLT(v int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldAge), v)) - }, - ) -} - -// AgeLTE applies the LTE predicate on the "age" field. -func AgeLTE(v int) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldAge), v)) - }, - ) -} - // AgeIn applies the In predicate on the "age" field. func AgeIn(vs ...int) predicate.User { v := make([]interface{}, len(vs)) @@ -222,6 +186,42 @@ func AgeNotIn(vs ...int) predicate.User { ) } +// AgeGT applies the GT predicate on the "age" field. +func AgeGT(v int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldAge), v)) + }, + ) +} + +// AgeGTE applies the GTE predicate on the "age" field. +func AgeGTE(v int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldAge), v)) + }, + ) +} + +// AgeLT applies the LT predicate on the "age" field. +func AgeLT(v int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldAge), v)) + }, + ) +} + +// AgeLTE applies the LTE predicate on the "age" field. +func AgeLTE(v int) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldAge), v)) + }, + ) +} + // NameEQ applies the EQ predicate on the "name" field. func NameEQ(v string) predicate.User { return predicate.User( @@ -240,42 +240,6 @@ func NameNEQ(v string) predicate.User { ) } -// NameGT applies the GT predicate on the "name" field. -func NameGT(v string) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GT(s.C(FieldName), v)) - }, - ) -} - -// NameGTE applies the GTE predicate on the "name" field. -func NameGTE(v string) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.GTE(s.C(FieldName), v)) - }, - ) -} - -// NameLT applies the LT predicate on the "name" field. -func NameLT(v string) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LT(s.C(FieldName), v)) - }, - ) -} - -// NameLTE applies the LTE predicate on the "name" field. -func NameLTE(v string) predicate.User { - return predicate.User( - func(s *sql.Selector) { - s.Where(sql.LTE(s.C(FieldName), v)) - }, - ) -} - // NameIn applies the In predicate on the "name" field. func NameIn(vs ...string) predicate.User { v := make([]interface{}, len(vs)) @@ -314,6 +278,42 @@ func NameNotIn(vs ...string) predicate.User { ) } +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GT(s.C(FieldName), v)) + }, + ) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.GTE(s.C(FieldName), v)) + }, + ) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LT(s.C(FieldName), v)) + }, + ) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.User { + return predicate.User( + func(s *sql.Selector) { + s.Where(sql.LTE(s.C(FieldName), v)) + }, + ) +} + // NameContains applies the Contains predicate on the "name" field. func NameContains(v string) predicate.User { return predicate.User( diff --git a/examples/traversal/ent/user_query.go b/examples/traversal/ent/user_query.go index 6a445ec50..d6b6c8be0 100644 --- a/examples/traversal/ent/user_query.go +++ b/examples/traversal/ent/user_query.go @@ -401,7 +401,7 @@ func (uq *UserQuery) sqlQuery() *sql.Selector { if offset := uq.offset; offset != nil { // limit is mandatory for offset clause. We start // with default value, and override it below if needed. - selector.Offset(*offset).Limit(math.MaxInt64) + selector.Offset(*offset).Limit(math.MaxInt32) } if limit := uq.limit; limit != nil { selector.Limit(*limit)