Method | Description | |
---|---|---|
__construct ( null $Database = null ) | ||
drop ( ) | Drops $this->Table() from the database. | |
dropColumn ( string $Name ) : boolean | Drops $Name column from $this->Table(). | |
engine ( $Engine, boolean $CheckAvailability = true ) | ||
getRowCountEstimate ( string $tableName ) : integer | null | Get the estimated number of rows in a table. | |
hasEngine ( $Engine ) : boolean | ||
indexSqlDb ( ) : array | ||
renameColumn ( string $OldName, string $NewName, string $TableName = '' ) : boolean | Renames a column in $this->Table(). | |
renameTable ( string $OldName, string $NewName, boolean $UsePrefix = false ) : boolean | Renames a table in the database. | |
view ( string $Name, $SQL ) | Specifies the name of the view to create or modify. |
Method | Description | |
---|---|---|
_create ( ) | Creates the table defined with $this->Table() and $this->Column(). | |
_defineColumn ( stdClass $column, string $newColumnName = null ) | ||
_indexSql ( $Columns, boolean $KeyType = false ) : array | ||
_indexSqlDb ( ) : array | ||
_modify ( boolean $Explicit = false ) | Modifies $this->Table() with the columns specified with $this->Column(). | |
_quoteValue ( $Value ) : string | ||
_supportsFulltext ( ) : boolean | ||
getCharsetFromCollation ( string $collation ) : string | Get the character set for a collation. | |
getTableInfo ( string $tableName ) : array? | Get the high-level table information for a given table. |
protected _create ( ) |
protected _defineColumn ( stdClass $column, string $newColumnName = null ) | ||
$column | stdClass | |
$newColumnName | string | For rename action only. |
protected static _quoteValue ( $Value ) : string | ||
$Value | ||
return | string |
public dropColumn ( string $Name ) : boolean | ||
$Name | string | The name of the column to drop from $this->Table(). |
return | boolean |
protected getCharsetFromCollation ( string $collation ) : string | ||
$collation | string | The name of the collation. |
return | string | Returns the name of the character set or an empty string if the collation was not found. |
protected getTableInfo ( string $tableName ) : array? | ||
$tableName | string | The name of the table to get the information for. |
return | array? |
public renameTable ( string $OldName, string $NewName, boolean $UsePrefix = false ) : boolean | ||
$OldName | string | The name of the table to be renamed. |
$NewName | string | The new name for the table being renamed. |
$UsePrefix | boolean | A boolean value indicating if $this->_DatabasePrefix should be prefixed before $OldName and $NewName. |
return | boolean |