mondex

command module
v0.0.0-...-daa917c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2025 License: MIT Imports: 1 Imported by: 0

README

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/qwenode/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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL