form

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEmpty

func IsEmpty(opts command.Options) bool

IsEmpty checks if the given options objects is empty.

func Run

func Run() (command.Options, error)

Run runs the menus programs to introduced the required data to connect with a database.

Types

type Model

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

Model is a meta-model.

func (*Model) Database

func (m *Model) Database() string

Database returns the database name value.

func (*Model) FilePath added in v0.15.1

func (m *Model) FilePath() string

FilePath returns the path to the database file (just in sqlite3) value.

func (*Model) Host

func (m *Model) Host() string

Host returns the host value.

func (*Model) Init

func (m *Model) Init() tea.Cmd

Init initialize the meta-model.

func (*Model) Limit added in v0.15.0

func (m *Model) Limit() (uint, error)

Limit returns the limit input value from the user.

func (*Model) Password

func (m *Model) Password() string

Password returns the password value.

func (*Model) Port

func (m *Model) Port() string

Port returns the Port value.

func (*Model) SSLCert added in v0.21.0

func (m *Model) SSLCert() string

func (*Model) SSLKey added in v0.21.0

func (m *Model) SSLKey() string

func (*Model) SSLMode added in v0.21.0

func (m *Model) SSLMode() string

SSLMode returns the ssl mode name value.

func (*Model) SSLPassword added in v0.21.0

func (m *Model) SSLPassword() string

func (*Model) SSLRootcert added in v0.21.0

func (m *Model) SSLRootcert() string

func (*Model) Update

func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update update the view of the meta-model.

func (*Model) User

func (m *Model) User() string

User returns the user value.

func (*Model) View

func (m *Model) View() string

View displays the content on the terminal.

Jump to

Keyboard shortcuts

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