UNPKG

@vorlefan/prisma-backup

Version:

Export all the databse models into json files and use them as backup

19 lines (18 loc) 838 B
import { BackupModelsValue } from './../../../types/backup'; import { PathRoute } from '@vorlefan/path'; import { GetBackupOnCurrentModelProps } from '../../../types/backup'; import { IFileManager_Files } from '@vorlefan/path/dist/types'; export declare class GetBackupHelper { route: PathRoute; onCurrentModel: GetBackupOnCurrentModelProps; currentFile: IFileManager_Files; private models; data: BackupModelsValue; private currentModel?; constructor(route: PathRoute, onCurrentModel: GetBackupOnCurrentModelProps, currentFile: IFileManager_Files, data: BackupModelsValue); bootstrap(): any; private handler; filterModel(dataset: BackupModelsValue, filter: string): Promise<any>; getModel(modelName: string): Promise<BackupModelsValue | undefined>; private decryptData; }