Skip to content

Commit

Permalink
fix: enable query with retention policy (openGemini#53)
Browse files Browse the repository at this point in the history
Signed-off-by: PennyYoon <525296438@qq.com>
  • Loading branch information
Chenxulin97 authored Feb 20, 2024
1 parent 57d345c commit 5251ec5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions opengemini/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ type Query struct {
}

type keyValue struct {
Name string
Value string
Name string
Value string
}

// Query sends a command to the server
Expand All @@ -24,6 +24,8 @@ func (c *client) Query(q Query) (*QueryResult, error) {
}
req.queryValues.Add("db", q.Database)
req.queryValues.Add("q", q.Command)
req.queryValues.Add("rp", q.RetentionPolicy)

resp, err := c.executeHttpGet(UrlQuery, req)
if err != nil {
return nil, err
Expand Down

0 comments on commit 5251ec5

Please sign in to comment.