Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestConnection ¶
Types ¶
type DBConnection ¶
type DBConnection struct {
DB *sql.DB
SSHClient *ssh.Client
Profile config.Profile
Mode string // "direct" or "tunnel"
}
DBConnection represents a PostgreSQL connection, possibly via SSH.
func Connect ¶
func Connect(p config.Profile) (*DBConnection, error)
Connect returns a PostgreSQL connection (direct or via SSH tunnel).
func (*DBConnection) Close ¶
func (c *DBConnection) Close()
Click to show internal directories.
Click to hide internal directories.