prisma: { client: { addData: (<const PrismaClient>(prismaClient: Readonly<PrismaClient>,
data: IsAny<PrismaClient> extends true ? any : PrismaAddModelData<PrismaClient>) => Promise<void>); dumpData: (<const PrismaClient>(prismaClient: PrismaClient,
options?: Readonly<PartialWithUndefined<PrismaDataDumpOptions>>) => Promise<PrismaAllBasicModels<PrismaClient>>); generate: ((schemaFilePath: string,
env?: Record<string, string>) => Promise<void>); isCurrent: ((__namedParameters: { jsClientOutputDir: string; schemaFilePath: string; }) => Promise<boolean>); listModelNames: (<const PrismaClient>(prismaClient: PrismaClient) => PrismaModelName<PrismaClient>[]); }; database: { diff: ((schemaFilePath: string,
env?: Record<string, string>) => Promise<string>); hasDiff: ((schemaFilePath: string,
env?: Record<string, string>) => Promise<boolean>); resetDev: ((schemaFilePath: string,
env?: Record<string, string>) => Promise<void>); }; migration: { applyDev: ((schemaFilePath: string,
env?: Record<string, string>) => Promise<void>); applyProd: ((schemaFilePath: string,
env?: Record<string, string>) => Promise<void>); create: ((__namedParameters: { createOnly?: boolean; migrationName: string; },
schemaFilePath: string,
env?: Record<string, string>) => Promise<void>); status: ((schemaFilePath: string,
env?: Record<string, string>) => Promise<PrismaMigrationStatus>); }; } = ... Type declaration
client: {
addData: (<const PrismaClient>(prismaClient: Readonly<PrismaClient>, data: IsAny<PrismaClient> extends true
? any
: PrismaAddModelData<PrismaClient>) => Promise<void>);
dumpData: (<const PrismaClient>(prismaClient: PrismaClient, options?: Readonly<PartialWithUndefined<PrismaDataDumpOptions>>) => Promise<PrismaAllBasicModels<PrismaClient>>);
generate: ((schemaFilePath: string, env?: Record<string, string>) => Promise<void>);
isCurrent: ((__namedParameters: {
jsClientOutputDir: string;
schemaFilePath: string;
}) => Promise<boolean>);
listModelNames: (<const PrismaClient>(prismaClient: PrismaClient) => PrismaModelName<PrismaClient>[]);
}
- <const PrismaClient>(prismaClient, data): Promise<void>
Returns Promise<void>
generate: ((schemaFilePath: string, env?: Record<string, string>) => Promise<void>)
- (schemaFilePath, env?): Promise<void>
Parameters
- schemaFilePath: string
- env: Record<string, string> = {}
Returns Promise<void>
isCurrent: ((__namedParameters: {
jsClientOutputDir: string;
schemaFilePath: string;
}) => Promise<boolean>)
- (__namedParameters): Promise<boolean>
Parameters
- __namedParameters: {
jsClientOutputDir: string;
schemaFilePath: string;
}jsClientOutputDir: string
schemaFilePath: string
Returns Promise<boolean>
database: {
diff: ((schemaFilePath: string, env?: Record<string, string>) => Promise<string>);
hasDiff: ((schemaFilePath: string, env?: Record<string, string>) => Promise<boolean>);
resetDev: ((schemaFilePath: string, env?: Record<string, string>) => Promise<void>);
}
diff: ((schemaFilePath: string, env?: Record<string, string>) => Promise<string>)
- (schemaFilePath, env?): Promise<string>
Parameters
- schemaFilePath: string
- env: Record<string, string> = {}
Returns Promise<string>
hasDiff: ((schemaFilePath: string, env?: Record<string, string>) => Promise<boolean>)
- (schemaFilePath, env?): Promise<boolean>
Parameters
- schemaFilePath: string
- env: Record<string, string> = {}
Returns Promise<boolean>
resetDev: ((schemaFilePath: string, env?: Record<string, string>) => Promise<void>)
- (schemaFilePath, env?): Promise<void>
Parameters
- schemaFilePath: string
- env: Record<string, string> = {}
Returns Promise<void>
migration: {
applyDev: ((schemaFilePath: string, env?: Record<string, string>) => Promise<void>);
applyProd: ((schemaFilePath: string, env?: Record<string, string>) => Promise<void>);
create: ((__namedParameters: {
createOnly?: boolean;
migrationName: string;
}, schemaFilePath: string, env?: Record<string, string>) => Promise<void>);
status: ((schemaFilePath: string, env?: Record<string, string>) => Promise<PrismaMigrationStatus>);
}
applyDev: ((schemaFilePath: string, env?: Record<string, string>) => Promise<void>)
- (schemaFilePath, env?): Promise<void>
Parameters
- schemaFilePath: string
- env: Record<string, string> = {}
Returns Promise<void>
applyProd: ((schemaFilePath: string, env?: Record<string, string>) => Promise<void>)
- (schemaFilePath, env?): Promise<void>
Parameters
- schemaFilePath: string
- env: Record<string, string> = {}
Returns Promise<void>
create: ((__namedParameters: {
createOnly?: boolean;
migrationName: string;
}, schemaFilePath: string, env?: Record<string, string>) => Promise<void>)
- (__namedParameters, schemaFilePath, env?): Promise<void>
Parameters
- __namedParameters: {
createOnly?: boolean;
migrationName: string;
}Optional
createOnly?: boolean
migrationName: string
- schemaFilePath: string
- env: Record<string, string> = {}
Returns Promise<void>
status: ((schemaFilePath: string, env?: Record<string, string>) => Promise<PrismaMigrationStatus>)
- (schemaFilePath, env?): Promise<PrismaMigrationStatus>
Parameters
- schemaFilePath: string
- env: Record<string, string> = {}
Centralized Prisma API from
@augment-vir/node
.Prisma flows
Deploy to production
Update dev environment
Apply migrations: prisma.migration.applyDev
Generate client:
prisma.client.isCurrent
false
, run prisma.client.generate