Documentation
¶
Overview ¶
Package tui implements the interactive SQL client used by `rdq tui` (and the bare `rdq` invocation since tui is the default subcommand). It is a bubbletea program: a textarea SQL editor on top, a results pane below, and a help bar at the bottom.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
AWSConfig aws.Config
Profile string
ClusterArn string
SecretArn string
Database string
BedrockModel string
BedrockLanguage string
}
Config is the minimal set of inputs the TUI needs to run. The command layer constructs this from its Globals so that internal/tui does not have to import the command package (which would create an import cycle).
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the bubbletea Model for the rdq TUI.
func (Model) Init ¶
Init starts the spinner ticker and kicks off an asynchronous schema fetch so the AI prompt has up-to-date table/column context when the user invokes it. The TUI does not block on the fetch; if it is still running when the user presses Ctrl+G we send a degraded prompt without schema.