- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for Linkname (0.06 sec)
-
tests/query_test.go
DB.Save(&user) type result struct { Name string Nickname string Age uint } var res result DB.Table("users").Where("name = ?", user.Name).MapColumns(map[string]string{"name": "nickname"}).Scan(&res) if res.Nickname != user.Name { t.Errorf("Expected res.Nickname to be %s, but got %s", user.Name, res.Nickname) } if res.Name != "" {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Jun 24 09:42:59 UTC 2024 - 50.4K bytes - Viewed (0) -
tests/migrate_test.go
} UniqueStruct6 struct { Name string `gorm:"size:60;uniqueIndex"` } UniqueStruct7 struct { Name string `gorm:"size:70;uniqueIndex:idx_us6_all_names"` NickName string `gorm:"size:70;uniqueIndex:idx_us6_all_names"` } ) checkField(&UniqueStruct5{}, "name", false, "idx_unique_struct5_name") checkField(&UniqueStruct6{}, "name", false, "idx_unique_struct6_name")
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Mar 18 11:24:16 UTC 2024 - 56.2K bytes - Viewed (0)