Skip to content

Commit

Permalink
Added scanner interface
Browse files Browse the repository at this point in the history
  • Loading branch information
adampresley committed Jul 14, 2021
1 parent dfa87a0 commit 423e417
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ type Conn interface {
Query(ctx context.Context, sql string, args ...interface{}) (pgx.Rows, error)
QueryRow(ctx context.Context, sql string, args ...interface{}) pgx.Row
}

type Scanner interface {
Scan(dst ...interface{}) error
}

0 comments on commit 423e417

Please sign in to comment.