Merge pull request #1305 from nkovacs/patch-2
Fix typo in documentation
This commit is contained in:
commit
c23ed8e58b
@ -679,10 +679,10 @@ Delete all matched records
|
|||||||
|
|
||||||
```go
|
```go
|
||||||
db.Where("email LIKE ?", "%jinzhu%").Delete(Email{})
|
db.Where("email LIKE ?", "%jinzhu%").Delete(Email{})
|
||||||
//// DELETE from emails where email LIKE "%jinhu%";
|
//// DELETE from emails where email LIKE "%jinzhu%";
|
||||||
|
|
||||||
db.Delete(Email{}, "email LIKE ?", "%jinzhu%")
|
db.Delete(Email{}, "email LIKE ?", "%jinzhu%")
|
||||||
//// DELETE from emails where email LIKE "%jinhu%";
|
//// DELETE from emails where email LIKE "%jinzhu%";
|
||||||
```
|
```
|
||||||
|
|
||||||
### Soft Delete
|
### Soft Delete
|
||||||
|
Loading…
x
Reference in New Issue
Block a user