Skip to content

About

No description, website, or topics provided.

Resources

Stars

7 stars

Watchers

1 watching

Forks

Repository files navigation

Mammoth Server Logo

🐘 Mammoth Server

Mammoth Server is a lightweight service written in Go for database schema comparison and migration script generation. Ideal for teams looking to automate schema versioning and evolution with control, security, and ease.

🚀 Features

  • 🔍 Comparison between two database schemas (source and target)
  • 🧠 Detection of differences in:
    • Tables (added/removed)
    • Columns (name, type, nullability, primary key)
    • Indexes
    • Foreign keys
  • 🛠 Automatic generation of migration scripts (DDL)
  • 🌐 RESTful API with endpoints for integration
  • 📦 Current support: PostgreSQL (MySQL coming soon)

📦 Installation

git clone https://github.com/Tsarbomba69-com/mammoth.server.git
cd mammoth.server

# Create .env file with your configuration
cat > .env <<EOL
DB_HOST=localhost
DB_USER=postgres
DB_PASSWORD=postgres
DB_NAME=mammoth
DB_PORT=5432
APP_PORT=8080
ENCRYPTION_KEY=your-encryption-key-that-its-32-characters-long
EOL

# (Optional) Start the database service
docker compose -f docker-dev-compose.yml --env-file .env up -d --build
go build -o mammoth

🧪 Quick Start

./mammoth

📚 Further Documentation

For a detailed overview of the system's design, architecture, and component interactions, please refer to the Architecture Documentation.

📝 Work in Progress

To see planned features, enhancements, and development priorities, check out the TODO file.

About

No description, website, or topics provided.

Resources

Stars

7 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages