package
0.0.0-20240704194040-eaa380774969
Repository: https://github.com/tochemey/gopack.git
Documentation: pkg.go.dev
# Functions
New returns a store connecting to the given Postgres database.
NewTestContainer create a Postgres test container useful for unit and integration tests This function will exit when there is an error.Call this function inside your SetupTest to create the container before each test.
NewTxRunner creates an instance of TxRunner.
# Structs
No description provided by the author
TestContainer helps creates a Postgres docker container to run unit tests.
TestDB is used in test to perform some database queries.
TxRunner helps run database queries in a safe database transaction.
# Interfaces
Postgres will be implemented by concrete RDBMS store.
QueryBuilder interface generalizes the sql execution implementations.