21#ifndef MySQLInterface_H_
22#define MySQLInterface_H_
30#include <mysql/mysql.h>
31#include <DBInterface.h>
45 virtual bool nconnect(
const std::string& host,
const std::string& user,
const std::string& pswd,
46 const std::string& dbname,
unsigned int port = 0 )
override;
47 virtual bool close()
override;
49 bool query_ok(
const std::string& q );
52 virtual DBResult query(
const std::string& q )
override;
54 virtual const std::string lastQuery()
override;
55 virtual bool insert(
const std::string& q )
override;
61 virtual bool ping()
const override;
66 virtual double insert_id()
override;
68 virtual const std::string error()
override;
71 const char* gethostinfo()
const;
76 DBResult makeResult( MYSQL_RES* r,
bool finalize =
true );
80 char* qbuf = {
nullptr };
81 size_t qbufLen = { 0 };
Definition DBInterface.h:37
Definition DBInterface.h:52
Definition MySQLInterface.h:39
virtual bool ping() const override
Definition MySQLInterface.cc:175
virtual bool isConnection() const override
Definition MySQLInterface.cc:185
Definition Calibration.h:27