dbmode

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package dbmode wires the live-database mode into the UI: the mysql / postgres / redis subcommands start an empty workspace with a connection form overlay on top, then browse schemas, tables and keys through the shared overlay system.

Index

Constants

View Source
const (
	KindMysql       = "mysql"
	KindPostgres    = "postgres"
	KindRedis       = "redis"
	KindOpenObserve = "openobserve"
)

Engine kinds accepted by Run.

Variables

This section is empty.

Functions

func RegisterFactories

func RegisterFactories(kind string)

RegisterFactories installs the database-mode overlay factories:

  • "opentable": load one live table into a new tab (ns "\t" table arg, matching the schema browser's dispatch encoding),
  • "connect": reopen the connection form for the current kind,
  • redis only: "query" and "schema" are wrapped so that, with a live key-value connection, they open the raw-command prompt and the key browser instead; without one they delegate to the originals.

func Run

func Run(kind string) error

Run starts the UI in database mode for one engine kind: no tabs, no embedded engine, a connection form as the initial overlay. It returns when the UI exits and closes any connection made during the session.

Types

This section is empty.

Jump to

Keyboard shortcuts

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