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

Function getMaterializeEndpoint

console/src/test/sql/mzcompose.ts:20–25  ·  view source on GitHub ↗
(port: number)

Source from the content-addressed store, hash-verified

18const COMPOSE_PATH = path.resolve(TESTDRIVE_PATH, "mzcompose");
19
20export async function getMaterializeEndpoint(port: number) {
21 const { stdout } = await mzcompose(`port materialized ${port}`);
22 const [host, mappedPort] = stdout.split(":");
23
24 return { host, port: parseInt(mappedPort) };
25}
26
27export async function getMaterializeEndpoints() {
28 // When running inside the Docker composition (via mzcompose), endpoints are

Callers 1

getMaterializeEndpointsFunction · 0.85

Calls 3

mzcomposeFunction · 0.85
parseIntFunction · 0.85
splitMethod · 0.45

Tested by

no test coverage detected