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

Function getHttpAddress

console/src/api/materialize/executeSqlV2.ts:196–205  ·  view source on GitHub ↗
(
  request: ExecuteSqlRequest<Q>,
)

Source from the content-addressed store, hash-verified

194}
195
196async function getHttpAddress<Q extends CompiledQuery | CompiledQueryList>(
197 request: ExecuteSqlRequest<Q>,
198) {
199 if (request.httpAddress) {
200 return request.httpAddress;
201 }
202 const environment = await getStore().get(currentEnvironmentState);
203 assert(environment && environment.state === "enabled");
204 return environment.httpAddress;
205}
206
207/**
208 *

Callers 1

executeSqlV2Function · 0.85

Calls 3

getStoreFunction · 0.90
assertFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected