Geolix v0.15.1 Geolix.Adapter.MMDB2.Loader View Source
Loader module to load an MMDB2 database into Geolix.
Link to this section Summary
Functions
Implementation of Geolix.Adapter.MMDB2.load_database/1
Link to this section Functions
Link to this function
load_database(database)
View Source
load_database(map()) :: :ok | {:error, term()}
Implementation of Geolix.Adapter.MMDB2.load_database/1
.
Requires the parameter :source
as the location of the database. Can access
the system environment by receiving a { :system, "env_var_name" }
tuple.
Using { :system, "env_var_name", "/path/to/default.mmdb2" }
you can define
a fallback value to be used if the environment variable is not set.