Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for float64 (0.29 sec)

  1. logger/sql.go

    				vars[idx] = escaper + "<binary>" + escaper
    			}
    		case int, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64:
    			vars[idx] = utils.ToString(v)
    		case float32:
    			vars[idx] = strconv.FormatFloat(float64(v), 'f', -1, 32)
    		case float64:
    			vars[idx] = strconv.FormatFloat(v, 'f', -1, 64)
    		case string:
    			vars[idx] = escaper + strings.ReplaceAll(v, escaper, escaper+escaper) + escaper
    		default:
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Mar 21 08:00:02 GMT 2024
    - 5K bytes
    - Viewed (0)
  2. scan.go

    			scanIntoMap(mapValue, values, columns)
    			*dest = append(*dest, mapValue)
    		}
    	case *int, *int8, *int16, *int32, *int64,
    		*uint, *uint8, *uint16, *uint32, *uint64, *uintptr,
    		*float32, *float64,
    		*bool, *string, *time.Time,
    		*sql.NullInt32, *sql.NullInt64, *sql.NullFloat64,
    		*sql.NullBool, *sql.NullString, *sql.NullTime:
    		for initialized || rows.Next() {
    			initialized = false
    			db.RowsAffected++
    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. logger/sql_test.go

    			NumericRegexp: nil,
    			Vars:          []interface{}{"jinzhu?", 1, 999.99, true, []byte("12345"), tt, &tt, nil, "w@g.\"com", myrole, pwd, floatVal},
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Mar 21 08:00:02 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  4. tests/migrate_test.go

    		ID       uint
    		Name     string
    		Salary   float64
    		Birthday time.Time `gorm:"precision:4"`
    	}
    
    	DB.Migrator().DropTable(&UserMigrateColumn{})
    
    	DB.AutoMigrate(&UserMigrateColumn{})
    
    	type UserMigrateColumn2 struct {
    		ID                  uint
    		Name                string    `gorm:"size:128"`
    		Salary              float64   `gorm:"precision:2"`
    		Birthday            time.Time `gorm:"precision:2"`
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  5. callbacks/helper_test.go

    			input: map[string]interface{}{
    				"age": 18,
    			},
    			expect: clause.Values{
    				Columns: []clause.Column{{Name: "age"}},
    				Values:  [][]interface{}{{18}},
    			},
    		},
    		{
    			name: "Test convert float value",
    			input: map[string]interface{}{
    				"score": 99.5,
    			},
    			expect: clause.Values{
    				Columns: []clause.Column{{Name: "score"}},
    				Values:  [][]interface{}{{99.5}},
    			},
    		},
    		{
    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)
  6. schema/field.go

    				}
    			case float64:
    				field.ReflectValueOf(ctx, value).SetFloat(data)
    			case float32:
    				field.ReflectValueOf(ctx, value).SetFloat(float64(data))
    			case int64:
    				field.ReflectValueOf(ctx, value).SetFloat(float64(data))
    			case int:
    				field.ReflectValueOf(ctx, value).SetFloat(float64(data))
    			case int8:
    				field.ReflectValueOf(ctx, value).SetFloat(float64(data))
    			case int16:
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 32K bytes
    - Viewed (1)
  7. tests/query_test.go

    		ID      int
    		Name    string     `gorm:"default:NULL"`
    		Flag    bool       `gorm:"default:NULL"`
    		Number1 int64      `gorm:"default:NULL"`
    		Number2 uint64     `gorm:"default:NULL"`
    		Number3 float64    `gorm:"default:NULL"`
    		Now     *time.Time `gorm:"defalut:NULL"`
    		Item1Id string
    		Item1   *QueryResetItem `gorm:"references:ID"`
    		Item2Id string
    		Item2   *QueryResetItem `gorm:"references:ID"`
    	}
    
    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)
Back to top