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

Function extractRowArray

lib/methods/table.js:149–157  ·  view source on GitHub ↗
(row, output, columnCount, moduleName)

Source from the content-addressed store, hash-verified

147}
148
149function extractRowArray(row, output, columnCount, moduleName) {
150 if (row.length !== columnCount) {
151 throw new TypeError(`Virtual table module "${moduleName}" yielded a row with an incorrect number of columns`);
152 }
153 const offset = output.length - columnCount;
154 for (let i = 0; i < columnCount; ++i) {
155 output[i + offset] = row[i];
156 }
157}
158
159function extractRowObject(row, output, columnMap, moduleName) {
160 let count = 0;

Callers 1

wrapGeneratorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected