Documentation
¶
There is no documentation for this package.
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
pgprobe
command
Command pgprobe is a fail-loud reachability check used by `task test:integration`.
|
Command pgprobe is a fail-loud reachability check used by `task test:integration`. |
|
pkg
|
|
|
app
Package app wires application lifecycle and dependency setup.
|
Package app wires application lifecycle and dependency setup. |
|
cheatsheet
Package cheatsheet ...
|
Package cheatsheet ... |
|
common
Package common provides the cross-cutting dependency bag (Log, Tr, UserConfig, AppState, Fs) embedded into virtually every receiver downstream.
|
Package common provides the cross-cutting dependency bag (Log, Tr, UserConfig, AppState, Fs) embedded into virtually every receiver downstream. |
|
config
Package config defines the user-facing configuration schema for pgsavvy (UserConfig, ThemeConfig, KeybindingConfig) and the loaders that read it from YAML files via an afero.Fs.
|
Package config defines the user-facing configuration schema for pgsavvy (UserConfig, ThemeConfig, KeybindingConfig) and the loaders that read it from YAML files via an afero.Fs. |
|
constants
Package constants ...
|
Package constants ... |
|
drivers
Package drivers defines the storage-engine-independent driver contract (Driver, Connection, Session, RowStream, Transaction) along with the Capabilities shape, the Factory registry, and the shared error sentinels consumed by every concrete driver under pkg/drivers/*.
|
Package drivers defines the storage-engine-independent driver contract (Driver, Connection, Session, RowStream, Transaction) along with the Capabilities shape, the Factory registry, and the shared error sentinels consumed by every concrete driver under pkg/drivers/*. |
|
drivers/pg
Package pg implements the Postgres concrete driver: pg.New returns a drivers.Factory that yields a *Driver wrapping a session.Prompter, and *Connection wraps a pgxpool.Pool with ServerVersion caching plus a pg_cancel_backend stub that will be wired in epic E6.
|
Package pg implements the Postgres concrete driver: pg.New returns a drivers.Factory that yields a *Driver wrapping a session.Prompter, and *Connection wraps a pgxpool.Pool with ServerVersion caching plus a pg_cancel_backend stub that will be wired in epic E6. |
|
env
Package env ...
|
Package env ... |
|
gui
Package gui hosts the pgsavvy TUI's focus-stack manager and (in later epics) the bootstrap that wires gocui to the Contexts declared in pkg/gui/context.
|
Package gui hosts the pgsavvy TUI's focus-stack manager and (in later epics) the bootstrap that wires gocui to the Contexts declared in pkg/gui/context. |
|
gui/clipboard
Package clipboard provides the shared clipboard seam used by the vim editor and the results grid + exporter.
|
Package clipboard provides the shared clipboard seam used by the vim editor and the results grid + exporter. |
|
gui/commands
Package commands defines the CommandRegistry: the named-action table that the keybinding system dispatches into.
|
Package commands defines the CommandRegistry: the named-action table that the keybinding system dispatches into. |
|
gui/context
Package context contains the concrete Context implementations the pgsavvy TUI focus stack manages: the five side-rail contexts (Connections, Schemas, Tables, Columns, Indexes), the four popup contexts (Menu, Confirmation, Prompt, Suggestions), the command-log EXTRAS context, the GLOBAL context (no view), the LIMIT terminal-too-small overlay, and six StubContext placeholders for Contexts that ship in later epics (QUERY_EDITOR, TABLE_DATA_EDITOR, RESULT_GRID, PLAN, WHICH_KEY, HISTORY).
|
Package context contains the concrete Context implementations the pgsavvy TUI focus stack manages: the five side-rail contexts (Connections, Schemas, Tables, Columns, Indexes), the four popup contexts (Menu, Confirmation, Prompt, Suggestions), the command-log EXTRAS context, the GLOBAL context (no view), the LIMIT terminal-too-small overlay, and six StubContext placeholders for Contexts that ship in later epics (QUERY_EDITOR, TABLE_DATA_EDITOR, RESULT_GRID, PLAN, WHICH_KEY, HISTORY). |
|
gui/controllers
Package controllers wires keyboard bindings to context state.
|
Package controllers wires keyboard bindings to context state. |
|
gui/controllers/helpers
Package helpers ...
|
Package helpers ... |
|
gui/controllers/helpers/data
Package data hosts data-access helpers that adapt drivers.Session into the shape the gui controllers consume.
|
Package data hosts data-access helpers that adapt drivers.Session into the shape the gui controllers consume. |
|
gui/controllers/helpers/ui
Package ui hosts UI-presentation helpers consumed by the gui controllers: confirm/prompt/toast popups, the table double-click stub, the first-run tip dismissal, and the boxlayout-driven window arrangement.
|
Package ui hosts UI-presentation helpers consumed by the gui controllers: confirm/prompt/toast popups, the table double-click stub, the first-run tip dismissal, and the boxlayout-driven window arrangement. |
|
gui/editor
Package editor hosts the canonical *Buffer + UndoTree state for one QUERY_EDITOR pane and the per-context gocui.Editor implementations pgsavvy ships outside the COMMAND_LINE master editor.
|
Package editor hosts the canonical *Buffer + UndoTree state for one QUERY_EDITOR pane and the per-context gocui.Editor implementations pgsavvy ships outside the COMMAND_LINE master editor. |
|
gui/editor/format
Package format provides SQL formatting via sqlfmt.
|
Package format provides SQL formatting via sqlfmt. |
|
gui/editor/highlight
Package highlight wraps the Chroma v2 PostgreSQL lexer to provide SQL syntax highlighting for the query editor.
|
Package highlight wraps the Chroma v2 PostgreSQL lexer to provide SQL syntax highlighting for the query editor. |
|
gui/editor/sqlcontext
Package sqlcontext is the detection brain for schema-aware SQL completion.
|
Package sqlcontext is the detection brain for schema-aware SQL completion. |
|
gui/grid
Package grid ...
|
Package grid ... |
|
gui/internal/testfake
Package testfake supplies an in-memory GuiDriver fake used by tests in pkg/gui.
|
Package testfake supplies an in-memory GuiDriver fake used by tests in pkg/gui. |
|
gui/keys
Package keys is the single call site for registering keyboard and mouse bindings with the gocui runtime.
|
Package keys is the single call site for registering keyboard and mouse bindings with the gocui runtime. |
|
gui/modes
Package modes is intentionally empty.
|
Package modes is intentionally empty. |
|
gui/orchestrator
Package orchestrator wires the pgsavvy TUI: it owns the focus-stack tree, the GuiDriver instance, every UI/data helper and controller, and the gocui MainLoop entry point.
|
Package orchestrator wires the pgsavvy TUI: it owns the focus-stack tree, the GuiDriver instance, every UI/data helper and controller, and the gocui MainLoop entry point. |
|
gui/popup
Package popup ...
|
Package popup ... |
|
gui/presentation
Package presentation supplies render-time helpers that derive border styling and header text from a *models.Connection, plus the closures the context layer consumes through ContextTreeDeps.
|
Package presentation supplies render-time helpers that derive border styling and header text from a *models.Connection, plus the closures the context layer consumes through ContextTreeDeps. |
|
gui/services
Package services ...
|
Package services ... |
|
gui/services/custom_commands
Package custom_commands ...
|
Package custom_commands ... |
|
gui/status
Package status assembles the status-bar string rendered along the bottom of the gui.
|
Package status assembles the status-bar string rendered along the bottom of the gui. |
|
gui/style
Package style ships a chainable TextStyle builder used across the gui rendering layer.
|
Package style ships a chainable TextStyle builder used across the gui rendering layer. |
|
gui/types
Package types declares the foundational type system shared by every pkg/gui subpackage: ContextKind/ContextKey enums, the IBaseContext interface, the Views holder, focus/refresh option structs, the Mode bitmask, KeyBinding, the GuiCommon/HelperCommon aggregators, and the GuiDriver interface that abstracts the underlying gocui runtime.
|
Package types declares the foundational type system shared by every pkg/gui subpackage: ContextKind/ContextKey enums, the IBaseContext interface, the Views holder, focus/refresh option structs, the Mode bitmask, KeyBinding, the GuiCommon/HelperCommon aggregators, and the GuiDriver interface that abstracts the underlying gocui runtime. |
|
i18n
Package i18n provides localized UI strings for pgsavvy.
|
Package i18n provides localized UI strings for pgsavvy. |
|
jsonschema
Package jsonschema ...
|
Package jsonschema ... |
|
logs
Package logs ...
|
Package logs ... |
|
models
Package models ...
|
Package models ... |
|
query
Package query ...
|
Package query ... |
|
query/plandoctor
Package plandoctor is a pure, offline EXPLAIN-plan insight engine.
|
Package plandoctor is a pure, offline EXPLAIN-plan insight engine. |
|
session
Package session resolves runtime credentials for database connection profiles and (in subsequent tasks) builds engine-specific connection configs.
|
Package session resolves runtime credentials for database connection profiles and (in subsequent tasks) builds engine-specific connection configs. |
|
session/sshtunnel
Package sshtunnel opens a driver-agnostic SSH connection to a bastion and exposes a DialContext suitable for use as a database driver's dial function (e.g.
|
Package sshtunnel opens a driver-agnostic SSH connection to a bastion and exposes a DialContext suitable for use as a database driver's dial function (e.g. |
|
tasks
Package tasks ...
|
Package tasks ... |
|
theme
Package theme ...
|
Package theme ... |
|
theme/builtin
Package builtin holds the bundled ThemeConfig presets shipped with pgsavvy.
|
Package builtin holds the bundled ThemeConfig presets shipped with pgsavvy. |
|
update
Package update fetches the latest GitHub Release, selects the host's binary asset, downloads and verifies it against checksums.txt, and compares versions.
|
Package update fetches the latest GitHub Release, selects the host's binary asset, downloads and verifies it against checksums.txt, and compares versions. |
|
utils
Package utils ...
|
Package utils ... |
Click to show internal directories.
Click to hide internal directories.
















