MCPcopy Create free account
hub / github.com/WiseLibs/better-sqlite3 / progress

Function progress

test/36.database.backup.js:86–88  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

84 expect(existsSync(util.next())).to.be.false;
85 const calls = [];
86 const promise = this.db.backup(util.current(), { progress(...args) {
87 calls.push([this, ...args]);
88 } });
89 expect(existsSync(util.current())).to.be.false;
90 await fulfillsWith({ totalPages: 2, remainingPages: 0 }, promise);
91 expect(existsSync(this.db.name)).to.be.true;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected