Neos\Flow\Persistence\Doctrine\DataTypes\JsonArrayType::getSQLDeclaration PHP 메소드

getSQLDeclaration() 공개 메소드

Use jsonb for PostgreSQL, this means we require PostgreSQL 9.4
public getSQLDeclaration ( array $fieldDeclaration, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : string
$fieldDeclaration array The field declaration
$platform Doctrine\DBAL\Platforms\AbstractPlatform The currently used database platform
리턴 string
    public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
    {
        switch ($platform->getName()) {
            case 'postgresql':
                return 'jsonb';
            default:
                return $platform->getJsonTypeDeclarationSQL($fieldDeclaration);
        }
    }