Index
Constructors
new Index()
new Index(options): Index
Parameters
Parameter | Type |
---|---|
options | IndexOptions |
Returns
Accessors
columns
get columns(): IndexedColumn[]
Returns
name
get name(): string
Returns
string
Methods
toJSON()
toJSON(table): {
columns: {
ascending: undefined | boolean;
name: string;
type: ColumnType;
}[];
name: string;
}
Parameters
Parameter | Type |
---|---|
table | Table <ColumnsType > |
Returns
{
columns: {
ascending: undefined | boolean;
name: string;
type: ColumnType;
}[];
name: string;
}
Member | Type |
---|---|
columns | { |
ascending : undefined | boolean ; | |
name : string ; | |
type : ColumnType ; | |
}[] | |
name | string |
createAscending()
static createAscending(options, columnNames): Index
Parameters
Parameter | Type |
---|---|
options | IndexOptions |
columnNames | string [] |