panko.storage.mongo.utils
Module¶Common functions for MongoDB backend
None
Bases: object
ConnectionPool.
connect
(url, max_retries, retry_interval)¶None
Bases: pymongo.cursor.Cursor
None
Bases: object
@
panko.storage.mongo.utils.
make_events_query_from_filter
[source]¶Return start and stop row for filtering and a query.
Query is based on the selected parameter.
event_filter – storage.EventFilter object.
@
panko.storage.mongo.utils.
make_timestamp_range
(start, end, start_timestamp_op=None, end_timestamp_op=None)[source]¶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.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.