is_sub_data_base

data_base.is_sub_data_base(parent_db, key)

Check if a given key is a sub-database of the parent database.

Parameters:
parent_db : DataBase

The parent database.

key : str

The key to check.

Returns:

True if the key is a sub-database of the parent database.

Return type:

bool