Mysqlhelper.h
Go to the documentation of this file.00001 #ifndef MYSQLHELPER
00002 #define MYSQLHELPER
00003
00004
00005
00006
00007 #include <mysql++.h>
00008 #include <iostream>
00009
00010 using namespace std;
00011 using namespace mysqlpp;
00012
00013 class Mydatabase : public Connection {
00014 public:
00015 Mydatabase(const string &h, const string &d, const string &u, const string &p)
00016 : Connection(d.c_str(),
00017 h.c_str(), u.c_str(), p.c_str(), 0, 0, 300),
00018 user(u), password(p), host(h), database(d) { }
00019 Connection
00020 bool exists(const string &table);
00021
00022 private:
00023 string user;
00024 string password;
00025 string host;
00026 string database;
00027 };
00028
00029 #endif