/
dev-npgsql
/
npgsql
Обзор
Документация
Войти
/
dev-npgsql
/
npgsql
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
v8.0.9
src/Npgsql/Replication/PhysicalReplicationSlot.cs
36 строк
1 KB
Brar Piening
Consistently handle TimeLineID as UInt32 everywhere (#5101)
11 июн 2023, 19:53
Не верифицирован
11 июн 2023, 19:53
32e2ef7
Код
Авторство
О чём код?
using NpgsqlTypes; namespace Npgsql.Replication; /// <summary> /// Wraps a replication slot that uses physical replication. /// </summary> public class PhysicalReplicationSlot : ReplicationSlot { /// <summary> /// Creates a new <see cref="PhysicalReplicationSlot"/> instance. /// </summary> /// <remarks> /// Create a <see cref="PhysicalReplicationSlot"/> instance with this constructor to wrap an existing PostgreSQL replication slot /// that has been initialized for physical replication. /// </remarks> /// <param name="slotName">The name of the existing replication slot</param> /// <param name="restartLsn">The replication slot's <c>restart_lsn</c></param> /// <param name="restartTimeline">The timeline ID associated to <c>restart_lsn</c>, following the current timeline history.</param> public PhysicalReplicationSlot(string slotName, NpgsqlLogSequenceNumber? restartLsn = null, uint? restartTimeline = null) : base(slotName) { RestartLsn = restartLsn; RestartTimeline = restartTimeline; } /// <summary> /// The replication slot's <c>restart_lsn</c>. /// </summary> public NpgsqlLogSequenceNumber? RestartLsn { get; } /// <summary> /// The timeline ID associated to <c>restart_lsn</c>, following the current timeline history. /// </summary> public uint? RestartTimeline { get; } }