프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$typeMap | mapping from abstract column types (keys) to physical column types (values). |
메소드 | 설명 | |
---|---|---|
addCommentOnColumn ( $table, $column, $comment ) | ||
addCommentOnTable ( $table, $comment ) | ||
buildLimit ( $limit, $offset ) | ||
checkIntegrity ( boolean $check = true, string $schema = '', string $table = '' ) : string | Builds a SQL statement for enabling or disabling integrity check. | |
createIndex ( $name, $table, $columns, $unique = false ) | ||
dropCommentFromColumn ( $table, $column ) | ||
dropCommentFromTable ( $table ) | ||
dropForeignKey ( string $name, string $table ) : string | Builds a SQL statement for dropping a foreign key constraint. | |
dropPrimaryKey ( string $name, string $table ) : string | Builds a SQL statement for removing a primary key constraint to an existing table. | |
insert ( $table, $columns, &$params ) | ||
renameColumn ( string $table, string $oldName, string $newName ) : string | Builds a SQL statement for renaming a column. | |
resetSequence ( string $tableName, mixed $value = null ) : string | Creates a SQL statement for resetting the sequence value of a table's primary key. |
메소드 | 설명 | |
---|---|---|
getColumnDefinition ( string $table, string $column ) : null | string | Gets column definition. |
public checkIntegrity ( boolean $check = true, string $schema = '', string $table = '' ) : string | ||
$check | boolean | whether to turn on or off the integrity check. |
$schema | string | the schema of the tables. Meaningless for MySQL. |
$table | string | the table name. Meaningless for MySQL. |
리턴 | string | the SQL statement for checking integrity |
public dropForeignKey ( string $name, string $table ) : string | ||
$name | string | the name of the foreign key constraint to be dropped. The name will be properly quoted by the method. |
$table | string | the table whose foreign is to be dropped. The name will be properly quoted by the method. |
리턴 | string | the SQL statement for dropping a foreign key constraint. |
public renameColumn ( string $table, string $oldName, string $newName ) : string | ||
$table | string | the table whose column is to be renamed. The name will be properly quoted by the method. |
$oldName | string | the old name of the column. The name will be properly quoted by the method. |
$newName | string | the new name of the column. The name will be properly quoted by the method. |
리턴 | string | the SQL statement for renaming a DB column. |
public resetSequence ( string $tableName, mixed $value = null ) : string | ||
$tableName | string | the name of the table whose primary key sequence will be reset |
$value | mixed | the value for the primary key of the next new row inserted. If this is not set, the next new row's primary key will have a value 1. |
리턴 | string | the SQL statement for resetting sequence |