From 50b96a06c52223c66284763faa4d7827171d396f Mon Sep 17 00:00:00 2001 From: Oscar Franco Date: Sat, 14 Dec 2024 10:21:15 +0100 Subject: [PATCH] Missing changes for last commit --- cpp/libsql/bridge.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/cpp/libsql/bridge.cpp b/cpp/libsql/bridge.cpp index 55938271..5014307d 100644 --- a/cpp/libsql/bridge.cpp +++ b/cpp/libsql/bridge.cpp @@ -159,15 +159,6 @@ BridgeResult opsqlite_libsql_close(std::string const &name) { }; } -void opsqlite_libsql_close_all() { - // for (auto const &db : db_map) { - // libsql_close(); - // } - for (auto const &db : db_map) { - opsqlite_libsql_close(db.first); - } -} - BridgeResult opsqlite_libsql_attach(std::string const &mainDBName, std::string const &docPath, std::string const &databaseToAttach, @@ -255,7 +246,7 @@ void opsqlite_libsql_bind_statement(libsql_stmt_t statement, if (std::holds_alternative(value)) { status = libsql_bind_int(statement, index, - static_cast(std::get(value)), &err); + static_cast(std::get(value)), &err); } else if (std::holds_alternative(value)) { status = libsql_bind_int(statement, index, std::get(value), &err); } else if (std::holds_alternative(value)) {