ManaPHP\Db\Adapter\Sqlite::__construct PHP Метод

__construct() публичный Метод

Sqlite constructor.
public __construct ( string | array $options )
$options string | array
    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);
    }