open#

classmethod Database.open(db_path, read_only)#

Open a database in a given location.

Parameters:
db_pathstr

Path to the top-level database directory.

read_onlybool

Whether to open the database in read-only mode.

Returns:
Database object or None

Database object opened or None if no database object is found.