def buildLimits(sqlQuery, offset=None, limit=None):
    """
    Builds limiting on the SQL alchemy query.

    @param offset: integer|None
        The offset to fetch elements from.
    @param limit: integer|None
        The limit of elements to get.
    """
    if offset is not None:
        sqlQuery = sqlQuery.offset(offset)
    if limit is not None:
        sqlQuery = sqlQuery.limit(limit)
    return sqlQuery
