Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding script to load countries to mysql #46

Closed
wants to merge 1 commit into from

Conversation

doron2402
Copy link

we should add script that load the json to every database out there in different languages such as: node, ruby, php, java, etc..

@oscerd
Copy link
Contributor

oscerd commented Apr 22, 2014

I think this is a very good idea 👍

@doron2402
Copy link
Author

I've added node.js support to mysql.
let me know if one of you guys need a mongodb support.

@tonytamps
Copy link

I don't really agree with this.
Writing a once-off script for an import seems to be against the idea of the project.

How are you meant to get updates if you imported into another database?
Even if you still want to import them, why pollute the clean solution with language and database specific code?

Right now, everything is technology agnostic.

If you want a solution for NodeJS, write a module that imports the JSON and presents it as an array to the consumer that requires it.

@herrjemand
Copy link
Contributor

I agree with @tonytamps. The idea of a project is to provide the data. Those who needs to process, will find a way to do it.

@mledoze
Copy link
Owner

mledoze commented Aug 4, 2014

That's right, it is even easier now since this project is available as an npm module [1].

[1] https://www.npmjs.org/package/world-countries

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants