Qorus Integration Engine®  4.0.3_git
QorusInterfaceTest::RemoteDbSelectAction Class Reference

Selects data from a remote DB and compares to expected data. More...

Inheritance diagram for QorusInterfaceTest::RemoteDbSelectAction:
QorusInterfaceTest::AbstractRemoteDbSelectAction QorusInterfaceTest::AbstractRemoteDbSqlUtilAction QorusInterfaceTest::Action

Public Member Methods

 constructor (string remote, string dsname, string tableName, hash< auto > sh, softlist< auto > data, *hash< auto > opts)
 Creates the object according to the arguments. More...
 
 run (QorusInterfaceTest t)
 runs the test; comparing all rows and then the row count
 
 checkRowImpl (QorusInterfaceTest t, hash< auto > row)
 compares each row to the expected row values
 
- Public Member Methods inherited from QorusInterfaceTest::AbstractRemoteDbSelectAction
 constructor (string remote, string dsname, string tableName, hash< auto > sh, *hash< auto > opts)
 Creates the object according to the arguments. 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
 

Private Attributes

list< auto > m_data
 expected data
 
- Private Attributes inherited from QorusInterfaceTest::AbstractRemoteDbSelectAction
string m_tableName
 the primary table name for the select call
 
hash< auto > m_sh
 the select hash for the remote select stream
 
int m_rows = 0
 row count
 
- 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

Selects data from a remote DB and compares to expected data.

Member Function Documentation

◆ constructor()

QorusInterfaceTest::RemoteDbSelectAction::constructor ( string  remote,
string  dsname,
string  tableName,
hash< auto >  sh,
softlist< auto >  data,
*hash< auto >  opts 
)

Creates the object according to the arguments.

Parameters
remotethe name of the remote connection
dsnamethe name of the remote datasource
tableNamethe primary table name for the select stream
shthe select hash for the select stream; make sure the order is the same as in the expected data
datathe expected row data in the remote database; must be a list of hashes
optsselect stream options; see OMQ::DbRemoteReceive::constructor() for information; note that the "select" stream option is added automaticallty using the sh argument when opening the stream
Note
data is always streamed in row format

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