Jelix 1.8.13

jDbIndex
in package

Represents an index on some columns.

Tags

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

Tags

$isUnique

public string $isUnique = \false

SQL where clause for the index

Tags

$type

the type of index : 'btree', 'hash'.

public string $type

..

Tags

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

Tags
Return values
mixed

Search results