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

Method getDatabaseVersion

packages/migrate/src/SchemaEngineWasm.ts:202–204  ·  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.

(input?: SchemaEngineInput<'version'>)

Source from the content-addressed store, hash-verified

200 * in the constructor will be returned.
201 */
202 public getDatabaseVersion(input?: SchemaEngineInput<'version'>): SchemaEngineOutput<'version'> {
203 return this.runCommand('version', input)
204 }
205
206 /**
207 * Given a Prisma schema, introspect the database definitions and update the schema with the results.

Callers

nothing calls this directly

Calls 1

runCommandMethod · 0.95

Tested by

no test coverage detected