diff --git a/.gitignore b/.gitignore index a95175283..f81f13db7 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ memgraph *.breakpoint *.session.yaml tags +.gdb_history diff --git a/src/storage/indexes/index.hpp b/src/storage/indexes/index.hpp index 27f80f0f1..fbc6229f1 100644 --- a/src/storage/indexes/index.hpp +++ b/src/storage/indexes/index.hpp @@ -24,7 +24,6 @@ public: // todo handle existing insert } - private: skiplist_t skiplist; }; diff --git a/src/storage/indexes/index_key.hpp b/src/storage/indexes/index_key.hpp index 6bb7689ec..68beba984 100644 --- a/src/storage/indexes/index_key.hpp +++ b/src/storage/indexes/index_key.hpp @@ -16,7 +16,7 @@ private: Property& key; }; -template <class Orderingt> +template <class Ordering> class IndexKey { public: diff --git a/tests/db_index.cpp b/tests/db_index.cpp new file mode 100644 index 000000000..60680c353 --- /dev/null +++ b/tests/db_index.cpp @@ -0,0 +1,16 @@ +#include <iostream> + +#include "storage/indexes/index.hpp" + +using std::cout; +using std::endl; + +using StringUniqueKeyAsc = UniqueKeyAsc<std::string>; + +int main(void) +{ + // index creation + auto index = std::make_shared<Index<StringUniqueKeyAsc, std::string>>(); + + return 0; +}