Skip to content
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

Update documents for !history command #332

Closed
snuyanzin opened this issue Jul 21, 2019 · 0 comments · Fixed by #345
Closed

Update documents for !history command #332

snuyanzin opened this issue Jul 21, 2019 · 0 comments · Fixed by #345

Comments

@snuyanzin
Copy link
Collaborator

snuyanzin commented Jul 21, 2019

With updates of Jline3 several more features came for !history which are supported without doing anything:

  1. !history -d - Print timestamps for each event (sqlline default for !history)
  2. !history -f - Print full time date stamps in the US format
  3. !history -E - Print full time date stamps in the European format
  4. !history -i - Print full time date stamps in ISO8601 format
  5. !history -n - Suppresses command numbers
  6. !history -r - Reverses the order of the commands
  7. !history [first] [last] - These optional arguments may be specified as a number or as a string. A negative number is used as an offset to the current history event number. A string specifies the most recent event beginning with the given string.

It makes sense to reflect this features in sqlline doc also.
May be it also makes sense to have configurable property for history flags to use as default for !history

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant