DbRecorder

class mss_dataserver.geometry.db_inventory.DbRecorder(orm=None, **kwargs)[source]

Bases: mss_dataserver.geometry.inventory.Recorder

The database recorder.

Parameters

orm (mss_data_server.geometry.databaseFactory.GeomRecorder) – The sqlalchemy table mapper class.

Keyword Arguments

**kwargs – The keyword arguments passed to the __init__ method of the parent class mss_dataserver.geoemetry.inventory.Recorder.

Properties

id

int: The database id.

Methods

__init__([orm])

Initialize the instance.

add_stream(cur_stream)

Add a stream to the recorder.

from_inventory_instance(parent_inventory, …)

Create a DbRecorder instance from a mss_data_server.geometry.inventory.Recorder instance.

from_sqlalchemy_orm(parent_inventory, orm)

Create a DbRecorder instance from a mss_data_server.geometry.databaseFactory.GeomRecorder table mapper class.

get_stream(**kwargs)

Get a stream from the recorder.

merge(merge_recorder)

Merge a recorder with the existing.

pop_stream(**kwargs)

Remove a stream from the recorder.

pop_stream_by_instance(stream)

Remove a component from the sensor using the component instance.

Inheritence diagram

Inheritance diagram of mss_dataserver.geometry.db_inventory.DbRecorder