pub fn try_export_db(conn: &mut Connection, db: Database<'_>) -> Result<()>
Expand description

Try to export a database to a SQL connection

This function does the following:

  1. BEGINs a transaction
  2. For every table: a. Run CREATE TABLE IF NOT EXISTS b. Prepares an INSERT statement c. Runs the insert with data from every row
  3. COMMITs the transaction