db_index test -> the index creation is tested for now

This commit is contained in:
Marko Budiselic 2016-06-05 09:48:34 +02:00
parent 38b6040529
commit 18ee30f69e
4 changed files with 18 additions and 2 deletions

1
.gitignore vendored
View File

@ -12,3 +12,4 @@ memgraph
*.breakpoint
*.session.yaml
tags
.gdb_history

View File

@ -24,7 +24,6 @@ public:
// todo handle existing insert
}
private:
skiplist_t skiplist;
};

View File

@ -16,7 +16,7 @@ private:
Property& key;
};
template <class Orderingt>
template <class Ordering>
class IndexKey
{
public:

16
tests/db_index.cpp Normal file
View 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;
}