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().
Parameters
Section titled “Parameters”options?
Section titled “options?”RegisterLibSqlPluginsOptions = {}
