Documentation
¶
Overview ¶
Package tui is the gossms application layer. It wires the application-agnostic controls from internal/tuikit into the SQL-Server-specific Object Explorer, query panels, and dialogs; everything here knows about gosmo, config.Connection, and SQL Server object types.
Index ¶
- func FormatNodePath(n *explorerNode) string
- type AGAddDatabaseDialog
- type AGAddListenerDialog
- type AGAddReplicaDialog
- type AGDashboard
- func (d *AGDashboard) Close()
- func (d *AGDashboard) Draw(s tcell.Screen)
- func (d *AGDashboard) HandleKey(ev *tcell.EventKey) bool
- func (d *AGDashboard) HandleMouse(ev *tcell.EventMouse) bool
- func (d *AGDashboard) SetActive(v bool)
- func (d *AGDashboard) SetBounds(x, y, w, h int)
- func (d *AGDashboard) Title() string
- type ActivityMonitor
- func (am *ActivityMonitor) Close()
- func (am *ActivityMonitor) Draw(s tcell.Screen)
- func (am *ActivityMonitor) HandleKey(ev *tcell.EventKey) bool
- func (am *ActivityMonitor) HandleMouse(ev *tcell.EventMouse) bool
- func (am *ActivityMonitor) SetActive(v bool)
- func (am *ActivityMonitor) SetBounds(x, y, w, h int)
- func (am *ActivityMonitor) Title() string
- type App
- type AttachDatabaseDialog
- type BackupCertificateDialog
- type BackupDialog
- type BackupMasterKeyDialog
- type ConnectDialog
- func (d *ConnectDialog) Draw(s tcell.Screen)
- func (d *ConnectDialog) FocusedClipboardTarget() core.ClipboardTarget
- func (d *ConnectDialog) HandleKey(ev *tcell.EventKey) bool
- func (d *ConnectDialog) HandleMouse(ev *tcell.EventMouse) bool
- func (d *ConnectDialog) Hide()
- func (d *ConnectDialog) PreFill(c *config.Connection)
- func (d *ConnectDialog) Relayout()
- func (d *ConnectDialog) Show()
- func (d *ConnectDialog) ShowForPeer(opts config.Connection, then func())
- func (d *ConnectDialog) ShowForQueryPanel(qp *QueryPanel, then func())
- type DetachDatabaseDialog
- type DetailBrowser
- func (db *DetailBrowser) Closable() bool
- func (db *DetailBrowser) Cut() string
- func (db *DetailBrowser) Draw(s tcell.Screen)
- func (db *DetailBrowser) Forget(nodes []*explorerNode)
- func (db *DetailBrowser) HandleKey(ev *tcell.EventKey) bool
- func (db *DetailBrowser) HandleMouse(ev *tcell.EventMouse) bool
- func (db *DetailBrowser) HasSelection() bool
- func (db *DetailBrowser) Invalidate(app *App, node *explorerNode)
- func (db *DetailBrowser) InvalidateWhere(app *App, match func(*explorerNode) bool)
- func (db *DetailBrowser) Paste(text string)
- func (db *DetailBrowser) PurgeConn(sc *dbconn.ServerConn)
- func (db *DetailBrowser) RefreshCurrent(app *App)
- func (db *DetailBrowser) Retitle(node *explorerNode)
- func (db *DetailBrowser) SelectAll()
- func (db *DetailBrowser) SelectedText() string
- func (db *DetailBrowser) SetActive(v bool)
- func (db *DetailBrowser) SetBounds(x, y, w, h int)
- func (db *DetailBrowser) ShowNodeDetails(app *App, node *explorerNode)
- func (db *DetailBrowser) Title() string
- type DeviceCodeDialog
- func (d *DeviceCodeDialog) Cut() string
- func (d *DeviceCodeDialog) Draw(s tcell.Screen)
- func (d *DeviceCodeDialog) FocusedClipboardTarget() core.ClipboardTarget
- func (d *DeviceCodeDialog) HandleKey(ev *tcell.EventKey) bool
- func (d *DeviceCodeDialog) HandleMouse(ev *tcell.EventMouse) bool
- func (d *DeviceCodeDialog) HasSelection() bool
- func (d *DeviceCodeDialog) Paste(string)
- func (d *DeviceCodeDialog) SelectAll()
- func (d *DeviceCodeDialog) SelectedText() string
- type Dialog
- type FilterDialog
- type FindReplaceDialog
- func (d *FindReplaceDialog) Draw(s tcell.Screen)
- func (d *FindReplaceDialog) FocusedClipboardTarget() core.ClipboardTarget
- func (d *FindReplaceDialog) HandleKey(ev *tcell.EventKey) bool
- func (d *FindReplaceDialog) HandleMouse(ev *tcell.EventMouse) bool
- func (d *FindReplaceDialog) ShowFind()
- func (d *FindReplaceDialog) ShowReplace()
- type GenerateScriptsDialog
- type HelpDialog
- type KeyDiagnosticsDialog
- func (d *KeyDiagnosticsDialog) Draw(s tcell.Screen)
- func (d *KeyDiagnosticsDialog) FocusedClipboardTarget() core.ClipboardTarget
- func (d *KeyDiagnosticsDialog) HandleKey(ev *tcell.EventKey) bool
- func (d *KeyDiagnosticsDialog) HandleMouse(ev *tcell.EventMouse) bool
- func (d *KeyDiagnosticsDialog) RecordKey(ev *tcell.EventKey)
- func (d *KeyDiagnosticsDialog) RecordMouse(ev *tcell.EventMouse)
- func (d *KeyDiagnosticsDialog) Show()
- type LivePlanPanel
- func (lp *LivePlanPanel) Close()
- func (lp *LivePlanPanel) Cut() string
- func (lp *LivePlanPanel) Draw(s tcell.Screen)
- func (lp *LivePlanPanel) HandleKey(ev *tcell.EventKey) bool
- func (lp *LivePlanPanel) HandleMouse(ev *tcell.EventMouse) bool
- func (lp *LivePlanPanel) HasSelection() bool
- func (lp *LivePlanPanel) Paste(text string)
- func (lp *LivePlanPanel) SelectAll()
- func (lp *LivePlanPanel) SelectedText() string
- func (lp *LivePlanPanel) SetActive(v bool)
- func (lp *LivePlanPanel) SetBounds(x, y, w, h int)
- func (lp *LivePlanPanel) Title() string
- type LogSearchDialog
- func (d *LogSearchDialog) Draw(s tcell.Screen)
- func (d *LogSearchDialog) FocusedClipboardTarget() core.ClipboardTarget
- func (d *LogSearchDialog) HandleKey(ev *tcell.EventKey) bool
- func (d *LogSearchDialog) HandleMouse(ev *tcell.EventMouse) bool
- func (d *LogSearchDialog) ShowLogSearch(current gosmo.LogSearch, onApply func(gosmo.LogSearch))
- type LogViewer
- func (lv *LogViewer) Close()
- func (lv *LogViewer) Draw(s tcell.Screen)
- func (lv *LogViewer) HandleKey(ev *tcell.EventKey) bool
- func (lv *LogViewer) HandleMouse(ev *tcell.EventMouse) bool
- func (lv *LogViewer) Load()
- func (lv *LogViewer) Refresh()
- func (lv *LogViewer) SetActive(v bool)
- func (lv *LogViewer) SetBounds(x, y, w, h int)
- func (lv *LogViewer) ShowLog(logType gosmo.ErrorLogType, logNum int)
- func (lv *LogViewer) ShowLogs(logType gosmo.ErrorLogType, refs []logFileRef)
- func (lv *LogViewer) Title() string
- type NewAGDialog
- type NewAlertDialog
- type NewApplicationRoleDialog
- type NewAsymmetricKeyDialog
- type NewAuditDialog
- type NewAuditSpecificationDialog
- type NewBackupDeviceDialog
- type NewCertificateDialog
- type NewColumnEncryptionKeyDialog
- type NewColumnMasterKeyDialog
- type NewCredentialDialog
- type NewDatabaseAuditSpecificationDialog
- type NewDatabaseDialog
- type NewDatabaseScopedCredentialDialog
- type NewEndpointDialog
- type NewFullTextCatalogDialog
- type NewFullTextIndexDialog
- type NewFullTextStoplistDialog
- type NewIndexDialog
- type NewJobDialog
- type NewLoginDialog
- type NewOperatorDialog
- type NewRoleDialog
- type NewScheduleDialog
- type NewSchemaDialog
- type NewSearchPropertyListDialog
- type NewSequenceDialog
- type NewServerRoleDialog
- type NewSnapshotDialog
- type NewStatisticsDialog
- type NewSymmetricKeyDialog
- type NewSynonymDialog
- type NewUserDialog
- type NewXESessionDialog
- type NodeType
- type ObjectExplorer
- func (oe *ObjectExplorer) AddRoot(label string, sc *db.ServerConn) *explorerNode
- func (oe *ObjectExplorer) Draw(s tcell.Screen)
- func (oe *ObjectExplorer) DrawOverlay(s tcell.Screen)
- func (oe *ObjectExplorer) DrillInto(parent *explorerNode, match func(*explorerNode) bool)
- func (oe *ObjectExplorer) ExpandNode(n *explorerNode)
- func (oe *ObjectExplorer) Follow(n *explorerNode, to nodeKey)
- func (oe *ObjectExplorer) HandleKey(ev *tcell.EventKey) bool
- func (oe *ObjectExplorer) HandleMouse(ev *tcell.EventMouse) bool
- func (oe *ObjectExplorer) NodeAt(mx, my int) *explorerNode
- func (oe *ObjectExplorer) RefreshSelected()
- func (oe *ObjectExplorer) Reload(n *explorerNode)
- func (oe *ObjectExplorer) ReloadFolders(sc *db.ServerConn, match func(nodeData) bool)
- func (oe *ObjectExplorer) RemoveRootByConn(sc *db.ServerConn)
- func (oe *ObjectExplorer) Selected() *explorerNode
- func (oe *ObjectExplorer) SelectionAnchor() (x, y int, ok bool)
- func (oe *ObjectExplorer) SetActive(v bool)
- func (oe *ObjectExplorer) SetBounds(x, y, w, h int)
- func (oe *ObjectExplorer) SetChildren(n *explorerNode, children []*explorerNode)
- type OptionsDialog
- type PlanComparePanel
- func (p *PlanComparePanel) Cut() string
- func (p *PlanComparePanel) Draw(s tcell.Screen)
- func (p *PlanComparePanel) HandleKey(ev *tcell.EventKey) bool
- func (p *PlanComparePanel) HandleMouse(ev *tcell.EventMouse) bool
- func (p *PlanComparePanel) HasSelection() bool
- func (p *PlanComparePanel) Paste(text string)
- func (p *PlanComparePanel) SelectAll()
- func (p *PlanComparePanel) SelectedText() string
- func (p *PlanComparePanel) SetActive(v bool)
- func (p *PlanComparePanel) SetBounds(x, y, w, h int)
- func (p *PlanComparePanel) Title() string
- type PlanPanel
- func (pp *PlanPanel) Cut() string
- func (pp *PlanPanel) Draw(s tcell.Screen)
- func (pp *PlanPanel) HandleKey(ev *tcell.EventKey) bool
- func (pp *PlanPanel) HandleMouse(ev *tcell.EventMouse) bool
- func (pp *PlanPanel) HasSelection() bool
- func (pp *PlanPanel) Paste(text string)
- func (pp *PlanPanel) PlanXML() string
- func (pp *PlanPanel) SelectAll()
- func (pp *PlanPanel) SelectedText() string
- func (pp *PlanPanel) SetActive(v bool)
- func (pp *PlanPanel) SetBounds(x, y, w, h int)
- func (pp *PlanPanel) Title() string
- type ProfileDialog
- func (d *ProfileDialog) Draw(s tcell.Screen)
- func (d *ProfileDialog) FocusedClipboardTarget() core.ClipboardTarget
- func (d *ProfileDialog) HandleKey(ev *tcell.EventKey) bool
- func (d *ProfileDialog) HandleMouse(ev *tcell.EventMouse) bool
- func (d *ProfileDialog) ShowProfile(conn config.Connection, onAccept func(string, config.AllowClass) error)
- type PropDialog
- type PropertiesDialog
- type PropertyRow
- type QueryListDialog
- type QueryPanel
- func (p *QueryPanel) CancelExecution()
- func (p *QueryPanel) Close()
- func (p *QueryPanel) Dirty() bool
- func (p *QueryPanel) Draw(s tcell.Screen)
- func (p *QueryPanel) Execute()
- func (p *QueryPanel) ExecuteSelection()
- func (p *QueryPanel) FilePath() string
- func (p *QueryPanel) HandleKey(ev *tcell.EventKey) bool
- func (p *QueryPanel) HandleMouse(ev *tcell.EventMouse) bool
- func (p *QueryPanel) Reconnect()
- func (p *QueryPanel) SetActive(v bool)
- func (p *QueryPanel) SetBounds(x, y, w, h int)
- func (p *QueryPanel) SetResultsMode(m ResultsMode)
- func (p *QueryPanel) SetTitle(t string)
- func (p *QueryPanel) ShowEstimatedPlan()
- func (p *QueryPanel) Title() string
- type QueryStorePanel
- func (p *QueryStorePanel) Close()
- func (p *QueryStorePanel) Cut() string
- func (p *QueryStorePanel) Draw(s tcell.Screen)
- func (p *QueryStorePanel) HandleKey(ev *tcell.EventKey) bool
- func (p *QueryStorePanel) HandleMouse(ev *tcell.EventMouse) bool
- func (p *QueryStorePanel) HasSelection() bool
- func (p *QueryStorePanel) Load()
- func (p *QueryStorePanel) Paste(text string)
- func (p *QueryStorePanel) Refresh()
- func (p *QueryStorePanel) SelectAll()
- func (p *QueryStorePanel) SelectedText() string
- func (p *QueryStorePanel) SetActive(v bool)
- func (p *QueryStorePanel) SetBounds(x, y, w, h int)
- func (p *QueryStorePanel) ShowReport(title string)
- func (p *QueryStorePanel) Title() string
- type RegenerateMasterKeyDialog
- type ReplicationMonitorPanel
- func (p *ReplicationMonitorPanel) Close()
- func (p *ReplicationMonitorPanel) Cut() string
- func (p *ReplicationMonitorPanel) Draw(s tcell.Screen)
- func (p *ReplicationMonitorPanel) HandleKey(ev *tcell.EventKey) bool
- func (p *ReplicationMonitorPanel) HandleMouse(ev *tcell.EventMouse) bool
- func (p *ReplicationMonitorPanel) HasSelection() bool
- func (p *ReplicationMonitorPanel) Paste(text string)
- func (p *ReplicationMonitorPanel) Refresh()
- func (p *ReplicationMonitorPanel) SelectAll()
- func (p *ReplicationMonitorPanel) SelectedText() string
- func (p *ReplicationMonitorPanel) SetActive(v bool)
- func (p *ReplicationMonitorPanel) SetBounds(x, y, w, h int)
- func (p *ReplicationMonitorPanel) Title() string
- type RestoreDialog
- type ResultsMode
- type SendTestMailDialog
- type ShrinkDatabaseDialog
- type ShrinkFilesDialog
- type StatusHistoryDialog
- func (d *StatusHistoryDialog) Draw(s tcell.Screen)
- func (d *StatusHistoryDialog) FocusedClipboardTarget() core.ClipboardTarget
- func (d *StatusHistoryDialog) HandleKey(ev *tcell.EventKey) bool
- func (d *StatusHistoryDialog) HandleMouse(ev *tcell.EventMouse) bool
- func (d *StatusHistoryDialog) Record(msg string)
- func (d *StatusHistoryDialog) Show()
- type Task
- type TasksDialog
- type UpdateDialog
- type XEventViewer
- func (v *XEventViewer) Close()
- func (v *XEventViewer) Draw(s tcell.Screen)
- func (v *XEventViewer) HandleKey(ev *tcell.EventKey) bool
- func (v *XEventViewer) HandleMouse(ev *tcell.EventMouse) bool
- func (v *XEventViewer) SetActive(on bool)
- func (v *XEventViewer) SetBounds(x, y, w, h int)
- func (v *XEventViewer) Title() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatNodePath ¶
func FormatNodePath(n *explorerNode) string
FormatNodePath returns a breadcrumb path for the node ("Server > DB > Tables").
Types ¶
type AGAddDatabaseDialog ¶ added in v0.0.7
type AGAddDatabaseDialog struct {
// contains filtered or unexported fields
}
AGAddDatabaseDialog is the Add Database to Availability Group dialog.
func NewAGAddDatabaseDialog ¶ added in v0.0.7
func NewAGAddDatabaseDialog(app *App) *AGAddDatabaseDialog
NewAGAddDatabaseDialog creates the dialog and wires its callbacks.
type AGAddListenerDialog ¶ added in v0.0.7
type AGAddListenerDialog struct {
// contains filtered or unexported fields
}
AGAddListenerDialog is the Add Listener dialog.
func NewAGAddListenerDialog ¶ added in v0.0.7
func NewAGAddListenerDialog(app *App) *AGAddListenerDialog
NewAGAddListenerDialog creates the dialog and wires its callbacks.
type AGAddReplicaDialog ¶ added in v0.0.7
type AGAddReplicaDialog struct {
// contains filtered or unexported fields
}
AGAddReplicaDialog is the Add Replica to Availability Group dialog.
func NewAGAddReplicaDialog ¶ added in v0.0.7
func NewAGAddReplicaDialog(app *App) *AGAddReplicaDialog
NewAGAddReplicaDialog creates the dialog and wires its callbacks.
type AGDashboard ¶ added in v0.0.7
type AGDashboard struct {
// contains filtered or unexported fields
}
AGDashboard is an Always On dashboard hosted by layout.PanelManager, polling on its own goroutine until closed or disconnected.
func NewAGDashboard ¶ added in v0.0.7
func NewAGDashboard(app *App, conn *db.ServerConn, agName string) *AGDashboard
NewAGDashboard creates the panel and starts its refresh loop.
func (*AGDashboard) Close ¶ added in v0.0.7
func (d *AGDashboard) Close()
Close stops the refresh loop; the panel's context derives from the longer-lived connection's.
func (*AGDashboard) Draw ¶ added in v0.0.7
func (d *AGDashboard) Draw(s tcell.Screen)
func (*AGDashboard) HandleKey ¶ added in v0.0.7
func (d *AGDashboard) HandleKey(ev *tcell.EventKey) bool
HandleKey handles panel keys and passes the rest to the focused grid, returning its answer so app accelerators aren't swallowed.
func (*AGDashboard) HandleMouse ¶ added in v0.0.7
func (d *AGDashboard) HandleMouse(ev *tcell.EventMouse) bool
HandleMouse routes a press to the grid under it and moves focus with it, so wheel and keys act on the same grid; the rest of the gesture follows the press (dragZone).
func (*AGDashboard) SetActive ¶ added in v0.0.7
func (d *AGDashboard) SetActive(v bool)
func (*AGDashboard) SetBounds ¶ added in v0.0.7
func (d *AGDashboard) SetBounds(x, y, w, h int)
SetBounds splits header, replica section, database section, hint. The replica grid is sized to its contents when possible (few, fixed rows); the databases get the rest.
func (*AGDashboard) Title ¶ added in v0.0.7
func (d *AGDashboard) Title() string
type ActivityMonitor ¶ added in v0.0.6
type ActivityMonitor struct {
// contains filtered or unexported fields
}
ActivityMonitor is a multi-tab view of one server's live activity, hosted by layout.PanelManager. History, Sample and TempDB render internal/tui/dashboard into a fixed-size off-screen canvas scrolled by a viewport; Sessions and Block are grids over sp_WhoIsActive and sp_block.
One collector feeds History and Sample (Sample draws History's newest sample), so one rate and Pause govern both. TempDB has its own collector, store and rate.
func NewActivityMonitor ¶ added in v0.0.6
func NewActivityMonitor(app *App, sc *db.ServerConn) *ActivityMonitor
NewActivityMonitor creates the panel for one server connection.
func (*ActivityMonitor) Close ¶ added in v0.0.6
func (am *ActivityMonitor) Close()
Close releases the collector goroutines, per-tab connections and samples.
func (*ActivityMonitor) Draw ¶ added in v0.0.6
func (am *ActivityMonitor) Draw(s tcell.Screen)
Draw renders the tab row, toolbar row, then the active tab.
func (*ActivityMonitor) HandleKey ¶ added in v0.0.6
func (am *ActivityMonitor) HandleKey(ev *tcell.EventKey) bool
HandleKey routes keys for the active tab. Unhandled keys return false, including a scroll key at its boundary, so the keyboard can always leave.
func (*ActivityMonitor) HandleMouse ¶ added in v0.0.6
func (am *ActivityMonitor) HandleMouse(ev *tcell.EventMouse) bool
HandleMouse routes clicks, wheel scrolling, and scrollbar drags.
func (*ActivityMonitor) SetActive ¶ added in v0.0.6
func (am *ActivityMonitor) SetActive(v bool)
SetActive implements Activatable.
func (*ActivityMonitor) SetBounds ¶ added in v0.0.6
func (am *ActivityMonitor) SetBounds(x, y, w, h int)
SetBounds lays out a tab row, a toolbar row, and the active tab's content.
func (*ActivityMonitor) Title ¶ added in v0.0.6
func (am *ActivityMonitor) Title() string
Title implements Panel.
type App ¶
type App struct {
// contains filtered or unexported fields
}
App is the root application struct, owning the screen and every UI panel — the one place tuikit controls are bound to SQL-Server-specific behaviour.
func (*App) EmergencySave ¶ added in v0.0.13
EmergencySave writes the text of every query panel with unsaved changes to config.RecoveredDir, and returns the files it wrote plus one error per panel it could not save. cmd/gossms's run calls it from its recover, after App.Run has restored the terminal: a panic on the UI goroutine ends the process, and without this it takes every unsaved query with it.
Resuming the event loop after the panic is rejected: the state the panic left mid-mutation is worse than a clean exit with the text saved.
Safe on a nil App and on one whose UI was never built (a panic during startup). It draws nothing and touches no connection: it runs after screen.Fini, with state the panic may have left half-updated.
func (*App) FlushSaves ¶ added in v0.0.14
FlushSaves finishes the saves still owed once Run has returned, so quitting straight after OK in Options, say, does not lose the change: it waits up to wait for the config save in flight, adopts it, writes any save asked for after it synchronously, and waits for tracked-query saves. Their callbacks do not run — there is no UI left to report to — so failures go to the log.
It runs on main's goroutine with the event loop gone, which makes that goroutine the only one touching a.cfg. Not after a panic on the UI goroutine: a.cfg may be half-updated then.
func (*App) SaveOnSignal ¶ added in v0.0.13
SaveOnSignal is the SIGHUP/SIGTERM counterpart of EmergencySave: closing the terminal window, a dropped ssh session or a kill would otherwise end the process with the default action and take every unsaved query with it. tcell registers only SIGWINCH, so cmd/gossms's main relays the signal here.
The save runs on the UI goroutine, which owns the panels, and that callback then quits so Run returns. If the loop has not answered within wait — it may be the thing that is stuck — the save runs here instead: a racy read of the panel text beats losing it. It runs once either way, so a loop that wakes up late only quits. The caller still has to exit if Run never returns.
Everything goes to the log and nothing to the terminal, which after a SIGHUP is gone.
type AttachDatabaseDialog ¶ added in v0.0.9
type AttachDatabaseDialog struct {
// contains filtered or unexported fields
}
AttachDatabaseDialog is the Attach Database dialog.
func NewAttachDatabaseDialog ¶ added in v0.0.9
func NewAttachDatabaseDialog(app *App) *AttachDatabaseDialog
NewAttachDatabaseDialog creates the dialog and wires its callbacks.
type BackupCertificateDialog ¶ added in v0.0.13
type BackupCertificateDialog struct {
// contains filtered or unexported fields
}
BackupCertificateDialog is the Back Up Certificate dialog.
func NewBackupCertificateDialog ¶ added in v0.0.13
func NewBackupCertificateDialog(app *App) *BackupCertificateDialog
NewBackupCertificateDialog creates the dialog and wires its callbacks.
type BackupDialog ¶ added in v0.0.3
type BackupDialog struct {
dialogs.ModalDialog
// contains filtered or unexported fields
}
BackupDialog is the Back Up Database dialog (Object Explorer, database node, "Back Up Database..."). The backup itself runs as a background Task (see tasks.go), so the progress view's Hide button can dismiss the dialog while the backup keeps running — the status bar and Background Tasks dialog still track it.
func NewBackupDialog ¶ added in v0.0.3
func NewBackupDialog(app *App) *BackupDialog
NewBackupDialog creates the dialog. Widgets are built per show().
func (*BackupDialog) Draw ¶ added in v0.0.3
func (d *BackupDialog) Draw(s tcell.Screen)
Draw renders whichever mode the dialog is in.
func (*BackupDialog) FocusedClipboardTarget ¶ added in v0.0.8
func (d *BackupDialog) FocusedClipboardTarget() core.ClipboardTarget
FocusedClipboardTarget implements core.ClipboardHost: the destination path field while the option form is showing and has it focused. The progress view is buttons and a log, and drives its own btnFocus rather than focusable, so it answers nil.
func (*BackupDialog) HandleKey ¶ added in v0.0.3
func (d *BackupDialog) HandleKey(ev *tcell.EventKey) bool
HandleKey routes keyboard events.
func (*BackupDialog) HandleMouse ¶ added in v0.0.3
func (d *BackupDialog) HandleMouse(ev *tcell.EventMouse) bool
HandleMouse routes mouse events.
func (*BackupDialog) Hide ¶ added in v0.0.14
func (d *BackupDialog) Hide()
Hide closes the dialog and abandons its loads. A running backup is a Task, not a load, and carries on.
type BackupMasterKeyDialog ¶ added in v0.0.13
type BackupMasterKeyDialog struct {
// contains filtered or unexported fields
}
BackupMasterKeyDialog is Back Up Master Key.
func NewBackupMasterKeyDialog ¶ added in v0.0.13
func NewBackupMasterKeyDialog(app *App) *BackupMasterKeyDialog
NewBackupMasterKeyDialog creates the dialog and wires its callbacks.
type ConnectDialog ¶
type ConnectDialog struct {
dialogs.ModalDialog
// contains filtered or unexported fields
}
ConnectDialog is the "Connect to Server" modal dialog, embedding dialogs.ModalDialog and composing tuikit/widgets controls for its fields.
The layout follows SSMS 21: a History list on the left, and on the right a tabbed pane (properties or the built connection string) over a Custom Properties section both tabs share.
func NewConnectDialog ¶
func NewConnectDialog(app *App) *ConnectDialog
NewConnectDialog creates the connection dialog.
func (*ConnectDialog) FocusedClipboardTarget ¶ added in v0.0.8
func (d *ConnectDialog) FocusedClipboardTarget() core.ClipboardTarget
FocusedClipboardTarget implements core.ClipboardHost: whichever text field or editor has focus. A dropdown, checkbox, list or button answers nil.
func (*ConnectDialog) HandleKey ¶
func (d *ConnectDialog) HandleKey(ev *tcell.EventKey) bool
HandleKey routes keyboard events.
func (*ConnectDialog) HandleMouse ¶
func (d *ConnectDialog) HandleMouse(ev *tcell.EventMouse) bool
HandleMouse routes mouse events; the embedded ModalDialog blocks clicks outside its bounds via ConsumeOutsideClick.
func (*ConnectDialog) Hide ¶ added in v0.0.10
func (d *ConnectDialog) Hide()
Hide leaves the connecting state so a dismissed dialog does not reopen with a spinner running.
func (*ConnectDialog) PreFill ¶
func (d *ConnectDialog) PreFill(c *config.Connection)
PreFill pre-fills the dialog from an existing connection (the History pane's path).
Server and Port come back as the single folded address, joined by config.ResolveServer as gosmo's Port does, so the display is what would be dialled. Remember Password is ticked for an entry carrying a password (or an unreadable one) so older entries keep it until deliberately unticked.
func (*ConnectDialog) Relayout ¶ added in v0.0.12
func (d *ConnectDialog) Relayout()
Relayout re-fits the dialog to a resized terminal, re-deciding the pane mode first: ModalDialog.Relayout only recentres at the size last requested.
func (*ConnectDialog) Show ¶
func (d *ConnectDialog) Show()
Show opens the dialog: re-decides the pane mode against the terminal size and refills History (a connection made since is a new row).
func (*ConnectDialog) ShowForPeer ¶ added in v0.1.1
func (d *ConnectDialog) ShowForPeer(opts config.Connection, then func())
ShowForPeer opens the dialog to connect an instance a peer read refused for want of a registered connection (App.offerPeerConnect), pre-filled with opts. A success is saved and registered like any connection the dialog makes, but not added to Object Explorer: the user asked for the operation, not another tree. then (nil for nothing) runs after.
func (*ConnectDialog) ShowForQueryPanel ¶ added in v0.0.14
func (d *ConnectDialog) ShowForQueryPanel(qp *QueryPanel, then func())
ShowForQueryPanel opens the dialog to connect qp (an Execute in a window with no connection), then runs then (nil for nothing) on success. A window that had a connection pre-fills it, in its last database.
type DetachDatabaseDialog ¶ added in v0.0.9
type DetachDatabaseDialog struct {
// contains filtered or unexported fields
}
DetachDatabaseDialog is the Detach Database dialog.
func NewDetachDatabaseDialog ¶ added in v0.0.9
func NewDetachDatabaseDialog(app *App) *DetachDatabaseDialog
NewDetachDatabaseDialog creates the dialog and wires its callbacks.
type DetailBrowser ¶
type DetailBrowser struct {
// OnRefresh runs on a click of the title bar's refresh button — the same
// action as F5 / Edit > Refresh. Nil makes the button a no-op.
OnRefresh func()
// contains filtered or unexported fields
}
DetailBrowser shows details of the selected Object Explorer node — a Panel wrapping controls.DataGrid with a title bar and the SQL Server loading logic.
func NewDetailBrowser ¶
func NewDetailBrowser(title string) *DetailBrowser
NewDetailBrowser creates a detail browser.
func (*DetailBrowser) Closable ¶ added in v0.0.2
func (db *DetailBrowser) Closable() bool
Closable reports false: Object Explorer Details is a fixed, always-present panel, so the tab bar's [x] and Ctrl+W can't close it.
func (*DetailBrowser) Cut ¶ added in v0.0.2
func (db *DetailBrowser) Cut() string
func (*DetailBrowser) Draw ¶
func (db *DetailBrowser) Draw(s tcell.Screen)
Draw renders the title bar and the data grid.
func (*DetailBrowser) Forget ¶ added in v0.0.11
func (db *DetailBrowser) Forget(nodes []*explorerNode)
Forget drops every cached and pending entry for nodes that have left the tree (ObjectExplorer.releaseRetired calls it for the nodes a Reload replaced), so neither map holds them alive until the connection closes. Nothing is refetched: a node on screen that is among them is about to be reselected away from. Nil-safe.
func (*DetailBrowser) HandleKey ¶
func (db *DetailBrowser) HandleKey(ev *tcell.EventKey) bool
HandleKey closes a pinned chart readout on Escape and otherwise delegates to the data grid. Escape is claimed only while a box is showing: with none it belongs to whatever the panel is inside.
func (*DetailBrowser) HandleMouse ¶
func (db *DetailBrowser) HandleMouse(ev *tcell.EventMouse) bool
HandleMouse fires OnRefresh for a press on the title bar's refresh button, pins or dismisses a chart readout for one on the strip, and delegates the rest to the grid.
func (*DetailBrowser) HasSelection ¶ added in v0.0.2
func (db *DetailBrowser) HasSelection() bool
HasSelection and the SelectedText, Cut, Paste and SelectAll beside it implement clipboardTarget by forwarding to the grid, which is a real clipboard target only while its "Show Value" viewer is open.
func (*DetailBrowser) Invalidate ¶ added in v0.0.3
func (db *DetailBrowser) Invalidate(app *App, node *explorerNode)
Invalidate drops any cached detail data for node, so every Refresh action reaches the Detail Browser and not just the tree. A node on screen is refetched at once rather than on reselect. Nil-safe.
func (*DetailBrowser) InvalidateWhere ¶ added in v0.0.9
func (db *DetailBrowser) InvalidateWhere(app *App, match func(*explorerNode) bool)
InvalidateWhere drops every cached and pending entry whose node matches, and refetches the one on screen: Invalidate for a change that stales a class of nodes.
The predicate runs over cached nodes and over currentNode separately: a node whose fetch failed or is in flight has no cache entry and is still the one on screen.
func (*DetailBrowser) Paste ¶ added in v0.0.2
func (db *DetailBrowser) Paste(text string)
func (*DetailBrowser) PurgeConn ¶ added in v0.0.5
func (db *DetailBrowser) PurgeConn(sc *dbconn.ServerConn)
PurgeConn drops every cached and pending entry belonging to sc, whose nodes are about to leave the tree, so neither map holds a disconnected server's nodes and rows for the session's life. Nil-safe.
func (*DetailBrowser) RefreshCurrent ¶ added in v0.0.6
func (db *DetailBrowser) RefreshCurrent(app *App)
RefreshCurrent re-fetches whatever node the panel is showing, independently of the tree's selection — what the title bar's refresh button runs. Nil-safe.
func (*DetailBrowser) Retitle ¶ added in v0.0.14
func (db *DetailBrowser) Retitle(node *explorerNode)
Retitle re-reads the title from node's label when node is the one shown. A label re-read in place (the Resource Governor and Database Mail nodes' state) lands after the Refresh that re-fetched the grid, which titled the pane with the old label. Nil-safe like Invalidate.
func (*DetailBrowser) SelectAll ¶ added in v0.0.2
func (db *DetailBrowser) SelectAll()
func (*DetailBrowser) SelectedText ¶ added in v0.0.2
func (db *DetailBrowser) SelectedText() string
func (*DetailBrowser) SetActive ¶
func (db *DetailBrowser) SetActive(v bool)
SetActive marks this panel focused: the title bar's colour, and the grid's own, so selected rows draw as a selection rather than in the alternating-row grey an inactive grid falls back to — the selection is what Delete acts on.
func (*DetailBrowser) SetBounds ¶
func (db *DetailBrowser) SetBounds(x, y, w, h int)
SetBounds positions the panel, reserving the first row for the title bar and its right-aligned refresh button.
func (*DetailBrowser) ShowNodeDetails ¶
func (db *DetailBrowser) ShowNodeDetails(app *App, node *explorerNode)
ShowNodeDetails loads detail data for node asynchronously: every fetch is a network round trip and this fires on every tree-selection change, so running it inline would freeze the app on each arrow key against a slow server. A node already shown is served from cache. Nil-safe like Invalidate.
Whatever was in flight is cancelled first: this call supersedes it, same node or not.
func (*DetailBrowser) Title ¶
func (db *DetailBrowser) Title() string
Title returns the panel title (Panel interface).
type DeviceCodeDialog ¶ added in v0.0.11
type DeviceCodeDialog struct {
dialogs.ModalDialog
// contains filtered or unexported fields
}
DeviceCodeDialog shows the code a Microsoft Entra Device Code sign-in is waiting on, for the user to enter at Microsoft's page on any device — a phone, or a browser on another machine when gossms runs over SSH.
It lives exactly as long as the sign-in: App.promptDeviceCode opens it and closes it when the sign-in's context ends, whether the code was entered, the attempt timed out, or it was cancelled. Left to azidentity, the code is printed to standard output — the terminal tcell draws on — and erased by the next redraw.
func NewDeviceCodeDialog ¶ added in v0.0.11
func NewDeviceCodeDialog(app *App) *DeviceCodeDialog
NewDeviceCodeDialog creates the dialog.
func (*DeviceCodeDialog) Cut ¶ added in v0.0.11
func (d *DeviceCodeDialog) Cut() string
func (*DeviceCodeDialog) Draw ¶ added in v0.0.11
func (d *DeviceCodeDialog) Draw(s tcell.Screen)
Draw renders the dialog.
func (*DeviceCodeDialog) FocusedClipboardTarget ¶ added in v0.0.11
func (d *DeviceCodeDialog) FocusedClipboardTarget() core.ClipboardTarget
FocusedClipboardTarget implements core.ClipboardHost: the code, so Ctrl+C copies it wherever focus is — through the OS clipboard, or OSC 52 to the terminal's own over SSH.
func (*DeviceCodeDialog) HandleKey ¶ added in v0.0.11
func (d *DeviceCodeDialog) HandleKey(ev *tcell.EventKey) bool
HandleKey handles keyboard events. Escape cancels the sign-in, as it cancels the Connect dialog's attempt: the dialog has no other reason to close.
func (*DeviceCodeDialog) HandleMouse ¶ added in v0.0.11
func (d *DeviceCodeDialog) HandleMouse(ev *tcell.EventMouse) bool
HandleMouse handles mouse events.
func (*DeviceCodeDialog) HasSelection ¶ added in v0.0.11
func (d *DeviceCodeDialog) HasSelection() bool
func (*DeviceCodeDialog) Paste ¶ added in v0.0.11
func (d *DeviceCodeDialog) Paste(string)
func (*DeviceCodeDialog) SelectAll ¶ added in v0.0.11
func (d *DeviceCodeDialog) SelectAll()
func (*DeviceCodeDialog) SelectedText ¶ added in v0.0.11
func (d *DeviceCodeDialog) SelectedText() string
type Dialog ¶ added in v0.0.2
type Dialog interface {
Visible() bool
Draw(s tcell.Screen)
HandleKey(ev *tcell.EventKey) bool
HandleMouse(ev *tcell.EventMouse) bool
Relayout()
}
Dialog is the shape every modal dialog already has, by embedding tuikit/dialogs.ModalDialog (directly, or via dialogs.PropertiesDialog): Visible/Draw/HandleKey/HandleMouse/Relayout. App tracks which dialogs are open as a z-ordered stack of these instead of hand-enumerating every dialog type at each place that needs to know "what's on top" — adding a new dialog costs one line in buildUI's allDialogs list; draw order, input routing and resize handling then fall out of the stack automatically.
type FilterDialog ¶ added in v0.0.7
type FilterDialog struct {
dialogs.ModalDialog
// contains filtered or unexported fields
}
FilterDialog is Object Explorer's "Filter Settings" dialog: one row per property the folder offers (see filterProps), each an operator dropdown and a value field. Which rows it shows depends on the folder it was opened on, so the widgets are rebuilt on every showing.
Applying is the folder's business: OK hands the assembled filter to App.applyNodeFilter, which reloads the folder.
func NewFilterDialog ¶ added in v0.0.7
func NewFilterDialog(app *App) *FilterDialog
func (*FilterDialog) Draw ¶ added in v0.0.7
func (d *FilterDialog) Draw(s tcell.Screen)
func (*FilterDialog) FocusedClipboardTarget ¶ added in v0.0.8
func (d *FilterDialog) FocusedClipboardTarget() core.ClipboardTarget
FocusedClipboardTarget implements core.ClipboardHost: the focused row's value field. widgetAt answers nil past the rows, and an operator dropdown is not a clipboard target, so both fall through to nil.
func (*FilterDialog) HandleKey ¶ added in v0.0.7
func (d *FilterDialog) HandleKey(ev *tcell.EventKey) bool
func (*FilterDialog) HandleMouse ¶ added in v0.0.7
func (d *FilterDialog) HandleMouse(ev *tcell.EventMouse) bool
type FindReplaceDialog ¶ added in v0.0.6
type FindReplaceDialog struct {
dialogs.ModalDialog
// contains filtered or unexported fields
}
FindReplaceDialog is the query editor's Find and Replace dialog. One dialog serves both modes: Find hides the Replace field and its two buttons, Replace shows them.
Being modal it covers part of the editor, so the status line reports "Match 2 of 7 — line 143, col 12" rather than relying on the hit being visible. Repeat searching happens with the dialog closed (F3 / Shift+F3); the search, its options and the highlighting survive closing it.
func NewFindReplaceDialog ¶ added in v0.0.6
func NewFindReplaceDialog(app *App) *FindReplaceDialog
NewFindReplaceDialog builds the dialog. Fields and options persist across showings, so reopening offers the previous search back.
func (*FindReplaceDialog) Draw ¶ added in v0.0.6
func (d *FindReplaceDialog) Draw(s tcell.Screen)
func (*FindReplaceDialog) FocusedClipboardTarget ¶ added in v0.0.8
func (d *FindReplaceDialog) FocusedClipboardTarget() core.ClipboardTarget
FocusedClipboardTarget implements core.ClipboardHost: whichever of the Find what / Replace with fields has focus, nil on the checkboxes. Without it Ctrl+X cuts the *editor's* selection behind the dialog.
func (*FindReplaceDialog) HandleKey ¶ added in v0.0.6
func (d *FindReplaceDialog) HandleKey(ev *tcell.EventKey) bool
HandleKey routes keyboard events. Escape closes the dialog but leaves the search active, so F3 keeps working.
func (*FindReplaceDialog) HandleMouse ¶ added in v0.0.6
func (d *FindReplaceDialog) HandleMouse(ev *tcell.EventMouse) bool
HandleMouse routes mouse events; ModalDialog blocks clicks outside the dialog's bounds.
func (*FindReplaceDialog) ShowFind ¶ added in v0.0.6
func (d *FindReplaceDialog) ShowFind()
ShowFind opens the dialog in Find mode against the active query panel's editor. ShowReplace opens it with the Replace field and buttons shown.
func (*FindReplaceDialog) ShowReplace ¶ added in v0.0.6
func (d *FindReplaceDialog) ShowReplace()
type GenerateScriptsDialog ¶ added in v0.2.0
type GenerateScriptsDialog struct {
*propsheet.PropertySheet
// contains filtered or unexported fields
}
GenerateScriptsDialog is the Generate Scripts dialog.
func NewGenerateScriptsDialog ¶ added in v0.2.0
func NewGenerateScriptsDialog(app *App) *GenerateScriptsDialog
NewGenerateScriptsDialog creates the dialog and wires its callbacks.
type HelpDialog ¶
type HelpDialog struct {
dialogs.ModalDialog
// contains filtered or unexported fields
}
HelpDialog is the F1 help modal. It embeds dialogs.ModalDialog and renders a static, scrollable list of keyboard/mouse shortcuts.
func NewHelpDialog ¶
func NewHelpDialog(app *App) *HelpDialog
NewHelpDialog creates the help dialog.
func (*HelpDialog) HandleKey ¶
func (d *HelpDialog) HandleKey(ev *tcell.EventKey) bool
HandleKey processes keyboard events.
func (*HelpDialog) HandleMouse ¶
func (d *HelpDialog) HandleMouse(ev *tcell.EventMouse) bool
HandleMouse handles mouse events.
func (*HelpDialog) Relayout ¶ added in v0.0.15
func (d *HelpDialog) Relayout()
Relayout re-fits the dialog to a resized terminal: ModalDialog.Relayout only recentres at the size last requested.
func (*HelpDialog) Show ¶ added in v0.0.15
func (d *HelpDialog) Show()
Show re-fits the dialog to the terminal, then shows it.
type KeyDiagnosticsDialog ¶ added in v0.0.2
type KeyDiagnosticsDialog struct {
dialogs.ModalDialog
// contains filtered or unexported fields
}
KeyDiagnosticsDialog is a small modal that shows what tcell decoded for every key event while it's open: the raw Key/Modifiers/rune values plus ev.Name()'s decode (e.g. "Shift+Left"). It turns "a shortcut doesn't seem to work" into a 10-second check of whether the terminal delivers the modifier bits goSSMS expects. Mouse events are logged the same way, since a terminal can keep Shift+click for itself. See internal/tuikit/controls/editor.go and widgets/input_field.go for the Shift+Arrow selection handling this most often debugs.
Newest entries are prepended, so the most recent key press is the first line.
The log lives in a read-only controls.Editor rather than a hand-rolled line list, so it can be selected and copied: what the dialog shows is the text pasted into a bug report, and a non-core.ClipboardTarget widget would make Ctrl+C do nothing.
func NewKeyDiagnosticsDialog ¶ added in v0.0.2
func NewKeyDiagnosticsDialog(app *App) *KeyDiagnosticsDialog
NewKeyDiagnosticsDialog creates the key diagnostics dialog.
func (*KeyDiagnosticsDialog) Draw ¶ added in v0.0.2
func (d *KeyDiagnosticsDialog) Draw(s tcell.Screen)
Draw renders the dialog.
func (*KeyDiagnosticsDialog) FocusedClipboardTarget ¶ added in v0.0.8
func (d *KeyDiagnosticsDialog) FocusedClipboardTarget() core.ClipboardTarget
FocusedClipboardTarget implements core.ClipboardHost. The log editor is read-only, so Copy works and Cut/Paste are no-ops on it.
func (*KeyDiagnosticsDialog) HandleKey ¶ added in v0.0.2
func (d *KeyDiagnosticsDialog) HandleKey(ev *tcell.EventKey) bool
HandleKey processes keyboard events. RecordKey (called from app_events.go first) has already logged ev, so Escape/Enter closing the dialog shows up in the log too, as does the Ctrl+C that copies from it, which App.handleKey consumes centrally before any dialog sees it.
The read-only editor gets first refusal (arrows, Home/End, PgUp/PgDn, Shift-selection, Ctrl+A); it rejects Escape and Enter in read-only mode, which leaves those free to close the dialog.
func (*KeyDiagnosticsDialog) HandleMouse ¶ added in v0.0.2
func (d *KeyDiagnosticsDialog) HandleMouse(ev *tcell.EventMouse) bool
HandleMouse handles mouse events.
func (*KeyDiagnosticsDialog) RecordKey ¶ added in v0.0.2
func (d *KeyDiagnosticsDialog) RecordKey(ev *tcell.EventKey)
RecordKey appends a formatted description of ev to the log. Call only while the dialog is visible (see app_events.go's handleKey); recording unseen keys is wasted work.
Unlike StatusHistoryDialog.Record this needs no mutex: handleKey runs on the UI goroutine, the only one that reaches this.
func (*KeyDiagnosticsDialog) RecordMouse ¶ added in v0.0.9
func (d *KeyDiagnosticsDialog) RecordMouse(ev *tcell.EventMouse)
RecordMouse appends a description of a mouse event: the buttons, the modifiers, and where it landed. Same call rule as RecordKey.
A mouse gesture is not one event. tcell resends the held button for every pixel of a drag, and a hundred identical lines would bury the press that started it, so only a change of buttons or modifiers is recorded (a press, a release, a wheel tick). The position is wherever that change happened.
A modifier the terminal keeps for itself is invisible from inside the app: xfce4-terminal (VTE) handles Shift+click as its own text selection while mouse reporting is on and never forwards it, which reads like a broken Shift+click. One line in this log, or none, tells the two apart.
func (*KeyDiagnosticsDialog) Show ¶ added in v0.0.2
func (d *KeyDiagnosticsDialog) Show()
Show resets the log, then displays the dialog; each open starts a fresh session.
The editor is rebuilt unconditionally rather than through syncIfDirty, which refuses while a selection is live: a selection left from the last showing would pin the previous session's text on screen.
type LivePlanPanel ¶ added in v0.0.15
type LivePlanPanel struct {
// contains filtered or unexported fields
}
LivePlanPanel watches one session's running query in a live plan view until it is closed. It polls whatever the session runs next too: a batch moving to its next statement, or a new query after an idle spell.
func (*LivePlanPanel) Close ¶ added in v0.0.15
func (lp *LivePlanPanel) Close()
Close stops the poller (layout.Disposable).
func (*LivePlanPanel) Cut ¶ added in v0.0.15
func (lp *LivePlanPanel) Cut() string
func (*LivePlanPanel) Draw ¶ added in v0.0.15
func (lp *LivePlanPanel) Draw(s tcell.Screen)
Draw renders the title bar (with the view's state) and the wrapped PlanView.
func (*LivePlanPanel) HandleKey ¶ added in v0.0.15
func (lp *LivePlanPanel) HandleKey(ev *tcell.EventKey) bool
HandleKey delegates to the wrapped PlanView.
func (*LivePlanPanel) HandleMouse ¶ added in v0.0.15
func (lp *LivePlanPanel) HandleMouse(ev *tcell.EventMouse) bool
HandleMouse delegates to the wrapped PlanView.
func (*LivePlanPanel) HasSelection ¶ added in v0.0.15
func (lp *LivePlanPanel) HasSelection() bool
HasSelection and the rest of clipboardTarget forward to the PlanView, as PlanPanel's do.
func (*LivePlanPanel) Paste ¶ added in v0.0.15
func (lp *LivePlanPanel) Paste(text string)
func (*LivePlanPanel) SelectAll ¶ added in v0.0.15
func (lp *LivePlanPanel) SelectAll()
func (*LivePlanPanel) SelectedText ¶ added in v0.0.15
func (lp *LivePlanPanel) SelectedText() string
func (*LivePlanPanel) SetActive ¶ added in v0.0.15
func (lp *LivePlanPanel) SetActive(v bool)
SetActive marks this panel focused (affects title bar colour).
func (*LivePlanPanel) SetBounds ¶ added in v0.0.15
func (lp *LivePlanPanel) SetBounds(x, y, w, h int)
SetBounds positions the panel, reserving the first row for the title bar.
func (*LivePlanPanel) Title ¶ added in v0.0.15
func (lp *LivePlanPanel) Title() string
Title returns the panel's tab/window title (Panel interface).
type LogSearchDialog ¶ added in v0.0.8
type LogSearchDialog struct {
dialogs.ModalDialog
// contains filtered or unexported fields
}
LogSearchDialog edits one gosmo.LogSearch.
func NewLogSearchDialog ¶ added in v0.0.8
func NewLogSearchDialog(app *App) *LogSearchDialog
NewLogSearchDialog builds the dialog.
func (*LogSearchDialog) Draw ¶ added in v0.0.8
func (d *LogSearchDialog) Draw(s tcell.Screen)
Draw renders the dialog.
func (*LogSearchDialog) FocusedClipboardTarget ¶ added in v0.0.8
func (d *LogSearchDialog) FocusedClipboardTarget() core.ClipboardTarget
FocusedClipboardTarget implements core.ClipboardHost — every field here is text the user pastes into.
func (*LogSearchDialog) HandleKey ¶ added in v0.0.8
func (d *LogSearchDialog) HandleKey(ev *tcell.EventKey) bool
HandleKey routes keyboard events.
func (*LogSearchDialog) HandleMouse ¶ added in v0.0.8
func (d *LogSearchDialog) HandleMouse(ev *tcell.EventMouse) bool
HandleMouse routes mouse events like FindReplaceDialog's, including the release that must reach a latch-bearing field wherever it lands.
func (*LogSearchDialog) ShowLogSearch ¶ added in v0.0.8
func (d *LogSearchDialog) ShowLogSearch(current gosmo.LogSearch, onApply func(gosmo.LogSearch))
ShowLogSearch opens the dialog seeded with the search currently in force, not a blank form.
type LogViewer ¶ added in v0.0.7
type LogViewer struct {
// contains filtered or unexported fields
}
LogViewer is the Log File Viewer panel: a grid of one or more log files' entries over a details pane showing the selected entry in full.
Reads run on the panel's host connection rather than one of its own: each is a one-shot query bounded by logReadTimeout, so no background traffic queues behind the shared connection.
func NewLogViewer ¶ added in v0.0.7
func NewLogViewer(app *App, sc *db.ServerConn, logType gosmo.ErrorLogType, logNum int) *LogViewer
NewLogViewer creates the panel for one server connection, pointed at the given log file. Nothing is read until Load runs.
func (*LogViewer) Close ¶ added in v0.0.7
func (lv *LogViewer) Close()
Close cancels any in-flight read. Called from App.closePanelAt; the connection belongs to App. Without the cancel the query runs on the shared host connection until logReadTimeout.
func (*LogViewer) HandleKey ¶ added in v0.0.7
HandleKey routes a key to the filter field or the grid, whichever holds focus, after the panel's own bindings. It returns false for anything it didn't act on: App only reaches its own bindings (Tab out, Escape, the menu keys) on a false, so the panel is otherwise a keyboard trap.
func (*LogViewer) HandleMouse ¶ added in v0.0.7
func (lv *LogViewer) HandleMouse(ev *tcell.EventMouse) bool
HandleMouse routes a mouse event to the sub-region that owns it. The gesture rules are the five invariants in docs/ui-rules.md § Mouse, overlays, and async UI (reasoning in ARCHITECTURE.md § The mouseDragging idiom): a press claims the gesture until its release (dragZone), and a release is forwarded to every latch-bearing child wherever the pointer ended up.
func (*LogViewer) Load ¶ added in v0.0.7
func (lv *LogViewer) Load()
Load reads the selected files in the background and applies the merged result on the UI goroutine. The family's enumeration rides along so the file selector needs no second round trip.
func (*LogViewer) Refresh ¶ added in v0.0.7
func (lv *LogViewer) Refresh()
Refresh re-reads the current file and re-enumerates every family (F5 or the toolbar). The enumeration is dropped, not refreshed: a cycled log renumbers every archive, so the cached list is stale.
func (*LogViewer) SetActive ¶ added in v0.0.7
SetActive marks this panel focused (Activatable interface).
func (*LogViewer) SetBounds ¶ added in v0.0.7
SetBounds positions the panel: toolbar row, then grid and details pane either side of the splitter.
func (*LogViewer) ShowLog ¶ added in v0.0.7
func (lv *LogViewer) ShowLog(logType gosmo.ErrorLogType, logNum int)
ShowLog points the panel at a single log file and reads it. Reopening from another tree node comes through here, so an open viewer switches files instead of a second being created, and lands on the one-file view.
func (*LogViewer) ShowLogs ¶ added in v0.0.10
func (lv *LogViewer) ShowLogs(logType gosmo.ErrorLogType, refs []logFileRef)
ShowLogs points the panel at a set of files and reads them. The set may span families; logType is what the selectors fall back to then. An empty set is the current log of logType: an emptied selection would leave the grid with nothing to describe and no way back.
type NewAGDialog ¶ added in v0.0.7
type NewAGDialog struct {
// contains filtered or unexported fields
}
NewAGDialog is the New Availability Group dialog.
func NewNewAGDialog ¶ added in v0.0.7
func NewNewAGDialog(app *App) *NewAGDialog
NewNewAGDialog creates the dialog and wires its callbacks.
type NewAlertDialog ¶ added in v0.0.4
type NewAlertDialog struct {
// contains filtered or unexported fields
}
NewAlertDialog is the New Alert creation dialog.
func NewNewAlertDialog ¶ added in v0.0.4
func NewNewAlertDialog(app *App) *NewAlertDialog
NewNewAlertDialog creates the dialog and wires its callbacks.
type NewApplicationRoleDialog ¶ added in v0.1.2
type NewApplicationRoleDialog struct {
// contains filtered or unexported fields
}
NewApplicationRoleDialog is the New Application Role dialog.
func NewNewApplicationRoleDialog ¶ added in v0.1.2
func NewNewApplicationRoleDialog(app *App) *NewApplicationRoleDialog
NewNewApplicationRoleDialog creates the dialog and wires its callbacks.
type NewAsymmetricKeyDialog ¶ added in v0.0.13
type NewAsymmetricKeyDialog struct {
// contains filtered or unexported fields
}
NewAsymmetricKeyDialog is the New Asymmetric Key dialog.
func NewNewAsymmetricKeyDialog ¶ added in v0.0.13
func NewNewAsymmetricKeyDialog(app *App) *NewAsymmetricKeyDialog
NewNewAsymmetricKeyDialog creates the dialog and wires its callbacks.
type NewAuditDialog ¶ added in v0.0.9
type NewAuditDialog struct {
// contains filtered or unexported fields
}
NewAuditDialog is the New Audit creation dialog.
func NewNewAuditDialog ¶ added in v0.0.9
func NewNewAuditDialog(app *App) *NewAuditDialog
NewNewAuditDialog creates the dialog and wires its callbacks.
type NewAuditSpecificationDialog ¶ added in v0.0.9
type NewAuditSpecificationDialog struct {
// contains filtered or unexported fields
}
NewAuditSpecificationDialog is the New Server Audit Specification dialog.
func NewNewAuditSpecificationDialog ¶ added in v0.0.9
func NewNewAuditSpecificationDialog(app *App) *NewAuditSpecificationDialog
NewNewAuditSpecificationDialog creates the dialog and wires its callbacks.
type NewBackupDeviceDialog ¶ added in v0.0.9
type NewBackupDeviceDialog struct {
// contains filtered or unexported fields
}
NewBackupDeviceDialog is the New Backup Device creation dialog.
func NewNewBackupDeviceDialog ¶ added in v0.0.9
func NewNewBackupDeviceDialog(app *App) *NewBackupDeviceDialog
NewNewBackupDeviceDialog creates the dialog and wires its callbacks.
type NewCertificateDialog ¶ added in v0.0.13
type NewCertificateDialog struct {
// contains filtered or unexported fields
}
NewCertificateDialog is the New Certificate dialog.
func NewNewCertificateDialog ¶ added in v0.0.13
func NewNewCertificateDialog(app *App) *NewCertificateDialog
NewNewCertificateDialog creates the dialog and wires its callbacks.
type NewColumnEncryptionKeyDialog ¶ added in v0.0.8
type NewColumnEncryptionKeyDialog struct {
// contains filtered or unexported fields
}
NewColumnEncryptionKeyDialog is the New Column Encryption Key creation dialog.
func NewNewColumnEncryptionKeyDialog ¶ added in v0.0.8
func NewNewColumnEncryptionKeyDialog(app *App) *NewColumnEncryptionKeyDialog
NewNewColumnEncryptionKeyDialog creates the dialog and wires its callbacks.
type NewColumnMasterKeyDialog ¶ added in v0.0.8
type NewColumnMasterKeyDialog struct {
// contains filtered or unexported fields
}
NewColumnMasterKeyDialog is the New Column Master Key creation dialog.
func NewNewColumnMasterKeyDialog ¶ added in v0.0.8
func NewNewColumnMasterKeyDialog(app *App) *NewColumnMasterKeyDialog
NewNewColumnMasterKeyDialog creates the dialog and wires its callbacks.
type NewCredentialDialog ¶ added in v0.0.9
type NewCredentialDialog struct {
// contains filtered or unexported fields
}
NewCredentialDialog is the New Credential creation dialog.
func NewNewCredentialDialog ¶ added in v0.0.9
func NewNewCredentialDialog(app *App) *NewCredentialDialog
NewNewCredentialDialog creates the dialog and wires its callbacks.
type NewDatabaseAuditSpecificationDialog ¶ added in v0.0.10
type NewDatabaseAuditSpecificationDialog struct {
// contains filtered or unexported fields
}
NewDatabaseAuditSpecificationDialog is the New Database Audit Specification dialog.
func NewNewDatabaseAuditSpecificationDialog ¶ added in v0.0.10
func NewNewDatabaseAuditSpecificationDialog(app *App) *NewDatabaseAuditSpecificationDialog
NewNewDatabaseAuditSpecificationDialog creates the dialog and wires its callbacks.
type NewDatabaseDialog ¶ added in v0.0.3
type NewDatabaseDialog struct {
// contains filtered or unexported fields
}
NewDatabaseDialog is the New Database dialog (Object Explorer's server node and "Databases" folder). Unlike PropDialog (prop_dialog.go) it doesn't diff dirty pages against a loaded baseline: there is no existing object. General's apply always runs first, unconditionally, since it creates the database before Options'/Filegroups' applies can target it: a fixed three-step sequence, not a discovered dirty set. One instance is reused for every invocation.
func NewNewDatabaseDialog ¶ added in v0.0.3
func NewNewDatabaseDialog(app *App) *NewDatabaseDialog
NewNewDatabaseDialog creates the dialog and wires its callbacks.
type NewDatabaseScopedCredentialDialog ¶ added in v0.0.10
type NewDatabaseScopedCredentialDialog struct {
// contains filtered or unexported fields
}
NewDatabaseScopedCredentialDialog is the New Database Scoped Credential dialog.
func NewNewDatabaseScopedCredentialDialog ¶ added in v0.0.10
func NewNewDatabaseScopedCredentialDialog(app *App) *NewDatabaseScopedCredentialDialog
NewNewDatabaseScopedCredentialDialog creates the dialog and wires its callbacks.
type NewEndpointDialog ¶ added in v0.0.7
type NewEndpointDialog struct {
// contains filtered or unexported fields
}
NewEndpointDialog is the New Database Mirroring Endpoint dialog.
func NewNewEndpointDialog ¶ added in v0.0.7
func NewNewEndpointDialog(app *App) *NewEndpointDialog
NewNewEndpointDialog creates the dialog and wires its callbacks.
type NewFullTextCatalogDialog ¶ added in v0.0.15
type NewFullTextCatalogDialog struct {
// contains filtered or unexported fields
}
NewFullTextCatalogDialog is the New Full-Text Catalog dialog.
func NewNewFullTextCatalogDialog ¶ added in v0.0.15
func NewNewFullTextCatalogDialog(app *App) *NewFullTextCatalogDialog
NewNewFullTextCatalogDialog creates the dialog and wires its callbacks.
type NewFullTextIndexDialog ¶ added in v0.0.15
type NewFullTextIndexDialog struct {
// contains filtered or unexported fields
}
NewFullTextIndexDialog is the New Full-Text Index dialog.
func NewNewFullTextIndexDialog ¶ added in v0.0.15
func NewNewFullTextIndexDialog(app *App) *NewFullTextIndexDialog
NewNewFullTextIndexDialog creates the dialog and wires its callbacks.
type NewFullTextStoplistDialog ¶ added in v0.0.15
type NewFullTextStoplistDialog struct {
// contains filtered or unexported fields
}
NewFullTextStoplistDialog is the New Full-Text Stoplist dialog.
func NewNewFullTextStoplistDialog ¶ added in v0.0.15
func NewNewFullTextStoplistDialog(app *App) *NewFullTextStoplistDialog
NewNewFullTextStoplistDialog creates the dialog and wires its callbacks.
type NewIndexDialog ¶ added in v0.0.8
type NewIndexDialog struct {
// contains filtered or unexported fields
}
NewIndexDialog is the New Index creation dialog.
func NewNewIndexDialog ¶ added in v0.0.8
func NewNewIndexDialog(app *App) *NewIndexDialog
NewNewIndexDialog creates the dialog and wires its callbacks.
type NewJobDialog ¶ added in v0.0.4
type NewJobDialog struct {
// contains filtered or unexported fields
}
NewJobDialog is the New Job creation dialog.
func NewNewJobDialog ¶ added in v0.0.4
func NewNewJobDialog(app *App) *NewJobDialog
NewNewJobDialog creates the dialog and wires its callbacks.
type NewLoginDialog ¶ added in v0.0.3
type NewLoginDialog struct {
// contains filtered or unexported fields
}
NewLoginDialog is the New Login dialog (Object Explorer's Security > Logins folder). Same fixed-sequence apply as NewDatabaseDialog (new_database_dialog.go): General's apply always runs first, creating the login, before Server Roles/User Mapping/Securables/Status's applies can target it: a fixed five-step sequence, not a discovered dirty set. All five of gosmo's login sources are offered (buildNewLoginGeneralPage).
func NewNewLoginDialog ¶ added in v0.0.3
func NewNewLoginDialog(app *App) *NewLoginDialog
NewNewLoginDialog creates the dialog and wires its callbacks.
type NewOperatorDialog ¶ added in v0.0.4
type NewOperatorDialog struct {
// contains filtered or unexported fields
}
NewOperatorDialog is the New Operator creation dialog.
func NewNewOperatorDialog ¶ added in v0.0.4
func NewNewOperatorDialog(app *App) *NewOperatorDialog
NewNewOperatorDialog creates the dialog and wires its callbacks.
type NewRoleDialog ¶ added in v0.1.2
type NewRoleDialog struct {
// contains filtered or unexported fields
}
NewRoleDialog is the New Database Role dialog.
func NewNewRoleDialog ¶ added in v0.1.2
func NewNewRoleDialog(app *App) *NewRoleDialog
NewNewRoleDialog creates the dialog and wires its callbacks.
type NewScheduleDialog ¶ added in v0.0.4
type NewScheduleDialog struct {
// contains filtered or unexported fields
}
NewScheduleDialog is the New Schedule creation dialog.
func NewNewScheduleDialog ¶ added in v0.0.4
func NewNewScheduleDialog(app *App) *NewScheduleDialog
NewNewScheduleDialog creates the dialog and wires its callbacks.
type NewSchemaDialog ¶ added in v0.1.2
type NewSchemaDialog struct {
// contains filtered or unexported fields
}
NewSchemaDialog is the New Schema dialog.
func NewNewSchemaDialog ¶ added in v0.1.2
func NewNewSchemaDialog(app *App) *NewSchemaDialog
NewNewSchemaDialog creates the dialog and wires its callbacks.
type NewSearchPropertyListDialog ¶ added in v0.0.15
type NewSearchPropertyListDialog struct {
// contains filtered or unexported fields
}
NewSearchPropertyListDialog is the New Search Property List dialog.
func NewNewSearchPropertyListDialog ¶ added in v0.0.15
func NewNewSearchPropertyListDialog(app *App) *NewSearchPropertyListDialog
NewNewSearchPropertyListDialog creates the dialog and wires its callbacks.
type NewSequenceDialog ¶ added in v0.1.2
type NewSequenceDialog struct {
// contains filtered or unexported fields
}
NewSequenceDialog is the New Sequence dialog.
func NewNewSequenceDialog ¶ added in v0.1.2
func NewNewSequenceDialog(app *App) *NewSequenceDialog
NewNewSequenceDialog creates the dialog and wires its callbacks.
type NewServerRoleDialog ¶ added in v0.2.0
type NewServerRoleDialog struct {
// contains filtered or unexported fields
}
NewServerRoleDialog is the New Server Role dialog.
func NewNewServerRoleDialog ¶ added in v0.2.0
func NewNewServerRoleDialog(app *App) *NewServerRoleDialog
NewNewServerRoleDialog creates the dialog and wires its callbacks.
type NewSnapshotDialog ¶ added in v0.0.11
type NewSnapshotDialog struct {
// contains filtered or unexported fields
}
NewSnapshotDialog is the New Database Snapshot dialog.
func NewNewSnapshotDialog ¶ added in v0.0.11
func NewNewSnapshotDialog(app *App) *NewSnapshotDialog
NewNewSnapshotDialog creates the dialog and wires its callbacks.
type NewStatisticsDialog ¶ added in v0.0.8
type NewStatisticsDialog struct {
// contains filtered or unexported fields
}
NewStatisticsDialog is the New Statistics creation dialog.
func NewNewStatisticsDialog ¶ added in v0.0.8
func NewNewStatisticsDialog(app *App) *NewStatisticsDialog
NewNewStatisticsDialog creates the dialog and wires its callbacks.
type NewSymmetricKeyDialog ¶ added in v0.0.13
type NewSymmetricKeyDialog struct {
// contains filtered or unexported fields
}
NewSymmetricKeyDialog is the New Symmetric Key dialog.
func NewNewSymmetricKeyDialog ¶ added in v0.0.13
func NewNewSymmetricKeyDialog(app *App) *NewSymmetricKeyDialog
NewNewSymmetricKeyDialog creates the dialog and wires its callbacks.
type NewSynonymDialog ¶ added in v0.1.2
type NewSynonymDialog struct {
// contains filtered or unexported fields
}
NewSynonymDialog is the New Synonym dialog.
func NewNewSynonymDialog ¶ added in v0.1.2
func NewNewSynonymDialog(app *App) *NewSynonymDialog
NewNewSynonymDialog creates the dialog and wires its callbacks.
type NewUserDialog ¶ added in v0.0.13
type NewUserDialog struct {
// contains filtered or unexported fields
}
NewUserDialog is the New User dialog.
func NewNewUserDialog ¶ added in v0.0.13
func NewNewUserDialog(app *App) *NewUserDialog
NewNewUserDialog creates the dialog and wires its callbacks.
type NewXESessionDialog ¶ added in v0.0.14
type NewXESessionDialog struct {
// contains filtered or unexported fields
}
NewXESessionDialog is New Session.
func NewNewXESessionDialog ¶ added in v0.0.14
func NewNewXESessionDialog(app *App) *NewXESessionDialog
NewNewXESessionDialog creates the dialog and wires its callbacks.
type NodeType ¶
type NodeType int
NodeType identifies what kind of SQL Server object an explorer node represents. Application-specific domain data; the generic tree rendering/navigation lives in tuikit/controls.TreeView.
const ( NodeServer NodeType = iota NodeDatabases NodeSystemDatabases NodeDatabaseSnapshots NodeDatabaseSnapshot NodeDatabase NodeTables NodeSystemTables NodeFileTables NodeExternalTables NodeGraphTables NodeTable NodeColumns NodeColumn NodeKeys NodeKey NodeIndexes NodeIndex NodeStatistics NodeStatistic NodeViews NodeView NodeSystemViews NodeStoredProcedures NodeStoredProcedure NodeSystemProcedures NodeFunctions NodeFunction NodeSystemFunctions NodeSecurity NodeLogins NodeLogin NodeServerRoles NodeServerRole NodeCredentials NodeCredential NodeCryptographicProviders NodeCryptographicProvider NodeAudits NodeAudit NodeServerAuditSpecifications NodeServerAuditSpecification NodeServerObjects NodeBackupDevices NodeBackupDevice NodeServerTriggers NodeServerTrigger NodeEndpoints NodeEndpoint NodeManagement NodeSQLServerLogs NodeSQLServerLog NodeAgentJobs NodeAgentJobsFolder NodeAgentUserJobs NodeAgentSystemJobs NodeAgentJob NodeAgentJobActivity NodeAgentJobHistory NodeAgentJobCategories NodeAgentSchedules NodeAgentSchedule NodeAgentAlerts NodeAgentEventAlerts NodeAgentAlert NodeAgentAlertCategories NodeAgentOperators NodeAgentOperator NodeAgentAdmin NodeAgentReport NodeAgentErrorLogs NodeAgentErrorLog NodeLinkedServers NodeLinkedServer NodeAlwaysOn NodeAvailabilityGroups NodeAvailabilityGroup NodeAvailabilityReplicas NodeAvailabilityReplica NodeAvailabilityDatabases NodeAvailabilityDatabase NodeAGListeners NodeAGListener NodeDatabaseSecurity NodeUsers NodeUser NodeRoles NodeDatabaseRoles NodeDatabaseRole NodeApplicationRoles NodeApplicationRole NodeSchemas NodeSchema NodeTriggers NodeTrigger NodeProgrammability NodeDatabaseTriggers NodeDatabaseTrigger NodeSequences NodeSequence NodeSynonyms NodeSynonym NodeTypes NodeSystemDataTypes NodeSystemDataType NodeUserDefinedDataTypes NodeUserDefinedDataType NodeUserDefinedTableTypes NodeUserDefinedTableType NodeUserDefinedTypes NodeUserDefinedType NodeXMLSchemaCollections NodeXMLSchemaCollection NodeAssemblies NodeAssembly NodeRules NodeRule NodeDefaults NodeDefault NodePlanGuides NodePlanGuide NodeServiceBroker NodeMessageTypes NodeMessageType NodeContracts NodeContract NodeBrokerQueues NodeBrokerQueue NodeBrokerServices NodeBrokerService NodeRoutes NodeRoute NodeRemoteServiceBindings NodeRemoteServiceBinding NodeBrokerPriorities NodeBrokerPriority NodeExternalResources NodeExternalDataSources NodeExternalDataSource NodeExternalFileFormats NodeExternalFileFormat NodeExternalLibraries NodeExternalLibrary NodeForeignKey NodeChecks NodeCheck NodeStorage NodePartitionFunctions NodePartitionFunction NodePartitionSchemes NodePartitionScheme NodeDatabaseAuditSpecifications NodeDatabaseAuditSpecification NodeDatabaseScopedCredentials NodeDatabaseScopedCredential NodeAsymmetricKeys NodeAsymmetricKey NodeCertificates NodeCertificate NodeSymmetricKeys NodeSymmetricKey NodeMasterKey NodeSecurityPolicies NodeSecurityPolicy NodeAlwaysEncryptedKeys NodeQueryStore NodeQueryStoreReport NodeColumnMasterKeys NodeColumnMasterKey NodeColumnEncryptionKeys NodeColumnEncryptionKey NodeExtendedEvents NodeEventSessions NodeEventSession NodeEventTarget NodeXEventProfiler NodeXEventProfilerSession NodeResourceGovernor NodeResourcePools NodeResourcePool NodeWorkloadGroups NodeWorkloadGroup NodeExternalResourcePools NodeExternalResourcePool NodeDatabaseMail NodeReplication NodeLocalPublications NodePublication NodeLocalSubscriptions NodeLocalSubscription NodeFullTextCatalogs NodeFullTextCatalog NodeFullTextStoplists NodeFullTextStoplist NodeSearchPropertyLists NodeSearchPropertyList // NodeViewColumns and NodeViewColumn are a view's Columns folder and its // columns: types of their own, not NodeColumns/NodeColumn, because every // table-column action (Delete, Rename) is ALTER TABLE, which a view refuses. NodeViewColumns NodeViewColumn // NodeSchemaGroup is one schema's bucket under a folder in Group by Schema // mode: a folder built by regrouping the folder's loaded children, never by a // query, so it has no childLoaders entry and is created Loaded. Schema is the // schema and GroupOf the folder type it groups (groupedFolderTypes). NodeSchemaGroup NodeLoading NodeError )
type ObjectExplorer ¶
type ObjectExplorer struct {
// contains filtered or unexported fields
}
ObjectExplorer wraps a tuikit controls.TreeView and owns the SQL Server object model (roots, expansion state, lazy loading).
func NewObjectExplorer ¶
func NewObjectExplorer(app *App) *ObjectExplorer
NewObjectExplorer creates the object explorer panel.
func (*ObjectExplorer) AddRoot ¶
func (oe *ObjectExplorer) AddRoot(label string, sc *db.ServerConn) *explorerNode
AddRoot adds a new server root node and selects it, so Object Explorer Details populates immediately after a connect. SetNodes only carries the *previous* selection across; see controls.TreeView.SelectID.
func (*ObjectExplorer) Draw ¶
func (oe *ObjectExplorer) Draw(s tcell.Screen)
func (*ObjectExplorer) DrawOverlay ¶ added in v0.1.2
func (oe *ObjectExplorer) DrawOverlay(s tcell.Screen)
func (*ObjectExplorer) DrillInto ¶ added in v0.1.2
func (oe *ObjectExplorer) DrillInto(parent *explorerNode, match func(*explorerNode) bool)
DrillInto selects the child of parent that match picks, expanding parent (and the schema group holding the child) on the way. When parent's children aren't loaded it starts the load and selects the child once it lands (SetChildren); a selection the user makes meanwhile cancels that. No child matching leaves the selection on parent.
func (*ObjectExplorer) ExpandNode ¶ added in v0.0.8
func (oe *ObjectExplorer) ExpandNode(n *explorerNode)
ExpandNode expands n and fetches its children if not loaded: the path a click on the expander glyph takes. connect uses it to open a new server node as SSMS does.
func (*ObjectExplorer) Follow ¶ added in v0.1.2
func (oe *ObjectExplorer) Follow(n *explorerNode, to nodeKey)
Follow records that n's object now has key to, for the reload of n's listing folder that the caller starts next: if the selection is still on n when that reload lands, it moves to the node standing for to, not to the folder. It is dropped when that folder's load lands, or when the user selects a node.
func (*ObjectExplorer) HandleMouse ¶
func (oe *ObjectExplorer) HandleMouse(ev *tcell.EventMouse) bool
func (*ObjectExplorer) NodeAt ¶ added in v0.0.5
func (oe *ObjectExplorer) NodeAt(mx, my int) *explorerNode
NodeAt returns the node drawn at screen position (mx, my), or nil when that position isn't over one (scrollbar, border and blank space below the last node). Unlike Selected, it says what a press landed on, which drag-and-drop arming needs.
func (*ObjectExplorer) RefreshSelected ¶
func (oe *ObjectExplorer) RefreshSelected()
RefreshSelected forces the selected node to reload its children (F5 and Edit > Refresh). Everything a Refresh does is Reload's, so this path and the context menu's cannot drift apart.
func (*ObjectExplorer) Reload ¶ added in v0.0.11
func (oe *ObjectExplorer) Reload(n *explorerNode)
Reload re-reads n: its children if expanded, and its details. It is the one body behind every Refresh (F5, the context menu's, the reload after a write), so what a Refresh releases or re-reads is done once, here.
n's children are replaced, not updated: the load makes new nodes. The old ones are released through dropChildren or every Refresh leaked them.
Two connection-level extras ride along:
- on the server node, the cached capability answers are re-read. Rights granted to a connected login take effect on its existing sessions, so a Refresh that re-reads the objects must re-read what may be done with them, or the tree comes back current and every gate on it stale. Per-database answers are dropped (and the selection's re-primed); the server-scope set is re-probed off the UI goroutine.
- in the Always On subtree, the cached peer connect failures are dropped (forgetPeerFailuresForRefresh).
And two node-level ones: the Resource Governor and Database Mail nodes' labels carry their state, which Management's loader reads, so a Refresh of the node itself re-reads it in place (refreshResourceGovernorLabel, refreshDatabaseMailLabel), or a change from a query window would show only after a Refresh of Management.
func (*ObjectExplorer) ReloadFolders ¶ added in v0.0.14
func (oe *ObjectExplorer) ReloadFolders(sc *db.ServerConn, match func(nodeData) bool)
ReloadFolders reloads every node of sc's tree that match accepts, without looking below one. It is the one refresh after a write (create, attach, restore, delete, rename or state change), and the match is why:
- A write that finishes later than it started cannot hold on to the node it started from. A Refresh above it meanwhile retires that node, and Reload of a retired node is a no-op, so the write's own refresh was silently lost. A match names the folder by what it is (folderOf, sameNodeAs) and finds whichever node stands for it now.
- The folder, not the object's node: the folder's loader builds the label, and a rename leaves the node's name stale, so every later menu action on it would name the old object.
A folder never loaded is not in the tree and needs no action: its next expand fetches the current list.
func (*ObjectExplorer) RemoveRootByConn ¶
func (oe *ObjectExplorer) RemoveRootByConn(sc *db.ServerConn)
RemoveRootByConn removes the root belonging to the given connection.
func (*ObjectExplorer) Selected ¶
func (oe *ObjectExplorer) Selected() *explorerNode
Selected returns the application-level node currently highlighted.
func (*ObjectExplorer) SelectionAnchor ¶ added in v0.0.8
func (oe *ObjectExplorer) SelectionAnchor() (x, y int, ok bool)
SelectionAnchor is where a menu about the selected node should open — see controls.TreeView.SelectionAnchor.
func (*ObjectExplorer) SetActive ¶
func (oe *ObjectExplorer) SetActive(v bool)
func (*ObjectExplorer) SetBounds ¶
func (oe *ObjectExplorer) SetBounds(x, y, w, h int)
func (*ObjectExplorer) SetChildren ¶
func (oe *ObjectExplorer) SetChildren(n *explorerNode, children []*explorerNode)
SetChildren installs the loaded children for a node, from the background-load callback on the UI goroutine, and rebuilds the flat view. IDs are allocated here, not during the fetch, since allocID mutates shared state.
A retired node takes nothing: its children would be registered in byID under a parent no longer in the tree, and never released.
type OptionsDialog ¶ added in v0.0.2
type OptionsDialog struct {
dialogs.ModalDialog
// contains filtered or unexported fields
}
OptionsDialog is the application's Options/Settings dialog, reachable from Tools > Options.
func NewOptionsDialog ¶ added in v0.0.2
func NewOptionsDialog(app *App) *OptionsDialog
NewOptionsDialog creates the Options dialog.
func (*OptionsDialog) Draw ¶ added in v0.0.2
func (d *OptionsDialog) Draw(s tcell.Screen)
Draw renders the dialog.
func (*OptionsDialog) FocusedClipboardTarget ¶ added in v0.0.8
func (d *OptionsDialog) FocusedClipboardTarget() core.ClipboardTarget
FocusedClipboardTarget implements core.ClipboardHost: whichever input field has focus. The radio box, checkbox and button row answer nil.
func (*OptionsDialog) HandleKey ¶ added in v0.0.2
func (d *OptionsDialog) HandleKey(ev *tcell.EventKey) bool
HandleKey processes keyboard events.
func (*OptionsDialog) HandleMouse ¶ added in v0.0.2
func (d *OptionsDialog) HandleMouse(ev *tcell.EventMouse) bool
HandleMouse processes mouse events.
func (*OptionsDialog) Show ¶ added in v0.0.2
func (d *OptionsDialog) Show()
Show opens the dialog with the icon-style radio box focused, pre-filling every control from the current config.
type PlanComparePanel ¶ added in v0.0.9
type PlanComparePanel struct {
// contains filtered or unexported fields
}
PlanComparePanel shows one comparison: the statement properties above, the paired operator trees below. Everything is computed when built; there is no connection and nothing to reload.
func NewPlanComparePanel ¶ added in v0.0.9
func NewPlanComparePanel(app *App, title string, a, b *showplan.Plan) *PlanComparePanel
NewPlanComparePanel builds the comparison of two parsed plans. Each side starts on its first statement with a plan (firstStatement), and the toolbar's pickers move either side independently. Statement N is not paired with statement N: two batches differing by one statement would compare unrelated queries all the way down, so which statement faces which is the user's call. A Query Store plan is one statement.
func (*PlanComparePanel) Cut ¶ added in v0.0.9
func (p *PlanComparePanel) Cut() string
func (*PlanComparePanel) Draw ¶ added in v0.0.9
func (p *PlanComparePanel) Draw(s tcell.Screen)
Draw renders the title bar and both grids.
func (*PlanComparePanel) HandleKey ¶ added in v0.0.9
func (p *PlanComparePanel) HandleKey(ev *tcell.EventKey) bool
HandleKey routes to the focused grid, after Tab, the statement keys and the splitter's bindings. Tab leaves the panel on the second press, as QueryStorePanel's does: App moves focus out only when the panel declines.
func (*PlanComparePanel) HandleMouse ¶ added in v0.0.9
func (p *PlanComparePanel) HandleMouse(ev *tcell.EventMouse) bool
HandleMouse routes by sub-region, with the gesture rules in ARCHITECTURE.md § The mouseDragging idiom: the press claims the gesture, and the release goes to every latch-bearing child wherever the pointer ended up.
func (*PlanComparePanel) HasSelection ¶ added in v0.0.9
func (p *PlanComparePanel) HasSelection() bool
HasSelection and the SelectedText, Cut, Paste and SelectAll beside it implement clipboardTarget by forwarding to the focused grid.
func (*PlanComparePanel) Paste ¶ added in v0.0.9
func (p *PlanComparePanel) Paste(text string)
func (*PlanComparePanel) SelectAll ¶ added in v0.0.9
func (p *PlanComparePanel) SelectAll()
func (*PlanComparePanel) SelectedText ¶ added in v0.0.9
func (p *PlanComparePanel) SelectedText() string
func (*PlanComparePanel) SetActive ¶ added in v0.0.9
func (p *PlanComparePanel) SetActive(v bool)
SetActive marks this panel focused (Activatable interface).
func (*PlanComparePanel) SetBounds ¶ added in v0.0.9
func (p *PlanComparePanel) SetBounds(x, y, w, h int)
SetBounds positions the title bar and the two grids either side of the splitter.
func (*PlanComparePanel) Title ¶ added in v0.0.9
func (p *PlanComparePanel) Title() string
Title returns the panel's tab title (Panel interface).
type PlanPanel ¶ added in v0.0.3
type PlanPanel struct {
// contains filtered or unexported fields
}
PlanPanel is a detached, top-level window showing one execution plan in its own planview.PlanView, opened by the Execution Plan tab's "[ Expand ]" button (QueryPanel.newPlanView's OnExpand). Every click creates a new PlanPanel, even from the same query panel. Unlike DetailBrowser it's an ordinary closable panel (no Closable() override), so it gets the tab bar's [x] like a Query window.
func NewPlanPanel ¶ added in v0.0.3
NewPlanPanel creates a detached plan panel already showing plan. plan goes to a fresh planview.PlanView via SetPlan (not SetPlanXML) so the parsed tree is reused, not re-parsed. app supplies the clipboard hook for the operator summary's "Copy" item, as for QueryPanel's own PlanView; without it DataGrid leaves the item out of the menu.
func (*PlanPanel) HandleMouse ¶ added in v0.0.3
func (pp *PlanPanel) HandleMouse(ev *tcell.EventMouse) bool
HandleMouse delegates to the wrapped PlanView.
func (*PlanPanel) HasSelection ¶ added in v0.0.3
HasSelection and the SelectedText, Cut, Paste and SelectAll beside it implement clipboardTarget (internal/tui/clipboard.go) by forwarding to the wrapped PlanView, as DetailBrowser forwards to its grid.
func (*PlanPanel) PlanXML ¶ added in v0.0.8
PlanXML returns the plan's source document, for File > Save.
func (*PlanPanel) SelectedText ¶ added in v0.0.3
func (*PlanPanel) SetActive ¶ added in v0.0.3
SetActive marks this panel focused (affects title bar colour).
type ProfileDialog ¶ added in v0.2.0
type ProfileDialog struct {
dialogs.ModalDialog
// contains filtered or unexported fields
}
ProfileDialog names a saved connection for the command line (`gossms profile test <name>`) and sets the highest operation class the command line may run through it — the Connect dialog's Profile... button, on the History row selected. An empty name turns the entry back into a plain recent connection.
The focus ring is the name, then the dropdown; past either end is the button row (docs/ui-rules.md § Dialogs).
func NewProfileDialog ¶ added in v0.2.0
func NewProfileDialog(s tcell.Screen) *ProfileDialog
NewProfileDialog creates the dialog.
func (*ProfileDialog) Draw ¶ added in v0.2.0
func (d *ProfileDialog) Draw(s tcell.Screen)
Draw renders the dialog.
func (*ProfileDialog) FocusedClipboardTarget ¶ added in v0.2.0
func (d *ProfileDialog) FocusedClipboardTarget() core.ClipboardTarget
FocusedClipboardTarget implements core.ClipboardHost: the name field while it has focus.
func (*ProfileDialog) HandleKey ¶ added in v0.2.0
func (d *ProfileDialog) HandleKey(ev *tcell.EventKey) bool
HandleKey routes keyboard events. Enter in a field is OK, except on an open dropdown, where it picks the item.
func (*ProfileDialog) HandleMouse ¶ added in v0.2.0
func (d *ProfileDialog) HandleMouse(ev *tcell.EventMouse) bool
HandleMouse routes mouse events.
func (*ProfileDialog) ShowProfile ¶ added in v0.2.0
func (d *ProfileDialog) ShowProfile(conn config.Connection, onAccept func(string, config.AllowClass) error)
ShowProfile opens the dialog on conn, pre-filled with its current name and ceiling (Admin for an unnamed one, the config default). onAccept runs on OK.
type PropDialog ¶ added in v0.0.2
type PropDialog struct {
*propsheet.PropertySheet
// contains filtered or unexported fields
}
PropDialog is the app-layer orchestrator for propsheet.PropertySheet: it owns the goroutines that load pages and apply edits, translating between the framework's page-index/seq contract and SQL Server calls. One instance is reused for every invocation; show() re-seeds it with a fresh page set and context so edits and in-flight loads never leak between openings.
func NewPropDialog ¶ added in v0.0.2
func NewPropDialog(app *App) *PropDialog
NewPropDialog creates the properties dialog and wires its callbacks.
type PropertiesDialog ¶
type PropertiesDialog struct {
*dialogs.PropertiesDialog
// contains filtered or unexported fields
}
PropertiesDialog wraps tuikit/dialogs.PropertiesDialog, the flat single-page key/value viewer used for the About box and Object Dependencies. Multi-page, editable dialogs use PropDialog (prop_dialog.go / propsheet.PropertySheet); a page list and OK/Cancel/Apply are unnecessary weight for these two read-only lists.
func NewPropertiesDialog ¶
func NewPropertiesDialog(app *App) *PropertiesDialog
NewPropertiesDialog creates a generic properties dialog.
func (*PropertiesDialog) ShowDependencies ¶ added in v0.0.2
func (d *PropertiesDialog) ShowDependencies(app *App, sc *db.ServerConn, dbName, schema, name string)
ShowDependencies loads and displays what schema.name depends on and what depends on it: SSMS's Object Dependencies dialog. Both lists are network round trips, so the load is asynchronous and guarded by d.run: this dialog is a single shared instance, and a result landing after it has been closed or repurposed must not overwrite what it shows now. Its reads stop as soon as it is superseded.
func (*PropertiesDialog) ShowGenericProperties ¶
func (d *PropertiesDialog) ShowGenericProperties(title string, rows []PropertyRow)
ShowGenericProperties shows arbitrary key-value pairs (e.g. About box). Supersedes the run in flight like ShowDependencies on every new show: this dialog is a single shared instance reused for both features, so a Dependencies fetch still in flight when it is repurposed here (Escape out of Object Dependencies, then Help > About before the fetch lands) must not land later and overwrite these rows with stale dependency data.
func (*PropertiesDialog) ShowGenericPropertiesSized ¶ added in v0.0.6
func (d *PropertiesDialog) ShowGenericPropertiesSized(title string, rows []PropertyRow, w, h int)
ShowGenericPropertiesSized is ShowGenericProperties at an explicit dialog size, for content the default 60x24 can't hold (the About box).
type PropertyRow ¶
type PropertyRow = dialogs.PropertyRow
PropertyRow re-exports the tuikit dialogs.PropertyRow type so application code can refer to tui.PropertyRow without importing tuikit directly.
func PropertySection ¶ added in v0.0.6
func PropertySection(caption string) PropertyRow
PropertySection re-exports dialogs.PropertySection — a group-heading row for a PropertyRow list.
type QueryListDialog ¶ added in v0.0.2
type QueryListDialog struct {
dialogs.ModalDialog
// contains filtered or unexported fields
}
QueryListDialog lists every currently open query panel and lets the user jump straight to one (Tools > Query List).
func NewQueryListDialog ¶ added in v0.0.2
func NewQueryListDialog(app *App) *QueryListDialog
NewQueryListDialog creates the dialog.
func (*QueryListDialog) Draw ¶ added in v0.0.2
func (d *QueryListDialog) Draw(s tcell.Screen)
Draw renders the query list.
func (*QueryListDialog) HandleKey ¶ added in v0.0.2
func (d *QueryListDialog) HandleKey(ev *tcell.EventKey) bool
HandleKey processes keyboard events.
func (*QueryListDialog) HandleMouse ¶ added in v0.0.2
func (d *QueryListDialog) HandleMouse(ev *tcell.EventMouse) bool
HandleMouse processes mouse events.
func (*QueryListDialog) Show ¶ added in v0.0.2
func (d *QueryListDialog) Show()
Show rebuilds the list from the current panels and displays the dialog.
type QueryPanel ¶
type QueryPanel struct {
// contains filtered or unexported fields
}
QueryPanel holds a SQL editor above a results area, separated by a resizable horizontal Splitter. Once a query has run, the results area grows a tab bar: one tab per result set plus a Messages tab (PRINT output, rows-affected counts, errors). It implements layout.Panel.
func NewQueryPanel ¶
func NewQueryPanel(app *App, title string) *QueryPanel
NewQueryPanel creates a query panel bound to the given App (for connection lookup and status updates) and titled accordingly.
func (*QueryPanel) CancelExecution ¶ added in v0.0.2
func (p *QueryPanel) CancelExecution()
CancelExecution cancels the in-flight query, if one is running. A COMMIT or ROLLBACK from endTransactions holds the latch with no cancel: an attention mid-COMMIT would leave its outcome unknown, so it is said to be unstoppable rather than absent.
func (*QueryPanel) Close ¶ added in v0.0.11
func (p *QueryPanel) Close()
Close cancels an in-flight query or plan fetch and ends the panel's session and connection (layout.Disposable). Called from App.closePanelAt.
func (*QueryPanel) Dirty ¶ added in v0.0.2
func (p *QueryPanel) Dirty() bool
Dirty reports whether the editor holds changes not yet saved to filePath, or any content at all for a panel never saved. It is layout.Dirty, so the tab bar can show a "*".
The tab bar asks this from both tabSegments and Draw every frame, and Text() materialises the whole script (a 20k-line script cost ~90 ms per keystroke, B10). So the answer is cached per document version, and a recompute walks the document's lines against savedText rather than building Text(). It compares text rather than versions because undoing back to the saved text must read as clean and the version never repeats.
func (*QueryPanel) Draw ¶
func (p *QueryPanel) Draw(s tcell.Screen)
Draw renders the title bar, editor, splitter, results tab bar, and grid.
func (*QueryPanel) Execute ¶
func (p *QueryPanel) Execute()
Execute runs the query against the connected server: the selected text if the editor has a selection, otherwise the whole content. Query > Execute and F5 both call it.
Every run entry point closes the completion popup first: running is never a completion gesture, and a "Loading suggestions..." placeholder left open across the run outlives its reason (B12).
func (*QueryPanel) ExecuteSelection ¶ added in v0.0.2
func (p *QueryPanel) ExecuteSelection()
ExecuteSelection runs only the editor's selected text, setting a status message and nothing else when there is no selection (unlike Execute, which falls back to the whole script).
func (*QueryPanel) FilePath ¶ added in v0.0.2
func (p *QueryPanel) FilePath() string
FilePath returns the path this panel was last saved to, or "" if never saved.
func (*QueryPanel) HandleKey ¶
func (p *QueryPanel) HandleKey(ev *tcell.EventKey) bool
HandleKey routes keys to result tab switching (Ctrl+PgUp/PgDn), F5 execute, or whichever of the editor/results grid last got a mouse click (resultsFocused). The splitter's Ctrl+Up/Down resize gets first refusal only while the results grid holds focus; while the editor holds it, Ctrl+arrows must reach the editor's word-jump/line-select bindings instead of being swallowed for resize.
func (*QueryPanel) HandleMouse ¶
func (p *QueryPanel) HandleMouse(ev *tcell.EventMouse) bool
HandleMouse routes mouse events to the splitter (drag), result tabs, editor, results grid, or results-text view.
func (*QueryPanel) Reconnect ¶ added in v0.0.4
func (p *QueryPanel) Reconnect()
Reconnect re-dials this panel's connection with the same server and login, in the database it is currently in (connectForQueryPanel): the escape hatch for a connection dropped by an idle timeout, a killed session or a failover. A no-op if the panel was never connected (no Opts to redial with).
The new connection brings a new session, so everything the old one held (temp tables, SET options, an open transaction) is gone, and the status bar says so. An open transaction is offered for commit first, as closing the panel does; nothing is re-run on the new session.
p.conn is left as the now-closed old connection rather than nilled: connectForQueryPanel reads only its Opts, and keeping it non-nil after a failed redial leaves the panel like any with a dropped connection: isConnected false, Reconnect enabled, Opts there to retry.
func (*QueryPanel) SetActive ¶
func (p *QueryPanel) SetActive(v bool)
SetActive marks this panel as focused.
func (*QueryPanel) SetBounds ¶
func (p *QueryPanel) SetBounds(x, y, w, h int)
SetBounds positions the panel and lays out the editor/splitter/results.
func (*QueryPanel) SetResultsMode ¶ added in v0.0.2
func (p *QueryPanel) SetResultsMode(m ResultsMode)
SetResultsMode changes how results render; the active tab re-renders at once, so Grid/Text applies to the result already on screen.
func (*QueryPanel) SetTitle ¶
func (p *QueryPanel) SetTitle(t string)
func (*QueryPanel) ShowEstimatedPlan ¶ added in v0.0.3
func (p *QueryPanel) ShowEstimatedPlan()
ShowEstimatedPlan fetches the estimated (compile-only) execution plan for the editor's selection, or the whole script if nothing is selected: the same rule as Execute, and like it closes the completion popup first.
func (*QueryPanel) Title ¶
func (p *QueryPanel) Title() string
Title returns the panel's tab title: the file's base name once associated with one, otherwise the counter-based "Query N".
type QueryStorePanel ¶ added in v0.0.9
type QueryStorePanel struct {
// contains filtered or unexported fields
}
QueryStorePanel is one database's Query Store: the seven views SSMS shows, with the metric, statistic, window and row cap selectable, and the selected query's plans beside them.
Reads run on the panel's host connection, not one of its own: each is a one-shot query bounded by qsReadTimeout, so no background traffic queues behind the shared connection.
func NewQueryStorePanel ¶ added in v0.0.9
func NewQueryStorePanel(app *App, sc *db.ServerConn, dbName, title string) *QueryStorePanel
NewQueryStorePanel creates the panel for one database, opened on the report title names (any unrecognised title opens the first). Nothing is read until Load runs.
func (*QueryStorePanel) Close ¶ added in v0.0.9
func (p *QueryStorePanel) Close()
Close cancels any in-flight read. Called from App.closePanelAt; the connection belongs to App.
func (*QueryStorePanel) Cut ¶ added in v0.0.9
func (p *QueryStorePanel) Cut() string
func (*QueryStorePanel) Draw ¶ added in v0.0.9
func (p *QueryStorePanel) Draw(s tcell.Screen)
Draw renders the panel (Panel interface).
func (*QueryStorePanel) HandleKey ¶ added in v0.0.9
func (p *QueryStorePanel) HandleKey(ev *tcell.EventKey) bool
HandleKey routes a key to whichever grid holds focus, after the panel's own bindings. It returns false for anything it didn't act on: App reaches its own bindings (Tab out, Escape, the menu keys) only on a false, so the panel is otherwise a keyboard trap.
func (*QueryStorePanel) HandleMouse ¶ added in v0.0.9
func (p *QueryStorePanel) HandleMouse(ev *tcell.EventMouse) bool
HandleMouse routes a mouse event to whichever sub-region owns it. The gesture rules are the five in ARCHITECTURE.md § The mouseDragging idiom: a press claims the gesture until its release (dragZone), and a release is forwarded to every latch-bearing child wherever the pointer ended up.
func (*QueryStorePanel) HasSelection ¶ added in v0.0.9
func (p *QueryStorePanel) HasSelection() bool
HasSelection and the SelectedText, Cut, Paste and SelectAll beside it implement clipboardTarget by forwarding to the focused grid, as DetailBrowser does to its one grid.
func (*QueryStorePanel) Load ¶ added in v0.0.9
func (p *QueryStorePanel) Load()
Load runs the current report in the background and applies the result on the UI goroutine.
func (*QueryStorePanel) Paste ¶ added in v0.0.9
func (p *QueryStorePanel) Paste(text string)
func (*QueryStorePanel) Refresh ¶ added in v0.0.9
func (p *QueryStorePanel) Refresh()
Refresh re-reads the current report (F5 or the toolbar), keeping the user where they were. Rewriting the same rows under the cursor is what redrawGrid is for; after a Force Plan the user is looking at the row just acted on.
func (*QueryStorePanel) SelectAll ¶ added in v0.0.9
func (p *QueryStorePanel) SelectAll()
func (*QueryStorePanel) SelectedText ¶ added in v0.0.9
func (p *QueryStorePanel) SelectedText() string
func (*QueryStorePanel) SetActive ¶ added in v0.0.9
func (p *QueryStorePanel) SetActive(v bool)
SetActive marks this panel focused (Activatable interface).
func (*QueryStorePanel) SetBounds ¶ added in v0.0.9
func (p *QueryStorePanel) SetBounds(x, y, w, h int)
SetBounds positions the panel: the two toolbar rows, then the chart and the two grids either side of the splitters.
func (*QueryStorePanel) ShowReport ¶ added in v0.0.9
func (p *QueryStorePanel) ShowReport(title string)
ShowReport points the panel at one of the seven views and reads it. Reopening from another tree node comes through here, so an open panel switches view instead of a second being created.
func (*QueryStorePanel) Title ¶ added in v0.0.9
func (p *QueryStorePanel) Title() string
Title returns the panel's tab title (Panel interface).
type RegenerateMasterKeyDialog ¶ added in v0.0.13
type RegenerateMasterKeyDialog struct {
// contains filtered or unexported fields
}
RegenerateMasterKeyDialog is Regenerate Master Key.
func NewRegenerateMasterKeyDialog ¶ added in v0.0.13
func NewRegenerateMasterKeyDialog(app *App) *RegenerateMasterKeyDialog
NewRegenerateMasterKeyDialog creates the dialog and wires its callbacks.
type ReplicationMonitorPanel ¶ added in v0.0.15
type ReplicationMonitorPanel struct {
// contains filtered or unexported fields
}
ReplicationMonitorPanel is one server's Replication Monitor.
Reads run on the server's shared pool: each is a short procedure call, bounded by rmReadTimeout, and the timer never starts a refresh while one is out (busy).
func NewReplicationMonitorPanel ¶ added in v0.0.15
func NewReplicationMonitorPanel(app *App, sc *db.ServerConn) *ReplicationMonitorPanel
NewReplicationMonitorPanel creates the panel for one server. Nothing is read until Refresh.
func (*ReplicationMonitorPanel) Close ¶ added in v0.0.15
func (p *ReplicationMonitorPanel) Close()
Close stops the timer and every read (layout.Disposable).
func (*ReplicationMonitorPanel) Cut ¶ added in v0.0.15
func (p *ReplicationMonitorPanel) Cut() string
func (*ReplicationMonitorPanel) Draw ¶ added in v0.0.15
func (p *ReplicationMonitorPanel) Draw(s tcell.Screen)
Draw renders the panel (Panel interface).
func (*ReplicationMonitorPanel) HandleKey ¶ added in v0.0.15
func (p *ReplicationMonitorPanel) HandleKey(ev *tcell.EventKey) bool
HandleKey routes a key: F5 refreshes, Tab walks the four grids and then leaves (false, so App moves focus on), Ctrl+Up/Down resize the panes, and the rest goes to the focused grid.
func (*ReplicationMonitorPanel) HandleMouse ¶ added in v0.0.15
func (p *ReplicationMonitorPanel) HandleMouse(ev *tcell.EventMouse) bool
HandleMouse routes a mouse event to the sub-region that owns it: a press claims the gesture until its release, and a release goes to every latch-bearing child wherever the pointer ended.
func (*ReplicationMonitorPanel) HasSelection ¶ added in v0.0.15
func (p *ReplicationMonitorPanel) HasSelection() bool
HasSelection and the rest of clipboardTarget forward to the focused grid.
func (*ReplicationMonitorPanel) Paste ¶ added in v0.0.15
func (p *ReplicationMonitorPanel) Paste(text string)
func (*ReplicationMonitorPanel) Refresh ¶ added in v0.0.15
func (p *ReplicationMonitorPanel) Refresh()
Refresh re-reads everything (F5, the toolbar, the timer), keeping each pane's selection.
func (*ReplicationMonitorPanel) SelectAll ¶ added in v0.0.15
func (p *ReplicationMonitorPanel) SelectAll()
func (*ReplicationMonitorPanel) SelectedText ¶ added in v0.0.15
func (p *ReplicationMonitorPanel) SelectedText() string
func (*ReplicationMonitorPanel) SetActive ¶ added in v0.0.15
func (p *ReplicationMonitorPanel) SetActive(v bool)
SetActive marks this panel focused (Activatable interface).
func (*ReplicationMonitorPanel) SetBounds ¶ added in v0.0.15
func (p *ReplicationMonitorPanel) SetBounds(x, y, w, h int)
SetBounds positions the panel: the toolbar row, then the four grids either side of the three splitters.
func (*ReplicationMonitorPanel) Title ¶ added in v0.0.15
func (p *ReplicationMonitorPanel) Title() string
Title returns the panel's tab title (Panel interface).
type RestoreDialog ¶ added in v0.0.3
type RestoreDialog struct {
dialogs.ModalDialog
// contains filtered or unexported fields
}
RestoreDialog is the Restore Database dialog (Object Explorer, database node and Databases folder). The source is either a backup file path or an entry picked from msdb backup history; the restore runs as a background Task (tasks.go), so Hide can dismiss the progress view while it keeps running.
When the target database name differs from the one in the backup, every file is relocated (MOVE) to the server's default data/log directories under a "<target>_<logical name>" name, so restoring a copy next to the original works without the two databases fighting over the same files.
func NewRestoreDialog ¶ added in v0.0.3
func NewRestoreDialog(app *App) *RestoreDialog
NewRestoreDialog creates the dialog. Widgets are built per show().
func (*RestoreDialog) Draw ¶ added in v0.0.3
func (d *RestoreDialog) Draw(s tcell.Screen)
Draw renders whichever mode the dialog is in.
func (*RestoreDialog) FocusedClipboardTarget ¶ added in v0.0.8
func (d *RestoreDialog) FocusedClipboardTarget() core.ClipboardTarget
FocusedClipboardTarget implements core.ClipboardHost: the backup-file or target-database field while the option form is showing and has it focused. The inspect, files and progress views drive their own focus, so each answers nil.
func (*RestoreDialog) HandleKey ¶ added in v0.0.3
func (d *RestoreDialog) HandleKey(ev *tcell.EventKey) bool
HandleKey routes keyboard events.
func (*RestoreDialog) HandleMouse ¶ added in v0.0.3
func (d *RestoreDialog) HandleMouse(ev *tcell.EventMouse) bool
HandleMouse routes mouse events.
func (*RestoreDialog) Hide ¶ added in v0.0.14
func (d *RestoreDialog) Hide()
Hide closes the dialog and abandons every load still out, so none keeps holding a connection for a dialog no one is looking at. A running restore is a Task, not a load, and carries on.
type ResultsMode ¶ added in v0.0.2
type ResultsMode int
ResultsMode selects how QueryPanel renders a successful result set — matching SSMS's Query > Results To Grid/Text/File.
const ( ResultsModeGrid ResultsMode = iota ResultsModeText ResultsModeFile )
type SendTestMailDialog ¶ added in v0.0.14
type SendTestMailDialog struct {
*propsheet.PropertySheet
// contains filtered or unexported fields
}
SendTestMailDialog is Send Test E-Mail.
func NewSendTestMailDialog ¶ added in v0.0.14
func NewSendTestMailDialog(app *App) *SendTestMailDialog
NewSendTestMailDialog creates the dialog and wires its callbacks.
type ShrinkDatabaseDialog ¶ added in v0.1.1
type ShrinkDatabaseDialog struct {
// contains filtered or unexported fields
}
ShrinkDatabaseDialog is the Shrink Database dialog.
func NewShrinkDatabaseDialog ¶ added in v0.1.1
func NewShrinkDatabaseDialog(app *App) *ShrinkDatabaseDialog
NewShrinkDatabaseDialog creates the dialog and wires its callbacks.
type ShrinkFilesDialog ¶ added in v0.1.1
type ShrinkFilesDialog struct {
// contains filtered or unexported fields
}
ShrinkFilesDialog is the Shrink File dialog.
func NewShrinkFilesDialog ¶ added in v0.1.1
func NewShrinkFilesDialog(app *App) *ShrinkFilesDialog
NewShrinkFilesDialog creates the dialog and wires its callbacks.
type StatusHistoryDialog ¶ added in v0.0.3
type StatusHistoryDialog struct {
dialogs.ModalDialog
// contains filtered or unexported fields
}
StatusHistoryDialog is a read-only modal listing every status-bar/log message recorded this session, newest first, each prefixed with its timestamp. Content lives in a read-only, line-numbered controls.Editor, so it's selectable and copyable via the Editor's own selection, matching the Results-To-Text convention (see query_panel.go's p.resultsText). KeyDiagnosticsDialog is built the same way.
Unlike KeyDiagnosticsDialog, Show() does not reset the log: history accumulates across the session, in memory only, with no persistence.
Record is called from background goroutines (App.logStatus reaches it from the Object Explorer's loader goroutine), so mu guards lines and dirty, and the editor is only touched from the UI goroutine (Show and Draw).
func NewStatusHistoryDialog ¶ added in v0.0.3
func NewStatusHistoryDialog(app *App) *StatusHistoryDialog
NewStatusHistoryDialog creates the status history dialog.
func (*StatusHistoryDialog) Draw ¶ added in v0.0.3
func (d *StatusHistoryDialog) Draw(s tcell.Screen)
Draw renders the dialog.
func (*StatusHistoryDialog) FocusedClipboardTarget ¶ added in v0.0.8
func (d *StatusHistoryDialog) FocusedClipboardTarget() core.ClipboardTarget
FocusedClipboardTarget implements core.ClipboardHost. The history editor is read-only, so Copy works and Cut/Paste are no-ops on it. Without this the dialog fell through to the query editor underneath, and Ctrl+C there copied the user's SQL while they were looking at the log.
func (*StatusHistoryDialog) HandleKey ¶ added in v0.0.3
func (d *StatusHistoryDialog) HandleKey(ev *tcell.EventKey) bool
HandleKey processes keyboard events. Delegates to the read-only editor first (arrow keys, PgUp/PgDn, Home/End, selection, Ctrl+A); Escape/Enter, which the editor rejects in read-only mode, close the dialog.
func (*StatusHistoryDialog) HandleMouse ¶ added in v0.0.3
func (d *StatusHistoryDialog) HandleMouse(ev *tcell.EventMouse) bool
HandleMouse handles mouse events.
func (*StatusHistoryDialog) Record ¶ added in v0.0.3
func (d *StatusHistoryDialog) Record(msg string)
Record prepends a timestamped line to the history. Newest-first because controls.Editor.SetText always resets scroll/cursor to (0,0) and has no "scroll to end" API, so the most recent message is visible on open without extra plumbing.
Safe from any goroutine, and it deliberately does no more than record: rebuilding the editor's text is the UI goroutine's job, done by Show and Draw when dirty. Calling Editor.SetText here would write the widget the UI goroutine is drawing.
Deferring the rebuild also keeps it off the hot path: it is a full strings.Join and SetText of up to maxStatusHistoryLines lines, and a busy session pays it once per frame the dialog is open rather than once per message nobody is looking at.
func (*StatusHistoryDialog) Show ¶ added in v0.0.3
func (d *StatusHistoryDialog) Show()
Show rebuilds the editor's content first if it fell behind while the dialog was hidden (see Record), then displays it. Unlike KeyDiagnosticsDialog, the history itself is never reset here — it accumulates across the whole session.
type Task ¶ added in v0.0.2
type Task struct {
ID int
Label string
Progress int // 0-100; -1 = indeterminate (no percentage to show)
Message string
Done bool
Err error
Started time.Time
Finished time.Time
// Cancelled is set when the task finished with an error after Cancel was asked
// for while it ran. The error is then the cancel itself, as the driver or
// server words it ("context canceled", "BACKUP DATABASE is terminating
// abnormally"), and reporting it as a failure blames the server for what the
// user did. A run that finished despite the cancel keeps its success; a panic
// is still a failure. Err keeps the error.
Cancelled bool
// contains filtered or unexported fields
}
Task tracks one long-running background operation (a backup, restore or index rebuild) of the kind SSMS reports in its status bar and lets the user check on or cancel later rather than blocking the UI.
A Task's fields are only mutated on the main goroutine, via the closures App.postProgress/postTaskDone hand to postAndWake (the invariant QueryPanel.result and DetailBrowser rely on; see query_panel.go, detail_browser.go). No mutex is needed while that holds: the goroutine doing the work never touches a Task field directly.
type TasksDialog ¶ added in v0.0.2
type TasksDialog struct {
dialogs.ModalDialog
// contains filtered or unexported fields
}
TasksDialog (Tools > Background Tasks) lists every task in the App's registry — running or finished — and lets the user cancel the selected one if it's still running. Unlike QueryListDialog, it doesn't snapshot its list on Show(): it reads a.tasks directly on every Draw, so progress updates delivered by App.postProgress while the dialog is open show up immediately without needing to be re-shown.
func NewTasksDialog ¶ added in v0.0.2
func NewTasksDialog(app *App) *TasksDialog
NewTasksDialog creates the dialog.
func (*TasksDialog) Draw ¶ added in v0.0.2
func (d *TasksDialog) Draw(s tcell.Screen)
Draw renders the task list.
func (*TasksDialog) HandleKey ¶ added in v0.0.2
func (d *TasksDialog) HandleKey(ev *tcell.EventKey) bool
HandleKey processes keyboard events.
func (*TasksDialog) HandleMouse ¶ added in v0.0.2
func (d *TasksDialog) HandleMouse(ev *tcell.EventMouse) bool
HandleMouse processes mouse events.
func (*TasksDialog) Show ¶ added in v0.0.2
func (d *TasksDialog) Show()
Show resets selection/scroll to the top and displays the dialog.
type UpdateDialog ¶ added in v0.0.3
type UpdateDialog struct {
dialogs.ModalDialog
// contains filtered or unexported fields
}
UpdateDialog shows the result of Help > Check for Updates: the installed version, the latest version published on GitHub, and a link to the releases page.
func NewUpdateDialog ¶ added in v0.0.3
func NewUpdateDialog(app *App) *UpdateDialog
NewUpdateDialog creates the Check for Updates dialog.
func (*UpdateDialog) Draw ¶ added in v0.0.3
func (d *UpdateDialog) Draw(s tcell.Screen)
Draw renders the dialog.
func (*UpdateDialog) HandleKey ¶ added in v0.0.3
func (d *UpdateDialog) HandleKey(ev *tcell.EventKey) bool
HandleKey processes keyboard events.
func (*UpdateDialog) HandleMouse ¶ added in v0.0.3
func (d *UpdateDialog) HandleMouse(ev *tcell.EventMouse) bool
HandleMouse processes mouse events.
func (*UpdateDialog) ShowChecking ¶ added in v0.0.3
func (d *UpdateDialog) ShowChecking(installed string)
ShowChecking opens the dialog in its loading state, before the background request to GitHub has come back.
func (*UpdateDialog) ShowResult ¶ added in v0.0.3
func (d *UpdateDialog) ShowResult(installed string, rel githubRelease, err error)
ShowResult replaces the loading state with the outcome of the check. rel is the zero value and err is non-nil when the request failed.
type XEventViewer ¶ added in v0.0.14
type XEventViewer struct {
// contains filtered or unexported fields
}
XEventViewer is one Extended Events viewer panel.
It reads on a connection of its own (db.RoleXEventProfiler), opened and closed with the panel: a live feed polls every second and a first read of a big event_file set runs for seconds, neither of which may queue ahead of Object Explorer on the host connection.
func NewXEventViewer ¶ added in v0.0.14
func NewXEventViewer(app *App, host *db.ServerConn, session, target string, live bool) *XEventViewer
NewXEventViewer makes the panel. live picks Watch Live Data; otherwise it is View Target Data on target. Nothing is read until connectXEventViewer has opened the panel's connection.
func (*XEventViewer) Close ¶ added in v0.0.14
func (v *XEventViewer) Close()
Close stops the feed and closes the panel's connection. Called from App.closePanelAt.
func (*XEventViewer) Draw ¶ added in v0.0.14
func (v *XEventViewer) Draw(s tcell.Screen)
Draw renders the panel (Panel interface).
func (*XEventViewer) HandleKey ¶ added in v0.0.14
func (v *XEventViewer) HandleKey(ev *tcell.EventKey) bool
HandleKey gives the panel's own bindings a look, then the grid. It returns false for anything not acted on, so App's Tab and Escape still work.
func (*XEventViewer) HandleMouse ¶ added in v0.0.14
func (v *XEventViewer) HandleMouse(ev *tcell.EventMouse) bool
HandleMouse routes a mouse event to the sub-region owning it: a press claims the gesture until its release (dragZone), and a release reaches every latch-bearing child wherever the pointer is.
func (*XEventViewer) SetActive ¶ added in v0.0.14
func (v *XEventViewer) SetActive(on bool)
SetActive marks this panel focused (Activatable interface).
func (*XEventViewer) SetBounds ¶ added in v0.0.14
func (v *XEventViewer) SetBounds(x, y, w, h int)
SetBounds positions the panel: the toolbar row, then the grid and the details pane either side of the splitter.
func (*XEventViewer) Title ¶ added in v0.0.14
func (v *XEventViewer) Title() string
Title returns the panel's tab title (Panel interface), SSMS's own: the session and "Live Data", or the session and the target.
Source Files
¶
- activity_monitor.go
- activity_monitor_draw.go
- activity_monitor_history.go
- activity_monitor_input.go
- activity_monitor_instance.go
- activity_monitor_proctab.go
- activity_monitor_sample.go
- activity_monitor_tempdb.go
- activity_monitor_tooltip.go
- ag_add_database_dialog.go
- ag_add_listener_dialog.go
- ag_add_replica_dialog.go
- ag_dashboard.go
- ag_dashboard_all.go
- ag_dashboard_draw.go
- ag_listener_props.go
- ag_props.go
- ag_props_backup.go
- ag_props_routing.go
- agent_alert_props.go
- agent_common.go
- agent_detail.go
- agent_explorer.go
- agent_job_props.go
- agent_job_props_alerts.go
- agent_job_props_history.go
- agent_job_props_schedules.go
- agent_job_props_steps.go
- agent_job_step_panel.go
- agent_menu.go
- agent_operator_props.go
- agent_props.go
- agent_reports.go
- agent_schedule_form.go
- agent_schedule_props.go
- alwayson_menu.go
- app.go
- app_connections.go
- app_events.go
- app_explorer_data.go
- app_panel_actions.go
- app_panel_close.go
- app_peer_creds.go
- app_query_actions.go
- app_saves.go
- app_show_panels.go
- app_show_properties.go
- application_role_props.go
- assembly_props.go
- asymmetric_key_props.go
- attach_database_dialog.go
- audit_props.go
- audit_specification_props.go
- backup_common.go
- backup_device_props.go
- backup_dialog.go
- backup_dialog_draw.go
- backup_dialog_input.go
- broker_priority_props.go
- cell_value.go
- certificate_backup_dialog.go
- certificate_props.go
- chart_tooltip.go
- clipboard.go
- column_key_props.go
- column_meta.go
- completion_candidates.go
- completion_crossdb.go
- completion_inventory.go
- completion_linked.go
- completion_load.go
- completion_provider.go
- completion_relations.go
- connect_dialog.go
- connect_dialog_draw.go
- connect_dialog_input.go
- contract_props.go
- credential_props.go
- database_audit_specification_props.go
- database_credential_props.go
- database_list.go
- database_mail_props.go
- database_mail_props_accounts.go
- database_mail_props_profiles.go
- database_props.go
- database_props_change_tracking.go
- database_props_filegroups.go
- database_props_files.go
- database_props_options.go
- database_props_permissions.go
- database_props_query_store.go
- database_props_resource_governance.go
- database_props_scoped_config.go
- database_security_script.go
- database_snapshot_props.go
- database_trigger_props.go
- db_scan.go
- detach_database_dialog.go
- detail_browser.go
- detail_browser_backfill.go
- detail_browser_charts.go
- detail_browser_database_mail.go
- detail_browser_databases.go
- detail_browser_drill.go
- detail_browser_external.go
- detail_browser_fulltext.go
- detail_browser_group_schema.go
- detail_browser_logins.go
- detail_browser_ops.go
- detail_browser_programmability.go
- detail_browser_replication.go
- detail_browser_resource_governor.go
- detail_browser_runs.go
- detail_browser_security.go
- detail_browser_server.go
- detail_browser_service_broker.go
- detail_browser_snapshots.go
- detail_browser_sort.go
- detail_browser_storage.go
- detail_browser_tables.go
- detail_browser_xevents.go
- device_code_dialog.go
- dialog_common.go
- dialog_stack.go
- edition_gate.go
- effective_perms_page.go
- emergency_save.go
- endpoint_props.go
- explorer_alwayson.go
- explorer_database_mail.go
- explorer_databases.go
- explorer_drag.go
- explorer_external.go
- explorer_filter.go
- explorer_fulltext.go
- explorer_group_schema.go
- explorer_index_actions.go
- explorer_loaders.go
- explorer_management.go
- explorer_object_actions.go
- explorer_object_menu.go
- explorer_object_ops.go
- explorer_object_rights.go
- explorer_objects.go
- explorer_programmability.go
- explorer_replication.go
- explorer_resource_governor.go
- explorer_security.go
- explorer_service_broker.go
- explorer_storage.go
- explorer_xevents.go
- extended_properties_form.go
- external_resource_props.go
- filter_dialog.go
- find_replace_dialog.go
- fk_props.go
- format_document.go
- fulltext_index_ops.go
- fulltext_index_props.go
- fulltext_props.go
- generate_scripts_dialog.go
- help_dialog.go
- index_props.go
- key_actions.go
- key_diagnostics_dialog.go
- key_props.go
- key_signatures_page.go
- latest.go
- live_plan_panel.go
- log_search_dialog.go
- log_viewer.go
- log_viewer_draw.go
- log_viewer_files.go
- log_viewer_input.go
- log_viewer_load.go
- log_viewer_rows.go
- log_viewer_toolbar.go
- login_props.go
- master_key.go
- master_key_dialogs.go
- master_key_props.go
- membership_page.go
- menu.go
- message_type_props.go
- name_set.go
- new_ag_dialog.go
- new_ag_pages.go
- new_alert_dialog.go
- new_application_role_dialog.go
- new_asymmetric_key_dialog.go
- new_audit_dialog.go
- new_audit_specification_dialog.go
- new_backup_device_dialog.go
- new_certificate_dialog.go
- new_column_encryption_key_dialog.go
- new_column_master_key_dialog.go
- new_credential_dialog.go
- new_database_audit_specification_dialog.go
- new_database_dialog.go
- new_database_pages.go
- new_database_scoped_credential_dialog.go
- new_endpoint_dialog.go
- new_fulltext_catalog_dialog.go
- new_fulltext_copy_source.go
- new_fulltext_index_dialog.go
- new_fulltext_property_list_dialog.go
- new_fulltext_stoplist_dialog.go
- new_index_dialog.go
- new_index_pages.go
- new_job_dialog.go
- new_job_pages.go
- new_login_dialog.go
- new_login_pages.go
- new_object_dialog.go
- new_operator_dialog.go
- new_role_dialog.go
- new_schedule_dialog.go
- new_schema_dialog.go
- new_sequence_dialog.go
- new_server_role_dialog.go
- new_snapshot_dialog.go
- new_statistics_dialog.go
- new_symmetric_key_dialog.go
- new_synonym_dialog.go
- new_user_dialog.go
- object_explorer.go
- options_dialog.go
- os_clipboard.go
- owner_transfer_page.go
- partition_props.go
- pending_edits.go
- perm_state.go
- permission_display.go
- permission_error.go
- plan_compare_open.go
- plan_compare_panel.go
- plan_guide_props.go
- plan_panel.go
- profile_dialog.go
- progress_job.go
- prop_apply.go
- prop_dialog.go
- prop_grid_helpers.go
- prop_page_gate.go
- properties_dialog.go
- query_list_dialog.go
- query_panel.go
- query_panel_draw.go
- query_panel_exec.go
- query_panel_export.go
- query_panel_input.go
- query_panel_live.go
- query_panel_plan.go
- query_panel_sort.go
- query_panel_tabs.go
- query_store_panel.go
- query_store_panel_draw.go
- query_store_panel_input.go
- query_store_panel_load.go
- query_store_panel_plans.go
- query_store_panel_toolbar.go
- query_store_reports.go
- query_store_series.go
- queue_props.go
- remote_service_binding_props.go
- replication_monitor_panel.go
- replication_monitor_panel_draw.go
- replication_monitor_panel_input.go
- replication_monitor_panel_load.go
- replication_props.go
- resource_governor_props.go
- resource_governor_props_affinity.go
- resource_governor_props_groups.go
- restore_dialog.go
- restore_dialog_draw.go
- restore_dialog_files.go
- restore_dialog_input.go
- restore_dialog_ops.go
- restore_dialog_plan.go
- role_descriptions.go
- role_general_page.go
- role_props.go
- route_props.go
- rule_default_props.go
- safego.go
- schema_props.go
- scripting.go
- securables_matrix.go
- security_policy_props.go
- send_test_mail_dialog.go
- sequence_props.go
- server_filesystem.go
- server_permissions_matrix.go
- server_props.go
- server_props_advanced.go
- server_props_connections.go
- server_props_database_settings.go
- server_props_general.go
- server_props_memory.go
- server_props_permissions.go
- server_props_processors.go
- server_props_security.go
- server_role_props.go
- server_trigger_props.go
- service_props.go
- shrink_database_dialog.go
- shrink_files_dialog.go
- statistics_props.go
- status_history_dialog.go
- symmetric_key_props.go
- system_principals.go
- table_props.go
- tasks.go
- tasks_dialog.go
- text_encoding.go
- toolbar.go
- tree_node.go
- tree_node_icons.go
- tree_node_kinds.go
- type_props.go
- update_check.go
- update_dialog.go
- user_props.go
- xevent_merge.go
- xevent_profiler.go
- xevent_session_advanced.go
- xevent_session_dialog.go
- xevent_session_events.go
- xevent_session_general.go
- xevent_session_storage.go
- xevent_viewer.go
- xevent_viewer_draw.go
- xevent_viewer_export.go
- xevent_viewer_feed.go
- xevent_viewer_find.go
- xevent_viewer_group.go
- xevent_viewer_input.go
- xevent_viewer_rows.go
- xevent_viewer_settings.go
- xevent_viewer_toolbar.go
Directories
¶
| Path | Synopsis |
|---|---|
|
Package dashboard lays out the Activity Monitor's dashboards: History, Sample, TempDB, and — on an Azure engine edition — Instance.
|
Package dashboard lays out the Activity Monitor's dashboards: History, Sample, TempDB, and — on an Azure engine edition — Instance. |
|
Package gate answers one question for the application layer: may this connection be offered this action?
|
Package gate answers one question for the application layer: may this connection be offered this action? |
|
Package planview is a reusable TUI control that renders a parsed SQL Server execution plan (internal/showplan.Plan) as a tabbed view: a graphical operator plan, an expandable tree, and the raw plan XML.
|
Package planview is a reusable TUI control that renders a parsed SQL Server execution plan (internal/showplan.Plan) as a tabbed view: a graphical operator plan, an expandable tree, and the raw plan XML. |
|
Package sqlparse is the lexical T-SQL scanner behind the query editor's completion: it turns editor lines into a token stream, locates the statement the cursor sits in, and reports what that statement puts in scope.
|
Package sqlparse is the lexical T-SQL scanner behind the query editor's completion: it turns editor lines into a token stream, locates the statement the cursor sits in, and reports what that statement puts in scope. |