MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / stableId

Function stableId

packages/plugins/provider-service-split/src/sqlite.ts:56–63  ·  view source on GitHub ↗
(...parts: readonly string[])

Source from the content-addressed store, hash-verified

54};
55
56const stableId = (...parts: readonly string[]): string => {
57 const text = parts.join("\u0000");
58 let hash = 0;
59 for (let index = 0; index < text.length; index += 1) {
60 hash = (hash * 31 + text.charCodeAt(index)) >>> 0;
61 }
62 return `service_split_${hash.toString(36)}`;
63};
64
65const tableExists = (client: SqliteDataMigrationClient, table: string) =>
66 execute(client, {

Callers 1

applyOrgFunction · 0.70

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected