memgraph/dc/example/postgresql.cpp

29 lines
360 B
C++
Raw Normal View History

2015-10-23 05:54:28 +08:00
#include "db.hpp"
class postgresql : public db
{
public:
void name() const override
{
cout << "PostgreSQL" << endl;
}
void type() const override
{
cout << "Relational" << endl;
}
~postgresql() {}
};
extern "C" db* produce()
{
return new postgresql();
}
extern "C" void destruct(db* p)
{
delete p;
}