Match case from above
This commit is contained in:
parent
58ff124210
commit
09d3c5dff0
@ -30,7 +30,7 @@ var user User
|
|||||||
db.First(&user)
|
db.First(&user)
|
||||||
|
|
||||||
// creating a new User
|
// creating a new User
|
||||||
DB.Save(&User{Name: "xxx"}) // table "users"
|
db.Save(&User{Name: "xxx"}) // table "users"
|
||||||
```
|
```
|
||||||
|
|
||||||
* Column name is the snake case of field's name
|
* Column name is the snake case of field's name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user