@variablesoftware/mock-d1
Version:
🎛️🗂️🧠 Mock D1 Database implementation for testing Cloudflare Workers
10 lines (9 loc) • 338 B
JavaScript
/**
* Filters out the schema row (first row with all undefined values or empty object) from a table's rows.
* @param rows - The array of D1Row objects (table rows)
* @returns The rows array without the schema row
*/
export function filterSchemaRow(rows) {
// No-op: schema row is no longer used in new db shape
return rows;
}