Execute runs the query in a given language and returns an iterator over the results. Type of results depends on Collation. See Options for details.
(ctx context.Context, qs graph.QuadStore, lang, query string, opt Options)
| 142 | // Execute runs the query in a given language and returns an iterator over the results. |
| 143 | // Type of results depends on Collation. See Options for details. |
| 144 | func Execute(ctx context.Context, qs graph.QuadStore, lang, query string, opt Options) (Iterator, error) { |
| 145 | l := GetLanguage(lang) |
| 146 | if l == nil { |
| 147 | return nil, fmt.Errorf("unsupported language: %q", lang) |
| 148 | } |
| 149 | sess := l.Session(qs) |
| 150 | return sess.Execute(ctx, query, opt) |
| 151 | } |
no test coverage detected