otp.databases#
- databases(context=utils.default, derived=False)#
Gets all available databases in the
context
- Parameters
context (str, optional) – Context to run the query. If not set then default
context
is used.derived (bool, dict) – If False then derived databases are not returned. If dict then its items used as parameters to
derived_databases()
If True then default parameters forderived_databases()
are used.
- Returns
Dict where keys are database names and values are
DB
objects withcontext
specified.- Return type
See also
SHOW_DB_LIST OneTick event processor