PostgresSyncSession
Manages sync session state for PostgreSQL. Implements spec Section 8 (Trigger Suppression) for Postgres.
public static class PostgresSyncSession
Methods
EnableSuppression(NpgsqlConnection)
public static Result<bool, SyncError> EnableSuppression(NpgsqlConnection connection)
Enables suppression (sets sync_active = 1).
Parameters:
| Name | Type | Description |
|---|---|---|
connection |
NpgsqlConnection |
PostgreSQL connection. |
Returns: SyncError> - Success or database error.
DisableSuppression(NpgsqlConnection)
public static Result<bool, SyncError> DisableSuppression(NpgsqlConnection connection)
Disables suppression (sets sync_active = 0).
Parameters:
| Name | Type | Description |
|---|---|---|
connection |
NpgsqlConnection |
PostgreSQL connection. |
Returns: SyncError> - Success or database error.