registerPostgresPlugins
このコンテンツはまだ日本語訳がありません。
registerPostgresPlugins(
ext,options):PostgresPluginHandles
Defined in: src/persistence/journals/PostgresPlugin.ts:59
One-shot registration of the Postgres journal + snapshot store against
the running PersistenceExtension, returning a ready-to-use
DurableState store handle. Mirrors registerCassandraPlugins /
registerObjectStoragePlugins.
After this call, activate the journal + snapshot store via:
actor-ts.persistence.journal.plugin = "actor-ts.persistence.journal.postgres"
actor-ts.persistence.snapshot-store.plugin = "actor-ts.persistence.snapshot-store.postgres"
either via HOCON or a { config: { ... } } override.
Pass pool to share a single connection pool across all three stores
(recommended when they target the same DB).
Parameters
Section titled “Parameters”options
Section titled “options”RegisterPostgresPluginsOptions