Skip to content

Commit 146d375

Browse files
authored
Merge pull request #138 from ipfs/misc/query-string-comment
Add clarifying comments on Query#String()
2 parents d0ca9bc + 089e515 commit 146d375

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

query/query.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ type Query struct {
6868
ReturnExpirations bool // return expirations (see TTLDatastore)
6969
}
7070

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

0 commit comments

Comments
 (0)