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()

int

get_page_count() const

int

get_remaining() const

int

step(pages: int = 100)


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.