File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -71,8 +71,6 @@ class OracleNetConfig(dict):
71
71
'wallet_password' ,
72
72
'wallet_location' ,
73
73
'expire_time' ,
74
- 'https_proxy' ,
75
- 'https_proxy_port' ,
76
74
'retry_count' ,
77
75
'retry_delay' ,
78
76
'tcp_connect_timeout' ,
Original file line number Diff line number Diff line change @@ -120,6 +120,10 @@ class OracleAdapterCredentials(Credentials):
120
120
# session info is stored in v$session for each dbt run
121
121
session_info : Optional [Dict [str , str ]] = field (default_factory = dict )
122
122
123
+ # read http proxy from profiles.yml
124
+ https_proxy : Optional [str ] = None
125
+ https_proxy_port : Optional [int ] = None
126
+
123
127
124
128
_ALIASES = {
125
129
'dbname' : 'database' ,
@@ -243,6 +247,11 @@ def open(cls, connection):
243
247
elif purity == 'default' :
244
248
conn_config ['purity' ] = oracledb .ATTR_PURITY_DEFAULT
245
249
250
+ if credentials .https_proxy and credentials .https_proxy_port :
251
+ conn_config ['https_proxy' ] = credentials .https_proxy
252
+ conn_config ['https_proxy_port' ] = credentials .https_proxy_port
253
+
254
+
246
255
if SQLNET_ORA_CONFIG is not None :
247
256
conn_config .update (SQLNET_ORA_CONFIG )
248
257
You can’t perform that action at this time.
0 commit comments