- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for typings (0.19 sec)
-
tests/postgres_test.go
UpdateAll: true, }).Create(&thing2) if result.Error != nil { t.Errorf("creating second thing: %v", result.Error) } var things []Thing if err := DB.Find(&things).Error; err != nil { t.Errorf("Failed, got error: %v", err) } if len(things) > 1 { t.Errorf("expected 1 thing got more") } } type CompanyNew struct { ID int Name int }
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Sat Oct 08 09:16:32 GMT 2022 - 6.4K bytes - Viewed (3) -
association.go
package gorm import ( "fmt" "reflect" "strings" "gorm.io/gorm/clause" "gorm.io/gorm/schema" "gorm.io/gorm/utils" ) // Association Mode contains some helper methods to handle relationship things easily. type Association struct { DB *DB Relationship *schema.Relationship Unscope bool Error error } func (db *DB) Association(column string) *Association {
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Thu May 04 11:30:45 GMT 2023 - 21.2K bytes - Viewed (0)