Delete
Delete a row from the database.
This type is used in the examples on this page.
type User struct {
ID int `gosql:"primary"`
Email string
IsActive bool
}
Once you have a value, you can delete it from the database.
var user User
db.Select("*").Get(&user)
db.Delete(&user)
Last updated
Was this helpful?