final class Indexes (View source)

Methods

__construct(DatabaseInterface $dbi)

No description

Message|null
getError()

No description

string
getSqlQueryForIndexCreateOrEdit(string|null $oldIndexName, Index $index, string $dbName, string $tableName)

Function to get the sql query for index creation or edit

string
getSqlQueryForRename(string $oldIndexName, Index $index, string $db, string $table)

No description

executeAddIndexSql(DatabaseName $db, string $sql)

No description

bool
hasPrimaryKey(DatabaseName $db, TableName $table)

No description

Details

__construct(DatabaseInterface $dbi)

No description

Parameters

DatabaseInterface $dbi

Message|null getError()

No description

Return Value

Message|null

string getSqlQueryForIndexCreateOrEdit(string|null $oldIndexName, Index $index, string $dbName, string $tableName)

Function to get the sql query for index creation or edit

Parameters

string|null $oldIndexName
Index $index

current index

string $dbName
string $tableName

Return Value

string

string getSqlQueryForRename(string $oldIndexName, Index $index, string $db, string $table)

No description

Parameters

string $oldIndexName
Index $index
string $db
string $table

Return Value

string

Message executeAddIndexSql(DatabaseName $db, string $sql)

No description

Parameters

DatabaseName $db
string $sql

Return Value

Message

bool hasPrimaryKey(DatabaseName $db, TableName $table)

No description

Parameters

DatabaseName $db
TableName $table

Return Value

bool