Akka.Persistence.PostgreSql Microsoft.Extensions.Hosting support.
Install
| Product | Versions |
|---|---|
| .NET Standard |
README
Akka.Persistence.PostgreSql.Hosting
Akka.Hosting extension methods to add Akka.Persistence.PostgreSql to an ActorSystem
Akka.Persistence.PostgreSql Extension Methods
WithPostgreSqlPersistence() Method
public static AkkaConfigurationBuilder WithPostgreSqlPersistence(
this AkkaConfigurationBuilder builder,
string connectionString,
PersistenceMode mode = PersistenceMode.Both,
string schemaName = "public",
bool autoInitialize = false,
StoredAsType storedAsType = StoredAsType.ByteA,
bool sequentialAccess = false,
bool useBigintIdentityForOrderingColumn = false,
Action<AkkaPersistenceJournalBuilder> configurator = null);
Parameters
connectionStringstringConnection string used for database access.
modePersistenceModeDetermines which settings should be added by this method call. Default:
PersistenceMode.BothPersistenceMode.Journal: Only add the journal settingsPersistenceMode.SnapshotStore: Only add the snapshot store settingsPersistenceMode.Both: Add both journal and snapshot store settings
schemaNamestringThe schema name for the journal and snapshot store table. Default:
"public"autoInitializeboolShould the SQL store table be initialized automatically. Default:
falsestoredAsTypeStoredAsTypeDetermines how data are being de/serialized into the table. Default:
StoredAsType.ByteAStoredAsType.ByteA: Byte arrayStoredAsType.Json: JSONStoredAsType.JsonB: Binary JSON
sequentialAccessboolUses the
CommandBehavior.SequentialAccesswhen creating SQL commands, providing a performance improvement for reading large BLOBS. Default:falseuseBigintIdentityForOrderingColumnboolWhen set to true, persistence will use
BIGINTandGENERATED ALWAYS AS IDENTITYfor journal table schema creation. Default: falseNOTE
This only affects newly created tables, as such, it should not affect any existing database.
WARNING
To use this feature, you have to have PorsgreSql version 10 or above
configuratorAction<AkkaPersistenceJournalBuilder>An Action delegate used to configure an
AkkaPersistenceJournalBuilderinstance. Used to configure Event Adapters
Changes from Previous Version
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.