MCPcopy
hub / github.com/ent/ent / Insert

Method Insert

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

Insert creates a InsertBuilder for the configured dialect. Dialect(dialect.Postgres). Insert("users").Columns("age").Values(1)

(table string)

Source from the content-addressed store, hash-verified

3432// Dialect(dialect.Postgres).
3433// Insert("users").Columns("age").Values(1)
3434func (d *DialectBuilder) Insert(table string) *InsertBuilder {
3435 b := Insert(table)
3436 b.SetDialect(d.dialect)
3437 return b
3438}
3439
3440// Update creates a UpdateBuilder for the configured dialect.
3441//

Callers 8

TestBuilderFunction · 0.80
TestInsert_OnConflictFunction · 0.80
nodeMethod · 0.80
nodesMethod · 0.80
addM2MEdgesMethod · 0.80
batchAddM2MMethod · 0.80

Calls 2

InsertFunction · 0.85
SetDialectMethod · 0.65

Tested by 4

TestBuilderFunction · 0.64
TestInsert_OnConflictFunction · 0.64