Index
Less than 1 minute
Index
Methods
listIndexes
List all indexes in the database.
public listIndexes(?string $table): void
Parameters
Parameter | Type | Description |
---|---|---|
$table | string |
indexExists
List all indexes for a table.
public indexExists(string $indexName, ?string $table): bool
Parameters
Parameter | Type | Description |
---|---|---|
$indexName | string | |
$table | string |
createIndex
Create a new index.
public createIndex(string $indexName, string $tableName, mixed $idxInfo): bool
Parameters
Parameter | Type | Description |
---|---|---|
$indexName | string | |
$tableName | string | |
$idxInfo | mixed |
dropIndex
Drop an index.
public dropIndex(string $indexName, bool $ifExists = false): bool
Parameters
Parameter | Type | Description |
---|---|---|
$indexName | string | |
$ifExists | bool |
Generated by Hazaar API Doc Generator