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

Function execute

packages/core/sdk/src/sqlite-data-migrations.ts:54–62  ·  view source on GitHub ↗
(
  client: SqliteDataMigrationClient,
  stmt: string | { readonly sql: string; readonly args: readonly unknown[] },
  migration: string | null,
)

Source from the content-addressed store, hash-verified

52const LEDGER_TABLE = "data_migration";
53
54const execute = (
55 client: SqliteDataMigrationClient,
56 stmt: string | { readonly sql: string; readonly args: readonly unknown[] },
57 migration: string | null,
58) =>
59 Effect.tryPromise({
60 try: () => client.execute(stmt),
61 catch: (cause) => new DataMigrationError({ migration, cause }),
62 });
63
64/** Wrap a promise-shaped migration body as a registry entry. */
65export const sqliteDataMigration = (

Callers 1

runSqliteDataMigrationsFunction · 0.70

Calls 1

executeMethod · 0.65

Tested by

no test coverage detected