public function __construct(array $options)
{
// Select the DB to use, or display the SQL error.
if (!isset($options['database'])) {
throw new Exception('Error: The database file was not passed.');
} else {
if (!file_exists($options['database'])) {
throw new Exception('Error: The database file does not exists.');
}
}
$this->connection = new \SQLite3($options['database']);
}