public static function sqlite(string $file, array $options = [])
    {
        $options = array_replace(static::$defaultOptions, $options);
        $instance = new static("sqlite:{$file}", null, null, $options);
        $instance->databaseType = 'sqlite';
        $instance->isWritable = ($file === ':memory:') || (is_writable(dirname($file)) && is_writable($file));

        return $instance;
    }