Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

IndexEntity

import type { IndexEntity } from "https://googleapis.deno.dev/v1/datamigration:v1.ts";

Index is not used as an independent entity, it is retrieved as part of a Table entity.

interface IndexEntity {
customFeatures?: {
[key: string]: any;
}
;
name?: string;
tableColumns?: string[];
tableColumnsDescending?: boolean[];
type?: string;
unique?: boolean;
}

§Properties

§
customFeatures?: {
[key: string]: any;
}
[src]

Custom engine specific features.

§
name?: string
[src]

The name of the index.

§
tableColumns?: string[]
[src]

Table columns used as part of the Index, for example B-TREE index should list the columns which constitutes the index.

§
tableColumnsDescending?: boolean[]
[src]

For each table_column, mark whether it's sorting order is ascending (false) or descending (true). If no value is defined, assume all columns are sorted in ascending order. Otherwise, the number of items must match that of table_columns with each value specifying the direction of the matched column by its index.

§
type?: string
[src]

Type of index, for example B-TREE.

§
unique?: boolean
[src]

Boolean value indicating whether the index is unique.