UNPKG

@vorlefan/prisma-backup

Version:

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

17 lines (16 loc) 544 B
import { BackupModelProps, BackupModelsValue } from '../../../types/backup'; export declare class BackupModel { currentModel: BackupModelsValue; willEncrypt: boolean; password: string; folder: string; key: string; private route; constructor({ currentModel, encrypt, folder, password, key, route, }: BackupModelProps); bootstrap(): Promise<boolean>; getFilename(): string; getDestination(): string; private handler; private saveWithEncryption; private saveWithoutEncrypting; }