Bun

interface

sqlite.BackupOptions

interface BackupOptions

  • progress?: (progressInfo: BackupProgressInfo) => void

    An optional callback function that will be called after each backup step. The argument passed to this callback is an Object with remainingPages and totalPages properties, describing the current progress of the backup operation.

  • rate?: number

    Number of pages to be transmitted in each batch of the backup.

  • source?: string

    Name of the source database. This can be 'main' (the default primary database) or any other database that have been added with ATTACH DATABASE

  • target?: string

    Name of the target database. This can be 'main' (the default primary database) or any other database that have been added with ATTACH DATABASE