cursor = connection.cursor() cursor.execute( """select * from your_table""") records = cursor.fetchall()