Example #1
0
 /**
  * Executes any set SQL against the database
  * 
  * NOTE that it's assumed this will only be called at the start of the backup process
  * @return \mithra62\BackupPro\Backup\Database\DbAbstract
  */
 public function execPreSql()
 {
     if ($this->context->getExecutePreSql()) {
         foreach ($this->context->getExecutePreSql() as $sql) {
             if ($sql != '') {
                 $this->context->getBackup()->getDb()->query($sql);
             }
         }
     }
     return $this;
 }