MCPcopy
hub / github.com/prisma/prisma / devDiagnostic

Method devDiagnostic

packages/migrate/src/SchemaEngineCLI.ts:147–149  ·  view source on GitHub ↗

* The method called at the beginning of migrate dev to decide the course of action, * based on the current state of the workspace. * It acts as a wrapper around diagnoseMigrationHistory. * Its role is to interpret the diagnostic output, * and translate it to a concrete action to be perfo

(args: EngineArgs.DevDiagnosticInput)

Source from the content-addressed store, hash-verified

145 * and translate it to a concrete action to be performed by the CLI.
146 */
147 public devDiagnostic(args: EngineArgs.DevDiagnosticInput): Promise<EngineResults.DevDiagnosticOutput> {
148 return this.runCommand(this.getRPCPayload('devDiagnostic', args))
149 }
150
151 /**
152 * Read the contents of the migrations directory and the migrations table, and returns their relative statuses.

Callers

nothing calls this directly

Calls 2

runCommandMethod · 0.95
getRPCPayloadMethod · 0.95

Tested by

no test coverage detected