Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 203 for savyje (0.13 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)})
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 10:57:36 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. tests/transaction_test.go

    	tx := DB.Begin()
    
    	user := *GetUser("transaction-save-point", Config{})
    	tx.Create(&user)
    
    	if err := tx.First(&User{}, "name = ?", user.Name).Error; err != nil {
    		t.Fatalf("Should find saved record")
    	}
    
    	if err := tx.SavePoint("save_point1").Error; err != nil {
    		t.Fatalf("Failed to save point, got error %v", err)
    	}
    
    	user1 := *GetUser("transaction-save-point-1", Config{})
    	tx.Create(&user1)
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sat Sep 14 12:58:29 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  3. tests/upsert_test.go

    		}
    	}
    }
    
    func TestUpsertWithSave(t *testing.T) {
    	langs := []Language{
    		{Code: "upsert-save-1", Name: "Upsert-save-1"},
    		{Code: "upsert-save-2", Name: "Upsert-save-2"},
    	}
    
    	if err := DB.Save(&langs).Error; err != nil {
    		t.Errorf("Failed to create, got error %v", err)
    	}
    
    	for _, lang := range langs {
    		var result Language
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Sep 05 07:39:19 UTC 2022
    - 11.4K bytes
    - Viewed (0)
  4. tests/update_many2many_test.go

    		user.Languages[idx].Name += "new"
    	}
    
    	if err := DB.Save(&user).Error; err != nil {
    		t.Fatalf("errors happened when update: %v", err)
    	}
    
    	var user3 User
    	DB.Preload("Languages").Preload("Friends").Find(&user3, "id = ?", user.ID)
    	CheckUser(t, user2, user3)
    
    	if err := DB.Session(&gorm.Session{FullSaveAssociations: true}).Save(&user).Error; err != nil {
    		t.Fatalf("errors happened when update: %v", err)
    	}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  5. tests/associations_test.go

    	child := Child{ParentID: &parent.ID, Parent: &parent}
    	DB.Create(&child)
    
    	parent.FavChildID = child.ID
    	parent.FavChild = &child
    	DB.Save(&parent)
    
    	var parent1 Parent
    	DB.First(&parent1, parent.ID)
    	AssertObjEqual(t, parent, parent1, "ID", "FavChildID")
    
    	// Save and Updates is the same
    	DB.Updates(&parent)
    	DB.First(&parent1, parent.ID)
    	AssertObjEqual(t, parent, parent1, "ID", "FavChildID")
    }
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Feb 08 08:29:09 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  6. tests/preload_suits_test.go

    		t.Error(err)
    	}
    
    	lvl := &Level3{}
    	if err := DB.Save(lvl).Error; err != nil {
    		t.Error(err)
    	}
    
    	sublvl1 := &Level4{Level3ID: lvl.ID}
    	if err := DB.Save(sublvl1).Error; err != nil {
    		t.Error(err)
    	}
    	sublvl2 := &Level4{Level3ID: lvl.ID}
    	if err := DB.Save(sublvl2).Error; err != nil {
    		t.Error(err)
    	}
    
    	lvl.Level4s = []*Level4{sublvl1, sublvl2}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Mar 18 05:38:46 UTC 2022
    - 30.3K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_header_param_models/test_tutorial001.py

        client = TestClient(mod.app)
        return client
    
    
    def test_header_param_model(client: TestClient):
        response = client.get(
            "/items/",
            headers=[
                ("save-data", "true"),
                ("if-modified-since", "yesterday"),
                ("traceparent", "123"),
                ("x-tag", "one"),
                ("x-tag", "two"),
            ],
        )
        assert response.status_code == 200
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  8. compat/maven-embedder/src/test/java/org/apache/maven/cli/props/MavenPropertiesTest.java

            MavenProperties props = new MavenProperties();
            props.load(new StringReader(sw.toString()));
            props.save(System.err);
            System.err.println("=====");
    
            props.put("key2", props.get("key2"));
            props.put("key3", "foo");
            props.save(System.err);
            System.err.println("=====");
        }
    
        @Test
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  9. cmd/erasure.go

    					continue
    				}
    				scannerLogOnceIf(ctx, cache.save(ctx, er, dataUsageCacheName), "nsscanner-cache-update")
    				updates <- cache.clone()
    
    				lastSave = cache.Info.LastUpdate
    			case v, ok := <-bucketResults:
    				if !ok {
    					// Save final state...
    					cache.Info.NextCycle = wantCycle
    					cache.Info.LastUpdate = time.Now()
    					scannerLogOnceIf(ctx, cache.save(ctx, er, dataUsageCacheName), "nsscanner-channel-closed")
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 22:23:33 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_header_param_models/test_tutorial002.py

        client = TestClient(mod.app)
        client.headers.clear()
        return client
    
    
    def test_header_param_model(client: TestClient):
        response = client.get(
            "/items/",
            headers=[
                ("save-data", "true"),
                ("if-modified-since", "yesterday"),
                ("traceparent", "123"),
                ("x-tag", "one"),
                ("x-tag", "two"),
            ],
        )
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top