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

Function rows

test/40.bigints.js:71–71  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

69 });
70 it('should get passed to virtual tables defined with the "safeIntegers" option', function () {
71 this.db.table('customvtab', { safeIntegers: true, columns: ['x'], *rows(a) { yield [(typeof a) + a]; } });
72 expect(this.db.prepare('SELECT * FROM customvtab(?)').pluck().get(2)).to.equal('number2');
73 expect(this.db.prepare('SELECT * FROM customvtab(?)').pluck().get(BigInt(2))).to.equal('bigint2');
74 });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected