db_index test -> the index creation is tested for now
This commit is contained in:
parent
38b6040529
commit
18ee30f69e
1
.gitignore
vendored
1
.gitignore
vendored
@ -12,3 +12,4 @@ memgraph
|
||||
*.breakpoint
|
||||
*.session.yaml
|
||||
tags
|
||||
.gdb_history
|
||||
|
@ -24,7 +24,6 @@ public:
|
||||
// todo handle existing insert
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
skiplist_t skiplist;
|
||||
};
|
||||
|
@ -16,7 +16,7 @@ private:
|
||||
Property& key;
|
||||
};
|
||||
|
||||
template <class Orderingt>
|
||||
template <class Ordering>
|
||||
class IndexKey
|
||||
{
|
||||
public:
|
||||
|
16
tests/db_index.cpp
Normal file
16
tests/db_index.cpp
Normal file
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user