- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestOmit (0.07 sec)
-
tests/query_test.go
if !regexp.MustCompile(`SELECT u\.\* FROM .*users.*`).MatchString(r.Statement.SQL.String()) { t.Fatalf("Build Select with u.*, but got %v", r.Statement.SQL.String()) } } func TestOmit(t *testing.T) { user := User{Name: "OmitUser1", Age: 20} DB.Save(&user) var result User DB.Where("name = ?", user.Name).Omit("name").Find(&result) if result.ID == 0 {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Jun 24 09:42:59 UTC 2024 - 50.4K bytes - Viewed (0)