Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for male (0.16 sec)

  1. tests/scanner_valuer_test.go

    	}
    
    	data := ScannerValuerStruct{
    		Name:     sql.NullString{String: "name", Valid: true},
    		Gender:   &sql.NullString{String: "M", Valid: true},
    		Age:      sql.NullInt64{Int64: 18, Valid: true},
    		Male:     sql.NullBool{Bool: true, Valid: true},
    		Height:   sql.NullFloat64{Float64: 1.8888, Valid: true},
    		Birthday: sql.NullTime{Time: time.Now(), Valid: true},
    		Allergen: NullString{sql.NullString{String: "Allergen", Valid: true}},
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Jun 07 07:02:07 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  2. scan.go

    				values[idx] = reflectValue.Addr().Interface()
    			} else {
    				values[idx] = reflectValue.Interface()
    			}
    		}
    	}
    
    	db.RowsAffected++
    	db.AddError(rows.Scan(values...))
    	joinedNestedSchemaMap := make(map[string]interface{})
    	for idx, field := range fields {
    		if field == nil {
    			continue
    		}
    
    		if len(joinFields) == 0 || len(joinFields[idx]) == 0 {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 09:53:11 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  3. schema/constraint.go

    }
    
    // ParseUniqueConstraints parse schema unique constraints
    func (schema *Schema) ParseUniqueConstraints() map[string]UniqueConstraint {
    	uniques := make(map[string]UniqueConstraint)
    	for _, field := range schema.Fields {
    		if field.Unique {
    			name := schema.namer.UniqueName(schema.Table, field.DBName)
    			uniques[name] = UniqueConstraint{Name: name, Field: field}
    		}
    	}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 07:33:54 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  4. callbacks/helper_test.go

    func TestLoadOrStoreVisitMap(t *testing.T) {
    	var vm visitMap
    	var loaded bool
    	type testM struct {
    		Name string
    	}
    
    	t1 := testM{Name: "t1"}
    	t2 := testM{Name: "t2"}
    	t3 := testM{Name: "t3"}
    
    	vm = make(visitMap)
    	if loaded = loadOrStoreVisitMap(&vm, reflect.ValueOf(&t1)); loaded {
    		t.Fatalf("loaded should be false")
    	}
    
    	if loaded = loadOrStoreVisitMap(&vm, reflect.ValueOf(&t1)); !loaded {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Mar 05 02:22:57 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  5. callbacks.go

    		if idx := getRIndex(names, name); !cs[idx].remove {
    			fns = append(fns, cs[idx].handler)
    		}
    	}
    
    	return
    }
    
    func removeCallbacks(cs []*callback, nameMap map[string]bool) []*callback {
    	callbacks := make([]*callback, 0, len(cs))
    	for _, callback := range cs {
    		if nameMap[callback.name] {
    			continue
    		}
    		callbacks = append(callbacks, callback)
    	}
    	return callbacks
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Mar 26 03:33:36 GMT 2024
    - 8.6K bytes
    - Viewed (1)
  6. tests/count_test.go

    		t.Fatalf("Count should be 3, but got count: %v err %v", count10, err)
    	}
    
    	var count11 int64
    	sameUsers := make([]*User, 0)
    	for i := 0; i < 3; i++ {
    		sameUsers = append(sameUsers, GetUser("count-4", Config{}))
    	}
    	DB.Create(sameUsers)
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Oct 30 09:15:49 GMT 2023
    - 6.9K bytes
    - Viewed (0)
  7. callbacks/query.go

    				clauseSelect.Columns = make([]clause.Column, len(db.Statement.Schema.DBNames))
    				for idx, dbName := range db.Statement.Schema.DBNames {
    					clauseSelect.Columns[idx] = clause.Column{Table: db.Statement.Table, Name: dbName}
    				}
    			}
    
    			specifiedRelationsName := make(map[string]interface{})
    			for _, join := range db.Statement.Joins {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Jan 29 03:34:57 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  8. clause/expression.go

    	Vars []interface{}
    }
    
    // Build build raw expression
    func (expr NamedExpr) Build(builder Builder) {
    	var (
    		idx              int
    		inName           bool
    		afterParenthesis bool
    		namedMap         = make(map[string]interface{}, len(expr.Vars))
    	)
    
    	for _, v := range expr.Vars {
    		switch value := v.(type) {
    		case sql.NamedArg:
    			namedMap[value.Name] = value.Value
    		case map[string]interface{}:
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Oct 10 06:45:48 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  9. utils/utils.go

    	for _, val := range vals {
    		if val != "" && !strings.EqualFold(val, "false") {
    			return true
    		}
    	}
    	return false
    }
    
    func ToStringKey(values ...interface{}) string {
    	results := make([]string, len(values))
    
    	for idx, value := range values {
    		if valuer, ok := value.(driver.Valuer); ok {
    			value, _ = valuer.Value()
    		}
    
    		switch v := value.(type) {
    		case string:
    			results[idx] = v
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 22 06:43:02 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  10. logger/sql.go

    func ExplainSQL(sql string, numericPlaceholder *regexp.Regexp, escaper string, avars ...interface{}) string {
    	var (
    		convertParams func(interface{}, int)
    		vars          = make([]string, len(avars))
    	)
    
    	convertParams = func(v interface{}, idx int) {
    		switch v := v.(type) {
    		case bool:
    			vars[idx] = strconv.FormatBool(v)
    		case time.Time:
    			if v.IsZero() {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Mar 21 08:00:02 GMT 2024
    - 5K bytes
    - Viewed (0)
Back to top