Skip to content

Commit 141f72c

Browse files
committed
fixup! sqlite: support sqlite3.loadExtension
lint fix
1 parent ada6afb commit 141f72c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/node_sqlite.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ bool DatabaseSync::Open() {
109109
int flags = SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE;
110110
int r = sqlite3_open_v2(location_.c_str(), &connection_, flags, nullptr);
111111
CHECK_ERROR_OR_THROW(env()->isolate(), connection_, r, SQLITE_OK, false);
112-
int r2 = sqlite3_db_config(connection_, SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION, 1, NULL);
112+
int r2 = sqlite3_db_config(
113+
connection_, SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION, 1, NULL);
113114
CHECK_ERROR_OR_THROW(env()->isolate(), connection_, r2, SQLITE_OK, false);
114115
return true;
115116
}
@@ -688,7 +689,8 @@ static void Initialize(Local<Object> target,
688689
SetProtoMethod(isolate, db_tmpl, "close", DatabaseSync::Close);
689690
SetProtoMethod(isolate, db_tmpl, "prepare", DatabaseSync::Prepare);
690691
SetProtoMethod(isolate, db_tmpl, "exec", DatabaseSync::Exec);
691-
SetProtoMethod(isolate, db_tmpl, "loadExtension", DatabaseSync::LoadExtension);
692+
SetProtoMethod(
693+
isolate, db_tmpl, "loadExtension", DatabaseSync::LoadExtension);
692694
SetConstructorFunction(context, target, "DatabaseSync", db_tmpl);
693695
SetConstructorFunction(context,
694696
target,

0 commit comments

Comments
 (0)