MCPcopy
hub / github.com/ent/ent / NewCreateSpec

Function NewCreateSpec

dialect/sql/sqlgraph/graph.go:735–737  ·  view source on GitHub ↗

NewCreateSpec creates a new node creation spec.

(table string, id *FieldSpec)

Source from the content-addressed store, hash-verified

733
734// NewCreateSpec creates a new node creation spec.
735func NewCreateSpec(table string, id *FieldSpec) *CreateSpec {
736 return &CreateSpec{Table: table, ID: id}
737}
738
739// SetField appends a new field setter to the creation spec.
740func (u *CreateSpec) SetField(column string, t field.Type, value driver.Value) {

Callers 15

createSpecMethod · 0.92
createSpecMethod · 0.92
createSpecMethod · 0.92
createSpecMethod · 0.92
createSpecMethod · 0.92
createSpecMethod · 0.92
createSpecMethod · 0.92
createSpecMethod · 0.92
createSpecMethod · 0.92
createSpecMethod · 0.92
createSpecMethod · 0.92
createSpecMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…