INNER CODE UNIT · Python
dot_untrace
probcomp/bayeslite · shell/src/core.py:415
def dot_untrace(self, line):
'''untrace queries
[bql|sql]
Untrace BQL or SQL queries executed in the database after
`.trace' traced them.
'''
if line == 'bql':
if self._traced:
self._bdb.untrace(self._trace)
self._traced = False
elif line == 'sql':
if self._sql_traced:
self._bdb.sql_untrace(self._sql_trace)
self._sql_traced = False
else:
self.stdout.write('Usage: .untrace bql\n')
self.stdout.write(' .untrace sql\n')