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

Function mysqlLocks

packages/cluster/src/SqlRunnerStorage.ts:511–512  ·  view source on GitHub ↗
(shardIds: ReadonlyArray<string>)

Source from the content-addressed store, hash-verified

509 ).join(", ")
510
511 const mysqlLocks = (shardIds: ReadonlyArray<string>) =>
512 shardIds.map((shardId) => `GET_LOCK('${lockNames.get(shardId)!}', 0) AS "${shardId}"`).join(", ")
513
514 const allMySqlTakenLocks = Array.from(
515 lockNames.entries(),

Callers 1

Calls 3

joinMethod · 0.65
mapMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected