-
Notifications
You must be signed in to change notification settings - Fork 364
Export :history #954
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export :history #954
Conversation
|
Thanks a lot Hugo for working on this. How about a plain text download? Just as semicolon and newline separated statements in a .cypher script file instead? I guess CSV will be quite horrible with regard to excaped double quotes |
183012b to
5c57766
Compare
|
@jexp Thank you for your feedback. I have updated the PR to export as TXT (:cmds are not valid cypher) |
oskarhane
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except from a point on when and when not to add semicolons at the end.
| const { frame } = this.props | ||
|
|
||
| if (frame.type === 'history') { | ||
| const asTxt = frame.result.join(';\n\n') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you check so the statement isn't already ending with a semicolon?
Also, client commands (statements starting with :) should / cannot end with a semicolon, only Cypher.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!
|
Perfect thanks. What's cool though even as :commands are not valid cypher they should still work |
oskarhane
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
SWEET!!! Super helpful!! |
This PR adds support for exporting the result of
:historyas TXT.STR
:historyScreenshots