MCPcopy
hub / github.com/prisma/prisma / evaluateDataLoss

Method evaluateDataLoss

packages/migrate/src/SchemaEngineCLI.ts:173–175  ·  view source on GitHub ↗

* Development command for migrations. * Evaluate the data loss induced by the next migration the engine would generate on the main database.

(args: EngineArgs.EvaluateDataLossInput)

Source from the content-addressed store, hash-verified

171 * Evaluate the data loss induced by the next migration the engine would generate on the main database.
172 */
173 public evaluateDataLoss(args: EngineArgs.EvaluateDataLossInput): Promise<EngineResults.EvaluateDataLossOutput> {
174 return this.runCommand(this.getRPCPayload('evaluateDataLoss', args))
175 }
176
177 public getDatabaseDescription(schema: string): Promise<string> {
178 return this.runCommand(this.getRPCPayload('getDatabaseDescription', { schema }))

Callers

nothing calls this directly

Calls 2

runCommandMethod · 0.95
getRPCPayloadMethod · 0.95

Tested by

no test coverage detected