Postgres Outbox
NuGet Packages
Install-Package Paramore.Brighter.PostgreSql
Install-Package Paramore.Brighter.Outbox.PostgreSqlInstall-Package Paramore.Brighter.PostgreSql.EntityFrameworkCoreDatabase Table Schema
Generating the DDL
// The table name can be whatever you choose.
string tableName = "Outbox";
// The DDL for a table that stores the message body as TEXT
string ddl = PostgreSqlOutboxBuilder.GetDDL(tableName);
// The DDL for a table that stores the message body as BYTEA
// Useful if your message body is binary
string binaryDdl = PostgreSqlOutboxBuilder.GetDDL(tableName, hasBinaryMessagePayload: true);Example SQL Script
Configuration
1. Provide Database Configuration
2. Register the Outbox
Example with Entity Framework Core
Last updated
Was this helpful?
