Skip to main content

Index

Constructors

new Index()

new Index(options): Index

Parameters

ParameterType
optionsIndexOptions

Returns

Index

Accessors

columns

Get Signature

get columns(): IndexedColumn[]
Returns

IndexedColumn[]


name

Get Signature

get name(): string
Returns

string

Methods

toJSON()

toJSON(table): {
columns: {
ascending: undefined | boolean;
name: string;
type: ColumnType;
}[];
name: string;
}

Parameters

ParameterType
tableTable<ColumnsType>

Returns

{
columns: {
ascending: undefined | boolean;
name: string;
type: ColumnType;
}[];
name: string;
}
NameType
columns{ ascending: undefined | boolean; name: string; type: ColumnType; }[]
namestring

createAscending()

static createAscending(options, columnNames): Index

Parameters

ParameterType
optionsIndexOptions
columnNamesstring[]

Returns

Index