@variablesoftware/mock-d1
Version:
🎛️🗂️🧠 Mock D1 Database implementation for testing Cloudflare Workers
8 lines (7 loc) • 339 B
TypeScript
import type { D1Row } from "../types/MockD1Database";
/**
* 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 declare function filterSchemaRow(rows: D1Row[]): D1Row[];