def enable_wal(self):
        """
        Sets ``journal_mode`` to ``'wal'`` to enable Write-Ahead Log mode.
        """
        if self.journal_mode != "wal":
            with self.ensure_autocommit_off():
                self.execute("PRAGMA journal_mode=wal;")

        Sets ``journal_mode`` to ``'wal'`` to enable Write-Ahead Log mode.
        
sqlite_utils/db.py