/
dev-npgsql
/
npgsql
Обзор
Документация
Войти
/
dev-npgsql
/
npgsql
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
v7.0.10
src/Npgsql/Replication/ReplicationSystemIdentification.cs
38 строк
1 KB
Shay Rojansky
Use file-scoped namespaces (#4225)
18 дек 2021, 13:52
Не верифицирован
18 дек 2021, 13:52
43756d1
Код
Авторство
О чём код?
using NpgsqlTypes; namespace Npgsql.Replication; /// <summary> /// Contains server identification information returned from <see cref="ReplicationConnection.IdentifySystem"/>. /// </summary> public class ReplicationSystemIdentification { internal ReplicationSystemIdentification(string systemId, uint timeline, NpgsqlLogSequenceNumber xLogPos, string dbName) { SystemId = systemId; Timeline = timeline; XLogPos = xLogPos; DbName = dbName; } /// <summary> /// The unique system identifier identifying the cluster. /// This can be used to check that the base backup used to initialize the standby came from the same cluster. /// </summary> public string SystemId { get; } /// <summary> /// Current timeline ID. Also useful to check that the standby is consistent with the master. /// </summary> public uint Timeline { get; } /// <summary> /// Current WAL flush location. Useful to get a known location in the write-ahead log where streaming can start. /// </summary> public NpgsqlLogSequenceNumber XLogPos { get; } /// <summary> /// Database connected to. /// </summary> public string? DbName { get; } }