Skip to content

Migrate marketplace & signal stores to SQLite (issue #36) - #182

Merged
Darkvader-ship-it merged 3 commits into
PHASE-STELLAR:mainfrom
codewithzubair07:feature/36-sqlite-market-signal-store
Aug 31, 2026
Merged

Migrate marketplace & signal stores to SQLite (issue #36)#182
Darkvader-ship-it merged 3 commits into
PHASE-STELLAR:mainfrom
codewithzubair07:feature/36-sqlite-market-signal-store

Conversation

@codewithzubair07

Copy link
Copy Markdown

Closes #36

Replaces full-file JSON reads for listings/offers/signals/replies with
an indexed SQLite schema (foreign keys: offers→listings, replies→signals).

  • lib/sqlite-db.ts — schema + connection (node:sqlite, no native deps)
  • lib/market-store.ts, lib/signal-store.ts — same exported function
    signatures, SQL-backed internals (no API route changes needed)
  • scripts/migrate-json-to-sqlite.ts — idempotent migration from
    .data/*.json, verifies record-count parity, run via npm run migrate:sqlite

Out of scope (left on JSON): marketProfileViews, blockList — not
mentioned in the issue's acceptance criteria.

@drips-wave

drips-wave Bot commented Aug 31, 2026

Copy link
Copy Markdown

@codewithzubair07 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Darkvader-ship-it
Darkvader-ship-it merged commit 1e6387b into PHASE-STELLAR:main Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Architecture] Migrate Marketplace & Signal JSON Stores to SQLite Relational Schema with Indexing

2 participants