Repository navigation
Set up database connection with libsql - #140
Merged
Merged
Conversation
Implements DatabaseService for managing libsql database connections with user-selectable database paths via Tauri. **Implementation:** - DatabaseService accepts PathBuf parameter for flexible path selection - Automatic parent directory creation for nested paths - Database initialization with CREATE TABLE IF NOT EXISTS (idempotent) - Pure JSON schema: nodes + node_mentions tables only - SQLite configuration: WAL mode, foreign keys, JSON operators enabled - Comprehensive error handling with custom DatabaseError types - Core indexes created for optimal query performance **Testing:** - 8 integration tests covering all critical functionality - Tests use tempfile for isolated test databases - Verifies table creation, index creation, and configuration - Tests concurrent connections and idempotent initialization 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Add explicit constraints to pragmatic-code-review command that the reviewer agent MUST NOT merge PRs. The agent's sole responsibility is to provide the code review report. Reasoning: - Separation of concerns: Review ≠ Approval ≠ Merge - Allows for review iterations and fixes before merge - Maintains explicit human control over merge decisions - Prevents unexpected/confusing auto-merge behavior The user will decide whether and when to merge based on review findings.
Replace origin/HEAD references with origin/main...HEAD for git commands since origin/HEAD is not configured in this repository. This fixes the 'ambiguous argument' error when running /pragmatic-code-review.
- Fix redundant closure in database.rs:269 - Fix assignment pattern in models/time.rs:88 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Collaborator
Author
Process Violation AcknowledgmentI acknowledge that this PR was initially created with clippy linting errors, which violates our quality gate requirements. What happened:
Corrective actions taken:
Process improvements:
Ready for re-review. |
Address code review feedback by implementing suggested improvements: **Code Quality Improvements:** - Extract PRAGMA execution to helper method (execute_pragma) - Reduces code duplication and improves readability - Encapsulates the prepare().query() pattern with clear documentation - Standardize index creation error messages - Include index name in all error messages for consistency - Format: "Failed to create index 'idx_name': error" **Documentation:** - Add cross-reference to schema documentation - Points to /docs/architecture/business-logic/database-schema.md - Helps developers find authoritative schema specs **Formatting:** - Run cargo fmt to ensure consistent code style - Fix clippy warnings (redundant closure removed) All tests passing (8/8). No functional changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
malibio
added a commit
that referenced
this pull request
Feb 4, 2026
* Set up database connection with libsql (addresses #101) Implements DatabaseService for managing libsql database connections with user-selectable database paths via Tauri. **Implementation:** - DatabaseService accepts PathBuf parameter for flexible path selection - Automatic parent directory creation for nested paths - Database initialization with CREATE TABLE IF NOT EXISTS (idempotent) - Pure JSON schema: nodes + node_mentions tables only - SQLite configuration: WAL mode, foreign keys, JSON operators enabled - Comprehensive error handling with custom DatabaseError types - Core indexes created for optimal query performance **Testing:** - 8 integration tests covering all critical functionality - Tests use tempfile for isolated test databases - Verifies table creation, index creation, and configuration - Tests concurrent connections and idempotent initialization 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * fix: prevent code reviewer from auto-merging PRs Add explicit constraints to pragmatic-code-review command that the reviewer agent MUST NOT merge PRs. The agent's sole responsibility is to provide the code review report. Reasoning: - Separation of concerns: Review ≠ Approval ≠ Merge - Allows for review iterations and fixes before merge - Maintains explicit human control over merge decisions - Prevents unexpected/confusing auto-merge behavior The user will decide whether and when to merge based on review findings. * fix: use origin/main instead of origin/HEAD in code review command Replace origin/HEAD references with origin/main...HEAD for git commands since origin/HEAD is not configured in this repository. This fixes the 'ambiguous argument' error when running /pragmatic-code-review. * Fix clippy linting errors (addresses #101) - Fix redundant closure in database.rs:269 - Fix assignment pattern in models/time.rs:88 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * refactor: apply code review improvements to DatabaseService Address code review feedback by implementing suggested improvements: **Code Quality Improvements:** - Extract PRAGMA execution to helper method (execute_pragma) - Reduces code duplication and improves readability - Encapsulates the prepare().query() pattern with clear documentation - Standardize index creation error messages - Include index name in all error messages for consistency - Format: "Failed to create index 'idx_name': error" **Documentation:** - Add cross-reference to schema documentation - Points to /docs/architecture/business-logic/database-schema.md - Helps developers find authoritative schema specs **Formatting:** - Run cargo fmt to ensure consistent code style - Fix clippy warnings (redundant closure removed) All tests passing (8/8). No functional changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
malibio
added a commit
that referenced
this pull request
Feb 5, 2026
* Set up database connection with libsql (addresses #101) Implements DatabaseService for managing libsql database connections with user-selectable database paths via Tauri. **Implementation:** - DatabaseService accepts PathBuf parameter for flexible path selection - Automatic parent directory creation for nested paths - Database initialization with CREATE TABLE IF NOT EXISTS (idempotent) - Pure JSON schema: nodes + node_mentions tables only - SQLite configuration: WAL mode, foreign keys, JSON operators enabled - Comprehensive error handling with custom DatabaseError types - Core indexes created for optimal query performance **Testing:** - 8 integration tests covering all critical functionality - Tests use tempfile for isolated test databases - Verifies table creation, index creation, and configuration - Tests concurrent connections and idempotent initialization 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * fix: prevent code reviewer from auto-merging PRs Add explicit constraints to pragmatic-code-review command that the reviewer agent MUST NOT merge PRs. The agent's sole responsibility is to provide the code review report. Reasoning: - Separation of concerns: Review ≠ Approval ≠ Merge - Allows for review iterations and fixes before merge - Maintains explicit human control over merge decisions - Prevents unexpected/confusing auto-merge behavior The user will decide whether and when to merge based on review findings. * fix: use origin/main instead of origin/HEAD in code review command Replace origin/HEAD references with origin/main...HEAD for git commands since origin/HEAD is not configured in this repository. This fixes the 'ambiguous argument' error when running /pragmatic-code-review. * Fix clippy linting errors (addresses #101) - Fix redundant closure in database.rs:269 - Fix assignment pattern in models/time.rs:88 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * refactor: apply code review improvements to DatabaseService Address code review feedback by implementing suggested improvements: **Code Quality Improvements:** - Extract PRAGMA execution to helper method (execute_pragma) - Reduces code duplication and improves readability - Encapsulates the prepare().query() pattern with clear documentation - Standardize index creation error messages - Include index name in all error messages for consistency - Format: "Failed to create index 'idx_name': error" **Documentation:** - Add cross-reference to schema documentation - Points to /docs/architecture/business-logic/database-schema.md - Helps developers find authoritative schema specs **Formatting:** - Run cargo fmt to ensure consistent code style - Fix clippy warnings (redundant closure removed) All tests passing (8/8). No functional changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
malibio
added a commit
that referenced
this pull request
Feb 26, 2026
* Set up database connection with libsql (addresses #101) Implements DatabaseService for managing libsql database connections with user-selectable database paths via Tauri. **Implementation:** - DatabaseService accepts PathBuf parameter for flexible path selection - Automatic parent directory creation for nested paths - Database initialization with CREATE TABLE IF NOT EXISTS (idempotent) - Pure JSON schema: nodes + node_mentions tables only - SQLite configuration: WAL mode, foreign keys, JSON operators enabled - Comprehensive error handling with custom DatabaseError types - Core indexes created for optimal query performance **Testing:** - 8 integration tests covering all critical functionality - Tests use tempfile for isolated test databases - Verifies table creation, index creation, and configuration - Tests concurrent connections and idempotent initialization 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * fix: prevent code reviewer from auto-merging PRs Add explicit constraints to pragmatic-code-review command that the reviewer agent MUST NOT merge PRs. The agent's sole responsibility is to provide the code review report. Reasoning: - Separation of concerns: Review ≠ Approval ≠ Merge - Allows for review iterations and fixes before merge - Maintains explicit human control over merge decisions - Prevents unexpected/confusing auto-merge behavior The user will decide whether and when to merge based on review findings. * fix: use origin/main instead of origin/HEAD in code review command Replace origin/HEAD references with origin/main...HEAD for git commands since origin/HEAD is not configured in this repository. This fixes the 'ambiguous argument' error when running /pragmatic-code-review. * Fix clippy linting errors (addresses #101) - Fix redundant closure in database.rs:269 - Fix assignment pattern in models/time.rs:88 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * refactor: apply code review improvements to DatabaseService Address code review feedback by implementing suggested improvements: **Code Quality Improvements:** - Extract PRAGMA execution to helper method (execute_pragma) - Reduces code duplication and improves readability - Encapsulates the prepare().query() pattern with clear documentation - Standardize index creation error messages - Include index name in all error messages for consistency - Format: "Failed to create index 'idx_name': error" **Documentation:** - Add cross-reference to schema documentation - Points to /docs/architecture/business-logic/database-schema.md - Helps developers find authoritative schema specs **Formatting:** - Run cargo fmt to ensure consistent code style - Fix clippy warnings (redundant closure removed) All tests passing (8/8). No functional changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #101