From 089e515fc37b990e4c1ab855e5db9069b1dafec5 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Mon, 11 Nov 2019 16:05:12 +0100 Subject: [PATCH] Add clarifying comments on Query#String() License: MIT Signed-off-by: Jakub Sztandera --- query/query.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/query/query.go b/query/query.go index 0b32ec9..42e69c4 100644 --- a/query/query.go +++ b/query/query.go @@ -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 {