Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for company_id (0.14 sec)

  1. schema/schema_test.go

    		{Name: "Age", DBName: "age", BindNames: []string{"Age"}, DataType: schema.Uint, Size: 64},
    		{Name: "Birthday", DBName: "birthday", BindNames: []string{"Birthday"}, DataType: schema.Time},
    		{Name: "CompanyID", DBName: "company_id", BindNames: []string{"CompanyID"}, DataType: schema.Int, Size: 64},
    		{Name: "ManagerID", DBName: "manager_id", BindNames: []string{"ManagerID"}, DataType: schema.Uint, Size: 64},
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jun 20 12:19:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. tests/query_test.go

    	var results2 []User
    	DB.Find(&results2, map[string]interface{}{"name": users[3].Name, "company_id": nil})
    	if len(results2) != 0 {
    		t.Errorf("Search all records with inline map containing null value finding 0 records")
    	}
    
    	DB.Find(&results2, map[string]interface{}{"name": users[0].Name, "company_id": nil})
    	if len(results2) != 1 {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 50.4K bytes
    - Viewed (0)
  3. tests/joins_test.go

    	if result.ID != user.ID {
    		t.Fatalf("result's id, %d, doesn't match user's id, %d", result.ID, user.ID)
    	}
    	// should find company
    	if result.Company.ID != *user.CompanyID {
    		t.Fatalf("result's id, %d, doesn't match user's company id, %d", result.Company.ID, *user.CompanyID)
    	}
    }
    
    func TestJoinWithSoftDeleted(t *testing.T) {
    	user := GetUser("TestJoinWithSoftDeletedUser", Config{Account: true, NamedPet: true})
    	DB.Create(&user)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 17 03:58:13 UTC 2024
    - 15K bytes
    - Viewed (0)
Back to top