package
0.63.0
Repository: https://github.com/rickb777/sqlapi.git
Documentation: pkg.go.dev

# Functions

ActualResultSize tests the error and returns true only if the error is a wrong-size error, in which case it also returns the actual result size.
ChainErrorIfExecNotSatisfiedBy matches a requirement against the actual result size for an exec query.
ChainErrorIfQueryNotSatisfiedBy matches a requirement against the actual result size for a select query.
ErrorIfExecNotSatisfiedBy matches a requirement against the actual result size for an exec query.
ErrorIfQueryNotSatisfiedBy matches a requirement against the actual result size for a select query.
ErrWrongSize returns an error based on the actual size received and a message describing the unsatisfied requirement.
IsNotFound tests the error and returns true only if the error is a wrong-size error and the actual size less than one.
IsNotUnique tests the error and returns true only if the error is a wrong-size error and the actual size was more than one.

# Constants

All is a requirement that is updated to exactly match some number that is only known at call time.
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

AtLeastOne is a requirement that is met by the actual results being at least one, i.e.
NoMoreThanOne is a requirement that is met by the actual results being no more than one.

# Interfaces

Requirement set an expectation on the outcome of a query.
Sizer is any type that provides the result set size.

# Type aliases

AtLeast is a requirement that is met by the actual results being at least a specified value.
Exactly is a requirement that is met by a number matching exactly.
NoMoreThan is a requirement that is met by the actual results being no more than a specified value.
Quantifier is a requirement that is met by imprecise zero, singular or plural results.