public function __construct($options)
{
$this->_type = 'sqlite';
if (is_object($options)) {
$options = (array) $options;
} elseif (is_string($options)) {
$options = ['file' => $options];
}
if (!isset($options['file'])) {
throw new SqliteException('file is not provide to sqlite adapter.');
}
$options['dsn'] = $options['file'];
unset($options['file']);
parent::__construct($options);
}