2#ifndef RDBMODEL_CONNECTION_H
3#define RDBMODEL_CONNECTION_H
62 virtual bool open(
const std::string& host,
const std::string& userid,
63 const std::string& password,
64 const std::string& dbName) = 0;
72 virtual bool open(
const std::string& parms) = 0;
77 virtual std::ostream*
getOut()
const = 0;
93 virtual bool insertRow(
const std::string& tableName,
121 virtual unsigned int update(
const std::string& tableName,
virtual ResultHandle * select(const std::string &tableName, const StringVector &getCols, const StringVector &orderCols, const Assertion *where=0, int rowLimit=0, int rowOffset=0)=0
virtual MATCH matchSchema(Rdb *rdb, bool matchDbName=true)=0
virtual unsigned int update(const std::string &tableName, const StringVector &colNames, const StringVector &values, const Assertion *where=0, const StringVector *nullCols=0)=0
virtual bool isConnected()=0
Return true iff open has been done with no matching close.
virtual bool compileAssertion(const Assertion *a, std::string &sqlString) const =0
virtual std::ostream * getOut() const =0
virtual bool open(const std::string &host, const std::string &userid, const std::string &password, const std::string &dbName)=0
virtual void disableModify(bool disable)=0
virtual bool insertRow(const std::string &tableName, const StringVector &colNames, const StringVector &values, int *auto_value=0, const StringVector *nullCols=0)=0
virtual ResultHandle * dbRequest(const std::string &request)=0
virtual std::ostream * getErrOut() const =0
virtual bool open(const std::string &parms)=0
std::vector< std::string > StringVector