Skip to content

Commit

Permalink
Merge pull request #24 from lefinal/improve-pg-scan-errors
Browse files Browse the repository at this point in the history
feat: add generator for pg query and scan
  • Loading branch information
lefinal authored Jun 4, 2023
2 parents 4fe4b21 + 936c333 commit 6ab5839
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mehpg/mehpg.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,9 @@ func NewScanRowsErr(err error, message string, query string) error {
},
}
}

// NewQueryAndScanRowsErr is used for errors returned from QueryRow with Scan.
// Further logic might be added in the future.
func NewQueryAndScanRowsErr(err error, message string, query string) error {
return NewQueryDBErr(err, message, query)
}

0 comments on commit 6ab5839

Please sign in to comment.