Skip to main content
Version: 4.4

Class: EntityGenerator#

entity-generator.EntityGenerator

Hierarchy#

  • EntityGenerator

Constructors#

constructor#

+ new EntityGenerator(em: EntityManager<AbstractSqlDriver<AbstractSqlConnection>>): EntityGenerator

Parameters:#

NameType
emEntityManager<AbstractSqlDriver<AbstractSqlConnection>>

Returns: EntityGenerator

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

Properties#

config#

Private Readonly config: Configuration<IDatabaseDriver<Connection>>

Defined in: packages/entity-generator/src/EntityGenerator.ts:8


connection#

Private Readonly connection: AbstractSqlConnection

Defined in: packages/entity-generator/src/EntityGenerator.ts:12


driver#

Private Readonly driver: AbstractSqlDriver<AbstractSqlConnection>

Defined in: packages/entity-generator/src/EntityGenerator.ts:9


helper#

Private Readonly helper: SchemaHelper

Defined in: packages/entity-generator/src/EntityGenerator.ts:11


namingStrategy#

Private Readonly namingStrategy: NamingStrategy

Defined in: packages/entity-generator/src/EntityGenerator.ts:13


platform#

Private Readonly platform: AbstractSqlPlatform

Defined in: packages/entity-generator/src/EntityGenerator.ts:10


sources#

Private Readonly sources: SourceFile[]

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

Methods#

createEntity#

createEntity(table: DatabaseTable): void

Parameters:#

NameType
tableDatabaseTable

Returns: void

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


generate#

generate(options?: { baseDir?: undefined | string ; save?: undefined | boolean }): Promise<string[]>

Parameters:#

NameTypeDefault value
options{ baseDir?: undefined | string ; save?: undefined | boolean }...

Returns: Promise<string[]>

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

Last updated on by renovate[bot]