Skip to content

[codex] refactor archive store SQL with sqlc#8

Merged
steipete merged 4 commits into
mainfrom
codex/sqlc-store-refactor
May 15, 2026
Merged

[codex] refactor archive store SQL with sqlc#8
steipete merged 4 commits into
mainfrom
codex/sqlc-store-refactor

Conversation

@steipete
Copy link
Copy Markdown
Collaborator

Summary

  • add sqlc generation for the internal archive store DB
  • move stable archive-store status, export, list, delete, insert, sync_state, and FTS write queries to generated wrappers
  • keep runtime schema/migration, dynamic message filters/search, and WhatsApp Desktop source readers handwritten

Validation

  • go run github.com/sqlc-dev/sqlc/cmd/sqlc@v1.31.1 generate
  • go test ./internal/store
  • go test ./internal/whatsappdb
  • GIT_CONFIG_GLOBAL=/dev/null go test ./...
  • GIT_CONFIG_GLOBAL=/dev/null make test
  • go run ./cmd/wacrawl doctor
  • go run ./cmd/wacrawl status
  • go run ./cmd/wacrawl chats --limit 5
  • /Users/steipete/Projects/agent-scripts/skills/codex-review/scripts/codex-review --mode branch --parallel-tests "go test ./..."

Note: local full test runs need GIT_CONFIG_GLOBAL=/dev/null here because global git config signs temporary test commits with a passphrase-protected SSH key.

@steipete steipete marked this pull request as ready for review May 15, 2026 10:07
@steipete steipete merged commit 27f6fa1 into main May 15, 2026
6 checks passed
@steipete steipete deleted the codex/sqlc-store-refactor branch May 15, 2026 10:07
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.

1 participant