/
dev-npgsql
/
npgsql
Обзор
Документация
Войти
/
dev-npgsql
/
npgsql
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
test-logs
src/Npgsql/Replication/TestDecoding/TestDecodingData.cs
39 строк
1 KB
Nino Floris
Remove obsolete UTF-8 BOMs (#6542)
13 апр 2026, 17:13
Не верифицирован
13 апр 2026, 17:13
5225216
Код
Авторство
О чём код?
using NpgsqlTypes; using System; namespace Npgsql.Replication.TestDecoding; /// <summary> /// Text representations of PostgreSQL WAL operations decoded by the "test_decoding" plugin. See /// https://www.postgresql.org/docs/current/test-decoding.html. /// </summary> public sealed class TestDecodingData : ReplicationMessage { /// <summary> /// Decoded text representation of the operation performed in this WAL entry /// </summary> public string Data { get; private set; } = default!; internal TestDecodingData Populate( NpgsqlLogSequenceNumber walStart, NpgsqlLogSequenceNumber walEnd, DateTime serverClock, string data) { base.Populate(walStart, walEnd, serverClock); Data = data; return this; } /// <inheritdoc /> public override string ToString() => Data; /// <summary> /// Returns a clone of this message, which can be accessed after other replication messages have been retrieved. /// </summary> public TestDecodingData Clone() { var clone = new TestDecodingData(); clone.Populate(WalStart, WalEnd, ServerClock, Data); return clone; } }