Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Idea
Quiet often while working with Redis the user might feel a need to
have counters per event. Events could obey some hierarchy, i.e.
Would be useful if redis-browser could somehow represent the data from
all of these keys in some kind of a table view.
Realization
MS Excel, OS X Numbers, Libreoffice alternative - these are all good
examples of software which can pivot, sort, filter, slice and dice table
data (even hierarchial data).
This commit addresses an Export to CSV format to be consumed by such
apps.
Implementation
"Export CSV" is an extra button in the top-right corner of the header.
When clicked, opens a form similar to "Configure Redis Connection" form.
From there the user is able to choose:
Only Redis String datatype is supported for exported keys for a reason -
the keys and values are extracted to be opened in MS Excel, Libreoffice
alternative or OS X Numbers.
Keys are broken down in separate CSV fields the same way the keys are
broken down into a hierarchy view on the lefthand side of the UI - by
delimiter
[:/]
Configuration
"Exclude keys pattern" comes from config.yml. A connection now has an
optional parameter - exclude_pattern. Example
"Include keys" - if no key is selected from the tree on the left hand
side -
"*"
, otherwise - the selected key.