Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RawSqlResultsToEntityTransformer

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

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