Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
commitAndBeginNew
Function · 0.85
streamImportSingle
Function · 0.85
Calls
1
exec
Method · 0.65
Tested by
no test coverage detected