Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/henrique-efonseca/databases-migrations
Scripts and tools for migrating data between different databases. Built with Python.
https://github.com/henrique-efonseca/databases-migrations
database-migrations nosql python sql
Last synced: about 1 month ago
JSON representation
Scripts and tools for migrating data between different databases. Built with Python.
- Host: GitHub
- URL: https://github.com/henrique-efonseca/databases-migrations
- Owner: henrique-efonseca
- License: mit
- Created: 2024-07-05T03:03:51.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-12T15:44:02.000Z (6 months ago)
- Last Synced: 2024-07-12T18:00:00.694Z (6 months ago)
- Topics: database-migrations, nosql, python, sql
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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](./mongo_to_postgres_migration/README.md) |
## Requirements
- Python 3.x
- pymongo
- psycopg2
- pyyaml
## Installation
1. Clone the repository:
```bash
git clone https://github.com/yourusername/databases-migrations.git
cd databases-migrations
```
2. Install the required packages:
```bash
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 :
```bash
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](LICENSE) file for details.