Skip to main content

Index

Constructors

new Index()

new Index(options): Index

Parameters

ParameterType
optionsIndexOptions

Returns

Index

Accessors

columns

get columns(): IndexedColumn[]

Returns

IndexedColumn[]


name

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;
}
MemberType
columns{
ascending: undefined | boolean;
name: string;
type: ColumnType;
}[]
namestring

createAscending()

static createAscending(options, columnNames): Index

Parameters

ParameterType
optionsIndexOptions
columnNamesstring[]

Returns

Index