MCPcopy
hub / github.com/prisma/prisma / getSchemaDatasourceProvider

Function getSchemaDatasourceProvider

packages/internals/src/cli/schemaContext.ts:110–115  ·  view source on GitHub ↗
(schemaContext: SchemaContext)

Source from the content-addressed store, hash-verified

108}
109
110export function getSchemaDatasourceProvider(schemaContext: SchemaContext): ActiveConnectorType {
111 if (schemaContext.primaryDatasource === undefined) {
112 throw new Error('Schema must contain a datasource block')
113 }
114 return schemaContext.primaryDatasource.activeProvider
115}

Callers 4

parseMethod · 0.90
parseMethod · 0.90
parseMethod · 0.90
parseMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected