@godspeedsystems/prisma-deterministic-search-field-encryption
Version:
Transparent and customizable field-level encryption at rest for Prisma based on prisma-field-encryption package
11 lines (10 loc) • 638 B
TypeScript
import { ProgressReportCallback } from './progressReport';
export declare type RecordVisitor<PrismaClient, Cursor> = (client: PrismaClient, cursor: Cursor | undefined) => Promise<Cursor | undefined>;
export interface VisitRecordsArgs<PrismaClient, Cursor> {
modelName: string;
client: PrismaClient;
getTotalCount: () => Promise<number>;
migrateRecord: RecordVisitor<PrismaClient, Cursor>;
reportProgress?: ProgressReportCallback;
}
export declare function visitRecords<PrismaClient, Cursor>({ modelName, client, getTotalCount, migrateRecord, reportProgress }: VisitRecordsArgs<PrismaClient, Cursor>): Promise<number>;