Skip to content

Commit

Permalink
Merge pull request #138 from ipfs/misc/query-string-comment
Browse files Browse the repository at this point in the history
Add clarifying comments on Query#String()
  • Loading branch information
Stebalien authored Nov 11, 2019
2 parents d0ca9bc + 089e515 commit 146d375
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions query/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ type Query struct {
ReturnExpirations bool // return expirations (see TTLDatastore)
}

// String returns a string represenation of the Query for debugging/validation
// purposes. Do not use it for SQL queries.
func (q Query) String() string {
s := "SELECT keys"
if !q.KeysOnly {
Expand Down

0 comments on commit 146d375

Please sign in to comment.