Zum Inhalt springen
Deutsch

registerD1Plugins

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

registerD1Plugins(ext, options?): D1PluginHandles

Defined in: src/persistence/journals/D1Plugin.ts:41

One-shot registration of the Cloudflare D1 journal + snapshot store against the running PersistenceExtension, returning a ready-to-use DurableState store handle. Mirrors registerLibSqlPlugins.

After this call, activate the journal + snapshot store via: actor-ts.persistence.journal.plugin = "actor-ts.persistence.journal.cloudflare-d1" actor-ts.persistence.snapshot-store.plugin = "actor-ts.persistence.snapshot-store.cloudflare-d1" either via HOCON or a { config: { … } } override.

Pass client to share one transport across all three stores. With a shared transport no store owns it, so none closes it — though for D1 that costs nothing either way, since fetch holds no handle to release.

PersistenceExtension

RegisterD1PluginsOptions = {}

D1PluginHandles