db_opener

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBCredentials

type DBCredentials struct {
	SSHUser    string `json:"web_user"`
	SSHHost    string `json:"ansible_host"`
	SSHPort    int    `json:"ansible_port"`
	DBUser     string `json:"db_user"`
	DBPassword string `json:"db_password"`
	DBHost     string `json:"db_host"`
	DBName     string `json:"db_name"`
	WPEnv      string `json:"wp_env"`
}

type Factory

type Factory struct{}

func (*Factory) GetSupportedApps

func (f *Factory) GetSupportedApps() []string

func (*Factory) Make

func (f *Factory) Make(app string) (o Opener, err error)

type Opener

type Opener interface {
	Open(c DBCredentials) (err error)
}

type SequelAce

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

func (*SequelAce) Open

func (o *SequelAce) Open(c DBCredentials) (err error)

type Tableplus

type Tableplus struct{}

func (*Tableplus) Open

func (o *Tableplus) Open(c DBCredentials) (err error)

Jump to

Keyboard shortcuts

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