Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareExecResults ¶
CompareExecResults executes a statement against both databases and checks that they both succeed or both fail.
func CompareQueryResults ¶
CompareQueryResults executes query against both databases and compares results.
Types ¶
type QueryResult ¶ added in v0.11.4
type QueryResult struct {
// Columns holds the column names returned by the query.
Columns []string
// Data holds the row data; each element is a slice of column values.
Data [][]interface{}
}
QueryResult holds the result of a SQL query executed via the driver interface. It mirrors the field names of sqlvibe.Rows so that existing test code that accesses .Data and .Columns keeps working after the driver/ migration.
func QueryRows ¶ added in v0.11.4
QueryRows executes query against db and returns all rows as a *QueryResult.
func QuerySqlvibeOnly ¶
QuerySqlvibeOnly executes a query only on sqlvibe and validates it succeeds. Returns a *QueryResult whose .Data and .Columns fields can be read directly.
Click to show internal directories.
Click to hide internal directories.