class documentation

class Database:

Constructor: Database(connection)

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method execute Undocumented
Method execute_and_cursor Undocumented
Method insert_camera Undocumented
Method load_nuscenes Undocumented
Method load_roadnetworks Undocumented
Method predicate Undocumented
Method reset Undocumented
Method reset_cursor Undocumented
Method sql Undocumented
Method update Undocumented
Instance Variable connection Undocumented
Instance Variable cursor Undocumented
Method _commit Undocumented
Method _create_camera_table Undocumented
Method _create_index Undocumented
Method _create_item_detection_table Undocumented
Method _create_item_trajectory_table Undocumented
Method _create_metadata_table Undocumented
Method _drop_table Undocumented
def __init__(self, connection: Connection):

Undocumented

def execute(self, query: str | Composable, vars: tuple | list | Sequence | Mapping | None = None) -> list[tuple]:

Undocumented

def execute_and_cursor(self, query: str | Composable, vars: tuple | list | Sequence | Mapping | None = None) -> tuple[list[tuple], Cursor]:

Undocumented

def insert_camera(self, camera: list[CameraConfig]):

Undocumented

def load_nuscenes(self, annotations: dict[CameraKey, list[NuscenesAnnotation]], cameras: dict[CameraKey, list[NuscenesCamera]]):

Undocumented

def load_roadnetworks(self, dir: str, location: str):

Undocumented

def predicate(self, predicate: PredicateNode, temporal: bool = True):

Undocumented

def reset(self, commit=True):

Undocumented

def reset_cursor(self):

Undocumented

def sql(self, query: str) -> pd.DataFrame:

Undocumented

def update(self, query: str | Composable, commit: bool = True):

Undocumented

connection: Connection =

Undocumented

cursor: Cursor =

Undocumented

def _commit(self, commit=True):

Undocumented

def _create_camera_table(self, commit=True):

Undocumented

def _create_index(self, commit=True):

Undocumented

def _create_item_detection_table(self, commit=True):

Undocumented

def _create_item_trajectory_table(self, commit=True):

Undocumented

def _create_metadata_table(self, commit=True):

Undocumented

def _drop_table(self, commit=True):

Undocumented