MCPcopy
hub / github.com/prisma/prisma / getDatabaseVersion

Method getDatabaseVersion

packages/migrate/src/SchemaEngineCLI.ts:186–188  ·  view source on GitHub ↗

* Get the database version for error reporting. * If no argument is given, the version of the database associated to the Prisma schema provided * in the constructor will be returned.

(args?: MigrateTypes.GetDatabaseVersionParams)

Source from the content-addressed store, hash-verified

184 * in the constructor will be returned.
185 */
186 public getDatabaseVersion(args?: MigrateTypes.GetDatabaseVersionParams): Promise<string> {
187 return this.runCommand(this.getRPCPayload('getDatabaseVersion', args))
188 }
189
190 /**
191 * Given a Prisma schema, introspect the database definitions and update the schema with the results.

Callers

nothing calls this directly

Calls 2

runCommandMethod · 0.95
getRPCPayloadMethod · 0.95

Tested by

no test coverage detected