Julius Marmingerewrite25d20ab8 months agoHistory
22 lines · 641 B · TypeScript
RawDownload
import * as SqlClient from "effect/unstable/sql/SqlClient";import * as Effect from "effect/Effect"; export default Effect.gen(function* () {  const sql = yield* SqlClient.SqlClient;   yield* sql`    CREATE TABLE IF NOT EXISTS checkpoint_diff_blobs (      thread_id TEXT NOT NULL,      from_turn_count INTEGER NOT NULL,      to_turn_count INTEGER NOT NULL,      diff TEXT NOT NULL,      created_at TEXT NOT NULL,      UNIQUE (thread_id, from_turn_count, to_turn_count)    )  `;   yield* sql`    CREATE INDEX IF NOT EXISTS idx_checkpoint_diff_blobs_thread_to_turn    ON checkpoint_diff_blobs(thread_id, to_turn_count)  `;});

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t