MCPcopy Index your code
hub / github.com/ent/ent / Insert

Function Insert

dialect/sql/builder.go:159–159  ·  view source on GitHub ↗

Insert creates a builder for the `INSERT INTO` statement. Insert("users"). Columns("name", "age"). Values("a8m", 10). Values("foo", 20) Note: Insert inserts all values in one batch.

(table string)

Source from the content-addressed store, hash-verified

157//
158// Note: Insert inserts all values in one batch.
159func Insert(table string) *InsertBuilder { return &InsertBuilder{table: table} }
160
161// Schema sets the database name for the insert table.
162func (i *InsertBuilder) Schema(name string) *InsertBuilder {

Callers 2

TestBuilderFunction · 0.85
InsertMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestBuilderFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…