Skip to content

Commit

Permalink
[-] move Deallocate() to PgxConnIface, fixes #143
Browse files Browse the repository at this point in the history
  • Loading branch information
pashagolub committed Aug 30, 2023
1 parent 19a4aaf commit 11989a8
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 11989a8

Please sign in to comment.