Insert
Insert new rows into the database.
type User struct {
ID int `gosql:"primary"`
Email string
IsActive bool
}db.Insert(&User{
Email: "gopher@example.com",
IsActive: true,
})db.Insert(&User{
ID: 1,
Email: "gopher@example.com",
IsActive: true,
})Last updated