Title says it all. the gist is I am trying to run a report to gather a list from one database and compare to another so I may identify errors in transactions.
e.g.)
`
require_once ('\libs\koolreport\autoload.php');
use \koolreport\querybuilder\DB;
class missing_bills extends \koolreport\KoolReport {
function settings(){
return array(
"dataSources"=>array(
"my_ds"=>array(
'host' => '...',
'username' => '...',
'password' => '...',
'dbname' => '...',
'class' => '\koolreport\datasources\MySQLDataSource'
),
"ms_ds"=>array(
'host' => '...',
'username' => '...',
'password' => '...',
'dbname' => '...',
'class' => "\koolreport\datasources\SQLSRVDataSource"
),
),
);
}
function setup() {
$this->src('ms_ds')->query(
"select field1, field2, field3 from table where field3 = 'xyz'";
)->pipe($this->dataStore("ms_ds_data"));
$this->src('my_ds')->query(
"select field1 from table where field3 = 'xyz'"
)->pipe($this->dataStore("my_ds_data"));
}
}
I looked at using ->data() on the pipe for my_ds_data but it doesnt flatten the array so I cannot see any way this could be used with whereNotIn.
I could array_flip and flatten the array with a simple php function but I wanted to use built-in methods if they exist. Is it possible to select records that do not exist in another dataStore?