Qorus Integration Engine® Enterprise Edition 6.0.25_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... | |
auto | methodGate (string method) |
Redirects the method to the remote service and prepends the datasource name to the arguments in the remote call. | |
Public Member Methods inherited from 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 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.
DbRemote is identical to DbRemoteBase except that it automatically wraps all actions in a transaction by calling beginTransaction() in the constructor.
DbRemote 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.
DbRemote 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 callsThis class does not have any of its own methods; all method calls are redirected to system.sqlutil transparently.
In case of e.g. system.sqlutil.update
with prototype:
The DbRemote::update() version of an update call looks like this:
OMQ::DbRemote::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:
|
Automatically starts a remote transaction by calling beginTransaction().
OMQ::DbRemote::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:
|
Automatically starts a remote transaction by calling beginTransaction().