Skip to content
代码片段 群组 项目
提交 96890ba7 编辑于 作者: Timotej Ecimovic's avatar Timotej Ecimovic
浏览文件

Add comment explaining multiple transaction handling.

上级 ae4be26b
No related branches found
No related tags found
无相关合并请求
......@@ -27,6 +27,12 @@ const env = require('../util/env')
const util = require('../util/util.js')
const dbEnum = require('../../src-shared/db-enum.js')
// This is a SQLITE specific thing. With SQLITE databases,
// we can't have multiple transactions. So this mechanism
// here is handling this.
// If this code ever runs against a database engine that
// supports multiple transactions, this can all go away.
//
let inTransaction = false
function executeBeginTransaction(db, resolve, reject) {
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册