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

Function insertSubject

packages/core/sdk/src/subject-table.test.ts:28–36  ·  view source on GitHub ↗
(
  db: SqliteTestFumaDb,
  row: { readonly rowId: string; readonly tenant: string; readonly externalId: string },
)

Source from the content-addressed store, hash-verified

26 );
27
28const insertSubject = (
29 db: SqliteTestFumaDb,
30 row: { readonly rowId: string; readonly tenant: string; readonly externalId: string },
31): Promise<unknown> =>
32 db.client.execute({
33 sql: `INSERT INTO subject (row_id, tenant, external_id, created_at, last_seen_at, status)
34 VALUES (?, ?, ?, ?, ?, ?)`,
35 args: [row.rowId, row.tenant, row.externalId, Date.now(), null, null],
36 });
37
38describe("subject table", () => {
39 it.effect("is created by the runtime schema bring-up", () =>

Callers 1

Calls 1

executeMethod · 0.65

Tested by

no test coverage detected