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

Brad Schoening edited comment on CASSANDRA-15046 at 7/25/22 10:51 PM:
----------------------------------------------------------------------

CQLSH uses 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.

 


was (Author: bschoeni):
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-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to