Documentation
¶
Overview ¶
Package conformance is the suite every engine adapter must pass unchanged (#20): fake now, Trino and the direct engines as they land.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Fixtures ¶
type Fixtures struct {
TypesSQL string
Types []TypeCase
ZeroRowsSQL string
MultiResultSQL string // optional: a statement with two result sets
// SetStateSQL sets session state; ReadStateSQL reads it back as one string
// value equal to StateValue, and returns no row (or a null) on a new
// session.
SetStateSQL, ReadStateSQL, StateValue string
// Transaction case (when Capabilities.Transactions): Begin, Insert, then
// Count returns one more row in the session; a new session after Close
// sees the old count.
BeginSQL, InsertSQL, CountSQL string
ReadSQL string // allowed in a read-only session
WriteSQL string // refused in a read-only session
SleepSQL string // runs until cancelled
SyntaxErrorSQL string
MissingTableSQL string
ManyRowsSQL string // returns more than CollectCap rows
CollectCap int64
// Introspection (when the engine has an Introspector): this table and
// columns must be listed.
IntrospectCatalog string
IntrospectSchema []string
IntrospectTable string
IntrospectColumns []string
}
Fixtures are the engine's spellings of each case. Optional cases run only when their fields are set (and the capability allows).