INNER CODE UNIT · Python

dot_sql

probcomp/bayeslite · shell/src/core.py:326

    def dot_sql(self, line):
        '''execute a SQL query
        <query>

        Execute a SQL query on the underlying SQLite database.
        '''
        try:
            pretty.pp_cursor(self.stdout, self._bdb.sql_execute(line))
        except apsw.Error as e:
            self.stdout.write('%s\n' % (e,))
        except Exception as e:
            self.stdout.write(traceback.format_exc())
        return False

    def dot_open(self, line):
        '''close existing database and open new one
        <pathname>|-m

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…