InfiniSQL
v0.1.2-alpha
Massive Scale Transaction Processing
|
Stored procedure API. More...
#include <infinisql.h>
Classes | |
struct | results_s |
results from SQL query More... | |
Public Member Functions | |
ApiInterface () | |
virtual | ~ApiInterface () |
virtual void | doit ()=0 |
virtual void | continueFunc1 (int64_t entrypoint, void *statePtr)=0 |
user-defined continuation function More... | |
virtual void | continueFunc2 (int64_t entrypoint, void *statePtr)=0 |
second user-defined continuation function More... | |
virtual void | continuePgFunc (int64_t entrypoint, void *statePtr)=0 |
after SQL activity is performed More... | |
virtual void | continuePgCommitimplicit (int64_t entrypoint, void *statePtr)=0 |
continuation function after implicit commit More... | |
virtual void | continuePgCommitexplicit (int64_t entrypoint, void *statePtr)=0 |
continuation function after explicit commit More... | |
virtual void | continuePgRollbackimplicit (int64_t entrypoint, void *statePtr)=0 |
continuation function after implicit rollback More... | |
virtual void | continuePgRollbackexplicit (int64_t entrypoint, void *statePtr)=0 |
continuation function after explicit rollback More... | |
void | deserialize2Vector () |
orphan More... | |
void | beginTransaction () |
start Transaction More... | |
void | destruct () |
orphan More... | |
void | bouncebackproxy () |
orphan More... | |
void | insertRow (apifPtr re, int64_t recmd, void *reptr, int64_t tableid) |
deprecated More... | |
void | deleteRow (apifPtr re, int64_t recmd, void *reptr, uuRecord_s &uur) |
deprecated More... | |
void | replaceRow (apifPtr re, int64_t recmd, void *reptr) |
deprecated More... | |
void | selectRows (apifPtr re, int64_t recmd, void *reptr, int64_t tableid, int64_t fieldid, locktype_e locktype, operatortypes_e op) |
deprecated More... | |
void | selectRows (apifPtr re, int64_t recmd, void *reptr, int64_t tableid, int64_t fieldid, locktype_e locktype, operatortypes_e op, int64_t input) |
deprecated More... | |
void | selectRows (apifPtr re, int64_t recmd, void *reptr, int64_t tableid, int64_t fieldid, locktype_e locktype, operatortypes_e op, uint64_t input) |
deprecated More... | |
void | selectRows (apifPtr re, int64_t recmd, void *reptr, int64_t tableid, int64_t fieldid, locktype_e locktype, operatortypes_e op, bool input) |
deprecated More... | |
void | selectRows (apifPtr re, int64_t recmd, void *reptr, int64_t tableid, int64_t fieldid, locktype_e locktype, operatortypes_e op, long double input) |
deprecated More... | |
void | selectRows (apifPtr re, int64_t recmd, void *reptr, int64_t tableid, int64_t fieldid, locktype_e locktype, operatortypes_e op, char input) |
deprecated More... | |
void | selectRows (apifPtr re, int64_t recmd, void *reptr, int64_t tableid, int64_t fieldid, locktype_e locktype, operatortypes_e op, string *input) |
deprecated More... | |
void | selectRows (apifPtr re, int64_t recmd, void *reptr, int64_t tableid, int64_t fieldid, locktype_e locktype, operatortypes_e op, vector< int64_t > *input) |
deprecated More... | |
void | selectRows (apifPtr re, int64_t recmd, void *reptr, int64_t tableid, int64_t fieldid, locktype_e locktype, operatortypes_e op, vector< uint64_t > *input) |
deprecated More... | |
void | selectRows (apifPtr re, int64_t recmd, void *reptr, int64_t tableid, int64_t fieldid, locktype_e locktype, operatortypes_e op, vector< bool > *input) |
deprecated More... | |
void | selectRows (apifPtr re, int64_t recmd, void *reptr, int64_t tableid, int64_t fieldid, locktype_e locktype, operatortypes_e op, vector< long double > *input) |
deprecated More... | |
void | selectRows (apifPtr re, int64_t recmd, void *reptr, int64_t tableid, int64_t fieldid, locktype_e locktype, operatortypes_e op, vector< char > *input) |
deprecated More... | |
void | selectRows (apifPtr re, int64_t recmd, void *reptr, int64_t tableid, int64_t fieldid, locktype_e locktype, operatortypes_e op, vector< string > *input) |
deprecated More... | |
void | selectRows (apifPtr re, int64_t recmd, void *reptr, int64_t tableid, int64_t fieldid, locktype_e locktype, operatortypes_e op, int64_t lower, int64_t upper) |
deprecated More... | |
void | selectRows (apifPtr re, int64_t recmd, void *reptr, int64_t tableid, int64_t fieldid, locktype_e locktype, operatortypes_e op, uint64_t lower, uint64_t upper) |
deprecated More... | |
void | selectRows (apifPtr re, int64_t recmd, void *reptr, int64_t tableid, int64_t fieldid, locktype_e locktype, operatortypes_e op, bool lower, bool upper) |
deprecated More... | |
void | selectRows (apifPtr re, int64_t recmd, void *reptr, int64_t tableid, int64_t fieldid, locktype_e locktype, operatortypes_e op, long double lower, long double upper) |
deprecated More... | |
void | selectRows (apifPtr re, int64_t recmd, void *reptr, int64_t tableid, int64_t fieldid, locktype_e locktype, operatortypes_e op, char lower, char upper) |
deprecated More... | |
void | selectRows (apifPtr re, int64_t recmd, void *reptr, int64_t tableid, int64_t fieldid, locktype_e locktype, operatortypes_e op, string *lower, string *upper) |
deprecated More... | |
void | fetchRows (apifPtr re, int64_t recmd, void *reptr) |
deprecated More... | |
void | unlock (apifPtr re, int64_t recmd, void *reptr, int64_t rowid, int64_t tableid, int64_t engineid) |
unlock row More... | |
void | rollback (apifPtr re, int64_t recmd, void *reptr) |
rollback transaction More... | |
void | rollback (apifPtr re, int64_t recmd, void *reptr, uuRecord_s &uur) |
rollback transaction More... | |
void | commit (apifPtr re, int64_t recmd, void *reptr) |
commit transaction More... | |
void | revert (apifPtr re, int64_t recmd, void *reptr, uuRecord_s &uur) |
deprecated More... | |
void | updateRow (apifPtr re, int64_t recmd, void *reptr, uuRecord_s &uur) |
deprecated More... | |
void | updateRowNullField (apifPtr re, int64_t recmd, void *reptr, uuRecord_s &uur, int64_t fieldid) |
deprecated More... | |
void | updateRow (apifPtr re, int64_t recmd, void *reptr, uuRecord_s &uur, int64_t fieldid, int64_t input) |
deprecated More... | |
void | updateRow (apifPtr re, int64_t recmd, void *reptr, uuRecord_s &uur, int64_t fieldid, uint64_t input) |
deprecated More... | |
void | updateRow (apifPtr re, int64_t recmd, void *reptr, uuRecord_s &uur, int64_t fieldid, bool input) |
deprecated More... | |
void | updateRow (apifPtr re, int64_t recmd, void *reptr, uuRecord_s &uur, int64_t fieldid, long double input) |
deprecated More... | |
void | updateRow (apifPtr re, int64_t recmd, void *reptr, uuRecord_s &uur, int64_t fieldid, char input) |
deprecated More... | |
void | updateRow (apifPtr re, int64_t recmd, void *reptr, uuRecord_s &uur, int64_t fieldid, string input) |
deprecated More... | |
bool | unmakerow (int64_t tableid, string *rowstring, vector< fieldValue_s > *resultFields) |
deprecated More... | |
void | prepareResponseVector (int64_t resultCode) |
deprecated More... | |
void | addFieldToRow () |
deprecated More... | |
void | addFieldToRow (int64_t val) |
deprecated More... | |
void | addFieldToRow (uint64_t val) |
deprecated More... | |
void | addFieldToRow (bool val) |
deprecated More... | |
void | addFieldToRow (long double val) |
deprecated More... | |
void | addFieldToRow (char val) |
deprecated More... | |
void | addFieldToRow (string &val) |
deprecated More... | |
void | setReEntry (apifPtr re, int64_t recmd, void *reptr) |
set continuation target back to ApiInterface object More... | |
void | sendResponse (int64_t resultCode, vector< std::string > *v) |
deprecated More... | |
bool | execStatement (const char *stmtname, Statement *stmtPtr, apifPtr reentryfunction, int64_t reentrypoint, void *reentrydata) |
execute SQL statement More... | |
bool | execStatement (const char *stmtname, vector< std::string > &args, apifPtr reentryfunction, int64_t reentrypoint, void *reentrydata) |
execute SQL statement More... | |
int64_t | getResultCode () |
get resultCode from most recent transactional activity More... | |
void | deleteTransaction () |
delete Transaction More... | |
void | deleteStatement () |
delete Statement More... | |
void | getStoredProcedureArgs (Statement *stmtPtr, std::vector< std::string > &argsRef) |
put args from stored procedure Statement into vector of strings More... | |
Public Attributes | |
class TransactionAgent * | taPtr |
class ApiInterface * | pgPtr |
class Statement * | statementPtr |
std::vector< std::string > | inputVector |
class Transaction * | transactionPtr |
procedureResponse_s | response |
std::vector< std::string > | responseVector |
void * | destroyerPtr |
apifPtr | continueFunc1Ptr |
apifPtr | continueFunc2Ptr |
apifPtr | continuePgFuncPtr |
int | sockfd |
int64_t | domainid |
results_s | results |
Stored procedure API.
Stored procedure programming is described in http://www.infinisql.org/docs/reference/
Definition at line 243 of file infinisql.h.
|
inline |
Definition at line 261 of file infinisql.h.
|
inlinevirtual |
Definition at line 265 of file infinisql.h.
void ApiInterface::addFieldToRow | ( | ) |
deprecated
Definition at line 762 of file api.cc.
References Transaction::addFieldToRow(), and transactionPtr.
void ApiInterface::addFieldToRow | ( | int64_t | val) |
deprecated
Definition at line 767 of file api.cc.
References Transaction::addFieldToRow(), and transactionPtr.
void ApiInterface::addFieldToRow | ( | uint64_t | val) |
deprecated
Definition at line 772 of file api.cc.
References Transaction::addFieldToRow(), and transactionPtr.
void ApiInterface::addFieldToRow | ( | bool | val) |
deprecated
Definition at line 777 of file api.cc.
References Transaction::addFieldToRow(), and transactionPtr.
void ApiInterface::addFieldToRow | ( | long double | val) |
deprecated
Definition at line 782 of file api.cc.
References Transaction::addFieldToRow(), and transactionPtr.
void ApiInterface::addFieldToRow | ( | char | val) |
deprecated
Definition at line 787 of file api.cc.
References Transaction::addFieldToRow(), and transactionPtr.
void ApiInterface::addFieldToRow | ( | string & | val) |
deprecated
Definition at line 792 of file api.cc.
References Transaction::addFieldToRow(), and transactionPtr.
void ApiInterface::beginTransaction | ( | ) |
void ApiInterface::bouncebackproxy | ( | ) |
orphan
Definition at line 55 of file api.cc.
References Transaction::reenter(), and transactionPtr.
void ApiInterface::commit | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr | ||
) |
commit transaction
Definition at line 231 of file api.cc.
References APISTATUS_PENDING, Transaction::commit(), NOCOMMAND, Transaction::pendingcmd, Transaction::reenter(), setReEntry(), and transactionPtr.
|
pure virtual |
user-defined continuation function
entrypoint | entrypoint for continuation |
statePtr | state data |
Implemented in Pg.
|
pure virtual |
second user-defined continuation function
entrypoint | entrypoint for continuation |
statePtr | state data |
Implemented in Pg.
|
pure virtual |
continuation function after explicit commit
explicit commit is sent as COMMIT or END at end of transaction
entrypoint | entry point to continue |
statePtr | state data to continue with |
Implemented in Pg.
Referenced by Pg::sqlcommitexplicit().
|
pure virtual |
continuation function after implicit commit
implicit commit done after a single statement is entered, not in a transaction already, and session_isautocommit is true
entrypoint | entry point to continue |
statePtr | state data to continue with |
Implemented in Pg.
Referenced by Pg::closesocket(), and Pg::sqlcommitimplicit().
|
pure virtual |
after SQL activity is performed
based on the statement type and transaction state, a variety of things if session_isautocommit==true, and is SELECT, INSERT, UPDATE, DELETE, then output If autocommit==false, and SELECT, INSERT, UPDATE, DELETE, then prepare output but don't output if COMMIT (END), then commit open transaction and output results already prepared if ROLLBACK, then rollback open transaction and output results CommandComplete at the end of everything returned If set, then set whatever
entrypoint | entry point to contiue |
statePtr | state data to continue with |
Implemented in Pg.
Referenced by Pg::executeStatement().
|
pure virtual |
continuation function after explicit rollback
explicit commit is sent as ROLLBACK statement within transaction
entrypoint | entry point to continue |
statePtr | state data to continue with |
Implemented in Pg.
Referenced by Pg::sqlrollbackexplicit().
|
pure virtual |
continuation function after implicit rollback
implicit rollback done generally after a failure of some kind which forces a rollback
entrypoint | entry point to continue |
statePtr | state data to continue with |
Implemented in Pg.
Referenced by Pg::sqlrollbackimplicit().
void ApiInterface::deleteRow | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
uuRecord_s & | uur | ||
) |
deprecated
re | |
recmd | |
reptr | |
uur |
Definition at line 151 of file api.cc.
References APISTATUS_NOTOK, Transaction::currentCmdState, DELETE, DELETEROW, uuRecord_s::engineid, Transaction::getnextpendingcmdid(), NOCOMMAND, Transaction::cmdState_s::originaluur, PAYLOADSUBTRANSACTION, Transaction::pendingcmd, Transaction::pendingcmdid, Transaction::reenter(), uuRecord_s::rowid, MessageSubtransactionCmd::subtransaction_s::rowid, Transaction::sendTransaction(), setReEntry(), Transaction::stagedRows, MessageSubtransactionCmd::subtransactionStruct, uuRecord_s::tableid, MessageSubtransactionCmd::subtransaction_s::tableid, transactionPtr, WRITELOCK, and Transaction::zeroCurrentCmdState().
void ApiInterface::deleteStatement | ( | ) |
void ApiInterface::deleteTransaction | ( | ) |
void ApiInterface::deserialize2Vector | ( | ) |
orphan
Definition at line 36 of file api.cc.
References TransactionAgent::args, TransactionAgent::argsize, inputVector, and taPtr.
void ApiInterface::destruct | ( | ) |
|
pure virtual |
Implemented in Pg.
bool ApiInterface::execStatement | ( | const char * | stmtname, |
Statement * | stmtPtr, | ||
apifPtr | reentryfunction, | ||
int64_t | reentrypoint, | ||
void * | reentrydata | ||
) |
execute SQL statement
stmtname | statement name |
stmtPtr | Statement |
reentryfunction | function to reenter to |
reentrypoint | continuation entry point |
reentrydata | continuation state |
Definition at line 797 of file api.cc.
References Statement::queries.
bool ApiInterface::execStatement | ( | const char * | stmtname, |
vector< std::string > & | args, | ||
apifPtr | reentryfunction, | ||
int64_t | reentrypoint, | ||
void * | reentrydata | ||
) |
execute SQL statement
stmtname | statement name |
args | statement parameters |
reentryfunction | function to reenter to |
reentrypoint | continuation entry point |
reentrydata | continuation state |
Definition at line 805 of file api.cc.
References domainid, Statement::execute(), TransactionAgent::statements, taPtr, and transactionPtr.
void ApiInterface::fetchRows | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr | ||
) |
deprecated
Definition at line 202 of file api.cc.
References APISTATUS_PENDING, FETCH, Transaction::getnextpendingcmdid(), NOCOMMAND, Transaction::pendingcmd, Transaction::pendingcmdid, Transaction::reenter(), setReEntry(), and transactionPtr.
int64_t ApiInterface::getResultCode | ( | ) |
get resultCode from most recent transactional activity
Definition at line 820 of file api.cc.
References Transaction::resultCode, and transactionPtr.
void ApiInterface::getStoredProcedureArgs | ( | Statement * | stmtPtr, |
std::vector< std::string > & | argsRef | ||
) |
void ApiInterface::insertRow | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
int64_t | tableid | ||
) |
deprecated
re | |
recmd | |
reptr | |
tableid |
Definition at line 61 of file api.cc.
References APISTATUS_FIELD, APISTATUS_NOTOK, APISTATUS_NULLCONSTRAINT, APISTATUS_PENDING, Transaction::checkNullConstraintOK(), Transaction::currentCmdState, Table::fields, Transaction::fieldValues, Transaction::getEngineid(), Transaction::getnextpendingcmdid(), Transaction::cmdState_s::indexEntries, INSERT, NEWROW, NOCOMMAND, NONE, PAYLOADSUBTRANSACTION, Transaction::pendingcmd, Transaction::pendingcmdid, Transaction::reenter(), Transaction::returnNewRow, Transaction::cmdState_s::row, MessageSubtransactionCmd::row, Transaction::cmdState_s::rowEngineid, Transaction::cmdState_s::rowidsEngineids, Transaction::schemaPtr, Transaction::sendTransaction(), setReEntry(), MessageSubtransactionCmd::subtransactionStruct, Transaction::cmdState_s::tableid, MessageSubtransactionCmd::subtransaction_s::tableid, Transaction::tableid, Transaction::cmdState_s::tablePtr, Schema::tables, transactionPtr, Table::unmakerow(), and Transaction::zeroCurrentCmdState().
void ApiInterface::prepareResponseVector | ( | int64_t | resultCode) |
deprecated
Definition at line 746 of file api.cc.
References response, responseVector, procedureResponse_s::resultCode, and procedureResponse_s::sbuf.
void ApiInterface::replaceRow | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr | ||
) |
deprecated
re | |
recmd | |
reptr |
Definition at line 188 of file api.cc.
References APISTATUS_PENDING, Transaction::getnextpendingcmdid(), NOCOMMAND, Transaction::pendingcmd, Transaction::pendingcmdid, Transaction::reenter(), REPLACE, setReEntry(), and transactionPtr.
void ApiInterface::revert | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
uuRecord_s & | uur | ||
) |
deprecated
Definition at line 271 of file api.cc.
References APISTATUS_PENDING, NOCOMMAND, Transaction::pendingcmd, Transaction::reenter(), Transaction::revert(), setReEntry(), and transactionPtr.
void ApiInterface::rollback | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr | ||
) |
rollback transaction
Definition at line 244 of file api.cc.
References APISTATUS_PENDING, NOCOMMAND, Transaction::pendingcmd, Transaction::reenter(), Transaction::rollback(), setReEntry(), and transactionPtr.
void ApiInterface::rollback | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
uuRecord_s & | uur | ||
) |
rollback transaction
Definition at line 257 of file api.cc.
References APISTATUS_PENDING, NOCOMMAND, Transaction::pendingcmd, Transaction::reenter(), Transaction::rollback(), setReEntry(), and transactionPtr.
void ApiInterface::selectRows | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
int64_t | tableid, | ||
int64_t | fieldid, | ||
locktype_e | locktype, | ||
operatortypes_e | op | ||
) |
deprecated
Definition at line 285 of file api.cc.
References APISTATUS_NOTOK, searchParams_s::op, OPERATOR_ISNOTNULL, OPERATOR_ISNULL, OPERATOR_SELECTALL, Transaction::reenter(), MessageSubtransactionCmd::searchParameters, Transaction::select(), setReEntry(), and transactionPtr.
void ApiInterface::selectRows | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
int64_t | tableid, | ||
int64_t | fieldid, | ||
locktype_e | locktype, | ||
operatortypes_e | op, | ||
int64_t | input | ||
) |
deprecated
Definition at line 304 of file api.cc.
References MessageSubtransactionCmd::fieldVal, fieldInput_u::integer, searchParams_s::op, MessageSubtransactionCmd::searchParameters, Transaction::select(), setReEntry(), transactionPtr, fieldValue_s::value, and searchParams_s::values.
void ApiInterface::selectRows | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
int64_t | tableid, | ||
int64_t | fieldid, | ||
locktype_e | locktype, | ||
operatortypes_e | op, | ||
uint64_t | input | ||
) |
deprecated
Definition at line 318 of file api.cc.
References MessageSubtransactionCmd::fieldVal, searchParams_s::op, MessageSubtransactionCmd::searchParameters, Transaction::select(), setReEntry(), transactionPtr, fieldInput_u::uinteger, fieldValue_s::value, and searchParams_s::values.
void ApiInterface::selectRows | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
int64_t | tableid, | ||
int64_t | fieldid, | ||
locktype_e | locktype, | ||
operatortypes_e | op, | ||
bool | input | ||
) |
deprecated
Definition at line 332 of file api.cc.
References fieldInput_u::boolean, MessageSubtransactionCmd::fieldVal, searchParams_s::op, MessageSubtransactionCmd::searchParameters, Transaction::select(), setReEntry(), transactionPtr, fieldValue_s::value, and searchParams_s::values.
void ApiInterface::selectRows | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
int64_t | tableid, | ||
int64_t | fieldid, | ||
locktype_e | locktype, | ||
operatortypes_e | op, | ||
long double | input | ||
) |
deprecated
Definition at line 346 of file api.cc.
References MessageSubtransactionCmd::fieldVal, fieldInput_u::floating, searchParams_s::op, MessageSubtransactionCmd::searchParameters, Transaction::select(), setReEntry(), transactionPtr, fieldValue_s::value, and searchParams_s::values.
void ApiInterface::selectRows | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
int64_t | tableid, | ||
int64_t | fieldid, | ||
locktype_e | locktype, | ||
operatortypes_e | op, | ||
char | input | ||
) |
deprecated
Definition at line 360 of file api.cc.
References fieldInput_u::character, MessageSubtransactionCmd::fieldVal, searchParams_s::op, MessageSubtransactionCmd::searchParameters, Transaction::select(), setReEntry(), transactionPtr, fieldValue_s::value, and searchParams_s::values.
void ApiInterface::selectRows | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
int64_t | tableid, | ||
int64_t | fieldid, | ||
locktype_e | locktype, | ||
operatortypes_e | op, | ||
string * | input | ||
) |
deprecated
Definition at line 374 of file api.cc.
References MessageSubtransactionCmd::fieldVal, searchParams_s::op, OPERATOR_REGEX, searchParams_s::regexString, MessageSubtransactionCmd::searchParameters, Transaction::select(), setReEntry(), fieldValue_s::str, transactionPtr, and searchParams_s::values.
void ApiInterface::selectRows | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
int64_t | tableid, | ||
int64_t | fieldid, | ||
locktype_e | locktype, | ||
operatortypes_e | op, | ||
vector< int64_t > * | input | ||
) |
deprecated
Definition at line 398 of file api.cc.
References MessageSubtransactionCmd::fieldVal, fieldInput_u::integer, searchParams_s::op, MessageSubtransactionCmd::searchParameters, Transaction::select(), setReEntry(), transactionPtr, fieldValue_s::value, and searchParams_s::values.
void ApiInterface::selectRows | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
int64_t | tableid, | ||
int64_t | fieldid, | ||
locktype_e | locktype, | ||
operatortypes_e | op, | ||
vector< uint64_t > * | input | ||
) |
deprecated
Definition at line 421 of file api.cc.
References MessageSubtransactionCmd::fieldVal, searchParams_s::op, MessageSubtransactionCmd::searchParameters, Transaction::select(), setReEntry(), transactionPtr, fieldInput_u::uinteger, fieldValue_s::value, and searchParams_s::values.
void ApiInterface::selectRows | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
int64_t | tableid, | ||
int64_t | fieldid, | ||
locktype_e | locktype, | ||
operatortypes_e | op, | ||
vector< bool > * | input | ||
) |
deprecated
Definition at line 444 of file api.cc.
References fieldInput_u::boolean, MessageSubtransactionCmd::fieldVal, searchParams_s::op, MessageSubtransactionCmd::searchParameters, Transaction::select(), setReEntry(), transactionPtr, fieldValue_s::value, and searchParams_s::values.
void ApiInterface::selectRows | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
int64_t | tableid, | ||
int64_t | fieldid, | ||
locktype_e | locktype, | ||
operatortypes_e | op, | ||
vector< long double > * | input | ||
) |
deprecated
Definition at line 467 of file api.cc.
References MessageSubtransactionCmd::fieldVal, fieldInput_u::floating, searchParams_s::op, MessageSubtransactionCmd::searchParameters, Transaction::select(), setReEntry(), transactionPtr, fieldValue_s::value, and searchParams_s::values.
void ApiInterface::selectRows | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
int64_t | tableid, | ||
int64_t | fieldid, | ||
locktype_e | locktype, | ||
operatortypes_e | op, | ||
vector< char > * | input | ||
) |
deprecated
Definition at line 490 of file api.cc.
References fieldInput_u::character, MessageSubtransactionCmd::fieldVal, searchParams_s::op, MessageSubtransactionCmd::searchParameters, Transaction::select(), setReEntry(), transactionPtr, fieldValue_s::value, and searchParams_s::values.
void ApiInterface::selectRows | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
int64_t | tableid, | ||
int64_t | fieldid, | ||
locktype_e | locktype, | ||
operatortypes_e | op, | ||
vector< string > * | input | ||
) |
deprecated
Definition at line 513 of file api.cc.
References MessageSubtransactionCmd::fieldVal, searchParams_s::op, MessageSubtransactionCmd::searchParameters, Transaction::select(), setReEntry(), fieldValue_s::str, transactionPtr, and searchParams_s::values.
void ApiInterface::selectRows | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
int64_t | tableid, | ||
int64_t | fieldid, | ||
locktype_e | locktype, | ||
operatortypes_e | op, | ||
int64_t | lower, | ||
int64_t | upper | ||
) |
deprecated
Definition at line 537 of file api.cc.
References MessageSubtransactionCmd::fieldVal, fieldInput_u::integer, searchParams_s::op, MessageSubtransactionCmd::searchParameters, Transaction::select(), setReEntry(), transactionPtr, fieldValue_s::value, and searchParams_s::values.
void ApiInterface::selectRows | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
int64_t | tableid, | ||
int64_t | fieldid, | ||
locktype_e | locktype, | ||
operatortypes_e | op, | ||
uint64_t | lower, | ||
uint64_t | upper | ||
) |
deprecated
Definition at line 554 of file api.cc.
References MessageSubtransactionCmd::fieldVal, searchParams_s::op, MessageSubtransactionCmd::searchParameters, Transaction::select(), setReEntry(), transactionPtr, fieldInput_u::uinteger, fieldValue_s::value, and searchParams_s::values.
void ApiInterface::selectRows | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
int64_t | tableid, | ||
int64_t | fieldid, | ||
locktype_e | locktype, | ||
operatortypes_e | op, | ||
bool | lower, | ||
bool | upper | ||
) |
deprecated
Definition at line 572 of file api.cc.
References fieldInput_u::boolean, MessageSubtransactionCmd::fieldVal, searchParams_s::op, MessageSubtransactionCmd::searchParameters, Transaction::select(), setReEntry(), transactionPtr, fieldValue_s::value, and searchParams_s::values.
void ApiInterface::selectRows | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
int64_t | tableid, | ||
int64_t | fieldid, | ||
locktype_e | locktype, | ||
operatortypes_e | op, | ||
long double | lower, | ||
long double | upper | ||
) |
deprecated
Definition at line 589 of file api.cc.
References MessageSubtransactionCmd::fieldVal, fieldInput_u::floating, searchParams_s::op, MessageSubtransactionCmd::searchParameters, Transaction::select(), setReEntry(), transactionPtr, fieldValue_s::value, and searchParams_s::values.
void ApiInterface::selectRows | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
int64_t | tableid, | ||
int64_t | fieldid, | ||
locktype_e | locktype, | ||
operatortypes_e | op, | ||
char | lower, | ||
char | upper | ||
) |
deprecated
Definition at line 606 of file api.cc.
References fieldInput_u::character, MessageSubtransactionCmd::fieldVal, searchParams_s::op, MessageSubtransactionCmd::searchParameters, Transaction::select(), setReEntry(), transactionPtr, fieldValue_s::value, and searchParams_s::values.
void ApiInterface::selectRows | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
int64_t | tableid, | ||
int64_t | fieldid, | ||
locktype_e | locktype, | ||
operatortypes_e | op, | ||
string * | lower, | ||
string * | upper | ||
) |
deprecated
Definition at line 623 of file api.cc.
References MessageSubtransactionCmd::fieldVal, searchParams_s::op, MessageSubtransactionCmd::searchParameters, Transaction::select(), setReEntry(), fieldValue_s::str, transactionPtr, and searchParams_s::values.
void ApiInterface::sendResponse | ( | int64_t | resultCode, |
vector< std::string > * | v | ||
) |
deprecated
resultCode | |
v |
Definition at line 640 of file api.cc.
References TransactionAgent::sendResponse(), TransactionAgent::sockfd, sockfd, and taPtr.
void ApiInterface::setReEntry | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr | ||
) |
set continuation target back to ApiInterface object
re | this |
recmd | entry point |
reptr | state data |
Definition at line 754 of file api.cc.
References Transaction::reentryCmd, Transaction::reentryFuncPtr, Transaction::reentryObject, Transaction::reentryState, and transactionPtr.
Referenced by commit(), deleteRow(), fetchRows(), insertRow(), replaceRow(), revert(), rollback(), selectRows(), unlock(), updateRow(), and updateRowNullField().
void ApiInterface::unlock | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
int64_t | rowid, | ||
int64_t | tableid, | ||
int64_t | engineid | ||
) |
unlock row
Definition at line 216 of file api.cc.
References APISTATUS_PENDING, Transaction::getnextpendingcmdid(), NOCOMMAND, Transaction::pendingcmd, Transaction::pendingcmdid, Transaction::reenter(), setReEntry(), transactionPtr, and UNLOCK.
bool ApiInterface::unmakerow | ( | int64_t | tableid, |
string * | rowstring, | ||
vector< fieldValue_s > * | resultFields | ||
) |
deprecated
Definition at line 646 of file api.cc.
References Transaction::schemaPtr, Schema::tables, and transactionPtr.
void ApiInterface::updateRow | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
uuRecord_s & | uur | ||
) |
deprecated
Definition at line 653 of file api.cc.
References Transaction::currentCmdState, Transaction::cmdState_s::isupdatemultiplefields, Transaction::cmdState_s::originaluur, setReEntry(), transactionPtr, and Transaction::updateRow().
void ApiInterface::updateRow | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
uuRecord_s & | uur, | ||
int64_t | fieldid, | ||
int64_t | input | ||
) |
deprecated
Definition at line 673 of file api.cc.
References Transaction::currentCmdState, Transaction::cmdState_s::fieldid, Transaction::cmdState_s::fieldVal, fieldInput_u::integer, fieldValue_s::isnull, Transaction::cmdState_s::isupdatemultiplefields, Transaction::cmdState_s::originaluur, setReEntry(), transactionPtr, Transaction::updateRow(), and fieldValue_s::value.
void ApiInterface::updateRow | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
uuRecord_s & | uur, | ||
int64_t | fieldid, | ||
uint64_t | input | ||
) |
deprecated
Definition at line 685 of file api.cc.
References Transaction::currentCmdState, Transaction::cmdState_s::fieldid, Transaction::cmdState_s::fieldVal, fieldValue_s::isnull, Transaction::cmdState_s::isupdatemultiplefields, Transaction::cmdState_s::originaluur, setReEntry(), transactionPtr, fieldInput_u::uinteger, Transaction::updateRow(), and fieldValue_s::value.
void ApiInterface::updateRow | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
uuRecord_s & | uur, | ||
int64_t | fieldid, | ||
bool | input | ||
) |
deprecated
Definition at line 697 of file api.cc.
References fieldInput_u::boolean, Transaction::currentCmdState, Transaction::cmdState_s::fieldid, Transaction::cmdState_s::fieldVal, fieldValue_s::isnull, Transaction::cmdState_s::isupdatemultiplefields, Transaction::cmdState_s::originaluur, setReEntry(), transactionPtr, Transaction::updateRow(), and fieldValue_s::value.
void ApiInterface::updateRow | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
uuRecord_s & | uur, | ||
int64_t | fieldid, | ||
long double | input | ||
) |
deprecated
Definition at line 709 of file api.cc.
References Transaction::currentCmdState, Transaction::cmdState_s::fieldid, Transaction::cmdState_s::fieldVal, fieldInput_u::floating, fieldValue_s::isnull, Transaction::cmdState_s::isupdatemultiplefields, Transaction::cmdState_s::originaluur, setReEntry(), transactionPtr, Transaction::updateRow(), and fieldValue_s::value.
void ApiInterface::updateRow | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
uuRecord_s & | uur, | ||
int64_t | fieldid, | ||
char | input | ||
) |
deprecated
Definition at line 721 of file api.cc.
References fieldInput_u::character, Transaction::currentCmdState, Transaction::cmdState_s::fieldid, Transaction::cmdState_s::fieldVal, fieldValue_s::isnull, Transaction::cmdState_s::isupdatemultiplefields, Transaction::cmdState_s::originaluur, setReEntry(), transactionPtr, Transaction::updateRow(), and fieldValue_s::value.
void ApiInterface::updateRow | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
uuRecord_s & | uur, | ||
int64_t | fieldid, | ||
string | input | ||
) |
deprecated
Definition at line 733 of file api.cc.
References Transaction::currentCmdState, Transaction::cmdState_s::fieldid, Transaction::cmdState_s::fieldVal, fieldValue_s::isnull, Transaction::cmdState_s::isupdatemultiplefields, Transaction::cmdState_s::originaluur, setReEntry(), fieldValue_s::str, transactionPtr, and Transaction::updateRow().
void ApiInterface::updateRowNullField | ( | apifPtr | re, |
int64_t | recmd, | ||
void * | reptr, | ||
uuRecord_s & | uur, | ||
int64_t | fieldid | ||
) |
deprecated
Definition at line 662 of file api.cc.
References Transaction::currentCmdState, Transaction::cmdState_s::fieldid, Transaction::cmdState_s::fieldVal, fieldValue_s::isnull, Transaction::cmdState_s::isupdatemultiplefields, Transaction::cmdState_s::originaluur, setReEntry(), transactionPtr, and Transaction::updateRow().
apifPtr ApiInterface::continueFunc1Ptr |
Definition at line 736 of file infinisql.h.
apifPtr ApiInterface::continueFunc2Ptr |
Definition at line 737 of file infinisql.h.
apifPtr ApiInterface::continuePgFuncPtr |
Definition at line 738 of file infinisql.h.
void* ApiInterface::destroyerPtr |
Definition at line 735 of file infinisql.h.
Referenced by destruct().
int64_t ApiInterface::domainid |
Definition at line 740 of file infinisql.h.
Referenced by Pg::continueLogin(), execStatement(), and Pg::Pg().
std::vector<std::string> ApiInterface::inputVector |
Definition at line 731 of file infinisql.h.
Referenced by deserialize2Vector().
class ApiInterface* ApiInterface::pgPtr |
Definition at line 729 of file infinisql.h.
Referenced by deleteStatement().
procedureResponse_s ApiInterface::response |
Definition at line 733 of file infinisql.h.
Referenced by prepareResponseVector().
std::vector<std::string> ApiInterface::responseVector |
Definition at line 734 of file infinisql.h.
Referenced by prepareResponseVector().
results_s ApiInterface::results |
Definition at line 742 of file infinisql.h.
Referenced by Statement::branchtotype(), Pg::continuePgFunc(), Statement::execute(), Pg::executeStatement(), Pg::putDataRows(), Pg::putRowDescription(), Statement::reenter(), and Statement::startQuery().
int ApiInterface::sockfd |
Definition at line 739 of file infinisql.h.
Referenced by sendResponse().
class Statement* ApiInterface::statementPtr |
Definition at line 730 of file infinisql.h.
Referenced by Pg::closesocket(), Pg::cont(), Pg::continuePgCommitexplicit(), Pg::continuePgCommitimplicit(), Pg::continuePgRollbackexplicit(), Pg::continuePgRollbackimplicit(), deleteStatement(), Pg::executeStatement(), Pg::Pg(), and Statement::reenter().
class TransactionAgent* ApiInterface::taPtr |
Definition at line 728 of file infinisql.h.
Referenced by Pg::cont(), Pg::continueLogin(), Pg::continuePgCommitexplicit(), Pg::continuePgCommitimplicit(), Pg::continuePgFunc(), Pg::continuePgRollbackexplicit(), deserialize2Vector(), execStatement(), Pg::executeStatement(), Pg::Pg(), Pg::putAuthenticationOk(), Pg::putErrorResponse(), Pg::rewritesocket(), sendResponse(), and Pg::writesocket().
class Transaction* ApiInterface::transactionPtr |
Definition at line 732 of file infinisql.h.
Referenced by addFieldToRow(), beginTransaction(), bouncebackproxy(), Pg::closesocket(), commit(), Pg::continuePgCommitexplicit(), Pg::continuePgCommitimplicit(), Pg::continuePgFunc(), Pg::continuePgRollbackexplicit(), Pg::continuePgRollbackimplicit(), deleteRow(), deleteTransaction(), execStatement(), Pg::executeStatement(), fetchRows(), getResultCode(), insertRow(), Pg::Pg(), replaceRow(), revert(), rollback(), selectRows(), setReEntry(), Pg::sqlbegin(), Pg::sqlcommitexplicit(), Pg::sqlcommitimplicit(), Pg::sqlrollbackexplicit(), Pg::sqlrollbackimplicit(), unlock(), unmakerow(), updateRow(), updateRowNullField(), and Pg::writesocket().