2
0

Add CollectExactlyOneRow function

This commit is contained in:
Julien GOTTELAND
2023-08-19 18:24:39 +02:00
committed by Jack Christensen
parent a7375cc503
commit 9ee7d29cf9
3 changed files with 77 additions and 3 deletions
+6 -2
View File
@@ -99,8 +99,12 @@ func (ident Identifier) Sanitize() string {
return strings.Join(parts, ".")
}
// ErrNoRows occurs when rows are expected but none are returned.
var ErrNoRows = errors.New("no rows in result set")
var (
// ErrNoRows occurs when rows are expected but none are returned.
ErrNoRows = errors.New("no rows in result set")
// ErrTooManyRows occurs when more rows than expected are returned.
ErrTooManyRows = errors.New("too many rows in result set")
)
var errDisabledStatementCache = fmt.Errorf("cannot use QueryExecModeCacheStatement with disabled statement cache")
var errDisabledDescriptionCache = fmt.Errorf("cannot use QueryExecModeCacheDescribe with disabled description cache")