Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for INT64 (0.01 sec)

  1. schema/serializer_test.go

    			want:    time.Unix(int64(int32Value), 0).UTC(),
    			wantErr: false,
    		},
    		{
    			name:    "int64",
    			value:   int64Value,
    			want:    time.Unix(int64Value, 0).UTC(),
    			wantErr: false,
    		},
    		{
    			name:    "uint",
    			value:   uintValue,
    			want:    time.Unix(int64(uintValue), 0).UTC(), //nolint:gosec
    			wantErr: false,
    		},
    		{
    			name:    "uint8",
    			value:   uint8Value,
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun Oct 26 12:29:44 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  2. schema/field.go

    			case int32:
    				field.ReflectValueOf(ctx, value).SetInt(int64(data))
    			case uint:
    				field.ReflectValueOf(ctx, value).SetInt(int64(data))
    			case uint8:
    				field.ReflectValueOf(ctx, value).SetInt(int64(data))
    			case uint16:
    				field.ReflectValueOf(ctx, value).SetInt(int64(data))
    			case uint32:
    				field.ReflectValueOf(ctx, value).SetInt(int64(data))
    			case uint64:
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sat Nov 22 03:14:36 UTC 2025
    - 32.2K bytes
    - Viewed (0)
  3. utils/utils.go

    	switch v := value.(type) {
    	case string:
    		return v
    	case int:
    		return strconv.FormatInt(int64(v), 10)
    	case int8:
    		return strconv.FormatInt(int64(v), 10)
    	case int16:
    		return strconv.FormatInt(int64(v), 10)
    	case int32:
    		return strconv.FormatInt(int64(v), 10)
    	case int64:
    		return strconv.FormatInt(v, 10)
    	case uint:
    		return strconv.FormatUint(uint64(v), 10)
    	case uint8:
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Thu Oct 30 10:56:26 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  4. schema/serializer.go

    	switch fieldValue.(type) {
    	case int, int8, int16, int32, int64:
    		result = time.Unix(rv.Int(), 0).UTC()
    	case uint, uint8, uint16, uint32, uint64:
    		if uv := rv.Uint(); uv > math.MaxInt64 {
    			err = fmt.Errorf("integer overflow conversion uint64(%d) -> int64", uv)
    		} else {
    			result = time.Unix(int64(uv), 0).UTC() //nolint:gosec
    		}
    	case *int, *int8, *int16, *int32, *int64:
    		if rv.IsZero() {
    			return nil, nil
    		}
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun Oct 26 12:29:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  5. cmd/postpolicyform.go

    }
    
    // toInteger _ Safely convert interface to integer without causing panic.
    func toInteger(val any) (int64, error) {
    	switch v := val.(type) {
    	case float64:
    		return int64(v), nil
    	case int64:
    		return v, nil
    	case int:
    		return int64(v), nil
    	case string:
    		i, err := strconv.Atoi(v)
    		return int64(i), err
    	default:
    		return 0, errors.New("Invalid number format")
    	}
    }
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Thu Oct 23 15:10:12 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  6. cmd/erasure-object-conditional_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Put an initial object so it exists
    	_, err = obj.PutObject(ctx, bucket, object,
    		mustGetPutObjReader(t, bytes.NewReader([]byte("initial-value")),
    			int64(len("initial-value")), "", ""), ObjectOptions{})
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Get object info to capture the ETag
    	objInfo, err := obj.GetObjectInfo(ctx, bucket, object, ObjectOptions{})
    	if err != nil {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Oct 24 04:05:31 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  7. tests/serializer_test.go

    	JobInfo                Job                    `gorm:"type:bytes;serializer:gob"`
    	CreatedTime            int64                  `gorm:"serializer:unixtime;type:datetime"` // store time in db, use int as field type
    	UpdatedTime            *int64                 `gorm:"serializer:unixtime;type:datetime"` // store time in db, use int as field type
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sat Nov 22 03:14:36 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  8. cmd/erasure-multipart-conditional_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Put an initial object so it exists
    	_, err = obj.PutObject(ctx, bucket, object,
    		mustGetPutObjReader(t, bytes.NewReader([]byte("initial-value")),
    			int64(len("initial-value")), "", ""), ObjectOptions{})
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Get object info to capture the ETag
    	objInfo, err := obj.GetObjectInfo(ctx, bucket, object, ObjectOptions{})
    	if err != nil {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Oct 24 04:05:31 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  9. logger/slog.go

    	if l.LogLevel <= Silent {
    		return
    	}
    
    	elapsed := time.Since(begin)
    	sql, rows := fc()
    	fields := []slog.Attr{
    		slog.String("duration", fmt.Sprintf("%.3fms", float64(elapsed.Nanoseconds())/1e6)),
    		slog.String("sql", sql),
    	}
    
    	if rows != -1 {
    		fields = append(fields, slog.Int64("rows", rows))
    	}
    
    	switch {
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Thu Oct 30 10:56:26 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  10. logger/slog_test.go

    	handler := slog.NewTextHandler(buf, &slog.HandlerOptions{AddSource: true})
    	logger := NewSlogLogger(slog.New(handler), Config{LogLevel: Info})
    
    	logger.Trace(context.Background(), time.Now(), func() (string, int64) {
    		return "select count(*) from users", 0
    	}, nil)
    
    	if strings.Contains(buf.String(), "gorm/logger/slog.go") {
    		t.Error("Found internal slog.go reference in caller frame. Expected only test file references.")
    	}
    
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Thu Oct 30 10:56:26 UTC 2025
    - 782 bytes
    - Viewed (0)
Back to top