# =============================================================================
# DB Nexus .gitignore
# =============================================================================
# 项目: https://github.com/Kirky-X/dbnexus
# 描述: 企业级 Rust 数据库抽象层
# =============================================================================

# =============================================================================
# 1. 构建产物 (Build Outputs)
# =============================================================================
target/
Cargo.lock

# =============================================================================
# 2. IDE 和编辑器 (IDE & Editors)
# =============================================================================
.idea/
.vscode/
.vscode/*
!.vscode/extensions.json
!.vscode/settings.json
.swp
*.swo
*~
. EditorConfig

# Trae AI IDE
.trae/

# =============================================================================
# 3. AI 开发工具 (AI Development Tools)
# =============================================================================
# iFlow AI 配置
.iflow/

# Claude AI 配置
.claude/

# Serena AI 配置
.serena/

# OpenCode 配置
.opencode/

# OpenSpec 规范驱动开发工具
openspec/

# =============================================================================
# Sisyphus AI 配置
.sisyphus

# AI 代理配置
AGENTS.md

# =============================================================================
# 4. 操作系统 (Operating Systems)
# =============================================================================
.DS_Store
Thumbs.db
*.lnk

# =============================================================================
# 6. 测试和覆盖率 (Testing & Coverage)
# =============================================================================
coverage/
*.profraw
*.htmlcov/
.tarpaulin/

# 测试迁移文件（临时 SQL 文件）
dbnexus/migrations/*.sql

# =============================================================================
# 7. 环境配置 (Environment & Configuration)
# =============================================================================
.env
.env.local
.env.*.local
.env.example
docker-compose.yml
docker-compose.override.yml
*.local

# =============================================================================
# 8. 日志文件 (Logs)
# =============================================================================
*.log
logs/
*.log.*

# =============================================================================
# 9. 二进制文件 (Binary Files)
# =============================================================================
*.pdb
*.dll
*.so
*.dylib
*.exe
*.app

# =============================================================================
# 10. 临时文件 (Temporary Files)
# =============================================================================
temp/
tmp/
*.tmp
*.bak
*.orig
*.rej

# =============================================================================
# 11. 缓存 (Cache)
# =============================================================================
.rustc/
cargo-cache/
.cargo/

# =============================================================================
# 12. 数据库文件 (Database Files)
# =============================================================================
*.db
*.sqlite
*.sqlite3
requirements.db

# =============================================================================
# 13. 项目特定忽略 (Project Specific)
# =============================================================================
# 内部文档（草稿、未完成的文档）
docs/prd.md
docs/task.md
docs/tdd.md
docs/test.md
docs/uat.md

# Pre-commit 日志
.git/pre-commit-*.log

# =============================================================================
# 14. 备份文件 (Backup Files)
# =============================================================================
*~
.*.swp
.*.swo
*#
.#*

# =============================================================================
# 15. Rust 特定 (Rust Specific)
# =============================================================================
# Cargo 缓存（已在上方 .cargo/ 中定义）

# =============================================================================
# 16. 文档相关 (Documentation)
# =============================================================================
*.bak
*.old
*.original

# =============================================================================
# 17. 其他 (Others)
# =============================================================================
# IDE 项目文件
*.project
*.classpath
*.settings/

# Python
__pycache__/
*.pyc
*.pyo
*.egg-info/
.eggs/
dist/
build/

# Node.js
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Linux
lost+found/

# Windows
$Recycle.Bin/
System Volume Information/

# =============================================================================
# 18. Git 内部 (Git Internal)
# =============================================================================
.gitignore.template
