Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for person (0.2 sec)

  1. 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)
  2. tests/joins_table_test.go

    	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)
  3. schema/relationship_test.go

    				{"ID", "Person", "PersonID", "likes", "", true},
    				{"ID", "Thing", "ThingID", "likes", "", false},
    			},
    		},
    		Relation{
    			Name: "Dislikes", Type: schema.Many2Many, Schema: "Person", FieldSchema: "Thing",
    			JoinTable: JoinTable{Name: "dislikes", Table: "dislikes"},
    			References: []Reference{
    				{"ID", "Person", "PersonID", "dislikes", "", true},
    				{"ID", "Thing", "ThingID", "dislikes", "", false},
    			},
    		},
    	)
    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. istioctl/pkg/install/k8sversion/version.go

    package k8sversion
    
    import (
    	"fmt"
    
    	goversion "github.com/hashicorp/go-version"
    	"k8s.io/apimachinery/pkg/version"
    
    	"istio.io/istio/operator/pkg/util/clog"
    	"istio.io/istio/pkg/kube"
    	pkgVersion "istio.io/istio/pkg/version"
    )
    
    const (
    	// MinK8SVersion is the minimum k8s version required to run this version of Istio
    	// https://istio.io/docs/setup/platform-setup/
    	MinK8SVersion               = 26
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Jan 22 02:07:51 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  5. istioctl/pkg/version/version.go

      istioctl x version
    
      # Retrieve version information directly from the control plane, using RSA certificate security
      # (Certificates must be obtained before this step.  The --cert-dir flag lets istioctl bypass the Kubernetes API server.)
      istioctl x version --xds-address istio.example.com:15012 --cert-dir ~/.istio-certs
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  6. 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 21 19:28:08 GMT 2024
    - Last Modified: Sat Mar 02 05:11:03 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/arch/arm.go

    	}
    	prog.Scond = bits
    	return true
    }
    
    // ParseARMCondition parses the conditions attached to an ARM instruction.
    // The input is a single string consisting of period-separated condition
    // codes, such as ".P.W". An initial period is ignored.
    func ParseARMCondition(cond string) (uint8, bool) {
    	return parseARMCondition(cond, armLS, armSCOND)
    }
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Nov 18 17:59:44 GMT 2022
    - 6.1K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/lex/tokenizer.go

    func isIdentRune(ch rune, i int) bool {
    	if unicode.IsLetter(ch) {
    		return true
    	}
    	switch ch {
    	case '_': // Underscore; traditional.
    		return true
    	case '\u00B7': // Represents the period in runtime.exit. U+00B7 '·' middle dot
    		return true
    	case '\u2215': // Represents the slash in runtime/debug.setGCPercent. U+2215 '∕' division slash
    		return true
    	}
    	// Digits are OK only after the first character.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Aug 04 20:35:21 GMT 2022
    - 3K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/parse.go

    			p.errorf(err.Error())
    		}
    	default:
    		p.errorf("register extension not supported on this architecture")
    	}
    }
    
    // qualifySymbol returns name as a package-qualified symbol name. If
    // name starts with a period, qualifySymbol prepends the package
    // prefix. Otherwise it returns name unchanged.
    func (p *Parser) qualifySymbol(name string) string {
    	if strings.HasPrefix(name, ".") {
    		name = p.pkgPrefix + name
    	}
    	return name
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  10. 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 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 956 bytes
    - Viewed (0)
Back to top