You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.
proposal
We should modify the unspecific error
fmt.Errorf("OperXXX has no rows")
into the certain error type sql.ErrNoRows in the most FetchXXX funcs.And wraps this error with
fmt.Errorf("DBTable: %w", sql.ErrNoRows)
advantages
With this patch , we can simply use
errors.Is(err,sql.ErrNoRows)
to check if it is a no rows error in the upstream codes.The text was updated successfully, but these errors were encountered: