def _render_limit(limit):
    """Render the limit part of a query.

    Parameters
    ----------
    limit : int, optional
        Limit the amount of data needed to be returned.

    Returns
    -------
    str
        A string that represents the "limit" part of a query.
    """
    if not limit:
        return ''
    return 'LIMIT %s' % limit
