Documentation
¶
Overview ¶
Package databases executes operations against external PostgreSQL, MySQL and SQLite databases. Execution is adapted from sailry-code 67ae9fa0 sailry-connections.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Browse ¶
type Browse struct {
Database *string
}
Browse selects a catalog read. A nil Database lists databases; otherwise the tables of the database already selected in the profile connection are listed.
type Operation ¶
type Operation struct {
Profile protocol.DatabaseProfile
Password protocol.Secret
SSH *SSH
Query *Query
Browse *Browse
Storage string
}
Operation is one database request. Browse reads the catalog, Query runs one statement, and neither checks the connection. Storage is the Node profile directory that SQLite paths may not enter.
type SSH ¶
type SSH struct {
Profile protocol.SshProfile
Credential protocol.SshCredential
}
SSH is the saved SSH connection that tunnels a PostgreSQL or MySQL operation.