Skip to content

Commit

Permalink
Merge pull request #156 from pashagolub/143-fix-deallocate-in-pgxpool
Browse files Browse the repository at this point in the history
[-] move `Deallocate()` to `PgxConnIface`, fixes #143
  • Loading branch information
pashagolub authored Aug 30, 2023
2 parents 19a4aaf + 11989a8 commit ec74377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgxmock.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,14 @@ type pgxIface interface {
QueryRow(context.Context, string, ...interface{}) pgx.Row
Ping(context.Context) error
Prepare(context.Context, string, string) (*pgconn.StatementDescription, error)
Deallocate(ctx context.Context, name string) error
PgConn() *pgconn.PgConn
}

type PgxConnIface interface {
pgxIface
pgx.Tx
Close(ctx context.Context) error
Deallocate(ctx context.Context, name string) error
}

type PgxPoolIface interface {
Expand Down

0 comments on commit ec74377

Please sign in to comment.