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

added statement_timeout to connection_config #73

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tap_postgres/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ def open_connection(conn_config, logical_replication=False):
'connect_timeout': 30
}

if conn_config.get('statement_timeout'):
alamirfan marked this conversation as resolved.
Show resolved Hide resolved
cfg['options'] = '-c statement_timeout={}'.format(conn_config['statement_timeout'])
alamirfan marked this conversation as resolved.
Show resolved Hide resolved

if conn_config.get('sslmode'):
cfg['sslmode'] = conn_config['sslmode']

Expand Down