MCPcopy Create free account
hub / github.com/cameri/nostream / begin

Method begin

src/database/transaction.ts:11–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9 public constructor(private readonly dbClient: DatabaseClient) {}
10
11 public async begin(): Promise<void> {
12 this.trx = await this.dbClient.transaction(null, { isolationLevel: 'serializable' })
13 }
14
15 public get transaction(): DatabaseTransaction {
16 if (!this.trx) {

Callers 2

createInvoiceMethod · 0.95
confirmInvoiceMethod · 0.95

Calls 1

transactionMethod · 0.65

Tested by

no test coverage detected