package mmdb

  1. Overview
  2. Docs

Module Mmdb.StringSource

Interface for retrieving string values from the database

include VALUE_TYPE with type answer = string
Sourcemodule Query : sig ... end
Sourcetype answer = string

The type of answer returned by a query

Sourceval from_db : t -> Ip.t -> Query.t -> (answer option, Fetch_error.t) result

Fetches a value directly from the database

Sourceval from_ip_data : ip_data -> Query.t -> (answer option, Fetch_value_error.t) result

Fetches a value from an ip_data reference

Sourceval country_code : Query.t

Query that determines the code of the country where the IP is located

Sourceval region_code : Query.t

Query that determines the code of the region where the IP is located

Sourceval city_name : Language.t -> Query.t

Creates a query that retrieves the localized name of the city where the IP is located

Sourceval country_name : Language.t -> Query.t

Creates a query that retrieves the localized name of the country where the IP is located

Sourceval continent_name : Language.t -> Query.t

Creates a query that retrieves the localized name of the continent where the IP is located

OCaml

Innovation. Community. Security.