Skip to main content
Version: Next

Class: EntityGenerator

entity-generator.EntityGenerator

Constructors#

constructor#

new EntityGenerator(em)

Parameters#

NameType
emEntityManager<AbstractSqlDriver<AbstractSqlConnection>>

Defined in#

packages/entity-generator/src/EntityGenerator.ts:14

Methods#

createEntity#

createEntity(table): void

Parameters#

NameType
tableDatabaseTable

Returns#

void

Defined in#

packages/entity-generator/src/EntityGenerator.ts:31


generate#

generate(options?): Promise<string[]>

Parameters#

NameType
optionsObject
options.baseDir?string
options.save?boolean

Returns#

Promise<string[]>

Defined in#

packages/entity-generator/src/EntityGenerator.ts:18