cognitom / cognitom/momy

migrate into two database

Open
#27 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
97
Forks
35
PR merge metrics
No merged PRs in 30d

Description

```
{
"src": "mongodb://localhost:27017/logs",
"dist": "mysql://root:password@localhost:3306/admin",
"collections": {
"audit-logs": {
"_id": "string",
"message": "string",
"createdAt": "string",
"updatedAt": "DATE"
},
"error-logs": {
"_id": "string",
"createdAt": "DATETIME",
"message": "string",
"updatedAt": "DATETIME"
}
}
}
```
this is my momy.json file.

* Here I want to migrate more than one database. So I want to pass the dist link in array to achieve this one.

Like this :
```
"dist":["mysql://root:password@localhost:3306/admin","mysql://root:password@localhost:3306/newdb"]
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the momy.json configuration shown in the issue and locate where the dist value is read and used. Determine the migration behavior for multiple MySQL destinations; done means one configuration can target both listed databases without breaking the existing single-destination form.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, mongodb, mysql
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.