Skip to content

Commit 98bcfca

Browse files
authored
Refactor extensionUtils apis (#4759)
1 parent 0a520d4 commit 98bcfca

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src_cpp/py_database.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
#include <memory>
44

5+
#include "extension/extension.h"
56
#include "include/cached_import/py_cached_import.h"
67
#include "main/version.h"
78
#include "pandas/pandas_scan.h"
8-
#include "pyarrow/pyarrow_scan.h"
99

1010
using namespace kuzu::common;
1111

@@ -54,8 +54,7 @@ PyDatabase::PyDatabase(const std::string& databasePath, uint64_t bufferPoolSize,
5454
systemConfig.checkpointThreshold = static_cast<uint64_t>(checkpointThreshold);
5555
}
5656
database = std::make_unique<Database>(databasePath, systemConfig);
57-
database->addTableFunction(kuzu::PandasScanFunction::name,
58-
kuzu::PandasScanFunction::getFunctionSet());
57+
kuzu::extension::ExtensionUtils::addTableFunc<kuzu::PandasScanFunction>(*database);
5958
storageDriver = std::make_unique<kuzu::main::StorageDriver>(database.get());
6059
py::gil_scoped_acquire acquire;
6160
if (kuzu::importCache.get() == nullptr) {

0 commit comments

Comments
 (0)