sunpeek.db_utils.crud#

Functions

create_component(session, component[, commit])

Add a new component to the database

delete_component(session, component)

Removes a component from the database

get_components(session, component[, id, ...])

Get a component, or list of components from the database.

get_operational_events(session[, event_id, ...])

get_plants(session[, plant_id, plant_name, ...])

Gets a plant by name from the database, or all plants if no plant_name or plant_id parameter is supplied :type session: Session :param session: :type plant_id: int :param plant_id: :type plant_name: str :param plant_name:

get_sensors(session[, id, raw_name, ...])

Get all sensors, all sensors of a given plant, or a specific sensor.

update_component(session, component[, commit])

Updates a component to the database.