Skip to content

feat: SqliteNoteRepository と SqliteTagRepository を実装する#18

Merged
hideyukiMORI merged 1 commit into
mainfrom
feat/issue-15-sqlite-repositories
May 19, 2026
Merged

feat: SqliteNoteRepository と SqliteTagRepository を実装する#18
hideyukiMORI merged 1 commit into
mainfrom
feat/issue-15-sqlite-repositories

Conversation

@hideyukiMORI
Copy link
Copy Markdown
Owner

Summary

  • SqliteNoteRepository / SqliteTagRepositoryDatabaseQueryExecutorInterface ベースで実装
  • pytest.fixture(params=[...]) で InMemory / SQLite の両リポジトリを同一テストで検証するテスト戦略を確立
  • 71 passed / coverage 95%(リポジトリ契約テスト 36 件追加)

Closes #15

🤖 Generated with Claude Code

- SqliteNoteRepository: NoteRepositoryInterface を SQLAlchemy Core で実装
- SqliteTagRepository: TagRepositoryInterface を SQLAlchemy Core で実装
- テスト戦略: pytest.mark.parametrize で InMemory / SQLite の両実装を同一テストで検証
- リポジトリ契約テスト 16 件(Note / Tag 各 8 件 × 2 実装 = 36 テスト)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@hideyukiMORI hideyukiMORI merged commit 31c7d84 into main May 19, 2026
@hideyukiMORI hideyukiMORI deleted the feat/issue-15-sqlite-repositories branch May 19, 2026 11:28
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.

feat: SqliteNoteRepository と SqliteTagRepository を実装する

1 participant