Skip to content

Commit 4feb9f0

Browse files
📦 Export database formats - 14th Oct 2025 (#1153)
✅ All export formats completed successfully: - JSON/XML/YAML/CSV: Structured data exports - MySQL/PostgreSQL: SQL dump exports - SQLite: Database file exports - SQL Server/MongoDB: Alternative format exports 📊 Total records: 250 countries, 5000 states, 150874 cities Signed-off-by: Darshan Gada <gadadarshan@gmail.com> Co-authored-by: dr5hn <6929121+dr5hn@users.noreply.github.com>
1 parent c0b0379 commit 4feb9f0

37 files changed

+387
-123
lines changed

bin/db/schema.sql

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ DROP TABLE IF EXISTS `countries`;
1919
DROP TABLE IF EXISTS `subregions`;
2020
DROP TABLE IF EXISTS `regions`;
2121

22-
-- MySQL dump 10.13 Distrib 9.4.0, for macos15.4 (arm64)
22+
-- MySQL dump 10.13 Distrib 8.0.43, for Linux (x86_64)
2323
--
2424
-- Host: localhost Database: world
2525
-- ------------------------------------------------------
26-
-- Server version 9.3.0
26+
-- Server version 8.0.43-0ubuntu0.24.04.2
2727

2828
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
2929
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@@ -145,11 +145,11 @@ CREATE TABLE `states` (
145145
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
146146
`flag` tinyint(1) NOT NULL DEFAULT '1',
147147
`wikiDataId` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Rapid API GeoDB Cities',
148-
`population` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
148+
`population` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
149149
PRIMARY KEY (`id`),
150150
KEY `country_region` (`country_id`),
151151
CONSTRAINT `country_region_final` FOREIGN KEY (`country_id`) REFERENCES `countries` (`id`)
152-
) ENGINE=InnoDB AUTO_INCREMENT=5465 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=COMPACT;
152+
) ENGINE=InnoDB AUTO_INCREMENT=5467 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=COMPACT;
153153
/*!40101 SET character_set_client = @saved_cs_client */;
154154

155155
--
@@ -191,6 +191,6 @@ CREATE TABLE `cities` (
191191
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
192192
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
193193

194-
-- Dump completed on 2025-10-14 13:19:18
194+
-- Dump completed on 2025-10-14 15:52:09
195195

196196
SET FOREIGN_KEY_CHECKS=1;

contributions/cities/CL.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11099,4 +11099,4 @@
1109911099
"flag": 1,
1110011100
"wikiDataId": "Q3841"
1110111101
}
11102-
]
11102+
]

contributions/cities/FI.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16168,4 +16168,4 @@
1616816168
"flag": 1,
1616916169
"wikiDataId": "Q252873"
1617016170
}
16171-
]
16171+
]

contributions/states/states.json

