Unverified Commit 146d3755 authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #138 from ipfs/misc/query-string-comment

Add clarifying comments on Query#String()
parents d0ca9bc3 089e515f
...@@ -68,6 +68,8 @@ type Query struct { ...@@ -68,6 +68,8 @@ type Query struct {
ReturnExpirations bool // return expirations (see TTLDatastore) 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 { func (q Query) String() string {
s := "SELECT keys" s := "SELECT keys"
if !q.KeysOnly { if !q.KeysOnly {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment