![]() |
Belle II Software
release-06-02-00
|

Public Attributes | |
| database_path | |
| schema | |
| conn | |
| read_only | |
| timeout | |
| isolation_level | |
Parameters:
database_path (pathlib.Path): The path to the database file we want to create/connect to.
Keyword Arguments:
schema (dict): Database table schema for the DB of the form:
{"tablename": ["columnname1 text primary key",
"columnname2 int"]
}
read_only (bool): Should the connection be treated as a read-only connection (no update/insert calls)
timeout (float): What timeout value should the connection have. How long to wait for other changes to commit.
isolation_level (str): How should the connection behave when making transactions?
Choices are [None, "DEFERRED", "IMMEDIATE", "EXCLUSIVE"] where None is autocommit behaviour.
Definition at line 18 of file database.py.