method CosmosAdapter.prototype.beginTransaction
CosmosAdapter.prototype.beginTransaction(options?: TransactionOptions): Promise<IAdapterTransaction>

Opens a deferred-write transaction whose buffer is flushed as one transactional batch at commit.

Cosmos has no interactive transaction, so reads inside it observe committed state only and every write lands at commit — the contract's deferred-write clause, and the shape D1Adapter established.

Parameters

optional
options: TransactionOptions

Return Type

Usage

import { CosmosAdapter } from "database-plugin/src/index.ts";