Skip to content

Commit

Permalink
Merge pull request #25 from razorpay/sslmode_post
Browse files Browse the repository at this point in the history
add sslmode for postgress DE-6429
  • Loading branch information
sgtBurns7 authored Aug 7, 2024
2 parents 6f1b8a3 + a9e1a85 commit b4f1c26
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,11 @@ class JDBCImport(
val schema = importConfig.schema

val connectionUrl = s"jdbc:$dbType://$host:$port/$database"

connectionUrl
if (dbType == Constants.POSTGRESQL) {
s"$connectionUrl?sslmode=disable"
} else {
connectionUrl
}
}

private lazy val sourceDataframe = readJDBCSourceInParallel()
Expand Down

0 comments on commit b4f1c26

Please sign in to comment.