MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / mzcompose

Function mzcompose

console/src/test/sql/mzcompose.ts:115–133  ·  view source on GitHub ↗
(command: string, input?: string)

Source from the content-addressed store, hash-verified

113}
114
115export async function mzcompose(command: string, input?: string) {
116 return new Promise<{ stdout: string; stderr: string }>((resolve, reject) => {
117 const childProccess = exec(
118 `${COMPOSE_PATH} ${command}`,
119 { cwd: TESTDRIVE_PATH },
120 (error, stdout, stderr) => {
121 if (error) {
122 reject(error);
123 return;
124 }
125 resolve({ stdout, stderr });
126 },
127 );
128 if (input) {
129 childProccess.stdin?.write(input);
130 childProccess.stdin?.end();
131 }
132 });
133}

Callers 1

getMaterializeEndpointFunction · 0.85

Calls 2

resolveFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected