memgraph/dc/example/mysql.cpp

29 lines
335 B
C++
Raw Normal View History

2015-10-23 05:54:28 +08:00
#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;
}