aboutsummaryrefslogtreecommitdiff
path: root/oblast.go
diff options
context:
space:
mode:
Diffstat (limited to 'oblast.go')
-rw-r--r--oblast.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/oblast.go b/oblast.go
index be1571e..415b6cb 100644
--- a/oblast.go
+++ b/oblast.go
@@ -42,6 +42,7 @@ package oblast // import "go.xyrillian.de/oblast"
import (
"database/sql"
+ "errors"
"go.xyrillian.de/oblast/internal"
)
@@ -75,3 +76,6 @@ var (
_ Handle = &sql.DB{}
_ Handle = &sql.Tx{}
)
+
+// ErrMultipleRows is returned by [Store.SelectOne] if the query returned multiple rows.
+var ErrMultipleRows = errors.New("sql: multiple rows in result set")