Skip to content

Conversation

@f-prime
Copy link
Owner

@f-prime f-prime commented Aug 12, 2019

DELETE -> Deletes a specific key
DROP -> Removes all references to a document. If a key has only one mapping which is then that key will also be removed.
KEYS -> Returns all keys separated by a new line character
HELP -> Returns a prompt discussing usage of each command.

return 0;
}

static int do_keys(struct config *config, hashmap *hm, int fd, dstringa params) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the keys be formatted as a JSON array, like the output of search?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, yes it should. That is a really good point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants