mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
sqlite: add getter to detect transactions
This commit adds an isTransaction getter to the DatabaseSync class for determining if the database is currently within a transaction. Fixes: https://github.com/nodejs/node/issues/57922 PR-URL: https://github.com/nodejs/node/pull/57925 Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
This commit is contained in:
1 parent
7102ea1559
commit
2e0ec72f54
4 files changed
+62
No files matched your search
@@ -61,6 +61,8 @@ class DatabaseSync : public BaseObject {
|
||||
static void New(const v8::FunctionCallbackInfo<v8::Value>& args);
|
||||
static void Open(const v8::FunctionCallbackInfo<v8::Value>& args);
|
||||
static void IsOpenGetter(const v8::FunctionCallbackInfo<v8::Value>& args);
|
||||
static void IsTransactionGetter(
|
||||
const v8::FunctionCallbackInfo<v8::Value>& args);
|
||||
static void Close(const v8::FunctionCallbackInfo<v8::Value>& args);
|
||||
static void Prepare(const v8::FunctionCallbackInfo<v8::Value>& args);
|
||||
static void Exec(const v8::FunctionCallbackInfo<v8::Value>& args);
|
||||
|
||||
Reference in new issue
Block a user