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

Function insertIntegration

packages/core/sdk/src/platform-view.test.ts:138–159  ·  view source on GitHub ↗
(db: SqliteTestFumaDb, slug: string)

Source from the content-addressed store, hash-verified

136 * the call returns success having touched no storage, which would make a
137 * read-only assertion vacuous. */
138const insertIntegration = (db: SqliteTestFumaDb, slug: string): Effect.Effect<void> =>
139 Effect.promise(async () => {
140 await db.client.execute({
141 sql: `INSERT INTO integration (
142 row_id, tenant, slug, plugin_id, name, description, config, can_remove,
143 can_refresh, created_at, updated_at
144 ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,
145 args: [
146 `i-${slug}`,
147 TENANT,
148 slug,
149 "demo",
150 slug,
151 null,
152 JSON.stringify({}),
153 1,
154 0,
155 Date.now(),
156 Date.now(),
157 ],
158 });
159 });
160
161/** Seed two users and an org connection under `t1`, plus an untouchable other
162 * tenant. Subjects go in through `touchSubject` (the only legitimate writer);

Callers 1

Calls 1

executeMethod · 0.65

Tested by

no test coverage detected