feat(node): default SQLite settings#292
Conversation
Mirror the Python SDK: zero-config SQLite under .taskito/ with auto-created parent dirs; require explicit dsn for postgres/redis.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe ChangesQueue Default SQLite Configuration
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
What
Match the Python SDK's queue-init defaults in the Node SDK.
new Queue()now opens.taskito/taskito.db(was: requireddbPath/dsn). Missing parent dirs are created automatically, like Python'sos.makedirs.:memory:skipped.dsn, else throw.schema(Postgres, default"taskito") andprefix(Redis) pass through unchanged for per-backend namespacing; both user-overridable.new Queue()).Why
Parity with Python (
db_path=".taskito/taskito.db",schema="taskito"). Zero-config local start; users override path/schema/prefix later.Tests
sdks/node/test/core/open.test.ts— default path + dir creation, nested-dir creation, dsn-required for non-sqlite. tsc + biome clean. Pure TS, no native rebuild.Summary by CodeRabbit
Release Notes
.taskito/taskito.db