def get_columns_of_table(self, table=None):
        """Return the list of columns for a particular table
        by querying the SQL for the complete list of column names."""
        # Check the table exists #
        if table is None: table = self.main_table
        if not table in self.tables: return []
        # A PRAGMA statement will implicitly issue a commit, don't use #
        self.own_cursor.execute('SELECT * from "%s" LIMIT 1;' % table)
        columns = [x[0] for x in self.own_cursor.description]
        self.cursor.fetchall()
        return columns
def get_columns_of_table ( self , table = None ) : if table is None : table = self . main_table if not table in self . tables : return [ ] self . own_cursor . execute ( 'SELECT * from "%s" LIMIT 1;' % table ) columns = [ x [ 0 ] for x in self . own_cursor . description ] self . cursor . fetchall ( ) return columns
Return the list of columns for a particular table
        by querying the SQL for the complete list of column names.