command

package
v0.34.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Driver string
	URL    string
	Host   string
	Port   string
	User   string
	Pass   string
	DBName string
	// PostgreSQL only.
	Schema string
	Limit  uint
	Socket string
	SSL    string
	// SSH.
	SSHHost          string
	SSHPort          string
	SSHUser          string
	SSHPass          string
	SSHKeyFile       string
	SSHKeyPassphrase string
	// SSL connection params.
	SSLCert     string
	SSLKey      string
	SSLPassword string
	SSLRootcert string
	// oracle specific.
	TraceFile string
	SSLVerify string
	Wallet    string
	// sql server.
	Encrypt                string
	TrustServerCertificate string
	ConnectionTimeout      string
	// TUI keybidings.
	TUIKeyBindings TUIKeyBindings
}

Options is a struct that stores the provided commands by the user.

func SetDefault

func SetDefault(opts Options) Options

SetDefault returns a Options struct and fills the empty values with environment variables if any.

func (*Options) UpdateKeybindings added in v0.34.0

func (o *Options) UpdateKeybindings(k TUIKeyBindings)

UpdateKeybindings method updates the TUIKeyBindings field, since the keybidings configuration parted ways with the connection configuration.

type TUIKeyBindings added in v0.32.0

type TUIKeyBindings struct {
	RunQuery    tcell.Key
	Structure   tcell.Key
	Indexes     tcell.Key
	Constraints tcell.Key
	ClearEditor tcell.Key
	Navigation  TUINavigationBindgins
}

type TUINavigationBindgins added in v0.32.0

type TUINavigationBindgins struct {
	Up    tcell.Key
	Down  tcell.Key
	Left  tcell.Key
	Right tcell.Key
}

Jump to

Keyboard shortcuts

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