| title | component | reviewed | related | versions | ||
|---|---|---|---|---|---|---|
PostgreSQL Scripts |
SqlPersistence |
2025-07-29 |
|
[3,) |
Scripts and SQL statements used when interacting with a PostgreSQL database.
Scripts are created at build time and can be executed manually as part of a deployment or decommissioning of an endpoint.
snippet: PostgreSQL_OutboxCreateSql
snippet: PostgreSQL_OutboxDropSql
For a Saga with the following structure
snippet: CreationScriptSaga
snippet: PostgreSQL_SagaCreateSql
snippet: PostgreSQL_SagaDropSql
snippet: PostgreSQL_SubscriptionCreateSql
snippet: PostgreSQL_SubscriptionDropSql
snippet: PostgreSQL_TimeoutCreateSql
snippet: PostgreSQL_TimeoutDropSql
These are the SQL scripts used at runtime to query and update data.
Used at intervals to cleanup old outbox records.
snippet: PostgreSQL_OutboxCleanupSql
Used by IOutboxStorage.SetAsDispatched.
snippet: PostgreSQL_OutboxGetSql
Used by IOutboxStorage.SetAsDispatched.
snippet: PostgreSQL_OutboxSetAsDispatchedSql
Used by IOutboxStorage.Store.
snippet: PostgreSQL_OutboxOptimisticStoreSql
snippet: PostgreSQL_OutboxPessimisticBeginSql
snippet: PostgreSQL_OutboxPessimisticCompleteSql
Used by ISagaPersister.Complete.
snippet: PostgreSQL_SagaCompleteSql
Used by ISagaPersister.Save.
snippet: PostgreSQL_SagaSaveSql
Used by ISagaPersister.Get(propertyName...).
snippet: PostgreSQL_SagaGetByPropertySql
Used by ISagaPersister.Get(sagaId...).
snippet: PostgreSQL_SagaGetBySagaIdSql
Used by ISagaPersister.Update.
snippet: PostgreSQL_SagaUpdateSql
snippet: PostgreSQL_SagaSelectSql
Used by ISubscriptionStorage.GetSubscriberAddressesForMessage.
snippet: PostgreSQL_SubscriptionGetSubscribersSql
Used by ISubscriptionStorage.Subscribe.
snippet: PostgreSQL_SubscriptionSubscribeSql
Used by ISubscriptionStorage.Unsubscribe.
snippet: PostgreSQL_SubscriptionUnsubscribeSql
Used by IPersistTimeouts.Peek.
snippet: PostgreSQL_TimeoutPeekSql
Used by IPersistTimeouts.Add.
snippet: PostgreSQL_TimeoutAddSql
Used by IQueryTimeouts.GetNextChunk.
snippet: PostgreSQL_TimeoutNextSql
snippet: PostgreSQL_TimeoutRangeSql
Used by IPersistTimeouts.TryRemove.
snippet: PostgreSQL_TimeoutRemoveByIdSql
Used by IPersistTimeouts.RemoveTimeoutBy.
snippet: PostgreSQL_TimeoutRemoveBySagaIdSql