Db::executeSqlFile

Usage

void Db::executeSqlFile(string $filename)

Description

Execute all SQL code within a file on the on the local machine.

Parameters

Parameter Required Type Description
$filename Yes string The path to the SQL file to execute against the database.

Examples

Execute SQL File


$file = 'import.sql'; $this->db->executeSqlFile($file); echo "Imported all SQL code in import.sql\n";