More functions are exported from gen_kv_driver.erl than needed.
Ideally, only get and put should be needed, but further help could be provided via other modules.
For instance, it is possible to obtain some information about the context of the current operation through the key that is being fetched/updated.
Current interface:
get_application_record (get)
update_map (put)
find_key (used to find nested keys inside maps).
Since adding the conversion to Erlang records in all get requests, find_key loses its purpose. A single get is performed, returning the application level record for an object. Fields in these objects can be accessed trivially, removing the requirement for this export
More functions are exported from
gen_kv_driver.erl
than needed. Ideally, onlyget
andput
should be needed, but further help could be provided via other modules. For instance, it is possible to obtain some information about the context of the current operation through the key that is being fetched/updated.Current interface:
get_application_record
(get)update_map
(put)find_key
(used to find nested keys inside maps).Since adding the conversion to Erlang records in all get requests,
find_key
loses its purpose. A single get is performed, returning the application level record for an object. Fields in these objects can be accessed trivially, removing the requirement for this export