NewQuerySpec creates a new node query spec.
(table string, columns []string, id *FieldSpec)
| 924 | |
| 925 | // NewQuerySpec creates a new node query spec. |
| 926 | func 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. |
| 937 | func QueryNodes(ctx context.Context, drv dialect.Driver, spec *QuerySpec) error { |
no outgoing calls
no test coverage detected
searching dependent graphs…