from_sqlalchemy_orm¶
-
classmethod
DbChannel.from_sqlalchemy_orm(parent_station, orm)[source]¶ Create a
DbChannelinstance from amss_data_server.geometry.databaseFactory.GeomChanneltable 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