Rel_sqlite3.Backup
Low-level backup interface.
See the SQLite backup API.
type db := t
init ~dst ~dname ~src ~sname
backups sname
of src
into dname
of dst
. Database names default to main
.
step b ~n ()
copies up to n
pages. If n
is unspecified all remaining pages are copied. Returns Ok true
when there are no more pages to be copied.
val remaining : t -> int
remaining b
is the number of pages remaining to be backed up.
val pagecount : t -> int
pagecount b
is the total nubmer of pages to be backed up.