{"repo":"alxnkt/mongo-to-postgres","free":true,"listed":false,"github":"https://github.com/alxnkt/mongo-to-postgres","clone":"git clone https://github.com/alxnkt/mongo-to-postgres.git","description":"Simple data migration from MongoDb to PostgreSQL","language":"JavaScript","stars":17,"topics":["mongo","postgres","migration","database"],"license":"MIT","category":"databases-storage","readme_excerpt":"Simple data migration from MongoDb to PostgreSQL This tiny tool is used for easy data migration from MongoDb database to PostgreSQL database. It uses appropriate ORMs: mongoose and knex respectively to transfer data. Requirements Node.js 13+ MongoDb 4+ PostgreSQL 12+ Usage 1. Install package $ yarn add mongo-to-postgres OR $ npm i mongo-to-postgres 2. Create file migrate.js , set migration settings in it IMPORTANT NOTES 1. You MUST respect the order of the tables. Tables with foreign keys MUST BE placed AFTER tables, from which these keys are. 2. This sample assumes that you have postgres database with schema, containing empty tables. 3. Set package.json \"type\" field 4. Run migration $ node migrate.js","default_branch":null,"files":null,"tree":[],"storefront":"/r/alxnkt","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/alxnkt/mongo-to-postgres/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}