class_docstr: Save events into an SQL database.
  
  All events will be stored in a table called `events`.
docstr: Publishes a json-formatted Rasa Core event into an event queue.
docstr_tok: ["Publishes","a","json-formatted","Rasa","Core","event","into","an","event","queue","."]
code: def publish(self, event: Dict[Text, Any]) -> None:
      """Publishes a json-formatted Rasa Core event into an event queue."""
      with self.session_scope() as session:
          session.add(
              self.SQLBrokerEvent(
                  sender_id=event.get("sender_id"),
                  data=json.dumps(event),
              )
          )
          session.commit()
  
file_path: rasa/rasa/core/brokers/sql.py
imports: import contextlib
  import json
  import logging
  from asyncio import AbstractEventLoop
  from typing import Any, Dict, Optional, Text, Generator
  from sqlalchemy.orm import Session
  from sqlalchemy.ext.declarative import declarative_base, DeclarativeMeta
  from sqlalchemy import Column, Integer, String
  from sqlalchemy import Text
  from rasa.core.brokers.broker import EventBroker
  from rasa.utils.endpoints import EndpointConfig
label_desc: Use image node_id 3 for calling the SQLEventBroker obj's underlying member method code with example usage: obj.publish(event) without return types