Skip to content

Commit 4fc52c2

Browse files
committed
update(src): By default don't connect to any database
1 parent bf1f837 commit 4fc52c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugins/loader/scripting/network/database.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ LoadScriptingComponent(
4040
.addFunction("Query", &PluginDatabase::Query)
4141
.endClass();
4242

43-
if(state->GetKind() == ContextKinds::Lua) state->RunCode("db = Database(\"default_connection\")");
44-
else if(state->GetKind() == ContextKinds::JavaScript) state->RunCode("globalThis.db = Database(\"default_connection\")");
43+
if(state->GetKind() == ContextKinds::Lua) state->RunCode("db = nil");
44+
else if(state->GetKind() == ContextKinds::JavaScript) state->RunCode("globalThis.db = null");
4545
}
4646
)

0 commit comments

Comments
 (0)