UNPKG

@augment-vir/node

Version:

A collection of augments, helpers types, functions, and classes only for Node.js (backend) JavaScript environments.

12 lines (11 loc) 724 B
export declare function getPrismaDiff(schemaFilePath: string, env?: Record<string, string>): Promise<string>; export declare function doesPrismaDiffExist(schemaFilePath: string, env?: Record<string, string>): Promise<boolean>; export declare function resetDevPrismaDatabase(schemaFilePath: string, options: { /** * If you already have migrations created, set this to `true`. If you don't, set it to * `false`. If you don't know which one to use, try both, see which one creates a valid * database for you (try querying it with PrismaClient after running this; if it errors, * this didn't create a valid database). */ withMigrations: boolean; }, env?: Record<string, string>): Promise<void>;