mbto / maxmind-geoip2-csv2sql-converter

Tool for convertering MaxMind GeoLite2 CSV to SQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Features:

  • 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 server max_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

Requirements:

Examples:

Downloads:

Usage:

Compile & Build:

  • Requirements:
    • Gradle 5.4+
  • With tests:
    • gradlew.bat build
  • Without tests:
    • gradlew.bat build -x test