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:
BEGIN
s a transaction- For every table:
a. Run
CREATE TABLE IF NOT EXISTS
b. Prepares anINSERT
statement c. Runs the insert with data from every row COMMIT
s the transaction