open

understand.open(dbname) understand.Db

Open a database from the passed in filename.

Parameters:

dbname (str) – the filename of the database

Return type:

understand.Db

Returns:

An opened database

Raises:

Understand.Error – if unable to open the database

Possible causes for error are:

  • DBAlreadyOpen - only one database may be open at once

  • DBCorrupt - bad database file

  • DBOldVersion - database needs to be rebuilt

  • DBUnknownVersion - database needs to be rebuilt

  • DBUnableOpen - database is unreadable or does not exist

  • NoApiLicense - Understand license required