Skip to content

lydiapuric/gopq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostgreSQL with Go

Connect to a PostgreSQL database using Go. You can pass the database configuration either as Command-Line Flags or as Environment Variables

How to run

Build application

go build

This will create a binary file with the name gopq in current directory.

Run application and pass the database configuration using Command-Line Flags

./gopq -h=localhost -p=5432 -db=dbname -u=postgres -pwd=dbpwd -ssl=require

Run application and pass the database configuration using Environment Variables

DB_HOST=localhost DB_PORT=5432 DB_NAME=dbname DB_USER=postgres DB_PWD=dbpwd DB_SSL=require ./gopq

About

Connect to a PostgreSQL database using Go.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages