Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestClauseAssociationSetCreateWithOpCreate (0.22 sec)

  1. tests/association_generics_test.go

    // Test Set + Create with Association OpCreate operation using real database
    func TestClauseAssociationSetCreateWithOpCreate(t *testing.T) {
    	ctx := context.Background()
    
    	// First create a user with Set + Create
    	err := gorm.G[User](DB).Set(
    		clause.Assignment{Column: clause.Column{Name: "name"}, Value: "TestClauseAssociationSetCreateWithOpCreate"},
    		clause.Assignment{Column: clause.Column{Name: "age"}, Value: 25},
    	).Create(ctx)
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Fri Sep 12 05:42:26 UTC 2025
    - 37.9K bytes
    - Viewed (0)
Back to top