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

Function buildIsOwnerQuery

console/src/api/materialize/objects.ts:65–71  ·  view source on GitHub ↗
(params: IsOwnerParameters)

Source from the content-addressed store, hash-verified

63};
64
65export function buildIsOwnerQuery(params: IsOwnerParameters) {
66 return queryBuilder
67 .selectFrom("mz_objects as o")
68 .innerJoin(getOwners().as("owners"), "owners.id", "o.owner_id")
69 .where("o.id", "=", params.objectId)
70 .select("owners.isOwner");
71}
72
73export function fetchIsOwner({
74 parameters,

Callers 1

fetchIsOwnerFunction · 0.85

Calls 2

getOwnersFunction · 0.90
selectMethod · 0.45

Tested by

no test coverage detected