cmd

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunAdd

func RunAdd(args []string) error

func RunConnect

func RunConnect(args []string) error

func RunEdit

func RunEdit(args []string) error

func RunExport added in v0.5.0

func RunExport(args []string) error

func RunImport added in v0.4.0

func RunImport(args []string) error

func RunList

func RunList(_ []string) error

func RunPing

func RunPing(args []string) error

func RunQueries

func RunQueries(_ []string) error

func RunQuery

func RunQuery(args []string) error

func RunRemove

func RunRemove(args []string) error

func RunSlice

func RunSlice(args []string) error

func RunTables

func RunTables(args []string) error

func RunTunnel

func RunTunnel(args []string) error

func Usage

func Usage()

Types

type ExportedConnection added in v0.5.0

type ExportedConnection struct {
	Name   string             `yaml:"name"`
	Env    string             `yaml:"env,omitempty"`
	SSH    *config.SSHConfig  `yaml:"ssh,omitempty"`
	DB     *ExportedDBConfig  `yaml:"db,omitempty"`
	Redash *ExportedRedash    `yaml:"redash,omitempty"`
	Mask   *config.MaskConfig `yaml:"mask,omitempty"`
}

ExportedConnection is the YAML format for sharing connections. Passwords and API keys are always omitted so the file can be safely shared.

type ExportedDBConfig added in v0.5.0

type ExportedDBConfig struct {
	Host     string `yaml:"host"`
	Port     int    `yaml:"port,omitempty"`
	User     string `yaml:"user"`
	Database string `yaml:"database"`
	Driver   string `yaml:"driver,omitempty"`
}

type ExportedRedash added in v0.5.1

type ExportedRedash struct {
	URL          string `yaml:"url"`
	DataSourceID int    `yaml:"data_source_id"`
}

Jump to

Keyboard shortcuts

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