src/Connection.php
public function schemaCompiler(): Schema\Compiler
    {
        if ($this->schemaCompiler === null) {
            switch ($this->getDriver()) {
                case 'mysql':
                    $this->schemaCompiler = new Schema\Compiler\MySQL($this);
                    break;
                case 'pgsql':
                    $this->schemaCompiler = new Schema\Compiler\PostgreSQL($this);
                    break;
                case 'dblib':
                case 'mssql':
                case 'sqlsrv':
                case 'sybase':
                    $this->schemaCompiler = new Schema\Compiler\SQLServer($this);
                    break;
                case 'sqlite':
                    $this->schemaCompiler = new Schema\Compiler\SQLite($this);
                    break;
                case 'oci':
                case 'oracle':
                    $this->schemaCompiler = new Schema\Compiler\Oracle($this);
                    break;
                default:
                    throw new \Exception('Schema not supported yet');
            }

            $this->schemaCompiler->setOptions($this->schemaCompilerOptions);
        }

        return $this->schemaCompiler;
    }
public function schemaCompiler(): Schema\Compiler
    {
        if ($this->schemaCompiler === null) {
            switch ($this->getDriver()) {
                case 'mysql':
                    $this->schemaCompiler = new Schema\Compiler\MySQL($this);
                    break;
                case 'pgsql':
                    $this->schemaCompiler = new Schema\Compiler\PostgreSQL($this);
                    break;
                case 'dblib':
                case 'mssql':
                case 'sqlsrv':
                case 'sybase':
                    $this->schemaCompiler = new Schema\Compiler\SQLServer($this);
                    break;
                case 'sqlite':
                    $this->schemaCompiler = new Schema\Compiler\SQLite($this);
                    break;
                case 'oci':
                case 'oracle':
                    $this->schemaCompiler = new Schema\Compiler\Oracle($this);
                    break;
                default:
                    throw new \Exception('Schema not supported yet');
            }

            $this->schemaCompiler->setOptions($this->schemaCompilerOptions);
        }

        return $this->schemaCompiler;
    }
public function schemaCompiler ( ) : Schema \ Compiler { if ( $ this -> schemaCompiler === null ) { switch ( $ this -> getDriver ( ) ) { case 'mysql' : $ this -> schemaCompiler = new Schema \ Compiler \ MySQL ( $ this ) ; break ; case 'pgsql' : $ this -> schemaCompiler = new Schema \ Compiler \ PostgreSQL ( $ this ) ; break ; case 'dblib' : case 'mssql' : case 'sqlsrv' : case 'sybase' : $ this -> schemaCompiler = new Schema \ Compiler \ SQLServer ( $ this ) ; break ; case 'sqlite' : $ this -> schemaCompiler = new Schema \ Compiler \ SQLite ( $ this ) ; break ; case 'oci' : case 'oracle' : $ this -> schemaCompiler = new Schema \ Compiler \ Oracle ( $ this ) ; break ; default : throw new \ Exception ( 'Schema not supported yet' ) ; } $ this -> schemaCompiler -> setOptions ( $ this -> schemaCompilerOptions ) ; } return $ this -> schemaCompiler ; }
Returns an instance of the schema compiler associated with this connection

@throws  \Exception

@return  Schema\Compiler
Returns an instance of the schema compiler associated with this connection