class ([only_select=False])

    Context manager that will count the number of queries executed within the context.

    (expected[, only_select=False])

    Function or method decorator that will raise an if the number of queries executed in the decorated function does not equal the expected number.