'Return a list of table and view names in the current database.'

def get_table_list(self, cursor):

    cursor.execute('SHOW    FULL    TABLES')
    return [TableInfo(row[0], {'BASE    TABLE': 't', 'VIEW': 'v'}.get(row[1])) for row in cursor.fetchall()]
