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

Function rows

test/34.database.table.js:112–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110 this.db.table('vtab', {
111 columns: ['a', 'b', 'c', 'd', 'e'],
112 *rows() {
113 for (const obj of rows) {
114 yield Object.values(obj);
115 }
116 },
117 });
118 expect(this.db.prepare('SELECT * FROM vtab').all()).to.deep.equal(rows);
119 expect(this.db.prepare('SELECT * FROM vtab WHERE b < 500').all()).to.deep.equal(rows.slice(0, 1));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected