public static function fromFile(string $file, string $prefix = ''): SqliteConnection
    {
        $pdo = new \PDO('sqlite:' . $file);
        $pdo->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
        
        $pdo->exec("PRAGMA foreign_keys = ON");
        
        return new static($pdo, $prefix);
    }
public static function fromFile(string $file, string $prefix = ''): SqliteConnection
    {
        $pdo = new \PDO('sqlite:' . $file);
        $pdo->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
        
        $pdo->exec("PRAGMA foreign_keys = ON");
        
        return new static($pdo, $prefix);
    }
public static function fromFile ( string $ file , string $ prefix = '' ) : SqliteConnection { $ pdo = new \ PDO ( 'sqlite:' . $ file ) ; $ pdo -> setAttribute ( \ PDO :: ATTR_ERRMODE , \ PDO :: ERRMODE_EXCEPTION ) ; $ pdo -> exec ( "PRAGMA foreign_keys = ON" ) ; return new static ( $ pdo , $ prefix ) ; }
Create a Sqlite DB using the given file to store data.

@param string $file Absolute path of the DB file.
@param string $prefix DB schema object prefix to be used.
Create a Sqlite DB using the given file to store data .