3 namespace Doctrine\Tests\Mocks;
5 class DatabasePlatformMock extends \Doctrine\DBAL\Platforms\AbstractPlatform
7 private $_sequenceNextValSql = "";
8 private $_prefersIdentityColumns = true;
9 private $_prefersSequences = false;
14 public function getNativeDeclaration(array $field) {}
19 public function getPortableDeclaration(array $field) {}
24 public function prefersIdentityColumns()
26 return $this->_prefersIdentityColumns;
32 public function prefersSequences()
34 return $this->_prefersSequences;
38 public function getSequenceNextValSQL($sequenceName)
40 return $this->_sequenceNextValSql;
44 public function getBooleanTypeDeclarationSQL(array $field) {}
47 public function getIntegerTypeDeclarationSQL(array $field) {}
50 public function getBigIntTypeDeclarationSQL(array $field) {}
53 public function getSmallIntTypeDeclarationSQL(array $field) {}
56 protected function _getCommonIntegerTypeDeclarationSQL(array $columnDef) {}
59 public function getVarcharTypeDeclarationSQL(array $field) {}
62 public function getClobTypeDeclarationSQL(array $field) {}
66 public function setPrefersIdentityColumns($bool)
68 $this->_prefersIdentityColumns = $bool;
71 public function setPrefersSequences($bool)
73 $this->_prefersSequences = $bool;
76 public function setSequenceNextValSql($sql)
78 $this->_sequenceNextValSql = $sql;
81 public function getName()
86 protected function initializeDoctrineTypeMappings()
91 * Gets the SQL Snippet used to declare a BLOB column type.
93 public function getBlobTypeDeclarationSQL(array $field)
95 throw DBALException::notSupported(__METHOD__);