Simple Go query tool for PostgreSQL
Set test database auth credentails in .env
file. Use .env.example
as template.
Install test dependencies:
go get -t .
Create test user and database:
sudo -u postgres psql -c "CREATE USER test WITH PASSWORD 'test123'"
sudo -u postgres psql -c "CREATE DATABASE test WITH OWNER test"
Copy create .env
file from .env.example
and run tests:
cp .env.example .env
go test -v .