11#include " include/py_database.h"
2- #include " pandas/pandas_scan.h"
32
43#include < memory>
54
5+ #include " main/version.h"
6+ #include " pandas/pandas_scan.h"
7+
68using namespace kuzu ::common;
79
810void PyDatabase::initialize (py::handle& m) {
@@ -26,7 +28,17 @@ void PyDatabase::initialize(py::handle& m) {
2628 .def (" scan_node_table_as_float" , &PyDatabase::scanNodeTable<float >, py::arg (" table_name" ),
2729 py::arg (" prop_name" ), py::arg (" indices" ), py::arg (" np_array" ), py::arg (" num_threads" ))
2830 .def (" scan_node_table_as_bool" , &PyDatabase::scanNodeTable<bool >, py::arg (" table_name" ),
29- py::arg (" prop_name" ), py::arg (" indices" ), py::arg (" np_array" ), py::arg (" num_threads" ));
31+ py::arg (" prop_name" ), py::arg (" indices" ), py::arg (" np_array" ), py::arg (" num_threads" ))
32+ .def_static (" get_version" , &PyDatabase::getVersion)
33+ .def_static (" get_storage_version" , &PyDatabase::getStorageVersion);
34+ }
35+
36+ py::str PyDatabase::getVersion () {
37+ return py::str (Version::getVersion ());
38+ }
39+
40+ uint64_t PyDatabase::getStorageVersion () {
41+ return Version::getStorageVersion ();
3042}
3143
3244PyDatabase::PyDatabase (const std::string& databasePath, uint64_t bufferPoolSize,
0 commit comments