memgraph/dc/example/mysql.cpp
2015-10-22 23:54:28 +02:00

29 lines
335 B
C++

#include "db.hpp"
class mysql : public db
{
public:
virtual void name() const
{
cout << "MySQL" << endl;
}
virtual void type() const
{
cout << "Relational" << endl;
}
~mysql() {}
};
extern "C" db* produce()
{
return new mysql();
}
extern "C" void destruct(db* p)
{
delete p;
}