Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection interface {
GetTables(ctx context.Context) ([]Table, error)
Query(ctx context.Context, queryStr string) (QueryResult, error)
Close() error
}
Connection defines the db interface each driver should implement
type ConnectionConfig ¶
type ConnectionConfig struct {
Username string
Password string
Dbname string
Host string
Persist bool
}
ConnectionConfig defines the input configuration of a Connection
type QueryResult ¶
type QueryResult struct {
Columns []ColInfo
Rows [][]interface{}
}
QueryResult defines an output from a successful query operation
Click to show internal directories.
Click to hide internal directories.