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.

23 lines (22 loc) 1.15 kB
export declare type tipo = /* "number" | */ 'decimal' | 'smallint' | 'integer' | 'numeric' | 'real' | 'smallserial' | 'serial' | "text" | "varchar(n)" | "character(n)" | "date" | "timestamptz" | "array" | "json" | "boolean" | "any" | ORMObject; export declare class ORMObject { tipo: 'object'; colonnaRiferimento: tipo; tabellaRiferimento: string; onDelete?: 'NO ACTION' | 'RESTRICT' | 'CASCADE' | 'SET NULL' | 'SET DEFAULT'; onUpdate?: 'NO ACTION' | 'RESTRICT' | 'CASCADE' | 'SET NULL' | 'SET DEFAULT'; constructor(colonnaRiferimento: tipo, tabellaRiferimento: string, onDelete?: 'NO ACTION' | 'RESTRICT' | 'CASCADE' | 'SET NULL' | 'SET DEFAULT', onUpdate?: 'NO ACTION' | 'RESTRICT' | 'CASCADE' | 'SET NULL' | 'SET DEFAULT'); } export interface ICommentato { descrizione: string; sommario: string; } export declare const targetTerminale: { name: string; }; export declare const targetExpress: { name: string; }; export declare function StartMonitoring(): void; export declare function GenerateID(): string; export declare function VerificaGenerica(tipo: tipo, valore: any): boolean;