From fd645753b8336865be1611b7557340932f353356 Mon Sep 17 00:00:00 2001 From: Bart Louwers Date: Sat, 2 Nov 2024 19:27:58 +0100 Subject: [PATCH] sqlite: use snake_case for local variables --- src/node_sqlite.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/node_sqlite.cc b/src/node_sqlite.cc index a7745dd8d3a928..fb3e171861a5c5 100644 --- a/src/node_sqlite.cc +++ b/src/node_sqlite.cc @@ -348,7 +348,7 @@ void DatabaseSync::Exec(const FunctionCallbackInfo& args) { void DatabaseSync::CreateSession(const FunctionCallbackInfo& args) { std::string table; - std::string dbName = "main"; + std::string db_name = "main"; Environment* env = Environment::GetCurrent(args); if (args.Length() > 0) { @@ -385,7 +385,7 @@ void DatabaseSync::CreateSession(const FunctionCallbackInfo& args) { options->Get(env->context(), db_key).ToLocalChecked(); if (db_value->IsString()) { String::Utf8Value str(env->isolate(), db_value); - dbName = std::string(*str); + db_name = std::string(*str); } else { node::THROW_ERR_INVALID_ARG_TYPE( env->isolate(), "The \"options.db\" argument must be a string."); @@ -399,7 +399,7 @@ void DatabaseSync::CreateSession(const FunctionCallbackInfo& args) { THROW_AND_RETURN_ON_BAD_STATE(env, !db->IsOpen(), "database is not open"); sqlite3_session* pSession; - int r = sqlite3session_create(db->connection_, dbName.c_str(), &pSession); + int r = sqlite3session_create(db->connection_, db_name.c_str(), &pSession); CHECK_ERROR_OR_THROW(env->isolate(), db->connection_, r, SQLITE_OK, void()); db->sessions_.insert(pSession);