ConvertCitiesFromJSONToSQL Just simple tool to convert a json to sql. the data base on repository countries-states-cities-database of dr5hn
#Prerequisites to get started#
- Clone this project
- Go to folder of project
- Run
npm install
to install all dependencies - Run
node app
ornpm start
to start - Results will be presented in the directory
./OutputFile/FILE xxxxxx
#By default,
- Each file will contain less than or equal 6000 cities (24 files).
- If you want to change this behavior, please go to the code ./app.js and change the constant NUMBER_RECORDS (line 5)
- The output folder is:
./OutputFile/FILE YYYYMMDDHHmmss
- If you want to change this behavior, please go to the code ./app.js and change the constant FOLDER_NAME (line 6 and line 37)
- The output file name is:
./OutputFile/FILE YYYYMMDDHHmmss/cities_sql_${number}.sql
- If you want to change this behavior, please go to the code ./app.js and change the file name at line 75
Resource: https://github.com/dr5hn/countries-states-cities-database/blob/master/cities.json