Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into extension-build
Browse files Browse the repository at this point in the history
  • Loading branch information
mewim committed Apr 23, 2024
2 parents 871e367 + 7bce922 commit ab77ea9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/include/extension/extension.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class Database;

namespace extension {

std::string getPlatform();

class KUZU_API Extension {
public:
virtual ~Extension() = default;
Expand Down
3 changes: 2 additions & 1 deletion src/main/client_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ extension::ExtensionOptions* ClientContext::getExtensionOptions() const {
}

std::string ClientContext::getExtensionDir() const {
return common::stringFormat("{}/.kuzu/extension", config.homeDirectory);
return common::stringFormat("{}/.kuzu/extension/{}/{}", config.homeDirectory,
KUZU_EXTENSION_VERSION, kuzu::extension::getPlatform());
}

DatabaseManager* ClientContext::getDatabaseManager() const {
Expand Down

0 comments on commit ab77ea9

Please sign in to comment.