backup abstract method
Create a backup of the current database (this) into another database
(toDatabase
) on memory or disk.
The returned stream returns a rough estimate on the progress of the
backup, as a fraction between 0
and 1
. No progress is reported if
either this or toDatabase
is an in-memory database.
To simply await the backup operation as a future, call Stream.drain on the returned stream.
Implementation
Stream<double> backup(Database toDatabase);