Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
connection str
Browse files Browse the repository at this point in the history
  • Loading branch information
Rutjes, Dennis committed Mar 31, 2020
1 parent c60444b commit 6635f79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions start.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ func main() {
gpkgFilePath := flag.String("gpkg", envString("PATH_GPKG", ""), "geopackage path")
crsMapFilePath := flag.String("crs", envString("PATH_CRS", ""), "crs file path")
configFilePath := flag.String("config", envString("PATH_CONFIG", ""), "configfile path")
connectionStr := flag.String("connection", envString("CONNECTION", "host=127.0.0.1 port=5432 database=bgt_v1 user=postgres password=postgres sslmode=disable"), "connection string postgis")
connectionStr := flag.String("connection", envString("CONNECTION", ""), "connection string postgis")
// alternative database configuration
if connectionStr == nil && *providerName == "postgis"{
if *connectionStr == "" && *providerName == "postgis"{
withDBHost := flag.String("db-host", envString("DB_HOST", "bgt-cloud-db.postgres.database.azure.com"), "database host")
withDBPort := flag.Int("db-port", envInt("DB_PORT", 5432), "database port number")
WithDBName := flag.String("db-name", envString("DB_NAME", "pdok"), "database name")
Expand Down

0 comments on commit 6635f79

Please sign in to comment.