| 1: | <?php |
| 2: | |
| 3: | declare(strict_types=1); |
| 4: | |
| 5: | namespace Atk4\Data\Persistence; |
| 6: | |
| 7: | use Doctrine\DBAL\Exception as DbalException; |
| 8: | use Doctrine\DBAL\Platforms; |
| 9: | |
| 10: | class GenericPlatform extends Platforms\AbstractPlatform |
| 11: | { |
| 12: | private function createNotSupportedException(): \Exception |
| 13: | { |
| 14: | return DbalException::notSupported('SQL'); |
| 15: | } |
| 16: | |
| 17: | #[\Override] |
| 18: | public function getName(): string |
| 19: | { |
| 20: | return 'atk4_data_generic'; |
| 21: | } |
| 22: | |
| 23: | #[\Override] |
| 24: | protected function initializeDoctrineTypeMappings(): void {} |
| 25: | |
| 26: | #[\Override] |
| 27: | protected function _getCommonIntegerTypeDeclarationSQL(array $columnDef): string |
| 28: | { |
| 29: | throw $this->createNotSupportedException(); |
| 30: | } |
| 31: | |
| 32: | #[\Override] |
| 33: | public function getBigIntTypeDeclarationSQL(array $columnDef): string |
| 34: | { |
| 35: | throw $this->createNotSupportedException(); |
| 36: | } |
| 37: | |
| 38: | #[\Override] |
| 39: | public function getBlobTypeDeclarationSQL(array $field): string |
| 40: | { |
| 41: | throw $this->createNotSupportedException(); |
| 42: | } |
| 43: | |
| 44: | #[\Override] |
| 45: | public function getBooleanTypeDeclarationSQL(array $columnDef): string |
| 46: | { |
| 47: | throw $this->createNotSupportedException(); |
| 48: | } |
| 49: | |
| 50: | #[\Override] |
| 51: | public function getClobTypeDeclarationSQL(array $field): string |
| 52: | { |
| 53: | throw $this->createNotSupportedException(); |
| 54: | } |
| 55: | |
| 56: | #[\Override] |
| 57: | public function getIntegerTypeDeclarationSQL(array $columnDef): string |
| 58: | { |
| 59: | throw $this->createNotSupportedException(); |
| 60: | } |
| 61: | |
| 62: | #[\Override] |
| 63: | public function getSmallIntTypeDeclarationSQL(array $columnDef): string |
| 64: | { |
| 65: | throw $this->createNotSupportedException(); |
| 66: | } |
| 67: | |
| 68: | #[\Override] |
| 69: | public function getCurrentDatabaseExpression(): string |
| 70: | { |
| 71: | throw $this->createNotSupportedException(); |
| 72: | } |
| 73: | } |
| 74: | |