mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Have executeSQL take a String.
This commit is contained in:
@@ -35,6 +35,10 @@ public:
|
|||||||
// returns true if the query went ok
|
// returns true if the query went ok
|
||||||
virtual bool executeSQL(const char* sql, bool fail_okay=false)=0;
|
virtual bool executeSQL(const char* sql, bool fail_okay=false)=0;
|
||||||
|
|
||||||
|
bool executeSQL(std::string strSql, bool fail_okay=false) {
|
||||||
|
return executeSQL(strSql.c_str(), fail_okay);
|
||||||
|
}
|
||||||
|
|
||||||
// tells you how many rows were changed by an update or insert
|
// tells you how many rows were changed by an update or insert
|
||||||
virtual int getNumRowsAffected()=0;
|
virtual int getNumRowsAffected()=0;
|
||||||
virtual int getLastInsertID()=0;
|
virtual int getLastInsertID()=0;
|
||||||
|
|||||||
Reference in New Issue
Block a user