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

Function parseInputJson

scripts/migration/service-split-postgres-cli.ts:54–55  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

52export const LEDGER_TABLE = "provider_service_split_org_migration";
53
54const parseInputJson = (path: string): MigrationInput =>
55 JSON.parse(readFileSync(path, "utf8")) as MigrationInput;
56
57const readRows = async <T extends readonly object[]>(sql: SqlClient, query: string): Promise<T> =>
58 sql.unsafe<T>(query);

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected