cognitom / momy

MongoDB to MySQL replication
https://www.npmjs.com/package/momy
MIT License
98 stars 37 forks source link

migrate into two database #27

Open ssuriyayuvan opened 4 years ago

ssuriyayuvan commented 4 years ago
{
    "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.

Like this :

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