mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-06 19:07:50 +00:00
ExecutePQL
This commit is contained in:
parent
70222f2a8b
commit
743706858b
2 changed files with 2 additions and 3 deletions
|
|
@ -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")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue