code: def set_sqlite_pragmas(self):
          
  
          def _pragmas_on_connect(dbapi_con, con_record):
              dbapi_con.execute("PRAGMA journal_mode = WAL;")
  
          event.listen(self.engine, "connect", _pragmas_on_connect)
docs: Sets the connection PRAGMAs for the sqlalchemy engine stored in self.engine.
  
          It currently sets:
          - journal_mode to WAL
  
          :return: None