The utility helps to verify that you can connect to a PostgreSQL database and get a list of available databases and tables in that database and public schema.
- put the following commands to cmd.
git clone [email protected]:stevenstr/get-pg-schema.git
cd ./get-pg-schema
go build .
docker-compose up
- for testing.
go run .\get-pg-schema.go localhost 5432 stevenstr pass master
- for "real" usage.
get-pg-schema.exe localhost 5432 stevenstr pass master
- puth to cmd and press enter.
godoc -http=:6060
- go to browser.
http://localhost:6060/pkg/get-pg-schema/