notice

This is unreleased documentation for Rasa Open Source Documentation Master/Unreleased version.
For the latest released documentation, see the latest version (2.1.x).

Version: Master/Unreleased

rasa.core.brokers.sql

SQLEventBroker Objects

class SQLEventBroker(EventBroker)

Save events into an SQL database.

All events will be stored in a table called events.

from_endpoint_config

| @classmethod
| async from_endpoint_config(cls, broker_config: EndpointConfig, event_loop: Optional[AbstractEventLoop] = None) -> "SQLEventBroker"

Creates broker. See the parent class for more information.

session_scope

| @contextlib.contextmanager
| session_scope()

Provide a transactional scope around a series of operations.

publish

| publish(event: Dict[Text, Any]) -> None

Publishes a json-formatted Rasa Core event into an event queue.