def isDirty():
    """Return a bool whether there was any database write since the
        transaction started.

        A SQL write command or any persistent object change will set this flag.

        `transaction.commit` or `transaction.abort` clears this flag.
        """
