Index
Constructors
Constructor
new Index(options): Index;
Parameters
| Parameter | Type |
|---|---|
options | IndexOptions |
Returns
Index
Accessors
columns
Get Signature
get columns(): IndexedColumn[];
Returns
name
Get Signature
get name(): string;
Returns
string
Methods
toJSON()
toJSON(table): {
columns: {
ascending: boolean | undefined;
name: string;
type: ColumnType;
}[];
name: string;
};
Parameters
| Parameter | Type |
|---|---|
table | ResolvedTable |
Returns
{
columns: {
ascending: boolean | undefined;
name: string;
type: ColumnType;
}[];
name: string;
}
| Name | Type |
|---|---|
columns | { ascending: boolean | undefined; name: string; type: ColumnType; }[] |
name | string |
createAscending()
static createAscending(options, columnNames): Index;
Parameters
| Parameter | Type |
|---|---|
options | IndexOptions |
columnNames | string[] |
Returns
Index