Belle II Software  release-06-02-00
CAFDB Class Reference
Inheritance diagram for CAFDB:
Collaboration diagram for CAFDB:

Public Member Functions

def __init__ (self, database_path, read_only=False, timeout=30.0, isolation_level=None)
 
def insert_calibration (self, calibration_name, state="init", checkpoint="init", iteration=0)
 
def update_calibration_value (self, calibration_name, column_name, new_value, attempts=3)
 
def get_calibration_value (self, calibration_name, column_name)
 
def output_calibration_table (self)
 
def __enter__ (self)
 
def __exit__ (self, type, value, traceback)
 
def close (self)
 
def open (self)
 
def commit (self)
 
def query (self, sql, parameters=tuple())
 
def create_schema (self)
 
def get_uri (self)
 

Public Attributes

 database_path
 
 schema
 
 conn
 
 read_only
 
 timeout
 
 isolation_level
 

Static Public Attributes

dictionary default_schema
 

Detailed Description

Parameters:
  database_path (pathlib.Path): The path to the database file we want to create/connect to.

Keyword Arguments:
  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.

Definition at line 100 of file database.py.

Member Data Documentation

◆ default_schema

dictionary default_schema
static
Initial value:
= {"calibrations": ["name text primary key",
"state text",
"checkpoint text",
"iteration int"]}

Definition at line 110 of file database.py.


The documentation for this class was generated from the following file: