Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueryHistory ¶
type QueryHistory struct {
// contains filtered or unexported fields
}
QueryHistory :: struct for working with history in the interactive mode
func (*QueryHistory) Peek ¶ added in v0.8.0
func (q *QueryHistory) Peek() *string
Peek returns the last element of the history stack. returns nil if there is no history
func (*QueryHistory) Persist ¶
func (q *QueryHistory) Persist() error
Persist writes the history to the filesystem
func (*QueryHistory) Push ¶ added in v0.8.0
func (q *QueryHistory) Push(query string)
Push adds a string to the history queue trimming to maxHistorySize if necessary
Click to show internal directories.
Click to hide internal directories.