Core Infrastructure
Local DB Instances
Instance-level SQLite operations for task occurrences.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Instance-level SQLite operations for task occurrences.
const parentTask = await db.getFirstAsync(
"SELECT id FROM local_tasks WHERE convex_id = ?", [instance.task_id]
);
const localTaskId = parentTask?.id ?? instance.task_id; // Fallback for orphans
| Function | Purpose |
|---|---|
| updateSingleInstanceInLocalDb() | Atomic delete-then-insert (clobber and spawn) for a single instance |
| deleteSingleInstanceFromLocalDb() | Removes an instance by its Convex ID |