'explain ON|OFF: Set output mode suitable for explain (default OFF)
Explain shows the underlying SQLite virtual machine code for a
statement.  You need to prefix the SQL with explain.  For example:
explain select * from table;
This output mode formats the explain output nicely.  If you do
\'.explain OFF\' then the output mode and settings in place when
you did \'.explain ON\' are restored.'

def command_explain(self, cmd):

    if ((len(cmd) == 0) or self._boolean_command('explain', cmd)):
        self.push_output()
        self.header = True
        self.widths = [4, 13, 4, 4, 4, 13, 2, 13]
        self.truncate = False
        self.output = self.output_column
    else:
        self.pop_output()
