Nextcloud PHP API (master)

IIndex

Object representation of an index.

Tags
since
35.0.0
Attributes
#[Consumable]
$since: '35.0.0'

Table of Contents

Methods

getColumns()  : array<int, string>
Returns the names of the columns this index is defined on.
getName()  : non-empty-string
Returns the name of this index.
hasColumnAtPosition()  : bool
Returns whether this index has a column at a specified position.
isPrimary()  : bool
Returns whether this index is the primary key.
isSimpleIndex()  : bool
Returns whether this index is neither unique nor the primary key.
isUnique()  : bool
Returns whether this index is a unique index.
spansColumns()  : bool
Returns whether the given column names exactly match the columns this index spans, regardless of order.

Methods

getColumns()

Returns the names of the columns this index is defined on.

public getColumns() : array<int, string>
Tags
since
35.0.0
Return values
array<int, string>

getName()

Returns the name of this index.

public getName() : non-empty-string
Tags
since
35.0.0
Return values
non-empty-string

hasColumnAtPosition()

Returns whether this index has a column at a specified position.

public hasColumnAtPosition(non-empty-lowercase-string $name[, int $position = 0 ]) : bool
Parameters
$name : non-empty-lowercase-string
$position : int = 0
Tags
since
35.0.0
Return values
bool

isPrimary()

Returns whether this index is the primary key.

public isPrimary() : bool
Tags
since
35.0.0
Return values
bool

isSimpleIndex()

Returns whether this index is neither unique nor the primary key.

public isSimpleIndex() : bool
Tags
since
35.0.0
Return values
bool

isUnique()

Returns whether this index is a unique index.

public isUnique() : bool
Tags
since
35.0.0
Return values
bool

spansColumns()

Returns whether the given column names exactly match the columns this index spans, regardless of order.

public spansColumns(array<int, non-empty-lowercase-string> $columnNames) : bool
Parameters
$columnNames : array<int, non-empty-lowercase-string>
Tags
since
35.0.0
Return values
bool
On this page

Search results