ExecutePQL

This commit is contained in:
Linh Vo 2017-01-25 00:17:19 -06:00
parent 70222f2a8b
commit 743706858b
2 changed files with 2 additions and 3 deletions

View file

@ -123,8 +123,7 @@ func (b *RandomQuery) ExecuteQuery(contentType, db, query string, ctx context.Co
if contentType == "protobuf" {
return b.client.ExecuteQuery(ctx, db, query, true)
} else if contentType == "pql" {
fmt.Println("HERRR")
return b.client.ExecutePql(ctx, db, query)
return b.client.ExecutePQL(ctx, db, query)
} else {
return nil, errors.New("unsupport content type")
}

View file

@ -195,7 +195,7 @@ func (c *Client) ExecuteQuery(ctx context.Context, db, query string, allowRedire
}
// ExecutePQL executes query string against db on the server.
func (c *Client) ExecutePql(ctx context.Context, db, query string) (interface{}, error) {
func (c *Client) ExecutePQL(ctx context.Context, db, query string) (interface{}, error) {
u := url.URL{
Scheme: "http",
Host: c.host,