Version: 4.3

Class: SchemaCommandFactory

Hierarchy

  • SchemaCommandFactory

Methods

configureSchemaCommand

StaticconfigureSchemaCommand(args: Argv, command: "create" | "update" | "drop"): Argv<{}>

Defined in packages/cli/src/commands/SchemaCommandFactory.ts:32

Parameters:

NameType
argsArgv
command"create" | "update" | "drop"

Returns: Argv<{}>


create

Staticcreate<U>(command: "create" | "update" | "drop"): CommandModule<unknown, U> & { builder: (args: Argv) => Argv<U> ; handler: (args: Arguments<U>) => Promise<void> }

Defined in packages/cli/src/commands/SchemaCommandFactory.ts:21

Type parameters:

NameTypeDefault
UOptionsOptions

Parameters:

NameType
command"create" | "update" | "drop"

Returns: CommandModule<unknown, U> & { builder: (args: Argv) => Argv<U> ; handler: (args: Arguments<U>) => Promise<void> }


getOrderedParams

Static PrivategetOrderedParams(args: Arguments<Options>, method: "create" | "update" | "drop"): any[]

Defined in packages/cli/src/commands/SchemaCommandFactory.ts:98

Parameters:

NameType
argsArguments<Options>
method"create" | "update" | "drop"

Returns: any[]


handleSchemaCommand

StatichandleSchemaCommand(args: Arguments<Options>, method: "create" | "update" | "drop", successMessage: string): Promise<void>

Defined in packages/cli/src/commands/SchemaCommandFactory.ts:75

Parameters:

NameType
argsArguments<Options>
method"create" | "update" | "drop"
successMessagestring

Returns: Promise<void>

Object literals

DESCRIPTIONS

Static Readonly DESCRIPTIONS: object

Defined in packages/cli/src/commands/SchemaCommandFactory.ts:9

Properties:

NameTypeValue
createstring"Create database schema based on current metadata"
dropstring"Drop database schema based on current metadata"
updatestring"Update database schema based on current metadata"

SUCCESS_MESSAGES

Static Readonly SUCCESS_MESSAGES: object

Defined in packages/cli/src/commands/SchemaCommandFactory.ts:15

Properties:

NameTypeValue
createstring"Schema successfully created"
dropstring"Schema successfully dropped"
updatestring"Schema successfully updated"
Last updated on by Martin Adámek