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
$name
public
string
$name
the index name
$type
the type of index : 'btree', 'hash'.
public
string
$type
..
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