Skip to content

Commit d1944f8

Browse files
committed
Refactor Exist
1 parent 6ddca9d commit d1944f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ func ReplaceQueryArgs(driver string, query string) string {
726726
}
727727
return query
728728
}
729-
func Exist(ctx context.Context, db *sql.DB, sql string, args ...interface{}) (bool, error) {
729+
func Exist(ctx context.Context, db Executor, sql string, args ...interface{}) (bool, error) {
730730
rows, err := db.QueryContext(ctx, sql, args...)
731731
if err != nil {
732732
return false, err

0 commit comments

Comments
 (0)