MCPcopy Create free account
hub / github.com/Effect-TS/effect / mysqlLocks

Function mysqlLocks

packages/effect/src/unstable/cluster/SqlRunnerStorage.ts:568–569  ·  view source on GitHub ↗
(shardIds: ReadonlyArray<string>)

Source from the content-addressed store, hash-verified

566 ).join(", ")
567
568 const mysqlLocks = (shardIds: ReadonlyArray<string>) =>
569 shardIds.map((shardId) => `GET_LOCK('${lockNames.get(shardId)!}', 0) AS "${shardId}"`).join(", ")
570
571 const allMySqlTakenLocks = Array.from(
572 lockNames.entries(),

Callers 1

Calls 3

joinMethod · 0.80
getMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected