- Downloads latest archive
GeoLite2-(Country|City)-CSV_%Date%.zip
using MaxMind API https://www.maxmind.com/ by free license key - Converts files
GeoLite2-(Country|City)-Locations-%LocaleCode%.csv, GeoLite2-(Country|City)-Blocks-(IPv4|IPv6).csv
to SQL DDL/DML - Builds archive
maxmind-geoip2-csv2sql.zip
with scripts splitted per N megabytes, using template engine (Example: If MySQL servermax_allowed_packet
parameter is too small - 64 MB by default) - Appends emoji country flags ๐ฆ๐ฉ ๐ฆ๐ช ๐ฆ๐ซ ๐ฆ๐ฌ ๐ฆ๐ฎ ๐ฆ๐ฑ ๐ฆ๐ฒ ๐ฆ๐ด ๐ฆ๐ถ ๐ฆ๐ท ๐ฆ๐ธ ๐ฆ๐น ๐ฆ๐บ ๐ฆ๐ผ ๐ฆ๐ฝ ๐ฆ๐ฟ ๐ง๐ฆ ๐ง๐ง ๐ง๐ฉ ๐ง๐ช ๐ง๐ซ ๐ง๐ฌ ๐ง๐ญ ๐ง๐ฎ ๐ง๐ฏ ๐ง๐ฑ ๐ง๐ฒ ๐ง๐ณ ๐ง๐ด ๐ง๐ถ ๐ง๐ท ๐ง๐ธ ๐ง๐น ๐ง๐ป ๐ง๐ผ ๐ง๐พ...
- Supports MaxMind edition IDs:
GeoLite2-Country-CSV, GeoLite2-City-CSV
;IPv4, IPv6
; Locations locale codes:en, ru, de, es, fr, ja, pt-BR, zh-CN
- Provides template-ready configuration files for
MySQL 8/PostgreSQL 13/Microsoft SQL Server 2019
and template engine with simple syntax for build DDL/DML. For custom DBMS, you can write a template yourself. - Win/Unix distribution
- Java 11+ at adoptopenjdk.net or github.com/raphw/raphw.github.io or oracle.com/java
- Requirements:
- Gradle 5.4+
- With tests:
- gradlew.bat build
- Without tests:
- gradlew.bat build -x test