Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for P256 (0.13 sec)

  1. tests/migrate_test.go

    				t.Fatalf("birthday's precision should be 2, but got %v", precision)
    			}
    		}
    	}
    
    	type UserMigrateColumn3 struct {
    		ID                  uint
    		Name                string    `gorm:"size:256"`
    		Salary              float64   `gorm:"precision:3"`
    		Birthday            time.Time `gorm:"precision:3"`
    		NameIgnoreMigration string    `gorm:"size:128;-:migration"`
    	}
    
    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)
  2. tests/scanner_valuer_test.go

    		return json.Unmarshal([]byte(value), l)
    	case []byte:
    		return json.Unmarshal(value, l)
    	default:
    		return errors.New("not supported")
    	}
    }
    
    type Role struct {
    	Name string `gorm:"size:256"`
    }
    
    func (role *Role) Scan(value interface{}) error {
    	if b, ok := value.([]uint8); ok {
    		role.Name = string(b)
    	} else {
    		role.Name = value.(string)
    	}
    	return nil
    }
    
    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)
  3. tests/associations_test.go

    	Pets []AssociationEmptyPet
    }
    
    type AssociationEmptyPet struct {
    	AssociationEmptyUserID *uint  `gorm:"uniqueIndex:uniq_user_id_name"`
    	Name                   string `gorm:"uniqueIndex:uniq_user_id_name;size:256"`
    }
    
    func TestAssociationEmptyPrimaryKey(t *testing.T) {
    	if DB.Dialector.Name() != "mysql" {
    		t.Skip()
    	}
    	DB.Migrator().DropTable(&AssociationEmptyUser{}, &AssociationEmptyPet{})
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Feb 08 08:29:09 GMT 2023
    - 10.9K bytes
    - Viewed (0)
Back to top