Skip to content

DeltaBaseEventStore

API reference for DeltaBaseEventStore

@delta-base/alchemy


const DeltaBaseEventStore: Handler<(this, id, props) => Promise<DeltaBaseEventStoreResource>>

Manage a DeltaBase event store as an Alchemy resource.

This resource is a thin IaC wrapper around @delta-base/server management operations. Use it when your event store should be created and reconciled as part of an Alchemy deployment.

import { DeltaBaseEventStore } from '@delta-base/alchemy';
const eventStore = await DeltaBaseEventStore('auth-service', {
baseUrl: process.env.DELTABASE_URL ?? 'https://api.delta-base.com',
apiKey: process.env.DELTABASE_API_KEY ?? '',
description: 'Authentication service event store',
settings: {
retentionPeriodDays: 365,
},
});
console.log(eventStore.eventStoreName);