I know I can execute (actually, creating it, not yet executed) custom SQL in Yii using:
$connection=Yii::app()->db; // assuming you have configured a "db" connection
// If not, you may explicitly create a connection:
// $connection=new CDbConnection($dsn,$username,$password);
$command=$connection->createCommand($sql);
// if needed, the SQL statement may be updated as follows:
// $command->text=$newSQL;
Question: How can I execute a sql dump? i.e.
`$dump = file_get_contents('products.sql');`
Note: This dump has multiple commands - AFAIK createCommand works for single command - Am I wrong?
Note 2: I cannot break queries by ';' character (SQL delimiter) since such character is widely used among product data, so I have to execute the dump.