Version: 4.3

Class: CLIHelper

Hierarchy

  • CLIHelper

Methods

dump

Staticdump(text: string, config?: Configuration): void

Defined in packages/cli/src/CLIHelper.ts:42

Parameters:

NameType
textstring
config?Configuration

Returns: void


dumpDependencies

StaticdumpDependencies(): Promise<void>

Defined in packages/cli/src/CLIHelper.ts:55

Returns: Promise<void>


dumpTable

StaticdumpTable(options: { columns: string[] ; empty: string ; rows: string[][] }): void

Defined in packages/cli/src/CLIHelper.ts:83

Parameters:

NameType
options{ columns: string[] ; empty: string ; rows: string[][] }

Returns: void


getConfigPaths

StaticgetConfigPaths(): Promise<string[]>

Defined in packages/cli/src/CLIHelper.ts:51

Returns: Promise<string[]>


getConfiguration

StaticgetConfiguration<D>(validate?: boolean, options?: Partial<Configuration>): Promise<Configuration<D>>

Defined in packages/cli/src/CLIHelper.ts:9

Type parameters:

NameTypeDefault
DIDatabaseDriverIDatabaseDriver

Parameters:

NameTypeDefault value
validatebooleantrue
optionsPartial<Configuration>{}

Returns: Promise<Configuration<D>>


getDriverDependencies

StaticgetDriverDependencies(): Promise<string[]>

Defined in packages/cli/src/CLIHelper.ts:33

Returns: Promise<string[]>


getModuleVersion

StaticgetModuleVersion(name: string): Promise<string>

Defined in packages/cli/src/CLIHelper.ts:74

Parameters:

NameType
namestring

Returns: Promise<string>


getNodeVersion

StaticgetNodeVersion(): string

Defined in packages/cli/src/CLIHelper.ts:29

Returns: string


getORM

StaticgetORM(warnWhenNoEntities?: boolean, opts?: Partial<Configuration>): Promise<MikroORM>

Defined in packages/cli/src/CLIHelper.ts:13

Parameters:

NameTypeDefault value
warnWhenNoEntities?boolean-
optsPartial<Configuration>{}

Returns: Promise<MikroORM>

Last updated on by Martin Adámek