Qorus Integration Engine® Enterprise Edition 6.0.27_prod
|
A high level API for remote system.sqlutil service calls. More...
Public Member Methods | |
constructor (string remote, string dsname, *hash< auto > opts) | |
constructor taking a string giving the name of the remote connection for the remote server More... | |
constructor (QorusSystemRestHelper remote, string dsname, *hash< auto > opts) | |
constructor taking an OMQ::QorusSystemRestHelper object for the remote connection More... | |
destructor () | |
Just check if the transaction finished correctly. | |
beginTransaction () | |
starts or continues a remote transaction More... | |
string | datasourceName () |
returns the remote datasource name specified in constructor | |
OMQ::StreamConfig | config () |
returns the configuration object | |
bool | inTransaction () |
Returns True if a remote transaction is in progress. More... | |
commit () | |
commits a remote transaction | |
rollback (bool action=AbstractParallelStream::DO_DISCONNECT) | |
Rollback remote transaction. More... | |
disconnect () | |
Disconnects the connection. | |
auto | methodGateArgs (string method, *list< auto > args) |
Redirects the method to the remote service and prepends the datasource name to the arguments in the remote call. | |
auto | methodGate (string method) |
Redirects the method to the remote service and prepends the datasource name to the arguments in the remote call. | |
A high level API for remote system.sqlutil service calls.
DbRemoteBase provides a high level API for the system.sqlutil service in remote Qorus instances. Use it for single updates, deletes, inserts, and/or schema management.
DbRemoteBase wraps all available system.sqlutil service methods with the following changes in service methods API:
datasource
argument is passed to OMQ::DbRemote::constructor() and it's not used in method callsOMQ::DbRemoteBase::beginTransaction | ( | ) |
starts or continues a remote transaction
This method is called from the constructor() automatically
OMQ::DbRemoteBase::constructor | ( | QorusSystemRestHelper | remote, |
string | dsname, | ||
*hash< auto > | opts | ||
) |
constructor taking an OMQ::QorusSystemRestHelper object for the remote connection
remote | an OMQ::QorusSystemRestHelper object |
dsname | a string with name of the remote datasource to use |
opts | optional Streaming API Constructor Options as follows:
|
OMQ::DbRemoteBase::constructor | ( | string | remote, |
string | dsname, | ||
*hash< auto > | opts | ||
) |
constructor taking a string giving the name of the remote connection for the remote server
remote | a string giving the name of the remote connection for the remote server |
dsname | a string with name of the remote datasource to use |
opts | optional Streaming API Constructor Options as follows:
|
bool OMQ::DbRemoteBase::inTransaction | ( | ) |
Returns True if a remote transaction is in progress.
OMQ::DbRemoteBase::rollback | ( | bool | action = AbstractParallelStream::DO_DISCONNECT | ) |
Rollback remote transaction.
action | an optional bool value to keep connection open or close the connection. Connection closing is the default |