Revision 2676
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
193 | 193 |
self.__db = module.connect(**db_config) |
194 | 194 |
|
195 | 195 |
# Configure connection |
196 |
if self.serializable and not self.autocommit: run_raw_query(self,
|
|
197 |
'SET TRANSACTION ISOLATION LEVEL SERIALIZABLE') |
|
196 |
if self.serializable and not self.autocommit: self.run_query(
|
|
197 |
'SET TRANSACTION ISOLATION LEVEL SERIALIZABLE', log_level=3)
|
|
198 | 198 |
if schemas != None: |
199 | 199 |
schemas_ = ''.join((esc_name(self, s)+', ' |
200 | 200 |
for s in schemas.split(','))) |
201 |
run_raw_query(self, "SELECT set_config('search_path', \
|
|
202 |
%s || current_setting('search_path'), false)", [schemas_]) |
|
201 |
self.run_query("SELECT set_config('search_path', \
|
|
202 |
%s || current_setting('search_path'), false)", [schemas_], log_level=3)
|
|
203 | 203 |
|
204 | 204 |
return self.__db |
205 | 205 |
|
Also available in: Unified diff
sql.py: DbConn._db(): Output connection configuration statements with log_level=3