# Path: protector/influxdb/keyword.py
# class Keyword:
#     """
#     Valid InfluxDB Keywords
#     """
# 
#     SELECT = 'select'
#     FROM = 'from'
#     WHERE = 'where'
#     LIMIT = 'limit'
#     ORDER = 'order'
#     GROUP_BY = 'group'
#     DROP = 'drop'
#     DELETE = 'delete'
#     LIST = 'list'
#     SERIES = 'series'
# 
#     def __init__(self):
#         pass


from query import Query
from protector.influxdb.keyword import Keyword


class DropQuery(Query):
    """
    Construct new InfluxDB drop statement object
    """

    def __init__(self, series_stmt):
        super(DropQuery, self).__init__()
        self.set_type(Keyword.DROP)
        self.series_stmt = series_stmt

    def __str__(self):
        """
        Standard string representation of drop query
        """

# Path: protector/influxdb/keyword.py
# class Keyword:
#     """
#     Valid InfluxDB Keywords
#     """
# 
#     SELECT = 'select'
#     FROM = 'from'
#     WHERE = 'where'
#     LIMIT = 'limit'
#     ORDER = 'order'
#     GROUP_BY = 'group'
#     DROP = 'drop'
#     DELETE = 'delete'
#     LIST = 'list'
#     SERIES = 'series'
# 
#     def __init__(self):
#         pass


# Path: protector/query/drop.py
from query import Query
from protector.influxdb.keyword import Keyword



class DropQuery(Query):
    """
    Construct new InfluxDB drop statement object
    """

    def __init__(self, series_stmt):
        super(DropQuery, self).__init__()
        self.set_type(Keyword.DROP)
        self.series_stmt = series_stmt

    def __str__(self):
        """
        Standard string representation of drop query
        """

        return ' '.join([Keyword.DROP.upper(), Keyword.SERIES.upper(), self.series_stmt])