Make query/... interfaces more idiomatic
Also revert the data type returned by queries to interface{} (the change
made sense at the time).
This commit is contained in:
parent
ad7649806b
commit
21c2d75d07
11 changed files with 304 additions and 299 deletions
|
|
@ -170,11 +170,11 @@ var testQueries = []struct {
|
|||
func runQuery(g []quad.Quad, query string) interface{} {
|
||||
s := makeTestSession(g)
|
||||
c := make(chan interface{}, 5)
|
||||
go s.ExecInput(query, c, -1)
|
||||
go s.Execute(query, c, -1)
|
||||
for result := range c {
|
||||
s.BuildJSON(result)
|
||||
s.Collate(result)
|
||||
}
|
||||
result, _ := s.GetJSON()
|
||||
result, _ := s.Results()
|
||||
return result
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue