Web Analytics

argon

⭐ 164 stars Thai by argon-lab

🌐 ภาษา

Argon - เครื่องย้อนเวลาสำหรับ MongoDB 🚀

Build Status Go Report License: MIT

Homebrew npm PyPI

เดินทางข้ามเวลาในฐานข้อมูล MongoDB ของคุณ สร้าง branch กู้คืน และทดลองได้โดยไม่ต้องกลัว

Argon คืออะไร?

Argon มอบพลังพิเศษให้กับ MongoDB ด้วย การแตก branch แบบ Git และ ย้อนเวลา สร้าง branch ฐานข้อมูลได้ทันที กู้คืนข้อมูลไปยังจุดใดก็ได้ในอดีต และไม่สูญเสียข้อมูลอีกต่อไป

🎯 คุณสมบัติเด่น

ตัวอย่างการใช้งานอย่างรวดเร็ว

# Install
brew install argon-lab/tap/argonctl    # macOS
npm install -g argonctl                 # Cross-platform

Step 1: Import your existing MongoDB (like "git clone")

argon import database --uri "mongodb://localhost:27017" --database myapp --project myapp

✅ Your data now has time travel capabilities!

Step 2: Use Argon like Git for your database

argon branches create test-env # Branch like "git checkout -b" argon time-travel query --project myapp --branch main --lsn 1000

Step 3: Disaster recovery made simple

argon restore preview --time "1 hour ago" argon restore reset --time "before disaster"

เวิร์กโฟลว์แบบ Git สำหรับ MongoDB

🔄 ขั้นตอนที่ 1: นำเข้า ("git clone" สำหรับฐานข้อมูล)

# Bring your existing MongoDB into Argon
argon import preview --uri "mongodb://localhost:27017" --database myapp
argon import database --uri "mongodb://localhost:27017" --database myapp --project myapp

✅ Your existing data now has time travel capabilities!

🧪 ขั้นตอนที่ 2: สร้างสาขา ("git checkout -b")

# Create branches for testing, staging, experiments
argon branches create staging --project myapp
argon branches create experiment-v2 --project myapp

Full database copies created instantly 🚀

📊 ขั้นตอนที่ 3: เดินทางข้ามเวลา ("git log" สำหรับข้อมูล)

# See your data's history
argon time-travel info --project myapp --branch main
argon time-travel query --project myapp --branch main --lsn 1000

Compare data across time like Git commits

🚨 ขั้นตอนที่ 4: กู้คืน ("git reset" สำหรับเหตุการณ์ร้ายแรง)

# "Someone deleted all users!"
argon restore reset --time "5 minutes ago"

Crisis averted in seconds, not hours

วิธีการทำงาน

Argon สกัดกั้นการทำงานของ MongoDB และบันทึกลงใน Write-Ahead Log (WAL) เพื่อให้สามารถ:

โค้ด MongoDB เดิมของคุณสามารถใช้งานได้โดยไม่ต้องเปลี่ยนแปลง - เพียงแค่เพิ่ม ENABLE_WAL=true

การติดตั้ง

# CLI
brew install argon-lab/tap/argonctl    # macOS
npm install -g argonctl                 # Node.js
pip install argon-mongodb               # Python SDK

From Source

git clone https://github.com/argon-lab/argon cd argon/cli && go build -o argon

เอกสารประกอบ

ชุมชน

---

ให้ MongoDB ของคุณย้อนเวลากลับไปได้ ไม่ต้องสูญเสียข้อมูลอีกต่อไป

กด Star ให้เรา หาก Argon ช่วยงานคุณ!

เริ่มต้นใช้งาน → | ทดลองใช้งานจริง →

--- Tranlated By Open Ai Tx | Last indexed: 2025-07-21 ---