src/DatabaseDriver.php
public function getServerType()
	{
		if (empty($this->serverType))
		{
			$name = $this->getName();

			if (stristr($name, 'mysql') !== false)
			{
				$this->serverType = 'mysql';
			}
			elseif (stristr($name, 'postgre') !== false)
			{
				$this->serverType = 'postgresql';
			}
			elseif (stristr($name, 'pgsql') !== false)
			{
				$this->serverType = 'postgresql';
			}
			elseif (stristr($name, 'oracle') !== false)
			{
				$this->serverType = 'oracle';
			}
			elseif (stristr($name, 'sqlite') !== false)
			{
				$this->serverType = 'sqlite';
			}
			elseif (stristr($name, 'sqlsrv') !== false)
			{
				$this->serverType = 'mssql';
			}
			elseif (stristr($name, 'sqlazure') !== false)
			{
				$this->serverType = 'mssql';
			}
			elseif (stristr($name, 'mssql') !== false)
			{
				$this->serverType = 'mssql';
			}
			else
			{
				$this->serverType = $name;
			}
		}

		return $this->serverType;
	}
public function getServerType()
	{
		if (empty($this->serverType))
		{
			$name = $this->getName();

			if (stristr($name, 'mysql') !== false)
			{
				$this->serverType = 'mysql';
			}
			elseif (stristr($name, 'postgre') !== false)
			{
				$this->serverType = 'postgresql';
			}
			elseif (stristr($name, 'pgsql') !== false)
			{
				$this->serverType = 'postgresql';
			}
			elseif (stristr($name, 'oracle') !== false)
			{
				$this->serverType = 'oracle';
			}
			elseif (stristr($name, 'sqlite') !== false)
			{
				$this->serverType = 'sqlite';
			}
			elseif (stristr($name, 'sqlsrv') !== false)
			{
				$this->serverType = 'mssql';
			}
			elseif (stristr($name, 'sqlazure') !== false)
			{
				$this->serverType = 'mssql';
			}
			elseif (stristr($name, 'mssql') !== false)
			{
				$this->serverType = 'mssql';
			}
			else
			{
				$this->serverType = $name;
			}
		}

		return $this->serverType;
	}
public function getServerType ( ) { if ( empty ( $ this -> serverType ) ) { $ name = $ this -> getName ( ) ; if ( stristr ( $ name , 'mysql' ) !== false ) { $ this -> serverType = 'mysql' ; } elseif ( stristr ( $ name , 'postgre' ) !== false ) { $ this -> serverType = 'postgresql' ; } elseif ( stristr ( $ name , 'pgsql' ) !== false ) { $ this -> serverType = 'postgresql' ; } elseif ( stristr ( $ name , 'oracle' ) !== false ) { $ this -> serverType = 'oracle' ; } elseif ( stristr ( $ name , 'sqlite' ) !== false ) { $ this -> serverType = 'sqlite' ; } elseif ( stristr ( $ name , 'sqlsrv' ) !== false ) { $ this -> serverType = 'mssql' ; } elseif ( stristr ( $ name , 'sqlazure' ) !== false ) { $ this -> serverType = 'mssql' ; } elseif ( stristr ( $ name , 'mssql' ) !== false ) { $ this -> serverType = 'mssql' ; } else { $ this -> serverType = $ name ; } } return $ this -> serverType ; }
Get the server family type.

If $this->serverType is not set it will attempt guessing the server family type from the driver name. If this is not possible the driver
name will be returned instead.

@return  string

@since   1.4.0
Get the server family type .