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

Function execute

packages/plugins/provider-service-split/src/sqlite.ts:26–33  ·  view source on GitHub ↗
(
  client: SqliteDataMigrationClient,
  stmt: string | { readonly sql: string; readonly args: readonly unknown[] },
)

Source from the content-addressed store, hash-verified

24 `${operationStorageKey(integration, "").split(".").slice(0, 2).join(".")}.%`;
25
26const execute = (
27 client: SqliteDataMigrationClient,
28 stmt: string | { readonly sql: string; readonly args: readonly unknown[] },
29) =>
30 Effect.tryPromise({
31 try: () => client.execute(stmt),
32 catch: (cause) => new DataMigrationError({ migration: MIGRATION_NAME, cause }),
33 });
34
35const parseJsonLike = (value: unknown): unknown => {
36 if (typeof value !== "string") return value;

Callers 7

tableExistsFunction · 0.70
ensureLedgerTableFunction · 0.70
readCompletedTenantsFunction · 0.70
stampCompletedTenantFunction · 0.70
readDatabaseInputFunction · 0.70
applyOrgFunction · 0.70

Calls 1

executeMethod · 0.65

Tested by

no test coverage detected