This adds an api to psueodace.utils that standardises the way we obtain the name of the main datomic database.
This is what I was intending to use to eliminate the need for a separate WS_VERSION env var.
Overview
(wbdb-name) -> looks in the environment first, then in a (io/resource ".config") if one exists, calls one of the implementation(s) below.
(wbdb-name uri)-> extract name from a java.net.URI, assumed to be YAML file of the .config format used by elasticbeanstalk
(wbdb-name string) -> extracts the name from the URI string.
Added complete test cases , should serve complete examples.
This adds an api to
psueodace.utils
that standardises the way we obtain the name of the main datomic database.This is what I was intending to use to eliminate the need for a separate WS_VERSION env var.
Overview
(wbdb-name)
-> looks in the environment first, then in a (io/resource ".config") if one exists, calls one of the implementation(s) below.(wbdb-name uri)
-> extract name from a java.net.URI, assumed to be YAML file of the .config format used by elasticbeanstalk(wbdb-name string)
-> extracts the name from the URI string.Added complete test cases , should serve complete examples.