You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Brad Schoening (Jira)" <ji...@apache.org> on 2022/07/25 22:52:00 UTC

[jira] [Commented] (CASSANDRA-15046) Add a "history" command to cqlsh. Perhaps "show history"?

    [ https://issues.apache.org/jira/browse/CASSANDRA-15046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17571126#comment-17571126 ] 

Brad Schoening commented on CASSANDRA-15046:
--------------------------------------------

CQLSH use the readline library's history functions, see [https://docs.python.org/3/library/readline.html#history-file.]

A solution could use the {{{}get_current_history_length{}}}() and {{get_history_item()}} functions to display a history list.

 

> Add a "history" command to cqlsh.  Perhaps "show history"?
> ----------------------------------------------------------
>
>                 Key: CASSANDRA-15046
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15046
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: CQL/Interpreter
>            Reporter: Wes Peters
>            Assignee: Rohit Kumar
>            Priority: Low
>              Labels: lhf
>
> I was trying to capture some create key space and create table commands from a running cqlsh, and found there was no equivalent to the '\s' history command in Postgres' psql shell.  It's a great tool for figuring out what you were doing yesterday.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org