MCPcopy Create free account
hub / github.com/efectn/go-orm-benchmarks / Create

Method Create

bench/ent/client.go:213–216  ·  view source on GitHub ↗

Create returns a builder for creating a Model entity.

()

Source from the content-addressed store, hash-verified

211
212// Create returns a builder for creating a Model entity.
213func (c *ModelClient) Create() *ModelCreate {
214 mutation := newModelMutation(c.config, OpCreate)
215 return &ModelCreate{config: c.config, hooks: c.Hooks(), mutation: mutation}
216}
217
218// CreateBulk returns a builder for creating a bulk of Model entities.
219func (c *ModelClient) CreateBulk(builders ...*ModelCreate) *ModelCreateBulk {

Callers 15

InsertMethod · 0.45
InsertMultiMethod · 0.45
UpdateMethod · 0.45
ReadMethod · 0.45
ReadSliceMethod · 0.45
InsertMethod · 0.45
InsertMultiMethod · 0.45
UpdateMethod · 0.45
ReadMethod · 0.45
ReadSliceMethod · 0.45
InsertMethod · 0.45
InsertMultiMethod · 0.45

Calls 2

HooksMethod · 0.95
newModelMutationFunction · 0.85

Tested by

no test coverage detected