View definition

(*DbMap).Insert

Defined in github.com/go-gorp/gorp/db.go

Description

Insert runs a SQL INSERT statement for each element in list. List items must be pointers.

Any interface whose TableMap has an auto-increment primary key will have its last insert id bound to the PK field on the struct.

The hook functions PreInsert() and/or PostInsert() will be executed before/after the INSERT statement if the interface defines them.

Panics if any interface in the list has not been registered with AddTable

Insert is referenced in 12 repositories

github.com/go-gorp/gorp github.com/proullon/ramsql github.com/heridev/gophergala_repositories

...