- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for update_column_02_newname (0.09 sec)
-
tests/update_test.go
} DB.Create(&users) lastUpdatedAt := users[1].UpdatedAt // update with map DB.Model(users[1]).UpdateColumns(map[string]interface{}{"name": "update_column_02_newname", "age": 100}) if users[1].Name != "update_column_02_newname" || users[1].Age != 100 { t.Errorf("user 2 should be updated with update column") } AssertEqual(t, lastUpdatedAt.UnixNano(), users[1].UpdatedAt.UnixNano())
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Dec 04 03:50:58 UTC 2023 - 30.3K bytes - Viewed (0)