Skip to content

Commit

Permalink
Add SSL mode disable for PostgreSQL connection string in database.go
Browse files Browse the repository at this point in the history
  • Loading branch information
murat-cileli committed Jun 19, 2024
1 parent 36636f8 commit 7705fff
Show file tree
Hide file tree
Showing 15 changed files with 1 addition and 1 deletion.
Binary file modified bin/darwin-amd64/dbee
Binary file not shown.
Binary file modified bin/darwin-arm64/dbee
Binary file not shown.
Binary file modified bin/freebsd-amd64/dbee
Binary file not shown.
Binary file modified bin/freebsd-arm/dbee
Binary file not shown.
Binary file modified bin/freebsd-arm64/dbee
Binary file not shown.
Binary file modified bin/freebsd-i386/dbee
Binary file not shown.
Binary file modified bin/linux-amd64/dbee
Binary file not shown.
Binary file modified bin/linux-arm/dbee
Binary file not shown.
Binary file modified bin/linux-arm64/dbee
Binary file not shown.
Binary file modified bin/linux-i386/dbee
Binary file not shown.
Binary file modified bin/windows-amd64/dbee.exe
Binary file not shown.
Binary file modified bin/windows-arm/dbee.exe
Binary file not shown.
Binary file modified bin/windows-arm64/dbee.exe
Binary file not shown.
Binary file modified bin/windows-i386/dbee.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion src/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (database *databaseType) buildConnectionString() {
database.ConnectionString = database.User + ":" + database.Password + "@tcp(" + database.Host + ")/" + database.Database
} else if database.DriverName == "PostgreSQL" {
database.Driver = "postgres"
database.ConnectionString = "host=" + database.Host + " user=" + database.User + " password=" + database.Password + " dbname=" + database.Database
database.ConnectionString = "host=" + database.Host + " user=" + database.User + " password=" + database.Password + " dbname=" + database.Database + " sslmode=disable"
}
}

Expand Down

0 comments on commit 7705fff

Please sign in to comment.