Lines changed: 85 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -461,88 +461,6 @@
461461
"wikiDataId": "Q3624",
462462
"population": null
463463
},
464-
{
465-
"name": "Sidama",
466-
"country_id": 70,
467-
"country_code": "ET",
468-
"fips_code": null,
469-
"iso2": "SI",
470-
"iso3166_2": "ET-SI",
471-
"type": "region",
472-
"level": 1,
473-
"parent_id": null,
474-
"native": "ሲዳማ",
475-
"latitude": "6.50000000",
476-
"longitude": "38.50000000",
477-
"timezone": "Africa/Addis_Ababa",
478-
"translations": {
479-
"br": "Sidama",
480-
"ko": "시다마",
481-
"pt-BR": "Sidama",
482-
"pt": "Sidama",
483-
"nl": "Sidama",
484-
"hr": "Sidama",
485-
"fa": "سیداما",
486-
"de": "Sidama",
487-
"es": "Sidama",
488-
"fr": "Sidama",
489-
"ja": "シダマ",
490-
"it": "Sidama",
491-
"zh-CN": "锡达马",
492-
"tr": "Sidama",
493-
"ru": "Сидама",
494-
"uk": "Сідама",
495-
"pl": "Sidama",
496-
"hi": "सिदामा",
497-
"ar": "سيداما"
498-
},
499-
"created_at": "2025-10-14T13:41:27",
500-
"updated_at": "2025-10-14T13:41:27",
501-
"flag": 1,
502-
"wikiDataId": "Q30107894",
503-
"population": null
504-
},
505-
{
506-
"name": "Southwest Ethiopia Peoples",
507-
"country_id": 70,
508-
"country_code": "ET",
509-
"fips_code": null,
510-
"iso2": "SW",
511-
"iso3166_2": "ET-SW",
512-
"type": "region",
513-
"level": 1,
514-
"parent_id": null,
515-
"native": "ደቡብ ምዕራብ የኢትዮጵያ ሕዝቦች",
516-
"latitude": "7.30000000",
517-
"longitude": "36.20000000",
518-
"timezone": "Africa/Addis_Ababa",
519-
"translations": {
520-
"br": "Rannvro poblañsoù mervent kornôg Etiopia",
521-
"ko": "남서부 에티오피아 민족",
522-
"pt-BR": "Povos do Sudoeste da Etiópia",
523-
"pt": "Povos do Sudoeste da Etiópia",
524-
"nl": "Zuidwest-Ethiopische volkeren",
525-
"hr": "Narodi jugozapadne Etiopije",
526-
"fa": "مردمان جنوب غربی اتیوپی",
527-
"de": "Südwest-Äthiopien-Völker",
528-
"es": "Pueblos del suroeste de Etiopía",
529-
"fr": "Peuples du sud-ouest de l'Éthiopie",
530-
"ja": "南西エチオピア諸民族",
531-
"it": "Popoli dell'Etiopia sud-occidentale",
532-
"zh-CN": "埃塞俄比亚西南人民",
533-
"tr": "Güneybatı Etiyopya Halkları",
534-
"ru": "Народы Юго-Западной Эфиопии",
535-
"uk": "Народи Південно-Західної Ефіопії",
536-
"pl": "Ludy południowo-zachodniej Etiopii",
537-
"hi": "दक्षिण-पश्चिम इथियोपिया के लोग",
538-
"ar": "شعوب جنوب غرب إثيوبيا"
539-
},
540-
"created_at": "2025-10-14T13:41:27",
541-
"updated_at": "2025-10-14T13:41:27",
542-
"flag": 1,
543-
"wikiDataId": "Q105085548",
544-
"population": null
545-
},
546464
{
547465
"id": 12,
548466
"name": "Petnjica",
@@ -209996,5 +209914,89 @@
209996209914
"flag": 1,
209997209915
"wikiDataId": "Q173620",
209998209916
"population": null
209917+
},
209918+
{
209919+
"id": 5465,
209920+
"name": "Sidama",
209921+
"country_id": 70,
209922+
"country_code": "ET",
209923+
"fips_code": null,
209924+
"iso2": "SI",
209925+
"iso3166_2": "ET-SI",
209926+
"type": "region",
209927+
"level": 1,
209928+
"parent_id": null,
209929+
"native": "ሲዳማ",
209930+
"latitude": "6.50000000",
209931+
"longitude": "38.50000000",
209932+
"timezone": "Africa/Addis_Ababa",
209933+
"translations": {
209934+
"br": "Sidama",
209935+
"ko": "시다마",
209936+
"pt-BR": "Sidama",
209937+
"pt": "Sidama",
209938+
"nl": "Sidama",
209939+
"hr": "Sidama",
209940+
"fa": "سیداما",
209941+
"de": "Sidama",
209942+
"es": "Sidama",
209943+
"fr": "Sidama",
209944+
"ja": "シダマ",
209945+
"it": "Sidama",
209946+
"zh-CN": "锡达马",
209947+
"tr": "Sidama",
209948+
"ru": "Сидама",
209949+
"uk": "Сідама",
209950+
"pl": "Sidama",
209951+
"hi": "सिदामा",
209952+
"ar": "سيداما"
209953+
},
209954+
"created_at": "2025-10-14T13:41:27",
209955+
"updated_at": "2025-10-14T13:41:27",
209956+
"flag": 1,
209957+
"wikiDataId": "Q30107894",
209958+
"population": null
209959+
},
209960+
{
209961+
"id": 5466,
209962+
"name": "Southwest Ethiopia Peoples",
209963+
"country_id": 70,
209964+
"country_code": "ET",
209965+
"fips_code": null,
209966+
"iso2": "SW",
209967+
"iso3166_2": "ET-SW",
209968+
"type": "region",
209969+
"level": 1,
209970+
"parent_id": null,
209971+
"native": "ደቡብ ምዕራብ የኢትዮጵያ ሕዝቦች",
209972+
"latitude": "7.30000000",
209973+
"longitude": "36.20000000",
209974+
"timezone": "Africa/Addis_Ababa",
209975+
"translations": {
209976+
"br": "Rannvro poblañsoù mervent kornôg Etiopia",
209977+
"ko": "남서부 에티오피아 민족",
209978+
"pt-BR": "Povos do Sudoeste da Etiópia",
209979+
"pt": "Povos do Sudoeste da Etiópia",
209980+
"nl": "Zuidwest-Ethiopische volkeren",
209981+
"hr": "Narodi jugozapadne Etiopije",
209982+
"fa": "مردمان جنوب غربی اتیوپی",
209983+
"de": "Südwest-Äthiopien-Völker",
209984+
"es": "Pueblos del suroeste de Etiopía",
209985+
"fr": "Peuples du sud-ouest de l'Éthiopie",
209986+
"ja": "南西エチオピア諸民族",
209987+
"it": "Popoli dell'Etiopia sud-occidentale",
209988+
"zh-CN": "埃塞俄比亚西南人民",
209989+
"tr": "Güneybatı Etiyopya Halkları",
209990+
"ru": "Народы Юго-Западной Эфиопии",
209991+
"uk": "Народи Південно-Західної Ефіопії",
209992+
"pl": "Ludy południowo-zachodniej Etiopii",
209993+
"hi": "दक्षिण-पश्चिम इथियोपिया के लोग",
209994+
"ar": "شعوب جنوب غرب إثيوبيا"
209995+
},
209996+
"created_at": "2025-10-14T13:41:27",
209997+
"updated_at": "2025-10-14T13:41:27",
209998+
"flag": 1,
209999+
"wikiDataId": "Q105085548",
210000+
"population": null
209999210001
}
210000-
]
210002+
]

