Jelix 1.6.37

jDbIndex
in package

Represents an index on some columns

Table of Contents

$columns  : array<string|int, string>
$isUnique  : string
$name  : string
$type  : string
the type of index : 'btree', 'hash'.
__construct()  : mixed
jDbIndex constructor.

Properties

$columns

public array<string|int, string> $columns = array()

list of indexed columns

$isUnique

public string $isUnique = alse

SQL where clause for the index

Methods

__construct()

jDbIndex constructor.

public __construct(string $name[, mixed $type = '' ][, array<string|int, string> $columns = array() ]) : mixed
Parameters
$name : string

the index name

$type : mixed = ''
$columns : array<string|int, string> = array()

the list of column names

Return values
mixed

Search results