copyToFile abstract method

Future<void> copyToFile(
  1. String targetPath
)

Copy a compacted version of the database to the specified file.

If you want to backup your database, you should always use a compacted version. Compacted does not mean compressed.

Do not run this method while other transactions are active to avoid unnecessary growth of the database.

Implementation

Future<void> copyToFile(String targetPath);