Qorus Integration Engine®
4.0.3.p2_git
|
A high level API for remote system.sqlutil service calls. More...
Public Member Methods | |
constructor (string remote, string dsname, *hash opts) | |
constructor taking a string giving the name of the remote connection for the remote server More... | |
constructor (QorusSystemRestHelper remote, string dsname, *hash 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 | |
commit () | |
commits a remote transaction | |
rollback (bool action=AbstractParallelStream::DO_DISCONNECT) | |
Rollback remote transaction. More... | |
disconnect () | |
Disconnects the connection. | |
A high level API for remote system.sqlutil service calls.
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:
DbRemote::update alternative looks like this:
OMQ::DbRemote::beginTransaction | ( | ) |
starts or continues a remote transaction
This method is called from the constructor() automatically
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:
|
OMQ::DbRemote::constructor | ( | QorusSystemRestHelper | remote, |
string | dsname, | ||
*hash | 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::DbRemote::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 |