SQLiteBackup๏
Inherits: RefCounted < Object
Provides control over an ongoing database backup or restore operation.
Description๏
Represents a backup process between two databases. It allows copying data incrementally, making it suitable for non-blocking or asynchronous backup and restore operations.
Methods๏
void |
finish() |
get_page_count() const |
|
get_remaining() const |
|
Method Descriptions๏
void finish() ๐
Completes the backup operation and releases associated resources.
This should be called when the backup is no longer needed or has finished.
int get_page_count() const ๐
Returns the total number of pages in the source database being backed up.
int get_remaining() const ๐
Returns the number of pages that still need to be copied to complete the backup.
int step(pages: int = 100) ๐
Copies up to pages pages from the source database to the destination.
Returns a result code indicating the current state of the operation.
Repeated calls can be made until all pages are copied.