Skip to content

henrique-efonseca/databases-migrations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Databases Migrations

Scripts and tools for migrating data between different databases. This repository currently includes a migration script for MongoDB to PostgreSQL, with plans to support more database migrations in the future.


Features

  • Easy configuration using a YAML file
  • Error handling during the migration process
  • Flexible and extensible to support multiple database types

Available Migrations

Source Database Target Database Script Reference
MongoDB PostgreSQL MongoDB to PostgreSQL Migration

Requirements

  • Python 3.x
  • pymongo
  • psycopg2
  • pyyaml

Installation

  1. Clone the repository:
    git clone https://github.com/yourusername/databases-migrations.git cd databases-migrations
  2. Install the required packages:
    pip install -r requirements.txt
  3. Configure the migration script as per the instructions in the respective migration guide.

Usage

  1. Configure the migration script as per the instructions in the respective migration guide.
  2. Run the migration script using the appropriate command. Example :
    cd mongo_to_postgres_migration python mongo_to_postgres_migration.py
  3. Verify the migration by checking the target database.

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue if you have any suggestions or improvements.


License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Scripts and tools for migrating data between different databases. Built with Python.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages