콘텐츠로 이동
한국어

registerLibSqlPlugins

이 콘텐츠는 아직 번역되지 않았습니다.

registerLibSqlPlugins(ext, options?): LibSqlPluginHandles

Defined in: src/persistence/journals/LibSqlPlugin.ts:43

One-shot registration of the libSQL journal + snapshot store against the running PersistenceExtension, returning a ready-to-use DurableState store handle. Mirrors registerPostgresPlugins / registerMariaDbPlugins.

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

Pass client to share one libSQL client across all three stores — a libSQL client is itself a connection pool, so sharing it is the normal case. With a shared client no store owns it, so none closes it: close it yourself when the system shuts down. Passing url / authToken instead lets each store build its own client and close it on close().

PersistenceExtension

RegisterLibSqlPluginsOptions = {}

LibSqlPluginHandles