Web Analytics

argon

⭐ 164 stars Vietnamese by argon-lab

🌐 Ngôn ngữ

Argon - Cỗ máy thời gian cho MongoDB 🚀

Build Status Go Report License: MIT

Homebrew npm PyPI

Du hành thời gian trong cơ sở dữ liệu MongoDB của bạn. Phân nhánh, khôi phục và thử nghiệm mà không lo lắng.

Argon là gì?

Argon mang đến cho MongoDB siêu năng lực với phân nhánh như Gitdu hành thời gian. Tạo nhánh cơ sở dữ liệu tức thì, khôi phục về bất kỳ thời điểm nào trong lịch sử và không bao giờ mất dữ liệu nữa.

🎯 Lợi ích chính

Demo nhanh

# 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"

Quy trình làm việc kiểu Git cho MongoDB

🔄 Bước 1: Nhập dữ liệu ("git clone" cho cơ sở dữ liệu)

# 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!

🧪 Bước 2: Tạo nhánh ("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 🚀

📊 Bước 3: Du hành thời gian ("git log" cho dữ liệu)

# 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

🚨 Bước 4: Khôi phục ("git reset" trong trường hợp thảm họa)

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

Crisis averted in seconds, not hours

Cách Hoạt Động

Argon chặn các thao tác trên MongoDB và ghi chúng vào Write-Ahead Log (WAL), cho phép:

Mã MongoDB hiện tại của bạn không cần thay đổi - chỉ cần thêm ENABLE_WAL=true.

Cài Đặt

# 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

Tài liệu

Cộng đồng

---

Trang bị cho MongoDB của bạn một cỗ máy thời gian. Không bao giờ mất dữ liệu nữa.

Hãy gắn sao cho chúng tôi nếu Argon đã giúp bạn!

Bắt đầu → | Dùng thử trực tiếp →

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