Db: getImportrunRowsetChecksum helper method

This commit is contained in:
Thomas Gelf 2015-07-26 15:36:32 +02:00
parent bd31d0e06d
commit 22444f2792
1 changed files with 10 additions and 0 deletions

View File

@ -55,6 +55,16 @@ class Db extends DbConnection
return $this->db()->fetchOne($select); return $this->db()->fetchOne($select);
} }
public function getImportrunRowsetChecksum($id)
{
$db = $this->db();
$query = $db->select()
->from('import_run', 'rowset_checksum')
->where('id = ?', $id);
return $db->fetchOne($query);
}
public function fetchLatestImportedRows($source, $columns = null) public function fetchLatestImportedRows($source, $columns = null)
{ {
$db = $this->db(); $db = $this->db();