Insert data
- Insert one object
fmt.Println(user.Id)
- Insert multiple objects by Slice on one table
- Insert multiple records by Slice of pointer on one table
users[0].Name = "name0"
...
affected, err := engine.Insert(&users)
- Insert two objects onto two tables.
users := make([]User, 1)
...
questions := make([]Question, 1)
questions[0].Content = "whywhywhwy?"
- Insert one or multple objects on multiple tables.