Qorus Integration Engine® Enterprise Edition 6.0.15_prod
Loading...
Searching...
No Matches
QorusInterfaceTest::RemoteDbRowSqlUtilAction Class Reference

Inserts one or more rows into a remote table in a remote Qorus instance. More...

Inheritance diagram for QorusInterfaceTest::RemoteDbRowSqlUtilAction:
[legend]
Collaboration diagram for QorusInterfaceTest::RemoteDbRowSqlUtilAction:
[legend]

Public Member Methods

 constructor (string action, string remote, string dsname, softlist< auto > data, *hash< auto > opts)
 Creates the object according to the arguments. More...
 
 run (QorusInterfaceTest t)
 runs the test by streaming the input data to the remote database More...
 
- Public Member Methods inherited from QorusInterfaceTest::AbstractRemoteDbSqlUtilAction
 constructor (string action, string remote, string dsname, *hash< auto > opts)
 Creates the object according to the arguments. More...
 
- Public Member Methods inherited from QorusInterfaceTest::Action
 constructor ()
 creates the object
 
abstract auto run (QorusInterfaceTest t)
 runs the test More...
 

Private Attributes

list< auto > m_data
 list of hashes of table names + data; keys in each hash: "table", "data"
 
- Private Attributes inherited from QorusInterfaceTest::AbstractRemoteDbSqlUtilAction
string m_action
 the sqlutil method or stream name
 
string m_remote
 the remote connection name
 
string m_ds
 the name of the remote datasource
 
*hash< auto > m_opts
 stream options
 

Detailed Description

Inserts one or more rows into a remote table in a remote Qorus instance.

Member Function Documentation

◆ constructor()

QorusInterfaceTest::RemoteDbRowSqlUtilAction::constructor ( string  action,
string  remote,
string  dsname,
softlist< auto >  data,
*hash< auto >  opts 
)

Creates the object according to the arguments.

Parameters
actionthe name of the sqlutil stream
remotethe name of the remote connection
dsnamethe name of the remote datasource
dataa list of hashes giving table names and data to push to the tables; in each hash the following keys are required:
  • "table": the name of the target table
  • "data": a list of hashes representing the row data to insert; keys are column names; values are literal values passed to SqlUtil::AbstractTable::insert()
optsstream options

◆ run()

QorusInterfaceTest::RemoteDbRowSqlUtilAction::run ( QorusInterfaceTest  t)
virtual

runs the test by streaming the input data to the remote database

Parameters
tQorusInterfaceTest test object

runs the remote action with the input data

Implements QorusInterfaceTest::Action.


The documentation for this class was generated from the following file: