UNPKG

mp-holistic

Version:

si prefigge l'umile compito di aiutare nella creazione di : - un server API REST mediante express - un semplice ORM per Postgres Questo tramite decoratori o classi particolari.

21 lines (20 loc) 893 B
export declare type TypeIstantevent = 'BEFORE' | 'AFTER' | 'INSTEAD OF'; export declare type TypeSurgevent = 'INSERT' | 'UPDATE' | 'DELETE' | 'TRUNCATE'; export interface ITrigger { instantevent?: TypeIstantevent; surgevent?: TypeSurgevent[]; nomeTrigger: string; nomeFunzione: string; Validatore: string | ((NEW: any, OLD: any, argomenti: any[], instantevent: any, surgevent: any) => void | Error); typeFunction?: 'plv8' | 'sql'; } export declare class Trigger implements ITrigger { instantevent: TypeIstantevent; surgevent: TypeSurgevent[]; nomeTrigger: string; nomeFunzione: string; Validatore: string | ((nuovo: any, vecchio: any, argomenti: any[], instantevent: any, surgevent: any) => void | Error); typeFunction?: 'plv8' | 'sql'; CostruisceTrigger(nomeTabella: string): string; constructor(item?: ITrigger); }