csv/states.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,8 +1101,10 @@ id,name,country_id,country_code,country_name,iso2,iso3166_2,fips_code,type,level
11011101
10,Gambela,70,ET,Ethiopia,GA,ET-GA,49,region,,,ጋምቤላ,7.81026470,34.18221720,Africa/Addis_Ababa,Q207638
11021102
7,Harari,70,ET,Ethiopia,HA,ET-HA,50,region,,,ሐረሪ,9.29055170,42.18856720,Africa/Addis_Ababa,Q1033855
11031103
5,Oromia,70,ET,Ethiopia,OR,ET-OR,51,region,,,ኦሮሚያ,7.67216440,40.02997270,Africa/Addis_Ababa,Q202107
1104+
5465,Sidama,70,ET,Ethiopia,SI,ET-SI,,region,1,,ሲዳማ,6.50000000,38.50000000,Africa/Addis_Ababa,Q30107894
11041105
2,Somali,70,ET,Ethiopia,SO,ET-SO,52,region,1,,ሶማሌ,7.26298440,43.53605310,Africa/Addis_Ababa,Q202800
11051106
1,"Southern Nations, Nationalities, and Peoples",70,ET,Ethiopia,SN,ET-SN,54,region,1,,"ደቡብ ብሔር ብሔረሰቦችና ሕዝቦች",6.51569110,36.95410700,Africa/Addis_Ababa,Q203193
1107+
5466,"Southwest Ethiopia Peoples",70,ET,Ethiopia,SW,ET-SW,,region,1,,"ደቡብ ምዕራብ የኢትዮጵያ ሕዝቦች",7.30000000,36.20000000,Africa/Addis_Ababa,Q105085548
11061108
4,Tigray,70,ET,Ethiopia,TI,ET-TI,53,region,,,"ክልል ትግራይ",13.88127300,39.12749500,Africa/Addis_Ababa,Q200127
11071109
5229,Eysturoy,72,FO,"Faroe Islands",EY,FO-EY,,region,1,,Eysturoy,62.19887040,-6.81784510,Atlantic/Faroe,Q200939
11081110
5230,"Northern Isles",72,FO,"Faroe Islands",NO,FO-NO,,region,1,,"Northern Isles",62.28056890,6.70170610,Europe/Oslo,Q1058774

csv/translations.csv.gz

399 Bytes
Binary file not shown.

json/cities.json.gz

0 Bytes
Binary file not shown.

json/countries+states+cities.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191942,6 +191942,18 @@
191942191942
}
191943191943
]
191944191944
},
191945+
{
191946+
"id": 5465,
191947+
"name": "Sidama",
191948+
"iso2": "SI",
191949+
"iso3166_2": "ET-SI",
191950+
"native": "ሲዳማ",
191951+
"latitude": "6.50000000",
191952+
"longitude": "38.50000000",
191953+
"type": "region",
191954+
"timezone": "Africa\/Addis_Ababa",
191955+
"cities": []
191956+
},
191945191957
{
191946191958
"id": 2,
191947191959
"name": "Somali",
@@ -192241,6 +192253,18 @@
192241192253
}
192242192254
]
192243192255
},
192256+
{
192257+
"id": 5466,
192258+
"name": "Southwest Ethiopia Peoples",
192259+
"iso2": "SW",
192260+
"iso3166_2": "ET-SW",
192261+
"native": "ደቡብ ምዕራብ የኢትዮጵያ ሕዝቦች",
192262+
"latitude": "7.30000000",
192263+
"longitude": "36.20000000",
192264+
"type": "region",
192265+
"timezone": "Africa\/Addis_Ababa",
192266+
"cities": []
192267+
},
192244192268
{
192245192269
"id": 4,
192246192270
"name": "Tigray",

0 commit comments

Comments
 (0)