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

Function execute

packages/core/sdk/src/sqlite-config-blob-migration.ts:56–60  ·  view source on GitHub ↗
(stmt: string | { readonly sql: string; readonly args: readonly unknown[] })

Source from the content-addressed store, hash-verified

54): Effect.Effect<number, DataMigrationError> =>
55 Effect.gen(function* () {
56 const execute = (stmt: string | { readonly sql: string; readonly args: readonly unknown[] }) =>
57 Effect.tryPromise({
58 try: () => client.execute(stmt),
59 catch: (cause) => new DataMigrationError({ migration: options.migrationName, cause }),
60 });
61
62 const exists = yield* execute(
63 "SELECT name FROM sqlite_master WHERE type = 'table' AND name = 'integration'",

Callers 1

Calls 1

executeMethod · 0.65

Tested by

no test coverage detected