registerD1Plugins
이 콘텐츠는 아직 번역되지 않았습니다.
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.
