forked from npgsql/npgsql
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathTimelineHistoryFile.cs
More file actions
29 lines (24 loc) · 852 Bytes
/
TimelineHistoryFile.cs
File metadata and controls
29 lines (24 loc) · 852 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
namespace Npgsql.Replication;
/// <summary>
/// Represents a PostgreSQL timeline history file
/// </summary>
public readonly struct TimelineHistoryFile
{
internal TimelineHistoryFile(string fileName, byte[] content)
{
FileName = fileName;
Content = content;
}
/// <summary>
/// File name of the timeline history file, e.g., 00000002.history.
/// </summary>
public string FileName { get; }
// While it is pretty safe to assume that a timeline history file
// only contains ASCII bytes since it is automatically written and
// parsed by the PostgreSQL backend, we don't want to claim anything
// about its content (we get it as bytes and we hand it over as bytes).
/// <summary>
/// Contents of the timeline history file.
/// </summary>
public byte[] Content { get; }
}