Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BigQuery ¶
type BigQuery struct {
// contains filtered or unexported fields
}
BigQuery DB
type DB ¶
type DB interface { // Init makes the DB backend ready to query by create the connection, etc. Init(config map[string]interface{}) error // Run executes the query in the DB then returns with a JSON (byte slice) for the HTTP response or an error. Run(ctx context.Context, query string) (result []byte, err error) }
DB interface defines that a database backend have to implement.
type PostgreSQL ¶
type PostgreSQL struct {
// contains filtered or unexported fields
}
PostgreSQL struct
func (*PostgreSQL) Init ¶
func (psql *PostgreSQL) Init(config map[string]interface{}) (err error)
Init DB interface implementation.
Click to show internal directories.
Click to hide internal directories.