session

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager handles application-level session state This is separate from the database session

func NewManager

func NewManager(cfg *config.Config) *Manager

NewManager creates a new session manager

func (*Manager) CurrentKeyspace

func (m *Manager) CurrentKeyspace() string

CurrentKeyspace returns the current keyspace

func (*Manager) GetOutputFormat

func (m *Manager) GetOutputFormat() config.OutputFormat

GetOutputFormat returns the current output format

func (*Manager) RequireConfirmation

func (m *Manager) RequireConfirmation() bool

RequireConfirmation returns whether confirmation is required for dangerous commands

func (*Manager) SetKeyspace

func (m *Manager) SetKeyspace(keyspace string)

SetKeyspace sets the current keyspace

func (*Manager) SetOutputFormat

func (m *Manager) SetOutputFormat(format config.OutputFormat)

SetOutputFormat sets the output format

func (*Manager) SetRequireConfirmation

func (m *Manager) SetRequireConfirmation(require bool)

SetRequireConfirmation sets whether confirmation is required

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL