Skip to content

Commit

Permalink
support sslmode=disable in connection string
Browse files Browse the repository at this point in the history
  • Loading branch information
eldargab committed May 1, 2024
1 parent 3dab2c4 commit 1a6d5da
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@subsquid/typeorm-config",
"comment": "support `sslmode=disable` in connection string",
"type": "patch"
}
],
"packageName": "@subsquid/typeorm-config"
}
1 change: 1 addition & 0 deletions typeorm/typeorm-config/src/pg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export function extractAndClearSSLParams(url: URL): SslOptions | undefined | fal
case 'sslmode':
switch(v) {
case 'disabled':
case 'disable':
disabled = true
break
case 'no-verify':
Expand Down

0 comments on commit 1a6d5da

Please sign in to comment.