$ open source · GPL-3.0 — need a commercial license? imqueue.com →

Emittable() function

Placeholder for change notifications, which are not implemented.

Signature:

export declare function Emittable(_target: any): void;

Parameters

Parameter

Type

Description

_target

any

The model class, which is ignored.

Returns:

void

Remarks

The intent was to attach a trigger that publishes row changes through Postgres NOTIFY. The body is empty: applying this to a model does nothing whatever, and nothing about a model changes by carrying it. It is unfinished work that happens to be exported, not a switch that is off.

What exists today: @imqueue/pg-pubsub is the LISTEN/NOTIFY client, and @imqueue/pg-prisma ships the change-notify triggers for the Prisma stack.