Function assembly_fdb::sqlite::try_export_db
source ยท 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:
BEGINs a transaction- For every table:
a. Run
CREATE TABLE IF NOT EXISTSb. Prepares anINSERTstatement c. Runs the insert with data from every row COMMITs the transaction