Метод | Описание | |
---|---|---|
addConstraintSql ( Cake\Database\Schema\Table $table ) | {@inheritDoc} | |
columnSql ( Cake\Database\Schema\Table $table, $name ) | {@inheritDoc} | |
constraintSql ( Cake\Database\Schema\Table $table, $name ) | {@inheritDoc} | |
convertColumnDescription ( Cake\Database\Schema\Table $table, $row ) | {@inheritDoc} | |
convertForeignKeyDescription ( Cake\Database\Schema\Table $table, $row ) | {@inheritDoc} | |
convertIndexDescription ( Cake\Database\Schema\Table $table, $row ) | {@inheritDoc} | |
createTableSql ( Cake\Database\Schema\Table $table, $columns, $constraints, $indexes ) | {@inheritDoc} | |
describeColumnSql ( $tableName, $config ) | {@inheritDoc} | |
describeForeignKeySql ( $tableName, $config ) | {@inheritDoc} | |
describeIndexSql ( $tableName, $config ) | {@inheritDoc} | |
dropConstraintSql ( Cake\Database\Schema\Table $table ) | {@inheritDoc} | |
dropTableSql ( Cake\Database\Schema\Table $table ) : array | Generate the SQL to drop a table. | |
indexSql ( Cake\Database\Schema\Table $table, $name ) | {@inheritDoc} | |
listTablesSql ( $config ) | {@inheritDoc} | |
truncateTableSql ( Cake\Database\Schema\Table $table ) | {@inheritDoc} |
Метод | Описание | |
---|---|---|
_convertColumn ( string $column ) : array | Convert a column definition to the abstract types. | |
_convertConstraint ( Cake\Database\Schema\Table $table, string $name, string $type, array $row ) : void | Add/update a constraint into the schema object. | |
_convertOnClause ( $clause ) | {@inheritDoc} | |
_defaultValue ( string | null $default ) : string | null | Manipulate the default value. | |
_keySql ( string $prefix, array $data ) : string | Helper method for generating key SQL snippets. |
protected _convertColumn ( string $column ) : array | ||
$column | string | The column type + length |
Результат | array | Array of column information. |
public addConstraintSql ( Cake\Database\Schema\Table $table ) | ||
$table | Cake\Database\Schema\Table |
public columnSql ( Cake\Database\Schema\Table $table, $name ) | ||
$table | Cake\Database\Schema\Table |
public constraintSql ( Cake\Database\Schema\Table $table, $name ) | ||
$table | Cake\Database\Schema\Table |
public convertColumnDescription ( Cake\Database\Schema\Table $table, $row ) | ||
$table | Cake\Database\Schema\Table |
public convertForeignKeyDescription ( Cake\Database\Schema\Table $table, $row ) | ||
$table | Cake\Database\Schema\Table |
public convertIndexDescription ( Cake\Database\Schema\Table $table, $row ) | ||
$table | Cake\Database\Schema\Table |
public createTableSql ( Cake\Database\Schema\Table $table, $columns, $constraints, $indexes ) | ||
$table | Cake\Database\Schema\Table |
public describeForeignKeySql ( $tableName, $config ) |
public dropConstraintSql ( Cake\Database\Schema\Table $table ) | ||
$table | Cake\Database\Schema\Table |
public dropTableSql ( Cake\Database\Schema\Table $table ) : array | ||
$table | Cake\Database\Schema\Table | Table instance |
Результат | array | SQL statements to drop a table. |
public indexSql ( Cake\Database\Schema\Table $table, $name ) | ||
$table | Cake\Database\Schema\Table |
public truncateTableSql ( Cake\Database\Schema\Table $table ) | ||
$table | Cake\Database\Schema\Table |