import { type EntitySubscriberInterface } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/index.ts";
Classes that implement this interface are subscribers that subscribe for the specific events in the ORM.
Methods
Returns the class of the entity to which events will listen. If this method is omitted, then subscriber will listen to events of all entities.
Called after entity is loaded from the database.
For backward compatibility this signature is slightly different from the
others. event
was added later but is always provided (it is only
optional in the signature so that its introduction does not break
compilation for existing subscribers).
Called before entity is inserted to the database.
Called after entity is inserted to the database.
Called before entity is updated in the database.
Called after entity is updated in the database.
Called before entity is removed from the database.
Called after entity is removed from the database.