title: how do i dump a single sqlite3 table in python?
body: <p>I would like to dump only one table but by the looks of it, there is no parameter for this.</p>
  <p>I found this example of the dump but it is for all the tables in the DB:</p>
  <pre><code># Convert file existing_db.db to SQL dump file dump.sql
  import sqlite3, os
  
  con = sqlite3.connect('existing_db.db')
  with open('dump.sql', 'w') as f:
      for line in con.iterdump():
          f.write('%s\n' % line)
  </code></pre>