Bun

interface

sqlite.BackupOptions

interface BackupOptions

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

    Callback function that will be called with the number of pages copied and the total number of pages.

  • 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