@variablesoftware/mock-d1
Version:
🎛️🗂️🧠 Mock D1 Database implementation for testing Cloudflare Workers
8 lines (7 loc) • 339 B
TypeScript
/**
* Finds the actual table key in the db Map for a given table name, case-insensitively.
* @param db - The database Map
* @param table - The table name to look up
* @returns The actual key in the db Map, or undefined if not found
*/
export declare function findTableKey(db: Map<string, unknown>, table: string): string | undefined;