Table.Index
Table index descriptions.
This module provides a type to describe table indices.
type 'r t = 'r index
The type for indices on a table with rows represented by 'r
.
index cols ~name ~unique
is an index named name
on columns cols
. If name
is None
a name is derived at index creation time from the table and column names. If unique
is true
(defaults to false
) a UNIQUE
constraint is added.
val unique : 'r index -> bool
unique i
is true
if the values in index i
must be unique.
val name : 'r index -> string option
name i
is the name of i
(if any).