@variablesoftware/mock-d1
Version:
🎛️🗂️🧠 Mock D1 Database implementation for testing Cloudflare Workers
11 lines (10 loc) • 397 B
TypeScript
/**
* Handles batch execution (multiple statements in a single call).
* D1 does not support batch execution; this always throws a D1-like error.
*/
export declare function handleBatch(): never;
/**
* Handles transaction execution (BEGIN/COMMIT/ROLLBACK).
* D1 does not support explicit transactions; this always throws a D1-like error.
*/
export declare function handleTransaction(): never;