{"id":14956697,"url":"https://github.com/ashleydavis/sql-to-mongodb","last_synced_at":"2025-10-24T10:30:51.097Z","repository":{"id":46655100,"uuid":"119637846","full_name":"ashleydavis/sql-to-mongodb","owner":"ashleydavis","description":"A Node.js script to convert an SQL table to a MongoDB database.","archived":false,"fork":false,"pushed_at":"2021-10-02T01:23:40.000Z","size":8,"stargazers_count":40,"open_issues_count":0,"forks_count":15,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-29T09:44:55.033Z","etag":null,"topics":["convert-sql-to-mongodb","data","database","javascript","mongodb","mongodb-database","nodejs","nosql","sql","sql-table"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ashleydavis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-31T05:09:15.000Z","updated_at":"2024-11-09T19:21:59.000Z","dependencies_parsed_at":"2022-08-29T15:10:42.545Z","dependency_job_id":null,"html_url":"https://github.com/ashleydavis/sql-to-mongodb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashleydavis%2Fsql-to-mongodb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashleydavis%2Fsql-to-mongodb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashleydavis%2Fsql-to-mongodb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashleydavis%2Fsql-to-mongodb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashleydavis","download_url":"https://codeload.github.com/ashleydavis/sql-to-mongodb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237950791,"owners_count":19392666,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["convert-sql-to-mongodb","data","database","javascript","mongodb","mongodb-database","nodejs","nosql","sql","sql-table"],"created_at":"2024-09-24T13:13:22.088Z","updated_at":"2025-10-24T10:30:50.713Z","avatar_url":"https://github.com/ashleydavis.png","language":"JavaScript","readme":"# sql-to-mongodb\n\nA Node.js script to convert an SQL database to a MongoDB database.\n\nIf you like this project, please star this repo and [support my work](https://www.codecapers.com.au/about#support-my-work)\n\nFeatures\n\n- Automatically detects the primary key for each SQL table and copys it to the MongoDB _id field.\n- Optionally remaps replaces and primary keys with MongoDB ObjectId's and remaps foreign keys.\n- Automatically copies across types correctly (eg numbers and dates).\n\n## Usage\n\n### Install \n\nFirst install dependencies:\n\n    npm install\n\n### Setup\n\nEdit config.js. Add the connection string for your SQL database. Modify the MongoDB connection string if necessary. Set the name of your target database in MongoDB.\n\n### Run\n\n    node index.js\n\n### Wait\n\nIt might take some time to replicate!\n\n## More!\n\nFind more like this in my new book [Data Wrangling with JavaScript](http://bit.ly/2t2cJu2)\n    \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashleydavis%2Fsql-to-mongodb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashleydavis%2Fsql-to-mongodb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashleydavis%2Fsql-to-mongodb/lists"}