bookmarks

package
v0.16.0-20240907 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 8 Imported by: 42

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bookmark

type Bookmark struct {
	ID          string          // ID generated from the filename
	URL         string          // Postgres connection URL
	Host        string          // Server hostname
	Port        int             // Server port
	User        string          // Database user
	UserVar     string          // Database user environment variable
	Password    string          // User password
	PasswordVar string          // User password environment variable
	Database    string          // Database name
	SSLMode     string          // Connection SSL mode
	SSH         *shared.SSHInfo // SSH tunnel config
	ReadOnly    bool            // Enable read-only transaction mode
}

Bookmark contains information about bookmarked database connection

func (Bookmark) ConvertToOptions added in v0.9.6

func (b Bookmark) ConvertToOptions() command.Options

ConvertToOptions returns an options struct from connection details

func (Bookmark) SSHInfoIsEmpty added in v0.9.6

func (b Bookmark) SSHInfoIsEmpty() bool

SSHInfoIsEmpty returns true if ssh configuration is not provided

type Manager added in v0.13.0

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager added in v0.13.0

func NewManager(dir string) Manager

func (Manager) Get added in v0.13.0

func (m Manager) Get(id string) (*Bookmark, error)

func (Manager) List added in v0.13.0

func (m Manager) List() ([]Bookmark, error)

func (Manager) ListIDs added in v0.13.0

func (m Manager) ListIDs() ([]string, error)

Jump to

Keyboard shortcuts

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