MCPcopy Create free account
hub / github.com/zenstackhq/zenstack / runDev

Function runDev

packages/cli/src/actions/migrate.ts:77–91  ·  view source on GitHub ↗
(prismaSchemaFile: string, options: DevOptions)

Source from the content-addressed store, hash-verified

75}
76
77function runDev(prismaSchemaFile: string, options: DevOptions) {
78 try {
79 const cmd = [
80 'migrate dev',
81 ` --schema "${prismaSchemaFile}"`,
82 ' --skip-generate',
83 ' --skip-seed',
84 options.name ? ` --name "${options.name}"` : '',
85 options.createOnly ? ' --create-only' : '',
86 ].join('');
87 execPrisma(cmd);
88 } catch (err) {
89 handleSubProcessError(err);
90 }
91}
92
93async function runReset(prismaSchemaFile: string, options: ResetOptions) {
94 try {

Callers 1

runFunction · 0.85

Calls 2

execPrismaFunction · 0.90
handleSubProcessErrorFunction · 0.70

Tested by

no test coverage detected