Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 217 for Member (0.25 sec)

  1. tests/associations_test.go

    	var member2 Member
    	if err := DB.First(&member2, "id = ?", member.ID).Error; err != nil {
    		t.Fatalf("failed to find member, got error: %v", err)
    	} else if member2.ProfileID != 100 {
    		t.Fatalf("member id is not equal: expects: %v, got: %v", 100, member2.ProfileID)
    	}
    
    	if r := DB.Delete(&profile); r.Error != nil || r.RowsAffected != 1 {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Feb 08 08:29:09 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  2. tests/tests_test.go

    		// CREATE DATABASE gorm;
    		// GO
    		// CREATE LOGIN gorm WITH PASSWORD = 'LoremIpsum86';
    		// CREATE USER gorm FROM LOGIN gorm;
    		// ALTER SERVER ROLE sysadmin ADD MEMBER [gorm];
    		// GO
    		log.Println("testing sqlserver...")
    		if dbDSN == "" {
    			dbDSN = sqlserverDSN
    		}
    		db, err = gorm.Open(sqlserver.Open(dbDSN), cfg)
    	case "tidb":
    		log.Println("testing tidb...")
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Dec 15 08:36:08 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  3. misc/cgo/gmp/gmp.go

    arithmetic types.  A C struct translates to a Go struct, field by
    field; unrepresentable fields are replaced with opaque byte arrays.  A
    C union translates into a struct containing the first union member and
    perhaps additional padding.  C arrays become Go arrays.  C pointers
    become Go pointers.  C function pointers become Go's uintptr.
    C void pointers become Go's unsafe.Pointer.
    
    For example, mpz_t is defined in <gmp.h> as:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 9.5K bytes
    - Viewed (0)
  4. src/archive/tar/writer_test.go

    		//	---------- 0/0               0 2017-07-13 19:40 global1
    		//	---------- 0/0               0 2017-07-13 19:40 file2
    		//	gnutar: Substituting `.' for empty member name
    		//	---------- 0/0               0 1969-12-31 16:00
    		//	gnutar: Substituting `.' for empty member name
    		//	---------- 0/0               0 2014-05-13 09:53
    		//
    		// According to the PAX specification, this should have been the result:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 38.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/genericOps.go

    	{name: "BitLen8", argLength: 1},      // Number of bits in arg[0] (returns 0-8)
    	{name: "BitLen16", argLength: 1},     // Number of bits in arg[0] (returns 0-16)
    	{name: "BitLen32", argLength: 1},     // Number of bits in arg[0] (returns 0-32)
    	{name: "BitLen64", argLength: 1},     // Number of bits in arg[0] (returns 0-64)
    
    	{name: "Bswap16", argLength: 1}, // Swap bytes
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  6. src/cmd/dist/build.go

    func dopack(dst, src string, extra []string) {
    	bdst := bytes.NewBufferString(readfile(src))
    	for _, file := range extra {
    		b := readfile(file)
    		// find last path element for archive member name
    		i := strings.LastIndex(file, "/") + 1
    		j := strings.LastIndex(file, `\`) + 1
    		if i < j {
    			i = j
    		}
    		fmt.Fprintf(bdst, "%-16.16s%-12d%-6d%-6d%-8o%-10d`\n", file[i:], 0, 0, 0, 0644, len(b))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  7. src/cmd/cgo/doc.go

    An error on not-int-const:1 indicates that foo is not an integer constant.
    An error on not-num-const:1 indicates that foo is not a number constant.
    An error on not-str-lit:1 indicates that foo is not a string literal.
    An error on not-signed-int-const:1 indicates that foo is not a signed integer constant.
    
    The line number specifies the name involved. In the example, 1 is foo.
    
    Next, cgo must learn the details of each type, variable, function, or
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 17:12:16 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  8. src/cmd/go/internal/modindex/write.go

    		e.String(s)
    	}
    
    	e.Int(len(f.imports))
    	for _, m := range f.imports {
    		e.String(m.path)
    		e.Position(m.position)
    	}
    
    	e.Int(len(f.embeds))
    	for _, embed := range f.embeds {
    		e.String(embed.pattern)
    		e.Position(embed.position)
    	}
    
    	e.Int(len(f.directives))
    	for _, d := range f.directives {
    		e.String(d.Text)
    		e.Position(d.Pos)
    	}
    }
    
    func newEncoder() *encoder {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 10:10:21 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/schedule.go

    			}
    			last = v
    		}
    	}
    
    	// We assign a store number to each value. Store number is the
    	// index of the latest store that this value transitively depends.
    	// The i-th store in the current block gets store number 3*i. A nil
    	// check that depends on the i-th store gets store number 3*i+1.
    	// Other values that depends on the i-th store gets store number 3*i+2.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 15:53:17 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  10. tests/associations_has_one_test.go

    func TestHasOneAssociationWithSelect(t *testing.T) {
    	user := *GetUser("hasone", Config{Account: true})
    
    	DB.Omit("Account.Number").Create(&user)
    
    	AssertAssociationCount(t, user, "Account", 1, "")
    
    	var account Account
    	DB.Model(&user).Association("Account").Find(&account)
    	if account.Number != "" {
    		t.Errorf("account's number should not be saved")
    	}
    }
    
    func TestHasOneAssociationForSlice(t *testing.T) {
    	users := []User{
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 7.1K bytes
    - Viewed (0)
Back to top