Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,062 for Person (0.19 sec)

  1. tests/joins_table_test.go

    	person := Person{Name: "person", Addresses: []Address{address1, address2}}
    	DB.Create(&person)
    
    	var addresses1 []Address
    	if err := DB.Model(&person).Association("Addresses").Find(&addresses1); err != nil || len(addresses1) != 2 {
    		t.Fatalf("Failed to find address, got error %v, length: %v", err, len(addresses1))
    	}
    
    	if err := DB.Model(&person).Association("Addresses").Delete(&person.Addresses[0]); err != nil {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Sep 10 13:46:18 GMT 2020
    - 3.5K bytes
    - Viewed (0)
  2. tests/scan_test.go

    func TestScanToEmbedded(t *testing.T) {
    	person1 := Person{Name: "person 1"}
    	person2 := Person{Name: "person 2"}
    	DB.Save(&person1).Save(&person2)
    
    	address1 := Address{Name: "address 1"}
    	address2 := Address{Name: "address 2"}
    	DB.Save(&address1).Save(&address2)
    
    	DB.Create(&PersonAddress{PersonID: person1.ID, AddressID: int(address1.ID)})
    	DB.Create(&PersonAddress{PersonID: person1.ID, AddressID: int(address2.ID)})
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Sat May 28 14:18:07 GMT 2022
    - 8.2K bytes
    - Viewed (0)
  3. schema/relationship_test.go

    func TestMultipleMany2Many(t *testing.T) {
    	type Thing struct {
    		ID int
    	}
    
    	type Person struct {
    		ID       int
    		Likes    []Thing `gorm:"many2many:likes"`
    		Dislikes []Thing `gorm:"many2many:dislikes"`
    	}
    
    	checkStructRelation(t, &Person{},
    		Relation{
    			Name: "Likes", Type: schema.Many2Many, Schema: "Person", FieldSchema: "Thing",
    			JoinTable: JoinTable{Name: "likes", Table: "likes"},
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  4. internal/s3select/select_test.go

          }
        }
      ],
      "data": "asdascasdc1234e123erdasdas"
    }`,
    		},
    		{
    			name:       "limit-2",
    			query:      `select * from s3object[*].person[*] limit 1`,
    			wantResult: `{"Id":1,"Name":"Anshu","Address":"Templestowe","Car":"Jeep"}`,
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 76.2K bytes
    - Viewed (0)
  5. cmd/version_test.go

    //
    // This program is free software: you can redistribute it and/or modify
    // it under the terms of the GNU Affero General Public License as published by
    // the Free Software Foundation, either version 3 of the License, or
    // (at your option) any later version.
    //
    // This program is distributed in the hope that it will be useful
    // but WITHOUT ANY WARRANTY; without even the implied warranty of
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 956 bytes
    - Viewed (0)
  6. istioctl/pkg/install/k8sversion/version_test.go

    	cases := []struct {
    		version  *version.Info
    		expected int
    		errMsg   error
    		isValid  bool
    	}{
    		{
    			version:  version1_17,
    			expected: 17,
    			errMsg:   nil,
    			isValid:  true,
    		},
    		{
    			version:  version1_8,
    			expected: 8,
    			errMsg:   nil,
    			isValid:  true,
    		},
    		{
    			version:  version1_18,
    			expected: 18,
    			errMsg:   nil,
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 19 02:46:48 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  7. cni/pkg/repair/repair_test_helpers.go

    				ExitCode: constants.ValidationErrorCode,
    				Reason:   "Error",
    				Message:  "Died for some reason",
    			},
    		},
    	}
    
    	brokenInitContainerTerminating = corev1.ContainerStatus{
    		Name: constants.ValidationContainerName,
    		State: corev1.ContainerState{
    			Terminated: &corev1.ContainerStateTerminated{
    				ExitCode: constants.ValidationErrorCode,
    				Reason:   "Error",
    				Message:  "Died for some reason",
    			},
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri May 12 17:39:53 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  8. cmd/xl-storage-free-version_test.go

    	_, err = xl.DeleteVersion(newtierfi)
    	report()
    	fatalErr(err)
    
    	// At this point the version stack must look as below,
    	// v3 --> free version      00000000-0000-0000-0000-0000000000f2 (from removal of null version)
    	// v2 --> free version      00000000-0000-0000-0000-0000000000f1 (from overwriting of null version )
    	// v1 --> non-free version  00000000-0000-0000-0000-000000000001
    
    	// Check number of free-versions
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 02 05:11:03 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  9. cmd/sts-handlers.go

    		if err != nil {
    			writeSTSErrorResponse(ctx, w, ErrSTSInvalidParameterValue, err)
    			return
    		}
    
    		// Version in policy must not be empty
    		if sessionPolicy.Version == "" {
    			writeSTSErrorResponse(ctx, w, ErrSTSInvalidParameterValue, fmt.Errorf("Version cannot be empty expecting '2012-10-17'"))
    			return
    		}
    	}
    
    	duration, err := openid.GetDefaultExpiration(r.Form.Get(stsDurationSeconds))
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 18:36:18 GMT 2024
    - 34.7K bytes
    - Viewed (2)
  10. misc/ios/go_ios_exec.go

    		return "", errors.New("failed to parse ideviceinfo output")
    	}
    	verSplit := strings.Split(iosVer, ".")
    	if len(verSplit) > 2 {
    		// Developer images are specific to major.minor ios version.
    		// Cut off the patch version.
    		iosVer = strings.Join(verSplit[:2], ".")
    	}
    	sdkBase := "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport"
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 23.4K bytes
    - Viewed (0)
Back to top