Skip to main content
Module

x/typeorm/src/persistence/EntityPersistExecutor.ts>EntityPersistExecutor

Forked from https://github.com/typeorm/typeorm
Latest
class EntityPersistExecutor
import { EntityPersistExecutor } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/persistence/EntityPersistExecutor.ts";

Persists a single entity or multiple entities - saves or removes them.

Constructors

new
EntityPersistExecutor(
connection: Connection,
queryRunner: QueryRunner | undefined,
mode: "save" | "remove",
target: Function | string | undefined,
entity: ObjectLiteral | ObjectLiteral[],
options?: SaveOptions & RemoveOptions,
)

Methods

execute(): Promise<void>

Executes persistence operation ob given entity or entities.