@classmethod
def limit(cls, offset=None):
    """
        Builds a limit N [offset N] statement.
        """
    if offset:
        return cls.format(' limit {} offset {}', cls.placeholder(), cls.
            placeholder())
    return cls.format(' limit {}', cls.placeholder())
