Update
Update new rows in the database.
type User struct {
ID int `gosql:"primary"`
Email string
IsActive bool
}var user User
db.Select("*").Get(&user)
user.Email = "somenewemail@example.com"
db.Update(&user)Last updated
Update new rows in the database.
type User struct {
ID int `gosql:"primary"`
Email string
IsActive bool
}var user User
db.Select("*").Get(&user)
user.Email = "somenewemail@example.com"
db.Update(&user)Last updated