File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ def ignore(*args, **kwargs):
36
36
class DatabaseClient (BaseDatabaseClient ):
37
37
runshell = ignore
38
38
39
-
40
39
class DatabaseWrapper (BaseDatabaseWrapper ):
41
40
vendor = 'intersystems'
42
41
display_name = 'InterSystems IRIS'
@@ -94,7 +93,6 @@ class DatabaseWrapper(BaseDatabaseWrapper):
94
93
95
94
_commit = ignore
96
95
_rollback = ignore
97
- _close = ignore
98
96
_savepoint = ignore
99
97
_savepoint_commit = ignore
100
98
_savepoint_rollback = ignore
@@ -109,17 +107,21 @@ class DatabaseWrapper(BaseDatabaseWrapper):
109
107
ops_class = DatabaseOperations
110
108
validation_class = DatabaseValidation
111
109
110
+
112
111
def get_connection_params (self ):
113
112
settings_dict = self .settings_dict
114
113
115
114
conn_params = {
116
115
'username' : None ,
117
116
'password' : None ,
117
+ 'timeout' : 30 ,
118
118
}
119
119
if settings_dict ['USER' ]:
120
120
conn_params ['username' ] = settings_dict ['USER' ]
121
121
if settings_dict ['PASSWORD' ]:
122
122
conn_params ['password' ] = settings_dict ['PASSWORD' ]
123
+ if settings_dict ['TIMEOUT' ]:
124
+ conn_params ['timeout' ] = settings_dict ['TIMEOUT' ]
123
125
124
126
if 'CONNECTION_STRING' in settings_dict :
125
127
conn_params ['connectionstr' ] = settings_dict ['CONNECTION_STRING' ]
You can’t perform that action at this time.
0 commit comments