Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-datastore
Commits
146d3755
Unverified
Commit
146d3755
authored
Nov 11, 2019
by
Steven Allen
Committed by
GitHub
Nov 11, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #138 from ipfs/misc/query-string-comment
Add clarifying comments on Query#String()
parents
d0ca9bc3
089e515f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
query/query.go
query/query.go
+2
-0
No files found.
query/query.go
View file @
146d3755
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment