pub fn save_vault_with_migration(
conn: &Connection,
data: Value,
ctx: SaveCtx<'_>,
migration: &MigrationRecord,
) -> Result<String, String>Expand description
Saves the document and a migration manifest as one SQLCipher transaction.
The manifest contains source identities and encrypted archive payloads. A failed vault save therefore cannot leave an import marked applied, and a failed archive write cannot leave imported entries without their provenance.