manage_database
Back up, restore, audit, merge, and diff physical SQLite databases and Git branch state to resolve corruption and cross-branch conflicts.
Instructions
Physical SQLite database maintenance, backups, integrity checks, and Git VCS state sync (actions: backup, restore, audit, merge, branch_diff, branch_merge). Use manage_database instead of manage_snapshots when managing physical SQLite files, cross-branch merges, or database corruption audits.
Returns database backup path, foreign key integrity report, branch merge conflict report, or diff.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Force overwrite during restore or merge. | |
| action | Yes | The database administration or VCS sync action to execute: backup, restore, audit, merge, branch_diff, branch_merge. | |
| project | No | Target project name or slug. | |
| backupPath | No | Source backup file path for restore. | |
| outputPath | No | Target destination file path for backup. | |
| sourcePath | No | Source SQLite database path for merge. | |
| source_branch | No | Source git branch for branch_merge. | |
| target_branch | No | Target git branch to compare or merge against. | |
| resolution_strategy | No | Conflict resolution strategy for branch_merge. |