View definition

(QuerySeter).PrepareInsert

Defined in github.com/astaxie/beego/orm/types.go

Description

return a insert queryer. it can be used in times. example:

i,err := sq.PrepareInsert()
num, err = i.Insert(&user1) // user table will add one record user1 at once
num, err = i.Insert(&user2) // user table will add one record user2 at once
err = i.Close() //don't forget call Close

PrepareInsert is referenced in 2 repositories

github.com/astaxie/beego github.com/nihaozzb/horse_race