QueryNodes queries the nodes in the graph query and scans them to the given values.
(ctx context.Context, drv dialect.Driver, spec *QuerySpec)
| 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 { |
| 938 | builder := sql.Dialect(drv.Dialect()) |
| 939 | qr := &query{graph: graph{builder: builder}, QuerySpec: spec} |
| 940 | return qr.nodes(ctx, drv) |
| 941 | } |
| 942 | |
| 943 | // CountNodes counts the nodes in the given graph query. |
| 944 | func CountNodes(ctx context.Context, drv dialect.Driver, spec *QuerySpec) (int, error) { |
searching dependent graphs…