src/Database.php
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;
    }
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;
    }
Factory for a Sqlite connection.

@param  string $file
@param  array  $options
@return static