package mmdb

  1. Overview
  2. Docs

Signatures for handling queries that yield a particular type of answer

module Query : sig ... end
type answer

The type of answer returned by a query

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

Fetches a value directly from the database

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

Fetches a value from an ip_data reference

OCaml

Innovation. Community. Security.