D1TransactionMode
import type { D1TransactionMode } from "@pitlane/data-table-d1";type D1TransactionMode = "throw" | "unsafe-nonatomic";How the driver answers a transaction() call.
throwrefuses, because D1 cannot honour it. The default.unsafe-nonatomicaccepts and runs each statement immediately, each committing on its own. A failure part-way leaves the earlier writes persisted, with no rollback. For code shared with a backend that does have transactions, where the alternative is not running at all.