Skip to content
Permalink
Browse files

Add/fix docblocks.

  • Loading branch information...
markstory committed May 17, 2013
1 parent 4b2ecb9 commit 1a992fc8fcc9f3ae1ecce6409824d325b32a9ff5
@@ -20,7 +20,7 @@
use Cake\Error;
/**
* Schema dialect/support for MySQL
* Schema management/reflection features for MySQL
*/
class MysqlSchema {
@@ -35,6 +35,7 @@ class MysqlSchema {
* Constructor
*
* @param Cake\Database\Driver $driver The driver to use.
* @return void
*/
public function __construct($driver) {
$this->_driver = $driver;
@@ -19,6 +19,9 @@
use Cake\Database\Schema\Table;
use Cake\Error;
/**
* Schema management/reflection features for Postgres.
*/
class PostgresSchema {
/**
@@ -28,6 +31,12 @@ class PostgresSchema {
*/
protected $_driver;
/**
* Constructor
*
* @param Cake\Database\Driver\Postgres $driver Driver to use.
* @return void
*/
public function __construct($driver) {
$this->_driver = $driver;
}
@@ -19,6 +19,9 @@
use Cake\Database\Schema\Table;
use Cake\Error;
/**
* Schema management/reflection features for Sqlite
*/
class SqliteSchema {
/**
@@ -28,6 +31,12 @@ class SqliteSchema {
*/
protected $_driver;
/**
* Constructor
*
* @param Cake\Database\Driver\Sqlite $driver Driver to use.
* @return void
*/
public function __construct($driver) {
$this->_driver = $driver;
}
@@ -105,15 +114,6 @@ public function describeTableSql($table) {
return ["PRAGMA table_info(" . $this->_driver->quoteIdentifier($table) . ")", []];
}
/**
* Additional metadata columns in table descriptions.
*
* @return array
*/
public function extraSchemaColumns() {
return [];
}
/**
* Convert field description results into abstract schema fields.
*
@@ -197,7 +197,7 @@ public function columnSql(Table $table, $name) {
}
/**
* Generate the SQL fragment for a single index in MySQL
* Generate the SQL fragment for a single index.
*
* Note integer primary keys will return ''. This is intentional as Sqlite requires
* that integer primary keys be defined in the column definition.
@@ -481,7 +481,7 @@ public function testCreateTableSql() {
/**
* Get a schema instance with a mocked driver/pdo instances
*
* @return MysqlSchema
* @return Driver
*/
protected function _getMockedDriver() {
$driver = new \Cake\Database\Driver\Sqlite();

0 comments on commit 1a992fc

Please sign in to comment.
You can’t perform that action at this time.