Backup fix, tests.

This commit is contained in:
Nuno Cruces
2023-05-24 02:13:52 +01:00
parent cc2d16ac83
commit 597178f80d
6 changed files with 158 additions and 4 deletions

View File

@@ -129,6 +129,6 @@ func (b *Backup) Remaining() int {
//
// https://www.sqlite.org/c3ref/backup_finish.html#sqlite3backuppagecount
func (b *Backup) PageCount() int {
r := b.c.call(b.c.api.backupFinish, uint64(b.handle))
r := b.c.call(b.c.api.backupPageCount, uint64(b.handle))
return int(r[0])
}