21 lines
235 B
C++
21 lines
235 B
C++
//
|
|
// Created by dongl on 23-5-4.
|
|
//
|
|
|
|
#ifndef IM2_DB_H
|
|
#define IM2_DB_H
|
|
|
|
|
|
#include <mysql++.h>
|
|
|
|
class DB {
|
|
public:
|
|
DB() {}
|
|
virtual ~DB() {delete conn;}
|
|
protected:
|
|
mysqlpp::Connection* conn = nullptr;
|
|
};
|
|
|
|
|
|
#endif //IM2_DB_H
|