- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for provide (0.18 sec)
-
chainable_api.go
tx = db.getInstance() if tx.Statement.Preloads == nil { tx.Statement.Preloads = map[string][]interface{}{} } tx.Statement.Preloads[query] = args return } // Attrs provide attributes used in [FirstOrCreate] or [FirstOrInit] // // Attrs only adds attributes if the record is not found. // // // assign an email if the record is not found
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Wed Apr 17 03:38:55 GMT 2024 - 14.3K bytes - Viewed (1) -
schema/relationship_test.go
References: []Reference{ {"ID", "User", "UserReferID", "user_profile", "", true}, {"ID", "Profile", "ProfileRefer", "user_profile", "", false}, }, }) } func TestBuildReadonlyMany2ManyRelation(t *testing.T) { type Profile struct { gorm.Model Name string UserRefer uint } type User struct { gorm.Model
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Mon Apr 15 03:20:20 GMT 2024 - 25.5K bytes - Viewed (0) -
schema/index_test.go
Name4 string `gorm:"uniqueIndex"` Name5 int64 `gorm:"index:,class:FULLTEXT,comment:hello \\, world,where:age > 10"` Name6 int64 `gorm:"index:profile,comment:hello \\, world,where:age > 10"` Age int64 `gorm:"index:profile,expression:ABS(age),option:WITH PARSER parser_name"` OID int64 `gorm:"index:idx_id;index:idx_oid,unique"` MemberNumber string `gorm:"index:idx_id,priority:1"`
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Sun Feb 04 07:49:19 GMT 2024 - 8K bytes - Viewed (0) -
tests/associations_test.go
member := Member{Refer: 1, Name: "foreign_key_constraints", Profile: Profile{Name: "my_profile"}} DB.Create(&member) var profile Profile if err := DB.First(&profile, "id = ?", member.Profile.ID).Error; err != nil { t.Fatalf("failed to find profile, got error: %v", err) } else if profile.MemberID != member.ID { t.Fatalf("member id is not equal: expects: %v, got: %v", member.ID, profile.MemberID) } member.Profile = Profile{}
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Wed Feb 08 08:29:09 GMT 2023 - 10.9K bytes - Viewed (0)