package sqlite3

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Sqlite3.BackupSource

Sourcetype t

Type of a backup between two databases

Sourceval init : dst:db -> dst_name:string -> src:db -> src_name:string -> t

init ~dst ~dst_name ~src ~src_name initializes a backup from the database src/src_name to the database dst/dst_name.

  • raises SqliteError

    if there is already a read or read-write transaction open on the destination database

Sourceval step : t -> int -> Rc.t

step backup pagecount will copy up to pagecount pages between the associated databases of backup.

Sourceval finish : t -> Rc.t

finish backup destroys the association backup; this is to be called after step returns SQLITE_DONE.

Sourceval remaining : t -> int

remaining backup returns the number of pages still to be backed up in backup.

Sourceval pagecount : t -> int

pagecount backup returns the total number of pages in the source database of backup.

OCaml

Innovation. Community. Security.