I have an issue where I have multiple databases from previous projects that I would like to combine into one large database. These databases are stored in .sql files. The issue is that I only need specific columns and information and I'd like to filter out any columns that aren't the ones I need. Some of the databases are MySQL and others are Postgres..
A friend suggested I write a parser for all these files and parse each one and then add all of them to my PostgreSQL database, but I really don't know how I'd do something like this. I've tried looking for npm packages that do this for you but they just arent exactly what I'm looking for and I doubt I would be able to get very far with writing my own parser.
Could someone maybe give me a push in the right direction and maybe help out with an algorithm of doing something like this? Or maybe there's already something that does this for you..? Sorry for the odd question I'm very lost and in need of support.