RepositoryGo
GO

golang-migrate/migrate

Database migrations. CLI and Golang library.

19.0ksao
1.7kfork
316issue
6lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: migration

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: cassandra

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: migrations

#1 Repository Của Tuần

🛠️ migrate: Công cụ di chuyển CSDL bằng Go, đủ mọi nền tảng

Di chuyển cơ sở dữ liệu an toàn, nhẹ, hỗ trợ ván chuyển (CLI) và thư viện Go.

migrate (golang-migrate/migrate) là công cụ di chuyển cơ sở dữ liệu được viết bằng ngôn ngữ Go. Dự án cho phép đọc các migration từ nhiều nguồn khác nhau và áp dụng theo đúng thứ tự vào cơ sở dữ liệu đích. migrate tách logic chính ra và giữ các driver nhẹ nhàng, không tự động sửa lỗi người dùng mà sẽ dừng lại khi có vấn đề.

✨ Điểm nổi bật

  • Hỗ trợ nhiều CSDL: PostgreSQL, MySQL, SQLite, MongoDB, Neo4j, Cassandra, SQL Server, CockroachDB, ClickHouse...
  • Đọc migration từ nhiều nguồn: Filesystem, AWS S3, Google Cloud Storage, GitHub, GitLab, Bitbucket...
  • CLI đơn giản: Không cần file cấu hình, không tìm kiếm đường dẫn, xử lý Ctrl+C tốt.
  • Dùng thư viện Go: API ổn định, hỗ trợ graceful stop qua GracefulStop chan bool, an toàn luồng (thread-safe).
  • Hiệu năng thấp: Sử dụng io.Reader nội bộ, tiêu tốn ít bộ nhớ.
  • Driver không tự động sửa lỗi: Khi có lỗi, dừng lại ngay để tránh hỏng CSDL.

💡 Vì sao đáng chú ý

migrate khác với các công cụ khác ở chỗ tách biệt rõ ràng giữa logic điều phối và driver cơ sở dữ liệu. Điều này giúp các driver nhẹ và dễ bảduy trì, đồng thời migrate là trung tâm kiểm soát toàn bộ quy trình di chuyển một cách an toàn. Phù hợp với cả dự án nhỏ lẫn lớn, từ CLI nhanh đến tích hợp sâu trong ứng dụng Go.


#DatabaseMigration #GoLang #DevOps #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryGo
pressly/goose

A database migration tool. Supports SQL migrations and Go functions.

11.7k
Nov 12, 2026
RepositoryGo
mattes/migrate

Database migrations. CLI and Golang library.

2.3k
Jun 16, 2018
RepositoryGo
avelino/awesome-go

A curated list of awesome Go frameworks, libraries and software

195.4k
Nov 22, 2026
RepositoryGo
ollama/ollama

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

187.9k
Nov 22, 2026
RepositoryJava
dbeaver/dbeaver

Free universal database tool and SQL client

52.4k
Nov 16, 2026
RepositoryTypeScript
directus/directus

The flexible backend for all your projects 🐰 Turn your DB into a headless CMS, admin panels, or apps with a custom UI, instant APIs, auth & more.

38.6k
Nov 19, 2026
RepositoryTypeScript
typeorm/typeorm

TypeScript & JavaScript ORM for Node.js — supports PostgreSQL, MySQL, MariaDB, SQLite, SQL Server, Oracle, and more.

36.7k
Nov 17, 2026
RepositoryTypeScript
drizzle-team/drizzle-orm

ORM

36.3k
Nov 20, 2026
RepositoryRust
transact-rs/sqlx

🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite.

17.7k
Nov 10, 2026