ramp_database.tools.event.get_event

ramp_database.tools.event.get_event(session, event_name)

Get event from the database.

Parameters
sessionsqlalchemy.orm.Session

The session to directly perform the operation on the database.

event_namestr or None

The name of the event to query. If None, all the events will be queried.

Returns
evenramp_database.model.Event or list of ramp_database.model.Event

The queried problem.