@codified/cli 0.1.9 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/migrations/003_connector_sync_state.sql +12 -0
- package/dist/index.js +183 -171
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
-- Persist connector sync state so incremental syncs survive restarts
|
|
2
|
+
|
|
3
|
+
CREATE TABLE IF NOT EXISTS connector_sync_state (
|
|
4
|
+
connector_id TEXT PRIMARY KEY,
|
|
5
|
+
last_sync_at TIMESTAMPTZ,
|
|
6
|
+
last_cursor TEXT,
|
|
7
|
+
status TEXT NOT NULL DEFAULT 'idle' CHECK (status IN ('idle', 'syncing', 'error')),
|
|
8
|
+
error TEXT,
|
|
9
|
+
artifact_count INTEGER NOT NULL DEFAULT 0,
|
|
10
|
+
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
|
|
11
|
+
updated_at TIMESTAMPTZ NOT NULL DEFAULT now()
|
|
12
|
+
);
|