Skip to content

Commit

Permalink
finish sqlcipher migration
Browse files Browse the repository at this point in the history
  • Loading branch information
rflopezm committed Dec 20, 2024
1 parent 6a8022d commit 36f0352
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cpp/DBHostObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ DBHostObject::DBHostObject(jsi::Runtime &rt, std::string &base_path,
_thread_pool = std::make_shared<ThreadPool>();

#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);
Expand Down
2 changes: 1 addition & 1 deletion cpp/bridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion cpp/bridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 36f0352

Please sign in to comment.