- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for non_existing (0.06 sec)
-
chainable_api.go
// // Attrs only adds attributes if the record is not found. // // // assign an email if the record is not found // db.Where(User{Name: "non_existing"}).Attrs(User{Email: "******@****.***"}).FirstOrInit(&user) // // user -> User{Name: "non_existing", Email: "******@****.***"} // // // assign an email if the record is not found, otherwise ignore provided email
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Jun 24 09:42:59 UTC 2024 - 14.8K bytes - Viewed (0) -
finisher_api.go
// // FirstOrInit never modifies the database. It is often used with Assign and Attrs. // // // assign an email if the record is not found // db.Where(User{Name: "non_existing"}).Attrs(User{Email: "******@****.***"}).FirstOrInit(&user) // // user -> User{Name: "non_existing", Email: "******@****.***"} // // // assign email regardless of if record is found // db.Where(User{Name: "jinzhu"}).Assign(User{Email: "******@****.***"}).FirstOrInit(&user)
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Sat Sep 14 12:58:29 UTC 2024 - 22.8K bytes - Viewed (0) -
cmd/data-usage_test.go
}, { path: "/dir1", size: 1302010, objs: 5, oSizes: sizeHistogram{0: 1, 1: 1, 2: 2, 4: 1}, }, { path: "/dir1/dira", isNil: true, }, { path: "/nonexistying", isNil: true, }, } for _, w := range want { p := path.Join(bucket, w.path) t.Run(p, func(t *testing.T) { e := got.find(p) if w.isNil { if e != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Oct 04 22:23:33 UTC 2024 - 14.7K bytes - Viewed (0)