package mmdb

  1. Overview
  2. Docs

Module Mmdb.AnySource

Interface to query for values of type any_value. This may come useful in case the database contains different value types at the same query path. Specialized modules for retrieving strings, floats, integers and booleans are available below.

Sourcemodule Query : sig ... end
Sourcetype answer = any_value

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

OCaml

Innovation. Community. Security.