📒Event Store

The following provides an introduction on how to set up the event store.

While we aim to support multiple languages and data platforms, our current solution only supports TypeScript, with drivers for SQLite, PostgreSQL, and Browsers.

Each driver is exported under its own package namespace.

import { SQLiteEventStore } from "@valkyr/event-store/sqlite";

Each comes with the same configuration and base event store functionality which we will go through here, except for the database connection, which is unique for each driver.

While PostgreSQL and SQLite expects an established connection to be passed to the event store instance. Valkyr provides its own internal connection where the database key is simply a selection of which driver to use.

Last updated