DatabaseBackupProgress
public struct DatabaseBackupProgress
An instance of DatabaseBackupProgress is passed to a callback of the
DatabaseReader.backup or Database.backup methods to report
database backup progress to the caller.
This is an advanced API for expert users. It is based directly on the SQLite online backup API.
-
Total page count is defined by the
sqlite3_backup_remainingfunctionDeclaration
Swift
public let remainingPageCount: Int -
Total page count is defined by the
sqlite3_backup_pagecountfunctionDeclaration
Swift
public let totalPageCount: Int -
Completed page count is defined as
sqlite3_backup_pagecount() - sqlite3_backup_remaining()Declaration
Swift
public var completedPageCount: Int { get } -
This property is true if and only if
sqlite3_backup_step()returnsSQLITE_DONEDeclaration
Swift
public let isCompleted: Bool
View on GitHub
Install in Dash
DatabaseBackupProgress Structure Reference