Skip to content

Commit

Permalink
Add clarifying comments on Query#String()
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
  • Loading branch information
Jakub Sztandera committed Nov 11, 2019
1 parent d0ca9bc commit 089e515
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 089e515

Please sign in to comment.