MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / beginTransaction

Function beginTransaction

packages/node-runtime/src/import/streaming-importer.ts:237–242  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

235 let inTransaction = false
236
237 const beginTransaction = () => {
238 if (!inTransaction) {
239 db.exec('BEGIN TRANSACTION')
240 inTransaction = true
241 }
242 }
243
244 const doCheckpoint = () => {
245 try {

Callers 2

commitAndBeginNewFunction · 0.85
streamImportSingleFunction · 0.85

Calls 1

execMethod · 0.65

Tested by

no test coverage detected