Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1.42 KB

README.md

File metadata and controls

24 lines (16 loc) · 1.42 KB

pgxmock-examples

Examples to mock pgx

Overview

All examples are based on pgxmock and pgxpoolmock, thanks for the great works from the authors of these repositories!

This repo add some mock examples based on different structure level.

pgxmock pgxmock/v3 pgxpoolmock
pgx version v4 v5 v4
pgx.Conn mock ✔️ ✔️
pgxpool.Pool mock ✔️ ✔️ ✔️
pgxpool.Conn mock ✔️ ✔️

You can see the mock examples for pgx/v4 on the branch v4, also the branch v5 for pgx/v5. Of course pgx/v5 is recommended :)

Usage