MCPcopy
hub / github.com/prisma/prisma / setup

Method setup

packages/migrate/src/Migrate.ts:48–55  ·  view source on GitHub ↗
({ schemaContext, schemaEngineConfig, ...rest }: MigrateSetupInput)

Source from the content-addressed store, hash-verified

46 }
47
48 static async setup({ schemaContext, schemaEngineConfig, ...rest }: MigrateSetupInput): Promise<Migrate> {
49 const schemaEngine = await (async () => {
50 const datasource = schemaEngineConfig.datasource
51 return await SchemaEngineCLI.setup({ datasource, schemaContext, ...rest })
52 })()
53
54 return new Migrate({ engine: schemaEngine, schemaContext, ...rest })
55 }
56
57 public async stop(): Promise<void> {
58 await this.engine.stop()

Callers 15

setupScenarioFunction · 0.45
executeStepsFunction · 0.45
getDatabaseVersionSafeFunction · 0.45
introspectSqlFunction · 0.45
parseMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45

Calls

no outgoing calls

Tested by 1

setupScenarioFunction · 0.36