Skip to main content
Module

x/typeorm/src/index.ts>Index

Forked from https://github.com/typeorm/typeorm
Latest
function Index
import { Index } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/index.ts";

Creates a database index. Can be used on entity property or on entity. Can create indices with composite columns when used on entity.

Parameters

optional
options: IndexOptions

Returns

Function

Creates a database index. Can be used on entity property or on entity. Can create indices with composite columns when used on entity.

Parameters

name: string
optional
options: IndexOptions

Returns

Function

Creates a database index. Can be used on entity property or on entity. Can create indices with composite columns when used on entity.

Parameters

name: string
options: { synchronize: false; }

Returns

Function

Creates a database index. Can be used on entity property or on entity. Can create indices with composite columns when used on entity.

Parameters

name: string
fields: string[]
optional
options: IndexOptions

Returns

Function

Creates a database index. Can be used on entity property or on entity. Can create indices with composite columns when used on entity.

Parameters

fields: string[]
optional
options: IndexOptions

Returns

Function

Creates a database index. Can be used on entity property or on entity. Can create indices with composite columns when used on entity.

Parameters

fields: (object?: any) => (any[] | { [key: string]: number; })
optional
options: IndexOptions

Returns

Function

Creates a database index. Can be used on entity property or on entity. Can create indices with composite columns when used on entity.

Parameters

name: string
fields: (object?: any) => (any[] | { [key: string]: number; })
optional
options: IndexOptions

Returns

Function