getScheme(); $prefix = '\\ByJG\\AnyDataset\\Db\\'; $validSchemes = array_merge( [ "oci8" => $prefix . "DbOci8Driver", "dblib" => $prefix . "PdoDblib", "sqlsrv" => $prefix . "PdoSqlsrv", "mysql" => $prefix . "PdoMysql", "pgsql" => $prefix . "PdoPgsql", "oci" => $prefix . "PdoOci", "odbc" => $prefix . "PdoOdbc", "sqlite" => $prefix . "PdoSqlite", "pdo" => $prefix . "PdoPdo" ], (array)$schemesAlternative ); if (!isset($validSchemes[$scheme])) { throw new \InvalidArgumentException("The '$scheme' scheme does not exist. Check the scheme name or use the Generic PDO scheme"); } $class = $validSchemes[$scheme]; $instance = new $class($connectionUri); if (!($instance instanceof DbDriverInterface)) { throw new \InvalidArgumentException( "The class '$class' is not a instance of DbDriverInterface" ); } return $instance; } /** * Get a IDbFunctions class to execute Database specific operations. * * @param \ByJG\Util\Uri $connectionUri * @return \ByJG\AnyDataset\Db\DbFunctionsInterface */ public static function getDbFunctions(Uri $connectionUri) { $dbFunc = "\\ByJG\\AnyDataset\\Db\\Helpers\\Db" . ucfirst($connectionUri->getScheme()) . "Functions"; return new $dbFunc(); } } __halt_compiler();----SIGNATURE:----sRaAd48iQaxGRRfwJgqjL6ocTOjSPK5RHA5WShX9ZWZmqXKEUgM7wgTBye3wsdLMYGPafcVgLmCKOLuXH7FO1uePSvj5wMIVu1EaFWpOnH0GKrpfNPgS3fDBODUN2MnAEDKGEaTuXsClH+2k3BRRway6WvE5aJo5JpxJ+xN1HN/FB/RTxehKhdwkcF6sJcNqU+bzbFqC9L2HiOLJ/kiiVqFbybrUp9gMA7FwV6Lwc93vFZfz5G7Gg923JkTr8Np8mh1VW+DdjNO/xJukfp7Vi+W3WAdjyMqnZNgbg2VyJGxUtAfUqdvFoTouq/WueTjf8tKOXl3NYYDAuvnzMaqDm7dMfPzUr5ySgYzU4Gdt8Pa3TTVWDmfBqokAoxpE4OYOlqhA+NlMgLhh7/kURIVBJOrnVgW1SYgD2WefYHe4debfx0Kgtkzcai5OtFqXbCtGKgvAebNGEA9BDn4w2DECrKvG1R9HwnB+odM6ZBoGt9iO1hfV7sLYObXd4I23uhNkGPD815GRM3zo9K9YpP3R7p8d3satQK+XdYCEfygeXUYgkO7GEBy10PpHVhuRXLH7k578apUzcbB8A65MBO0bRdjkgCOABribWUJjR3kU051dphHq1zgFBadOBe8CfClrzDk5VMkYkZ1e+k1Ir62SGAQWwXep8QsTVQ70p5QRREo=----ATTACHMENT:----MTMzNTAyMDYyNzAyNzgxMyA0NzAwNjM1MDcwNTY2OTUwIDk5ODY4Mzg5Nzk2MDYzNDQ=