hekensway / CHGeoIP

ClickHouse GeoIP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ClickHouse GeoIP

How to install

run sh install.sh

How to use

Get country_iso_code by IPv4

SELECT dictGetString('geoip_locations', 'country_iso_code', tuple(dictGetUInt64('geoip_blocks', 'geoname_id', tuple(IPv4StringToNum('8.8.8.8'))))) as geo;

About

ClickHouse GeoIP


Languages

Language:Shell 60.2%Language:Python 33.5%Language:Makefile 6.3%