Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for matchers (0.2 sec)

  1. tests/create_test.go

    }
    
    func TestCreateInBatches(t *testing.T) {
    	users := []User{
    		*GetUser("create_in_batches_1", Config{Account: true, Pets: 2, Toys: 3, Company: true, Manager: true, Team: 0, Languages: 1, Friends: 1}),
    		*GetUser("create_in_batches_2", Config{Account: false, Pets: 2, Toys: 4, Company: false, Manager: false, Team: 1, Languages: 3, Friends: 5}),
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Mar 19 03:50:28 GMT 2024
    - 26.4K bytes
    - Viewed (0)
  2. logger/sql.go

    		}
    	}
    	return true
    }
    
    // A list of Go types that should be converted to SQL primitives
    var convertibleTypes = []reflect.Type{reflect.TypeOf(time.Time{}), reflect.TypeOf(false), reflect.TypeOf([]byte{})}
    
    // RegEx matches only numeric values
    var numericPlaceholderRe = regexp.MustCompile(`\$\d+\$`)
    
    func isNumeric(k reflect.Kind) bool {
    	switch k {
    	case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
    		return true
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Mar 21 08:00:02 GMT 2024
    - 5K bytes
    - Viewed (0)
  3. migrator/migrator.go

    			} else {
    				// has size in data type and not equal
    				// Since the following code is frequently called in the for loop, reg optimization is needed here
    				matches2 := regFullDataType.FindAllStringSubmatch(fullDataType, -1)
    				if !field.PrimaryKey &&
    					(len(matches2) == 1 && matches2[0][1] != fmt.Sprint(length) && ok) {
    					alterColumn = true
    				}
    			}
    		}
    
    		// check precision
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
  4. tests/query_test.go

    		*GetUser("find_in_batches_with_offset_limit", Config{}),
    		*GetUser("find_in_batches_with_offset_limit", Config{}),
    		*GetUser("find_in_batches_with_offset_limit", Config{}),
    		*GetUser("find_in_batches_with_offset_limit", Config{}),
    		*GetUser("find_in_batches_with_offset_limit", Config{}),
    		*GetUser("find_in_batches_with_offset_limit", Config{}),
    	}
    
    	DB.Create(&users)
    
    	var (
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
  5. schema/relationship.go

    				matched := true
    				for idx, ref := range r.References {
    					if !(rel.References[idx].PrimaryKey == ref.PrimaryKey && rel.References[idx].ForeignKey == ref.ForeignKey &&
    						rel.References[idx].PrimaryValue == ref.PrimaryValue) {
    						matched = false
    					}
    				}
    
    				if matched {
    					return nil
    				}
    			}
    		}
    	}
    
    	var (
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 22.4K bytes
    - Viewed (0)
Back to top