MCPcopy
hub / github.com/ent/ent / NewQuerySpec

Function NewQuerySpec

dialect/sql/sqlgraph/graph.go:926–934  ·  view source on GitHub ↗

NewQuerySpec creates a new node query spec.

(table string, columns []string, id *FieldSpec)

Source from the content-addressed store, hash-verified

924
925// NewQuerySpec creates a new node query spec.
926func NewQuerySpec(table string, columns []string, id *FieldSpec) *QuerySpec {
927 return &QuerySpec{
928 Node: &NodeSpec{
929 ID: id,
930 Table: table,
931 Columns: columns,
932 },
933 }
934}
935
936// QueryNodes queries the nodes in the graph query and scans them to the given values.
937func QueryNodes(ctx context.Context, drv dialect.Driver, spec *QuerySpec) error {

Callers 15

querySpecMethod · 0.92
querySpecMethod · 0.92
querySpecMethod · 0.92
querySpecMethod · 0.92
querySpecMethod · 0.92
querySpecMethod · 0.92
querySpecMethod · 0.92
querySpecMethod · 0.92
querySpecMethod · 0.92
querySpecMethod · 0.92
querySpecMethod · 0.92
querySpecMethod · 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…