Skip to main content
Latest
class ReturningResultsEntityUpdator
import { ReturningResultsEntityUpdator } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/query-builder/ReturningResultsEntityUpdator.ts";

Updates entity with returning results in the entity insert and update operations.

Constructors

new
ReturningResultsEntityUpdator(queryRunner: QueryRunner, expressionMap: QueryExpressionMap)

Methods

Columns we need to be returned from the database when we insert entity.

Columns we need to be returned from the database when we update entity.

insert(insertResult: InsertResult, entities: ObjectLiteral[]): Promise<void>

Updates entities with a special columns after insertion query execution.

update(updateResult: UpdateResult, entities: ObjectLiteral[]): Promise<void>

Updates entities with a special columns after updation query execution.