Skip to content
/ mondex Public

Mondex simplifies MongoDB index management with migration support via golang-migrate.

License

Notifications You must be signed in to change notification settings

ltman/mondex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mondex: MongoDB Index Managing Tools

Mondex is a MongoDB index managing tool built on top of golang-migrate. It provides a simple and efficient way to manage MongoDB indexes through migration scripts.

Features

  • Seamless Integration: Integrates with golang-migrate to apply migrations to MongoDB.
  • Easy Setup: Quickly set up and manage your MongoDB indexes.
  • Structured Logging: Provides detailed and structured logging for better traceability.

Installation

go install github.com/ltman/mondex@latest

Usage

Configuration

Create a mondex.yml configuration file in your project root:

mongo_uri: "mongodb://localhost:27017"
database_name: "your_database"
schema_file_path: "path/to/schema/file"
migration_dir: "path/to/migrations"
log_level: "info"

Commands

Apply Migrations

Apply current migrations to the database:

mondex apply

Generate Migration Scripts

Generate migration scripts based on schema differences:

mondex diff your_migration_name

Format Schema File

Format the database schema file:

mondex format

Inspect Database Schema

Inspect and output the current database schema:

mondex inspect

Help

Identify how to use mondex

mondex help

About

Mondex simplifies MongoDB index management with migration support via golang-migrate.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages