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:----UEfadZ20Sc3WUHe78CRjKwVPxmmhSZcfIjfmDQvc0xKhYZ9ZxmcKv4WMw3FOzXkzVTocoFb7/FdJFoJjbHQzewFebbYP89Ke0jUxnM70xiYO314NGQkqji+oZ0FjyBqlBLsBGyECPGg/UUwlIBSEk8OVYvPathPcyL5vxNbr6tlFTZTNKhXbATca0tsNeZGMvublHgKoAhG8lwcxrd4SFWRbybwliIi0tA6VaQLB2uumyGVlBt980XC6WMOhn8x/4kvUqSfmCV+VNMY/v8wOBjx6NXN0S98cPv3MYa2/yUG12un55zFP/7D/eUHGMNrUY/Eqz2hbxd4LCyfPLiIAzxaf9u5vN28PvgMqyBgi6+lcXCxBLRTGxY+7khKBbu4KRW01PkGHSmgh+/amw23sFAIdHoSZSt5yBom6mqDq8IpNoCWx9dmJkShphS1+Nunsnb0xAl/OBrZXYMELqs7RIC+W5iVr26tshHq/YxOLziRo8iPzqxCvStXr5h1XqDVD/rThjx+A+QAXw81tMmrAxXBtXQvBp0k0+gcM40DxCQNCflZVrpN9ZtSZYUwi9P6g9zm1h3DhCGAQige1nEInTXyhNrlHq1C3X32SeXmVEXtwsH9/7GLl38Ej+oGQkB7m8Eg9zSgt5Fw1lwbzzu+h7pWzWtaOdYuO1jXyywNlnw8=----ATTACHMENT:----MzExMjk4NjQzMzYyNDg1NCA3NjA3MTU3MDY1MTYzNzA2IDEwODU5ODM0MjExMjM4Njc=