diff --git a/cpp/DBHostObject.cpp b/cpp/DBHostObject.cpp index 12ad2b8..ab33c7d 100644 --- a/cpp/DBHostObject.cpp +++ b/cpp/DBHostObject.cpp @@ -171,7 +171,7 @@ DBHostObject::DBHostObject(jsi::Runtime &rt, std::string &base_path, _thread_pool = std::make_shared(); #ifdef OP_SQLITE_USE_SQLCIPHER - BridgeResult result = opsqlite_open(db_name, path, crsqlite_path, + db = opsqlite_open(db_name, path, crsqlite_path, sqlite_vec_path, encryption_key); #elif OP_SQLITE_USE_LIBSQL db = opsqlite_libsql_open(db_name, path, crsqlite_path); diff --git a/cpp/bridge.cpp b/cpp/bridge.cpp index c6f265d..a34b3fd 100644 --- a/cpp/bridge.cpp +++ b/cpp/bridge.cpp @@ -72,7 +72,7 @@ std::string opsqlite_get_db_path(std::string const &db_name, } #ifdef OP_SQLITE_USE_SQLCIPHER -BridgeResult opsqlite_open(std::string const &name, std::string const &path, +sqlite3 *opsqlite_open(std::string const &name, std::string const &path, std::string const &crsqlite_path, std::string const &sqlite_vec_path, std::string const &encryption_key) { diff --git a/cpp/bridge.h b/cpp/bridge.h index f5ec490..10414e5 100644 --- a/cpp/bridge.h +++ b/cpp/bridge.h @@ -22,7 +22,7 @@ std::string opsqlite_get_db_path(std::string const &db_name, std::string const &location); #ifdef OP_SQLITE_USE_SQLCIPHER -BridgeResult opsqlite_open(std::string const &dbName, std::string const &path, +sqlite3 *opsqlite_open(std::string const &dbName, std::string const &path, std::string const &crsqlite_path, std::string const &sqlite_vec_path, std::string const &encryption_key);