- Preparing search index...
- The search index is not available
Deepkit
Constructors
constructor
- new Table(name: string): Table
-
Properties
columnForProperty
column
For
Property
: Map<ReflectionProperty, Column> = ...
schemaName
schemaName: string = ''
Methods
addColumn
- addColumn(name: string, property?: ReflectionProperty): Column
-
Parameters
-
name: string
-
Optional
property: ReflectionProperty
addForeignKey
- addForeignKey(name: string, foreignTable: Table): ForeignKey
-
Parameters
-
name: string
-
foreignTable: Table
addIndex
- addIndex(name: string, unique?: boolean): IndexModel
-
Parameters
-
name: string
-
unique: boolean = false
getColumn
- getColumn(name: string): Column
-
getColumnForProperty
- getColumnForProperty(property: ReflectionProperty): Column
-
Parameters
-
property: ReflectionProperty
getForeignKeyOfLocalColumn
getFullName
- getFullName(schemaDelimiter: string): string
-
Returns string
getName
- getName(): string
-
Returns string
hasColumn
- hasColumn(name: string): boolean
-
Returns boolean
hasCompositePrimaryKey
- hasCompositePrimaryKey(): boolean
-
Returns boolean
hasIndex
- hasIndex(columns: Column[], unique?: boolean): boolean
-
Returns boolean
hasIndexByName
- hasIndexByName(name: string): boolean
-
Returns boolean
hasPrimaryKey
- hasPrimaryKey(): boolean
-
Returns boolean
isName
- isName(name: string, schemaName?: string): boolean
-
Parameters
-
name: string
-
Optional
schemaName: string
Returns boolean