Options
All
  • Public
  • Public/Protected
  • All
Menu

Transforms raw sql results returned from the database into entity object. Entity is constructed based on its entity metadata.

Hierarchy

  • RawSqlResultsToEntityTransformer

Index

Constructors

constructor

Properties

Protected driver

driver: Driver

Protected expressionMap

expressionMap: QueryExpressionMap

Protected Optional queryRunner

queryRunner: QueryRunner

Protected rawRelationCountResults

rawRelationCountResults: RelationCountLoadResult[]

Protected rawRelationIdResults

rawRelationIdResults: RelationIdLoadResult[]

Methods

Protected buildColumnAlias

  • buildColumnAlias(aliasName: string, columnName: string): string

Private createValueMapFromJoinColumns

Private extractEntityPrimaryIds

Protected group

  • group(rawResults: any[], alias: Alias): Map<string, any[]>

transform

  • transform(rawResults: any[], alias: Alias): any[]

Protected transformColumns

Protected transformJoins

Protected transformRawResultsGroup

Protected transformRelationCounts

  • transformRelationCounts(rawSqlResults: any[], alias: Alias, entity: ObjectLiteral): boolean

Protected transformRelationIds

Generated using TypeDoc