The Module

Common functions for MongoDB backend


Bases: object

connect(url, max_retries, retry_interval)
class, max_retry, retry_interval)

Bases: pymongo.cursor.Cursor

class, max_retries, retry_interval)

Bases: object

create_index(keys, name=None, *args, **kwargs)
find(*args, **kwargs)

Return start and stop row for filtering and a query.

Query is based on the selected parameter.


event_filter – storage.EventFilter object., end, start_timestamp_op=None, end_timestamp_op=None)

Create the query document to find timestamps within that range.

This is done by given two possible datetimes and their operations. By default, using $gte for the lower bound and $lt for the upper bound.