src/Core.php
public static function getDrivers()
        {
            $types = array();

            if (class_exists('\PDO')) {
                $types[self::DRIVER_MYSQL] = 'MySQL / MariaDB';
                $types[self::DRIVER_POSTGRES] = 'PostgreSQL';
                $types[self::DRIVER_MS_SQL_SERVER] = 'Microsoft SQL Server';
            } else {
                throw new Exception('You need to have PHP PDO installed to be able to use B2DB');
            }

            return $types;
        }
public static function getDrivers()
        {
            $types = array();

            if (class_exists('\PDO')) {
                $types[self::DRIVER_MYSQL] = 'MySQL / MariaDB';
                $types[self::DRIVER_POSTGRES] = 'PostgreSQL';
                $types[self::DRIVER_MS_SQL_SERVER] = 'Microsoft SQL Server';
            } else {
                throw new Exception('You need to have PHP PDO installed to be able to use B2DB');
            }

            return $types;
        }
public static function getDrivers ( ) { $ types = array ( ) ; if ( class_exists ( '\PDO' ) ) { $ types [ self :: DRIVER_MYSQL ] = 'MySQL / MariaDB' ; $ types [ self :: DRIVER_POSTGRES ] = 'PostgreSQL' ; $ types [ self :: DRIVER_MS_SQL_SERVER ] = 'Microsoft SQL Server' ; } else { throw new Exception ( 'You need to have PHP PDO installed to be able to use B2DB' ) ; } return $ types ; }
Get available DB drivers

@return array
Get available DB drivers