Nomad supports few different ways of specification how it should connect to database.
There are two parameters it has to acquire:
Engine is specified as a string. Supported engines right now consist of
sqla. Both of them support SQLite, MySQL and PostgreSQL
databases, the first one requiring only db api modules and second one requiring
URL can be specified in few different ways:
url- just a string, path like
url-python- taking variable from Python module, has two approaches to fetching python module:
sys.path, when it looks like one:
- From filesystem, when it looks like path to file:
url-file- taking contents of a file:
url-command- taking output of a command:
grep mysql ../settings.txt
Look at URL acquiring test to see how various options are used.