summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2026-08-26 21:08:37 +0200
committerStefan Majewsky <majewsky@gmx.net>2026-08-26 21:08:37 +0200
commit2d0c1fc879e267d4ff17f8b08f3bf3e4202b6dcd (patch)
treeb78ea443cd3ee6dda5dabe5e682a976f36f7cdab
parentb6b1f2ab4e28d3e964fb9c429d424e5509e6b3ab (diff)
downloadgo-oblast-2d0c1fc879e267d4ff17f8b08f3bf3e4202b6dcd.tar.gz
fix docstring links to None()
-rw-r--r--select.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/select.go b/select.go
index c171655..985abf9 100644
--- a/select.go
+++ b/select.go
@@ -117,6 +117,8 @@ func (s Store[R]) SelectOne(ctx context.Context, db gsql.Handle, query string, a
}
// SelectOneOrNone is like SelectOne, but returns [None] instead of [sql.ErrNoRows].
+//
+// [None]: https://pkg.go.dev/go.xyrillian.de/gg/option#None
func (s Store[R]) SelectOneOrNone(ctx context.Context, db gsql.Handle, query string, args ...any) (Option[R], error) {
// NOTE: This function body should be as short as possible to reduce the binary size after monomorphization.
// Any expression that does not depend on type R should be factored out into a reusable function.
@@ -139,6 +141,8 @@ func (s Store[R]) SelectOneWhere(ctx context.Context, db gsql.Handle, partialQue
}
// SelectOneOrNoneWhere is like SelectOneWhere, but returns [None] instead of [sql.ErrNoRows].
+//
+// [None]: https://pkg.go.dev/go.xyrillian.de/gg/option#None
func (s Store[R]) SelectOneOrNoneWhere(ctx context.Context, db gsql.Handle, partialQuery string, args ...any) (Option[R], error) {
// NOTE: This function body should be as short as possible to reduce the binary size after monomorphization.
// Any expression that does not depend on type R should be factored out into a reusable function.
@@ -235,6 +239,8 @@ func (q PreparedSelectQuery[R]) SelectOne(ctx context.Context, db gsql.Handle, a
}
// SelectOneOrNone is like SelectOne, but returns [None] instead of [sql.ErrNoRows].
+//
+// [None]: https://pkg.go.dev/go.xyrillian.de/gg/option#None
func (q PreparedSelectQuery[R]) SelectOneOrNone(ctx context.Context, db gsql.Handle, args ...any) (Option[R], error) {
return noRowsToNone(q.SelectOne(ctx, db, args...))
}