from_sqlalchemy_orm

classmethod DbChannel.from_sqlalchemy_orm(parent_station, orm)[source]

Create a DbChannel instance from a mss_data_server.geometry.databaseFactory.GeomChannel table mapper class.

Parameters
  • parent_station (mss_data_server.geometry.db_inventory.DbStation) – The parent station to which the instance is related.

  • orm (mss_data_server.geometry.databaseFactory.GeomChannel) – The sqlalchemy table mapper class for the channel.

Returns

The created instance.

Return type

DbChannel